<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (C) 2000 - 2024 Silverpeas

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    As a special exception to the terms and conditions of version 3.0 of
    the GPL, you may redistribute this Program in connection with Free/Libre
    Open Source Software ("FLOSS") applications as described in Silverpeas's
    FLOSS exception.  You should have received a copy of the text describing
    the FLOSS exception, and it is also available here:
    "https://www.silverpeas.org/docs/core/legal/floss_exception.html"

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

-->

<WAComponent xmlns="http://silverpeas.org/xml/ns/component"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://silverpeas.org/xml/ns/component https://www.silverpeas.org/xsd/component.xsd">
  <name>demandeCongesSimple</name>
  <behaviors>
    <behavior>workflow</behavior>
  </behaviors>
  <label>
    <message lang="fr">Demande de congés simplifiée</message>
    <message lang="en">Simple workflow to ask for a vacation leave</message>
  </label>
  <description>
    <message lang="fr">Processus : Demande de congés simplifiée</message>
    <message lang="en">Workflow : ask for a vacation leave</message>
  </description>
  <suite>
    <message lang="fr">05 Workflow</message>
    <message lang="en">05 Workflow</message>
  </suite>
  <visible>true</visible>
  <portlet>false</portlet>
  <router>RprocessManager</router>
  <profiles>
    <profile name="Employe">
      <label>
        <message lang="fr">Collaborateur</message>
        <message lang="en">Employee</message>
      </label>
      <help>
        <message lang="fr">Collaborateur</message>
        <message lang="en">Employee</message>
      </help>
      <spaceMapping>
        <profile>writer</profile>
        <profile>reader</profile>
      </spaceMapping>
    </profile>
    <profile name="Responsable">
      <label>
        <message lang="fr">Responsable</message>
        <message lang="en">Manager</message>
      </label>
      <help>
        <message lang="fr">Responsable</message>
        <message lang="en">Manager</message>
      </help>
      <spaceMapping>
        <profile>publisher</profile>
      </spaceMapping>
    </profile>
    <profile name="supervisor">
      <label>
        <message lang="fr">Superviseur</message>
        <message lang="en">Supervisor</message>
      </label>
      <help>
        <message lang="fr">Superviseur</message>
        <message lang="en">Supervisor</message>
      </help>
      <spaceMapping>
        <profile>admin</profile>
      </spaceMapping>
    </profile>
  </profiles>
  <parameters>
    <parameter>
      <name>XMLFileName</name>
      <label>
        <message lang="fr">Modèle abstrait</message>
        <message lang="en">Abstract model</message>
      </label>
      <order>1</order>
      <mandatory>true</mandatory>
      <value>DemandeCongesSimple/DemandeCongesSimple.xml</value>
      <type>text</type>
      <updatable>always</updatable>
      <help>
        <message lang="fr">Nom du fichier XML contenant le modèle du processsus.</message>
        <message lang="en">XMl file containing the model of the workflow.</message>
      </help>
    </parameter>
    <parameter>
      <name>exportCSV</name>
      <label>
        <message lang="fr">Export CSV</message>
        <message lang="en">CSV export</message>
      </label>
      <order>2</order>
      <mandatory>true</mandatory>
      <value>no</value>
      <type>checkbox</type>
      <updatable>always</updatable>
      <help>
        <message lang="fr">Export des données sous forme d'un fichier CSV.</message>
        <message lang="en">Exporting the workflow data in a CSV file.</message>
      </help>
    </parameter>
    <parameter>
      <name>fieldsToExport</name>
      <label>
        <message lang="fr">Champs à exporter</message>
        <message lang="en">Fields to export</message>
      </label>
      <order>3</order>
      <mandatory>false</mandatory>
      <value></value>
      <type>text</type>
      <updatable>always</updatable>
      <help>
        <message lang="fr">Les champs du workflow à exporter.</message>
        <message lang="en">The fields to be exported.</message>
      </help>
    </parameter>
    <parameter>
      <name>hideReturn</name>
      <label>
        <message lang="fr">Masquer les retours (O/N)</message>
        <message lang="en">Hide return (Y/N)</message>
      </label>
      <order>4</order>
      <mandatory>false</mandatory>
      <value>yes</value>
      <type>checkbox</type>
      <updatable>always</updatable>
      <help>
        <message lang="fr">Permet aux utilisateurs de ne plus voir l'action "Retour à..."</message>
        <message lang="en">Allows users to stop seeing the "Back to..." action</message>
      </help>
    </parameter>
  </parameters>
</WAComponent>
