Project

General

Profile

Feature #8906 » DemandeCongesSimple.xml

David Lesimple, 04/06/2018 10:04 AM

 
1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
<processModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="DemandeCongesSimple" xsi:noNamespaceSchemaLocation="/home/dle/silverpeas6INPI/silverpeas/resources/modelManager/processModel.xsd">
3
    <label lang="default" role="default">Demande de congés simplifiée</label>
4
    <roles>
5
        <role name="Employe">
6
            <label lang="default" role="default">Demandeur</label>
7
        </role>
8
        <role name="Responsable">
9
            <label lang="default" role="default">Responsable</label>
10
        </role>
11
        <role name="supervisor">
12
            <label lang="default" role="default">Superviseur</label>
13
        </role>
14
    </roles>
15
    <presentation>
16
        <title lang="default" role="Employe">Congés du ${folder.dateDebut} (${folder.debutJourneeOuDemi}) au ${folder.dateFin} (${folder.finJourneeOuDemi})</title>
17
        <title lang="default" role="Responsable">Demande de ${action.Creation.actor}</title>
18
        <title lang="default" role="supervisor">Demande de ${action.Creation.actor}</title>
19
        <columns role="default">
20
            <column item="nature"/>
21
            <column item="duree"/>
22
        </columns>
23
    </presentation>
24
    <participants>
25
        <participant name="Demandeur" state="">
26
            <label lang="default" role="default">Demandeur</label>
27
        </participant>
28
    </participants>
29
    <states>
30
        <state name="AttenteValidation" timeoutInterval="-1" timeoutNotifyAdmin="true">
31
            <label lang="default" role="default">En attente d'acceptation par responsable</label>
32
            <workingUsers>
33
                <relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
34
            </workingUsers>
35
            <interestedUsers>
36
                <relatedUser participant="Demandeur" role="Employe"/>
37
            </interestedUsers>
38
            <allowedActions>
39
                <allow action="Accepter"/>
40
                <allow action="Refuser"/>
41
            </allowedActions>
42
            <timeOutActions>
43
                <timeOutAction action="Relancer" delay="3d" order="1"/>
44
            </timeOutActions>
45
        </state>
46
        <state name="Acceptee" timeoutInterval="-1" timeoutNotifyAdmin="true">
47
            <label lang="default" role="default">Acceptée</label>
48
            <workingUsers>
49
                <relatedUser participant="Demandeur" role="Employe"/>
50
            </workingUsers>
51
            <interestedUsers>
52
                <relatedUser participant="Demandeur" role="Employe"/>
53
                <relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
54
            </interestedUsers>
55
        </state>
56
        <state name="Refusee" timeoutInterval="-1" timeoutNotifyAdmin="true">
57
            <label lang="default" role="default">Refusée</label>
58
            <workingUsers>
59
                <relatedUser participant="Demandeur" role="Employe"/>
60
            </workingUsers>
61
            <interestedUsers>
62
                <relatedUser participant="Demandeur" role="Employe"/>
63
                <relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
64
            </interestedUsers>
65
        </state>
66
    </states>
67
    <actions>
68
        <action name="Creation" kind="create" form="creation">
69
            <label lang="default" role="default">Création</label>
70
            <description lang="default" role="default">Création d'une nouvelle demande.</description>
71
            <allowedUsers>
72
                <userInRole name="Employe"/>
73
            </allowedUsers>
74
            <consequences>
75
                <consequence>
76
                    <kill>false</kill>
77
                    <set state="AttenteValidation"/>
78
                    <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})">
79
                        <relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
80
                    </notify>
81
                    <triggers/>
82
                </consequence>
83
            </consequences>
84
        </action>
85
        <action name="Accepter" kind="update" form="acceptation">
86
            <label lang="default" role="default">Accepter</label>
87
            <allowedUsers>
88
                <userInRole name="Responsable"/>
