Project

General

Profile

Bug #7985 » DemandeCongesSimple.xml

Nicolas Eysseric, 06/03/2016 05:21 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
                <relatedUser participant="Demandeur"
91
                    relation="responsable" role="Responsable"/>
92
            </allowedUsers>
93
            <consequences>
94
                <consequence>
95
                    <kill>false</kill>
96
                    <set state="Acceptee"/>
97
                    <notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été acceptée.">
98
                        <relatedUser participant="Demandeur" role="Employe"/>
99
                    </notify>
100
                    <triggers>
101
                        <trigger name="SendInAlmanach" className="org.silverpeas.almanach.workflowextensions.SendInAlmanach">
102
                            <param name="tp_almanachId" value=""/>
103
                            <param name="tp_eventName" value="Congés de ${action.Creation.actor}"/>
104
                            <param name="tp_eventDescription" value="Type de congés ${folder.nature}"/>
105
                            <param name="tp_startDate" value="${folder.dateDebut}"/>
106
                            <param name="tp_endDate" value="${folder.dateFin}"/>
107
                        </trigger>
108
                    </triggers>
109
                </consequence>
110
            </consequences>
111
        </action>
112
        <action name="Refuser" kind="update" form="refus">
113
            <label role="default" lang="default">Refuser</label>
114
            <allowedUsers>
115
                <relatedUser participant="Demandeur"
116
                    relation="responsable" role="Responsable"/>
117
            </allowedUsers>
118
            <consequences>
119
                <consequence>
120
                    <kill>false</kill>
121
                    <set state="Refusee"/>
122
                    <notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été refusée pour le motif suivant : ${folder.motifRefus}">
123
                        <relatedUser participant="Demandeur" role="Employe"/>
124
                    </notify>
125
                    <triggers/>
126
                </consequence>
127
            </consequences>
128
        </action>
129
    </actions>
130
    <userInfos>
131
        <item name="responsable" computed="false">
132
            <label role="default" lang="default">Responsable</label>
133
            <type>user</type>
134
            <readonly>false</readonly>
135
            <param name="usersOfInstanceOnly" value="true"/>
136
            <param name="roles" value="Responsable"/>
137
        </item>
138
    </userInfos>
139
    <dataFolder>
140
        <item name="nature" computed="false">
141
            <label role="default" lang="default">Type de congés</label>
142
            <type>text</type>
143
            <readonly>false</readonly>
144
            <param name="keys" value="Congés payés##RTT##Congés sans solde##Récupération##Autre"/>
145
        </item>
146
        <item name="natureAutre" computed="false">
147
            <label role="default" lang="default">Autre type de congés</label>
148
            <type>text</type>
149
            <readonly>false</readonly>
150
        </item>
151
        <item name="duree" computed="false">
152
            <label role="default" lang="default">Nombre de jours</label>
153
            <type>text</type>
154
            <readonly>false</readonly>
155
        </item>
156
        <item name="dateDebut" computed="false">
157
            <label role="default" lang="default">Date de début</label>
158
            <type>date</type>
159
            <readonly>false</readonly>
160
        </item>
161
        <item name="dateFin" computed="false">
162
            <label role="default" lang="default">Date de fin (inclus)</label>
163
            <type>date</type>
164
            <readonly>false</readonly>
165
        </item>
166
        <item name="debutJourneeOuDemi" computed="false">
167
            <label role="default" lang="default">Début (Journée/Matinée/Après-midi)</label>
168
            <type>text</type>
169
            <readonly>false</readonly>
170
            <param name="keys" value="Journée##Matinée##Après-midi"/>
171
            <param name="cols" value="3"/>
172
        </item>
173
        <item name="finJourneeOuDemi" computed="false">
174
            <label role="default" lang="default">Fin (Journée/Matinée/Après-midi)</label>
175
            <type>text</type>
176
            <readonly>false</readonly>
177
            <param name="keys" value="Journée##Matinée##Après-midi"/>
178
            <param name="cols" value="3"/>
179
        </item>
180
        <item name="motifRefus" computed="false">
181
            <label role="default" lang="default">Motif du refus</label>
182
            <type>text</type>
183
            <readonly>false</readonly>
184
        </item>
185
        <item name="commentaires" computed="false">
186
            <label role="default" lang="default">Commentaires</label>
187
            <type>text</type>
188
            <readonly>false</readonly>
189
        </item>
190
    </dataFolder>
191
    <forms>
192
        <form name="presentationForm">
193
            <title role="default" lang="default">Demande de congés</title>
194
            <input value="${action.Creation.actor}" readonly="false"
195
                mandatory="false" displayerName="simpletext">
196
                <label role="default" lang="default">Demandeur</label>
197
            </input>
198
            <input value="${action.Creation.date}" readonly="false"
199
                mandatory="false" displayerName="simpletext">
200
                <label role="default" lang="default">Date de la demande</label>
201
            </input>
202
            <input item="nature" readonly="false" mandatory="false" displayerName="simpletext"/>
203
            <input item="natureAutre" readonly="false" mandatory="false" displayerName="simpletext"/>
204
            <input item="dateDebut" readonly="false" mandatory="false" displayerName="simpletext"/>
205
            <input item="debutJourneeOuDemi" readonly="false"
206
                mandatory="false" displayerName="radio"/>
207
            <input item="dateFin" readonly="false" mandatory="false" displayerName="simpletext"/>
208
            <input item="finJourneeOuDemi" readonly="false"
209
                mandatory="false" displayerName="radio"/>
210
            <input item="duree" readonly="false" mandatory="false" displayerName="simpletext"/>
211
            <input value="${action.Accepter.date}" readonly="false"
212
                mandatory="false" displayerName="simpletext">
213
                <label role="default" lang="default">Congés acceptés le</label>
214
            </input>
215
            <input value="${action.Refuser.date}" readonly="false"
216
                mandatory="false" displayerName="simpletext">
217
                <label role="default" lang="default">Congés refusés le</label>
218
            </input>
219
            <input item="motifRefus" readonly="false" mandatory="false" displayerName="simpletext"/>
220
        </form>
221
        <form name="printForm" HTMLFileName="/weblib/processManager/DemandeConges/DemandeConges.html"/>
222
        <form name="creation">
223
            <title role="default" lang="default">Demande de congés</title>
224
            <input item="nature" readonly="false" mandatory="true" displayerName="listbox"/>
225
            <input item="natureAutre" readonly="false" mandatory="false"/>
226
            <input item="dateDebut" readonly="false" mandatory="true"/>
227
            <input item="debutJourneeOuDemi" readonly="false"
228
                mandatory="true" displayerName="radio"/>
229
            <input item="dateFin" readonly="false" mandatory="true"/>
230
            <input item="finJourneeOuDemi" readonly="false"
231
                mandatory="true" displayerName="radio"/>
232
            <input item="duree" readonly="false" mandatory="true"/>
233
        </form>
234
        <form name="acceptation">
235
            <title role="default" lang="default">Acceptation de la demande</title>
236
            <input item="commentaires" readonly="false"
237
                mandatory="false" displayerName="textarea"/>
238
        </form>
239
        <form name="refus">
240
            <title role="default" lang="default">Refus de la demande</title>
241
            <input item="motifRefus" readonly="false" mandatory="false" displayerName="textarea"/>
242
        </form>
243
    </forms>
244
</processModel>
    (1-1/1)