|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<processModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="C:/Silverpeas/KMEdition/Bus/workflowEngine/Others/modelManager/processModel.xsd" name="DemandeCongesSimple">
|
|
<label role="default" lang="default">Demande de congés simplifiée</label>
|
|
<roles>
|
|
<role name="Employe">
|
|
<label role="default" lang="default">Demandeur</label>
|
|
</role>
|
|
<role name="Responsable">
|
|
<label role="default" lang="default">Responsable</label>
|
|
</role>
|
|
<role name="supervisor">
|
|
<label role="default" lang="default">Superviseur</label>
|
|
</role>
|
|
</roles>
|
|
<presentation>
|
|
<title role="Employe" lang="default">Congés du ${folder.dateDebut} (${folder.debutJourneeOuDemi}) au ${folder.dateFin} (${folder.finJourneeOuDemi})</title>
|
|
<title role="Responsable" lang="default">Demande de ${action.Creation.actor}</title>
|
|
<title role="supervisor" lang="default">Demande de ${action.Creation.actor}</title>
|
|
<columns role="default">
|
|
<column item="nature"/>
|
|
<column item="duree"/>
|
|
</columns>
|
|
</presentation>
|
|
<participants>
|
|
<participant name="Demandeur">
|
|
<label role="default" lang="default">Demandeur</label>
|
|
</participant>
|
|
</participants>
|
|
<states>
|
|
<state name="AttenteValidation" timeoutNotifyAdmin="true">
|
|
<label role="default" lang="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>
|
|
</state>
|
|
<state name="Acceptee" timeoutNotifyAdmin="true">
|
|
<label role="default" lang="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" timeoutNotifyAdmin="true">
|
|
<label role="default" lang="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 role="default" lang="default">Création</label>
|
|
<description role="default" lang="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} 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 role="default" lang="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" className="org.silverpeas.almanach.workflowextensions.SendInAlmanach">
|
|
<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 role="default" lang="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>
|
|
</actions>
|
|
<userInfos>
|
|
<item name="responsable" computed="false">
|
|
<label role="default" lang="default">Responsable</label>
|
|
<type>user</type>
|
|
<readonly>false</readonly>
|
|
<param name="usersOfInstanceOnly" value="true"/>
|
|
<param name="roles" value="Responsable"/>
|
|
</item>
|
|
</userInfos>
|
|
<dataFolder>
|
|
<item name="nature" computed="false">
|
|
<label role="default" lang="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 role="default" lang="default">Autre type de congés</label>
|
|
<type>text</type>
|
|
<readonly>false</readonly>
|
|
</item>
|
|
<item name="duree" computed="false">
|
|
<label role="default" lang="default">Nombre de jours</label>
|
|
<type>text</type>
|
|
<readonly>false</readonly>
|
|
</item>
|
|
<item name="dateDebut" computed="false">
|
|
<label role="default" lang="default">Date de début</label>
|
|
<type>date</type>
|
|
<readonly>false</readonly>
|
|
</item>
|
|
<item name="dateFin" computed="false">
|
|
<label role="default" lang="default">Date de fin (inclus)</label>
|
|
<type>date</type>
|
|
<readonly>false</readonly>
|
|
</item>
|
|
<item name="debutJourneeOuDemi" computed="false">
|
|
<label role="default" lang="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 role="default" lang="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 role="default" lang="default">Motif du refus</label>
|
|
<type>text</type>
|
|
<readonly>false</readonly>
|
|
</item>
|
|
<item name="commentaires" computed="false">
|
|
<label role="default" lang="default">Commentaires</label>
|
|
<type>text</type>
|
|
<readonly>false</readonly>
|
|
</item>
|
|
<item name="aWysiwyg" computed="false">
|
|
<label role="default" lang="default">Un texte riche</label>
|
|
<type>text</type>
|
|
<readonly>false</readonly>
|
|
</item>
|
|
</dataFolder>
|
|
<forms>
|
|
<form name="presentationForm">
|
|
<title role="default" lang="default">Demande de congés</title>
|
|
<input value="${action.Creation.actor}" readonly="false"
|
|
mandatory="false" displayerName="simpletext">
|
|
<label role="default" lang="default">Demandeur</label>
|
|
</input>
|
|
<input value="${action.Creation.date}" readonly="false"
|
|
mandatory="false" displayerName="simpletext">
|
|
<label role="default" lang="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 value="${action.Accepter.date}" readonly="false"
|
|
mandatory="false" displayerName="simpletext">
|
|
<label role="default" lang="default">Congés acceptés le</label>
|
|
</input>
|
|
<input value="${action.Refuser.date}" readonly="false"
|
|
mandatory="false" displayerName="simpletext">
|
|
<label role="default" lang="default">Congés refusés le</label>
|
|
</input>
|
|
<input item="motifRefus" readonly="false" mandatory="false" displayerName="simpletext"/>
|
|
<input item="aWysiwyg" readonly="true" mandatory="false" displayerName="wysiwyg"/>
|
|
</form>
|
|
<form name="printForm" HTMLFileName="/weblib/processManager/DemandeConges/DemandeConges.html"/>
|
|
<form name="creation">
|
|
<title role="default" lang="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="aWysiwyg" readonly="false" mandatory="false" displayerName="wysiwyg"/>
|
|
</form>
|
|
<form name="acceptation">
|
|
<title role="default" lang="default">Acceptation de la demande</title>
|
|
<input item="commentaires" readonly="false"
|
|
mandatory="false" displayerName="textarea"/>
|
|
</form>
|
|
<form name="refus">
|
|
<title role="default" lang="default">Refus de la demande</title>
|
|
<input item="motifRefus" readonly="false" mandatory="false" displayerName="textarea"/>
|
|
</form>
|
|
</forms>
|
|
</processModel>
|