Project

General

Profile

Bug #7174 » DemandeCongesSimpleBug7174.xml

A placer dans data/workflowRepository/DemandeCongesSimpleBug7174 - Nicolas Eysseric, 06/03/2016 01:48 AM

 
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="DemandeCongesSimpleBug7174">
4
    <label role="default" lang="default">Demande de congés simplifiée (Bug 7174)</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 folderItem="manager" role="Responsable"/>
35
            </workingUsers>
36
            <interestedUsers>
37
                <relatedUser participant="Demandeur" role="Employe"/>
38
            </interestedUsers>
39
            <allowedActions>
40
                <allow action="Accepter"/>
41
                <allow action="Refuser"/>
42
            </allowedActions>
43
        </state>
44
        <state name="Acceptee" timeoutNotifyAdmin="true">
45
            <label role="default" lang="default">Acceptée</label>
46
            <workingUsers>
47
                <relatedUser participant="Demandeur" role="Employe"/>
48
            </workingUsers>
49
            <interestedUsers>
50
                <relatedUser participant="Demandeur" role="Employe"/>
51
                <relatedUser folderItem="manager" role="Responsable"/>
52
            </interestedUsers>
53
        </state>
54
        <state name="Refusee" timeoutNotifyAdmin="true">
55
            <label role="default" lang="default">Refusée</label>
56
            <workingUsers>
57
                <relatedUser participant="Demandeur" role="Employe"/>
58
            </workingUsers>
59
            <interestedUsers>
60
                <relatedUser participant="Demandeur" role="Employe"/>
61
                <relatedUser folderItem="manager" role="Responsable"/>
62
            </interestedUsers>
63
        </state>
64
    </states>
65
    <actions>
66
        <action name="Creation" kind="create" form="creation">
67
            <label role="default" lang="default">Création</label>
68
            <description role="default" lang="default">Création d'une nouvelle demande.</description>
69
            <allowedUsers>
70
                <userInRole name="Employe"/>
71
            </allowedUsers>
72
            <consequences>
73
                <consequence>
74
                    <kill>false</kill>
75
                    <set state="AttenteValidation"/>
76
                    <notify message="Merci de valider les congés de ${action.Creation.actor} du ${folder.dateDebut} (${folder.debutJourneeOuDemi}) au ${folder.dateFin} (${folder.finJourneeOuDemi})">
77
                        <relatedUser folderItem="manager" role="Responsable"/>
78
                    </notify>
79
                    <triggers/>
80
                </consequence>
81
            </consequences>
82
        </action>
83
        <action name="Accepter" kind="update" form="acceptation">
84
            <label role="default" lang="default">Accepter</label>
85
            <allowedUsers>
86
                <relatedUser folderItem="manager" role="Responsable"/>
87
            </allowedUsers>
88
            <consequences>
89
                <consequence>
90
                    <kill>false</kill>
91
                    <set state="Acceptee"/>
92
                    <notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été acceptée.">
93
                        <relatedUser participant="Demandeur" role="Employe"/>
94
                    </notify>
95
                    <triggers>
96
                        <trigger name="SendInAlmanach" className="org.silverpeas.almanach.workflowextensions.SendInAlmanach">
97
                            <param name="tp_almanachId" value=""/>
98
                            <param name="tp_eventName" value="Congés de ${action.Creation.actor}"/>
99
                            <param name="tp_eventDescription" value="Type de congés ${folder.nature}"/>
100
                            <param name="tp_startDate" value="${folder.dateDebut}"/>
101
                            <param name="tp_endDate" value="${folder.dateFin}"/>
102
                        </trigger>
103
                    </triggers>
104
                </consequence>
105
            </consequences>
106
        </action>
107
        <action name="Refuser" kind="update" form="refus">
108
            <label role="default" lang="default">Refuser</label>
109
            <allowedUsers>
110
                <relatedUser folderItem="manager" role="Responsable"/>
111
            </allowedUsers>
112
            <consequences>
113
                <consequence>
114
                    <kill>false</kill>
115
                    <set state="Refusee"/>
116
                    <notify message="Votre demande de congés du ${folder.dateDebut} au ${folder.dateFin} a été refusée pour le motif suivant : ${folder.motifRefus}">
117
                        <relatedUser participant="Demandeur" role="Employe"/>
118
                    </notify>
119
                    <triggers/>
120
                </consequence>
121
            </consequences>
122
        </action>
123
    </actions>
124
    <dataFolder>
125
        <item name="nature" computed="false">
126
            <label role="default" lang="default">Type de congés</label>
127
            <type>text</type>
128
            <readonly>false</readonly>
129
            <param name="keys" value="Congés payés##RTT##Congés sans solde##Récupération##Autre"/>
130
        </item>
131
        <item name="natureAutre" computed="false">
132
            <label role="default" lang="default">Autre type de congés</label>
133
            <type>text</type>
134
            <readonly>false</readonly>
135
        </item>
136
        <item name="duree" computed="false">
137
            <label role="default" lang="default">Nombre de jours</label>