89
            </allowedUsers>
90
            <consequences>
91
                <consequence>
92
                    <kill>false</kill>
93
                    <set state="Acceptee"/>
94
                    <notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été acceptée.">
95
                        <relatedUser participant="Demandeur" role="Employe"/>
96
                    </notify>
97
                    <triggers>
98
                        <trigger name="SendInAlmanach" handler="SendInAlmanachHandler">
99
                            <param name="tp_almanachId" value=""/>
100
                            <param name="tp_eventName" value="Congés de ${action.Creation.actor}"/>
101
                            <param name="tp_eventDescription" value="Type de congés ${folder.nature}"/>
102
                            <param name="tp_startDate" value="${folder.dateDebut}"/>
103
                            <param name="tp_endDate" value="${folder.dateFin}"/>
104
                        </trigger>
105
                    </triggers>
106
                </consequence>
107
            </consequences>
108
        </action>
109
        <action name="Refuser" kind="update" form="refus">
110
            <label lang="default" role="default">Refuser</label>
111
            <allowedUsers>
112
                <userInRole name="Responsable"/>
113
            </allowedUsers>
114
            <consequences>
115
                <consequence>
116
                    <kill>false</kill>
117
                    <set state="Refusee"/>
118
                    <notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été refusée pour le motif suivant : ${folder.motifRefus}">
119
                        <relatedUser participant="Demandeur" role="Employe"/>
120
                    </notify>
121
                    <triggers/>
122
                </consequence>
123
            </consequences>
124
        </action>
125
        <action name="Relancer" kind="update">
126
            <label lang="default" role="default">Relancer</label>
127
            <allowedUsers>
128
                <userInRole name="Responsable"/>
129
            </allowedUsers>
130
            <consequences>
131
                <consequence>
132
                    <kill>false</kill>
133
                    <set state="AttenteValidation"/>
134
                    <notify message="Relance - Merci de valider les congés de ${action.Creation.actor} du ${folder.dateDebut} (${folder.debutJourneeOuDemi}) au ${folder.dateFin} (${folder.finJourneeOuDemi})">
135
                        <relatedUser participant="Demandeur" relation="responsable" role="Responsable"/>
136
                    </notify>
137
                    <triggers/>
138
                </consequence>
139
            </consequences>
140
        </action>
141
    </actions>
142
    <dataFolder>
143
        <item name="nature" computed="false">
144
            <label lang="default" role="default">Type de congés</label>
145
            <type>text</type>
146
            <readonly>false</readonly>
147
            <param name="keys" value="Congés payés##RTT##Congés sans solde##Récupération##Autre"/>
148
        </item>
149
        <item name="natureAutre" computed="false">
150
            <label lang="default" role="default">Autre type de congés</label>
151
            <type>text</type>
152
            <readonly>false</readonly>
153
        </item>
154
        <item name="duree" computed="false">
155
            <label lang="default" role="default">Nombre de jours</label>
156
            <type>text</type>
157
            <readonly>false</readonly>
158
        </item>
159
        <item name="dateDebut" computed="false">
160
            <label lang="default" role="default">Date de début</label>
161
            <type>date</type>
162
            <readonly>false</readonly>
163
        </item>
164
        <item name="dateFin" computed="false">
165
            <label lang="default" role="default">Date de fin (inclus)</label>
166
            <type>date</type>
167
            <readonly>false</readonly>
168
        </item>
169
        <item name="debutJourneeOuDemi" computed="false">
170
            <label lang="default" role="default">Début (Journée/Matinée/Après-midi)</label>
171
            <type>text</type>
172
            <readonly>false</readonly>
173
            <param name="keys" value="Journée##Matinée##Après-midi"/>
174
            <param name="cols" value="3"/>
175
        </item>
176
        <item name="finJourneeOuDemi" computed="false">
177
            <label lang="default" role="default">Fin (Journée/Matinée/Après-midi)</label>
