Projet

Général

Profil

Feature #8906 » DemandeCongesSimple.xml

David Lesimple, 06/04/2018 10:04

 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<processModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="DemandeCongesSimple" xsi:noNamespaceSchemaLocation="/home/dle/silverpeas6INPI/silverpeas/resources/modelManager/processModel.xsd">
<label lang="default" role="default">Demande de congés simplifiée</label>
<roles>
<role name="Employe">
<label lang="default" role="default">Demandeur</label>
</role>
<role name="Responsable">
<label lang="default" role="default">Responsable</label>
</role>
<role name="supervisor">
<label lang="default" role="default">Superviseur</label>
</role>
</roles>
<presentation>
<title lang="default" role="Employe">Congés du ${folder.dateDebut} (${folder.debutJourneeOuDemi}) au ${folder.dateFin} (${folder.finJourneeOuDemi})</title>
<title lang="default" role="Responsable">Demande de ${action.Creation.actor}</title>
<title lang="default" role="supervisor">Demande de ${action.Creation.actor}</title>
<columns role="default">
<column item="nature"/>
<column item="duree"/>
</columns>
</presentation>
<participants>
<participant name="Demandeur" state="">
<label lang="default" role="default">Demandeur</label>
</participant>
</participants>
<states>
<state name="AttenteValidation" timeoutInterval="-1" timeoutNotifyAdmin="true">
<label lang="default" role="default">En attente d'acceptation par responsable</label>
<workingUsers>
<relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
</workingUsers>
<interestedUsers>
<relatedUser participant="Demandeur" role="Employe"/>
</interestedUsers>
<allowedActions>
<allow action="Accepter"/>
<allow action="Refuser"/>
</allowedActions>
<timeOutActions>
<timeOutAction action="Relancer" delay="3d" order="1"/>
</timeOutActions>
</state>
<state name="Acceptee" timeoutInterval="-1" timeoutNotifyAdmin="true">
<label lang="default" role="default">Acceptée</label>
<workingUsers>
<relatedUser participant="Demandeur" role="Employe"/>
</workingUsers>
<interestedUsers>
<relatedUser participant="Demandeur" role="Employe"/>
<relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
</interestedUsers>
</state>
<state name="Refusee" timeoutInterval="-1" timeoutNotifyAdmin="true">
<label lang="default" role="default">Refusée</label>
<workingUsers>
<relatedUser participant="Demandeur" role="Employe"/>
</workingUsers>
<interestedUsers>
<relatedUser participant="Demandeur" role="Employe"/>
<relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
</interestedUsers>
</state>
</states>
<actions>
<action name="Creation" kind="create" form="creation">
<label lang="default" role="default">Création</label>
<description lang="default" role="default">Création d'une nouvelle demande.</description>
<allowedUsers>
<userInRole name="Employe"/>
</allowedUsers>
<consequences>
<consequence>
<kill>false</kill>
<set state="AttenteValidation"/>
<notify message="Merci de valider les congés de ${action.Creation.actor} pour ${folder.com} jours du ${folder.dateDebut} (${folder.debutJourneeOuDemi}) au ${folder.dateFin} (${folder.finJourneeOuDemi})">
<relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
</notify>
<triggers/>
</consequence>
</consequences>
</action>
<action name="Accepter" kind="update" form="acceptation">
<label lang="default" role="default">Accepter</label>
<allowedUsers>
<userInRole name="Responsable"/>
</allowedUsers>
<consequences>
<consequence>
<kill>false</kill>
<set state="Acceptee"/>
<notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été acceptée.">
<relatedUser participant="Demandeur" role="Employe"/>
</notify>
<triggers>
<trigger name="SendInAlmanach" handler="SendInAlmanachHandler">
<param name="tp_almanachId" value=""/>
<param name="tp_eventName" value="Congés de ${action.Creation.actor}"/>
<param name="tp_eventDescription" value="Type de congés ${folder.nature}"/>
<param name="tp_startDate" value="${folder.dateDebut}"/>
<param name="tp_endDate" value="${folder.dateFin}"/>
</trigger>
</triggers>
</consequence>
</consequences>
</action>
<action name="Refuser" kind="update" form="refus">
<label lang="default" role="default">Refuser</label>
<allowedUsers>
<userInRole name="Responsable"/>
</allowedUsers>
<consequences>
<consequence>
<kill>false</kill>
<set state="Refusee"/>
<notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été refusée pour le motif suivant : ${folder.motifRefus}">
<relatedUser participant="Demandeur" role="Employe"/>
</notify>
<triggers/>
</consequence>
</consequences>
</action>
<action name="Relancer" kind="update">
<label lang="default" role="default">Relancer</label>
<allowedUsers>
<userInRole name="Responsable"/>
</allowedUsers>
<consequences>
<consequence>
<kill>false</kill>
<set state="AttenteValidation"/>
<notify message="Relance - Merci de valider les congés de ${action.Creation.actor} du ${folder.dateDebut} (${folder.debutJourneeOuDemi}) au ${folder.dateFin} (${folder.finJourneeOuDemi})">
<relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
</notify>
<triggers/>
</consequence>
</consequences>
</action>
</actions>
<dataFolder>
<item name="nature" computed="false">
<label lang="default" role="default">Type de congés</label>
<type>text</type>
<readonly>false</readonly>
<param name="keys" value="Congés payés##RTT##Congés sans solde##Récupération##Autre"/>
</item>
<item name="natureAutre" computed="false">
<label lang="default" role="default">Autre type de congés</label>
<type>text</type>
<readonly>false</readonly>
</item>
<item name="duree" computed="false">
<label lang="default" role="default">Nombre de jours</label>
<type>text</type>
<readonly>false</readonly>
</item>
<item name="dateDebut" computed="false">
<label lang="default" role="default">Date de début</label>
<type>date</type>
<readonly>false</readonly>
</item>
<item name="dateFin" computed="false">
<label lang="default" role="default">Date de fin (inclus)</label>
<type>date</type>
<readonly>false</readonly>
</item>
<item name="debutJourneeOuDemi" computed="false">
<label lang="default" role="default">Début (Journée/Matinée/Après-midi)</label>
<type>text</type>
<readonly>false</readonly>
<param name="keys" value="Journée##Matinée##Après-midi"/>
<param name="cols" value="3"/>
</item>
<item name="finJourneeOuDemi" computed="false">
<label lang="default" role="default">Fin (Journée/Matinée/Après-midi)</label>
<type>text</type>
<readonly>false</readonly>
<param name="keys" value="Journée##Matinée##Après-midi"/>
<param name="cols" value="3"/>
</item>
<item name="motifRefus" computed="false">
<label lang="default" role="default">Motif du refus</label>
<type>text</type>
<readonly>false</readonly>
</item>
<item name="commentaires" computed="false">
<label lang="default" role="default">Commentaires</label>
<type>text</type>
<readonly>false</readonly>
</item>
<item name="com" computed="false">
<label lang="default" role="default">Commentaires</label>
<type>text</type>
<readonly>false</readonly>
</item>
</dataFolder>
<userInfos>
<item name="responsable" computed="false">
<label lang="default" role="default">Responsable</label>
<type>user</type>
<readonly>false</readonly>
<param name="usersOfInstanceOnly" value="true"/>
<param name="roles" value="Responsable"/>
</item>
</userInfos>
<forms>
<form name="presentationForm">
<title lang="default" role="default">Demande de congés</title>
<input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Creation.actor}">
<label lang="default" role="default">Demandeur</label>
</input>
<input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Creation.date}">
<label lang="default" role="default">Date de la demande</label>
</input>
<input item="nature" readonly="false" mandatory="false" displayerName="simpletext"/>
<input item="natureAutre" readonly="false" mandatory="false" displayerName="simpletext"/>
<input item="dateDebut" readonly="false" mandatory="false" displayerName="simpletext"/>
<input item="debutJourneeOuDemi" readonly="false" mandatory="false" displayerName="radio"/>
<input item="dateFin" readonly="false" mandatory="false" displayerName="simpletext"/>
<input item="finJourneeOuDemi" readonly="false" mandatory="false" displayerName="radio"/>
<input item="duree" readonly="false" mandatory="false" displayerName="simpletext"/>
<input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Accepter.date}">
<label lang="default" role="default">Congés acceptés le</label>
</input>
<input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Refuser.date}">
<label lang="default" role="default">Congés refusés le</label>
</input>
<input item="motifRefus" readonly="false" mandatory="false" displayerName="simpletext"/>
</form>
<form name="printForm"/>
<form name="creation">
<title lang="default" role="default">Demande de congés</title>
<input item="nature" readonly="false" mandatory="true" displayerName="listbox"/>
<input item="natureAutre" readonly="false" mandatory="false"/>
<input item="dateDebut" readonly="false" mandatory="true"/>
<input item="debutJourneeOuDemi" readonly="false" mandatory="true" displayerName="radio"/>
<input item="dateFin" readonly="false" mandatory="true"/>
<input item="finJourneeOuDemi" readonly="false" mandatory="true" displayerName="radio"/>
<input item="duree" readonly="false" mandatory="true"/>
<input item="com" readonly="false" mandatory="false" displayerName="wysiwyg"/>
</form>
<form name="acceptation">
<title lang="default" role="default">Acceptation de la demande</title>
<input item="commentaires" readonly="false" mandatory="false" displayerName="textarea"/>
</form>
<form name="refus">
<title lang="default" role="default">Refus de la demande</title>
<input item="motifRefus" readonly="false" mandatory="false" displayerName="textarea"/>
</form>
</forms>
</processModel>
(2-2/2)