Project

General

Profile

Bug #7960 » DemandeCongesSimple.xml

Nicolas Eysseric, 06/01/2016 04:12 PM

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