178
            <type>text</type>
179
            <readonly>false</readonly>
180
            <param name="keys" value="Journée##Matinée##Après-midi"/>
181
            <param name="cols" value="3"/>
182
        </item>
183
        <item name="motifRefus" computed="false">
184
            <label lang="default" role="default">Motif du refus</label>
185
            <type>text</type>
186
            <readonly>false</readonly>
187
        </item>
188
        <item name="commentaires" computed="false">
189
            <label lang="default" role="default">Commentaires</label>
190
            <type>text</type>
191
            <readonly>false</readonly>
192
        </item>
193
        <item name="com" computed="false">
194
            <label lang="default" role="default">Commentaires</label>
195
            <type>text</type>
196
            <readonly>false</readonly>
197
        </item>
198
    </dataFolder>
199
    <userInfos>
200
        <item name="responsable" computed="false">
201
            <label lang="default" role="default">Responsable</label>
202
            <type>user</type>
203
            <readonly>false</readonly>
204
            <param name="usersOfInstanceOnly" value="true"/>
205
            <param name="roles" value="Responsable"/>
206
        </item>
207
    </userInfos>
208
    <forms>
209
        <form name="presentationForm">
210
            <title lang="default" role="default">Demande de congés</title>
211
            <input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Creation.actor}">
212
                <label lang="default" role="default">Demandeur</label>
213
            </input>
214
            <input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Creation.date}">
215
                <label lang="default" role="default">Date de la demande</label>
216
            </input>
217
            <input item="nature" readonly="false" mandatory="false" displayerName="simpletext"/>
218
            <input item="natureAutre" readonly="false" mandatory="false" displayerName="simpletext"/>
219
            <input item="dateDebut" readonly="false" mandatory="false" displayerName="simpletext"/>
220
            <input item="debutJourneeOuDemi" readonly="false" mandatory="false" displayerName="radio"/>
221
            <input item="dateFin" readonly="false" mandatory="false" displayerName="simpletext"/>
222
            <input item="finJourneeOuDemi" readonly="false" mandatory="false" displayerName="radio"/>
223
            <input item="duree" readonly="false" mandatory="false" displayerName="simpletext"/>
224
            <input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Accepter.date}">
225
                <label lang="default" role="default">Congés acceptés le</label>
226
            </input>
227
            <input readonly="false" mandatory="false" displayerName="simpletext" value="${action.Refuser.date}">
228
                <label lang="default" role="default">Congés refusés le</label>
229
            </input>
230
            <input item="motifRefus" readonly="false" mandatory="false" displayerName="simpletext"/>
231
        </form>
232
        <form name="printForm"/>
233
        <form name="creation">
234
            <title lang="default" role="default">Demande de congés</title>
235
            <input item="nature" readonly="false" mandatory="true" displayerName="listbox"/>
236
            <input item="natureAutre" readonly="false" mandatory="false"/>
237
            <input item="dateDebut" readonly="false" mandatory="true"/>
238
            <input item="debutJourneeOuDemi" readonly="false" mandatory="true" displayerName="radio"/>
239
            <input item="dateFin" readonly="false" mandatory="true"/>
240
            <input item="finJourneeOuDemi" readonly="false" mandatory="true" displayerName="radio"/>
241
            <input item="duree" readonly="false" mandatory="true"/>
242
            <input item="com" readonly="false" mandatory="false" displayerName="wysiwyg"/>
243
        </form>
244
        <form name="acceptation">
245
            <title lang="default" role="default">Acceptation de la demande</title>
246
            <input item="commentaires" readonly="false" mandatory="false" displayerName="textarea"/>
247
        </form>
248
        <form name="refus">
249
            <title lang="default" role="default">Refus de la demande</title>
250
            <input item="motifRefus" readonly="false" mandatory="false" displayerName="textarea"/>
251
        </form>
252
    </forms>
253
</processModel>
(2-2/2)