138
            <type>text</type>
139
            <readonly>false</readonly>
140
        </item>
141
        <item name="dateDebut" computed="false">
142
            <label role="default" lang="default">Date de début</label>
143
            <type>date</type>
144
            <readonly>false</readonly>
145
        </item>
146
        <item name="dateFin" computed="false">
147
            <label role="default" lang="default">Date de fin (inclus)</label>
148
            <type>date</type>
149
            <readonly>false</readonly>
150
        </item>
151
        <item name="debutJourneeOuDemi" computed="false">
152
            <label role="default" lang="default">Début (Journée/Matinée/Après-midi)</label>
153
            <type>text</type>
154
            <readonly>false</readonly>
155
            <param name="keys" value="Journée##Matinée##Après-midi"/>
156
            <param name="cols" value="3"/>
157
        </item>
158
        <item name="finJourneeOuDemi" computed="false">
159
            <label role="default" lang="default">Fin (Journée/Matinée/Après-midi)</label>
160
            <type>text</type>
161
            <readonly>false</readonly>
162
            <param name="keys" value="Journée##Matinée##Après-midi"/>
163
            <param name="cols" value="3"/>
164
        </item>
165
        <item name="motifRefus" computed="false">
166
            <label role="default" lang="default">Motif du refus</label>
167
            <type>text</type>
168
            <readonly>false</readonly>
169
        </item>
170
        <item name="commentaires" computed="false">
171
            <label role="default" lang="default">Commentaires</label>
172
            <type>text</type>
173
            <readonly>false</readonly>
174
        </item>
175
        <item name="manager" computed="false">
176
            <label role="default" lang="default">Responsable</label>
177
            <type>user</type>
178
            <readonly>false</readonly>
179
            <param name="roles" value="Responsable"/>
180
        </item>
181
    </dataFolder>
182
    <forms>
183
        <form name="presentationForm">
184
            <title role="default" lang="default">Demande de congés</title>
185
            <input value="${action.Creation.actor}" readonly="false"
186
                mandatory="false" displayerName="simpletext">
187
                <label role="default" lang="default">Demandeur</label>
188
            </input>
189
            <input value="${action.Creation.date}" readonly="false"
190
                mandatory="false" displayerName="simpletext">
191
                <label role="default" lang="default">Date de la demande</label>
192
            </input>
193
            <input item="nature" readonly="false" mandatory="false" displayerName="simpletext"/>
194
            <input item="natureAutre" readonly="false" mandatory="false" displayerName="simpletext"/>
195
            <input item="dateDebut" readonly="false" mandatory="false" displayerName="simpletext"/>
196
            <input item="debutJourneeOuDemi" readonly="false"
197
                mandatory="false" displayerName="radio"/>
198
            <input item="dateFin" readonly="false" mandatory="false" displayerName="simpletext"/>
199
            <input item="finJourneeOuDemi" readonly="false"
200
                mandatory="false" displayerName="radio"/>
201
            <input item="duree" readonly="false" mandatory="false" displayerName="simpletext"/>
202
            <input value="${action.Accepter.date}" readonly="false"
203
                mandatory="false" displayerName="simpletext">
204
                <label role="default" lang="default">Congés acceptés le</label>
205
            </input>
206
            <input value="${action.Refuser.date}" readonly="false"
207
                mandatory="false" displayerName="simpletext">
208
                <label role="default" lang="default">Congés refusés le</label>
209
            </input>
210
            <input item="motifRefus" readonly="false" mandatory="false" displayerName="simpletext"/>
211
            <input item="manager" readonly="false" mandatory="false" displayerName="simpletext"/>
212
        </form>
213
        <form name="printForm" HTMLFileName="/weblib/processManager/DemandeConges/DemandeConges.html"/>
214
        <form name="creation">
215
            <title role="default" lang="default">Demande de congés</title>
216
            <input item="nature" readonly="false" mandatory="true" displayerName="listbox"/>
217
            <input item="natureAutre" readonly="false" mandatory="false"/>
218
            <input item="dateDebut" readonly="false" mandatory="true"/>
219
            <input item="debutJourneeOuDemi" readonly="false"
220
                mandatory="true" displayerName="radio"/>
221
            <input item="dateFin" readonly="false" mandatory="true"/>
222
            <input item="finJourneeOuDemi" readonly="false"
223
                mandatory="true" displayerName="radio"/>
224
            <input item="duree" readonly="false" mandatory="true"/>
225
            <input item="manager" readonly="false" mandatory="true" displayerName="user"/>
226
        </form>
227
        <form name="acceptation">
228
            <title role="default" lang="default">Acceptation de la demande</title>
229
            <input item="commentaires" readonly="false"
230
                mandatory="false" displayerName="textarea"/>
231
        </form>
232
        <form name="refus">
233
            <title role="default" lang="default">Refus de la demande</title>
234
            <input item="motifRefus" readonly="false" mandatory="false" displayerName="textarea"/>
235
        </form>
236
    </forms>
237
</processModel>
(1-1/2)