-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject_spec2.xml
206 lines (157 loc) · 6.96 KB
/
project_spec2.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?xml version="1.0" encoding="UTF-8"?>
<process-definition name="Bitirme2" revision="1.0">
<description>Graduation Project</description>
<start-task>
<description>Start Graduation Project Workflow</description>
<successor>send_rf</successor>
</start-task>
<task name="send_rf">
<description>Send Request Form</description>
<data name="pdf_form" value="bitirme_istek_formu2.pdf" />
<successor>rf_approve_multi_instance</successor>
<successor>rf_reject_multi_instance</successor>
</task>
<multi-instance name="rf_approve_multi_instance" times="3">
<description>Request form waiting for approval</description>
<successor>approve_rf</successor>
</multi-instance>
<multi-instance name="rf_reject_multi_instance" times="3">
<description>Request form waiting for approval</description>
<successor>reject_rf</successor>
</multi-instance>
<task name="approve_rf">
<description>Request form waiting for approval</description>
<successor>rf_approve_join</successor>
</task>
<task name="reject_rf">
<description>Request form waiting for approval</description>
<successor>rf_reject_join</successor>
</task>
<join name="rf_approve_join" context="rf_approve_multi_instance" threshold="2" cancel="True">
<description>Request form was approved</description>
<successor>send_pp</successor>
</join>
<join name="rf_reject_join" context="rf_reject_multi_instance" threshold="2" cancel="True">
<description>Request form was rejected</description>
<successor>rf_reject_xor</successor>
</join>
<exclusive-choice name="rf_reject_xor">
<pre-assign name="rf_rejected" value="False" />
<default-successor>end</default-successor>
<conditional-successor>
<equals left-field="rf_rejected" right-value="True" />
<successor>send_rf</successor>
</conditional-successor>
</exclusive-choice>
<task name="send_pp">
<description>Send Project Plan</description>
<successor>pp_approve_multi_instance</successor>
<successor>pp_reject_multi_instance</successor>
</task>
<multi-instance name="pp_approve_multi_instance" times="3">
<description>Project plan waiting for approval</description>
<successor>approve_pp</successor>
</multi-instance>
<multi-instance name="pp_reject_multi_instance" times="3">
<description>Project plan waiting for approval</description>
<successor>reject_pp</successor>
</multi-instance>
<task name="approve_pp">
<description>Project plan waiting for approval</description>
<successor>pp_approve_join</successor>
</task>
<task name="reject_pp">
<description>Project plan waiting for approval</description>
<successor>pp_reject_join</successor>
</task>
<join name="pp_approve_join" context="pp_approve_multi_instance" threshold="2" cancel="True">
<description>Project plan was approved</description>
<successor>send_mr</successor>
</join>
<join name="pp_reject_join" context="pp_reject_multi_instance" threshold="2" cancel="True">
<description>Project plan was rejected</description>
<successor>pp_reject_xor</successor>
</join>
<exclusive-choice name="pp_reject_xor">
<pre-assign name="pp_rejected" value="False" />
<default-successor>end</default-successor>
<conditional-successor>
<equals left-field="pp_rejected" right-value="True" />
<successor>send_pp</successor>
</conditional-successor>
</exclusive-choice>
<task name="send_mr">
<description>Send Mid Report</description>
<successor>mr_approve_multi_instance</successor>
<successor>mr_reject_multi_instance</successor>
</task>
<multi-instance name="mr_approve_multi_instance" times="3">
<description>Mid report waiting for approval</description>
<successor>approve_mr</successor>
</multi-instance>
<multi-instance name="mr_reject_multi_instance" times="3">
<description>Mid report waiting for approval</description>
<successor>reject_mr</successor>
</multi-instance>
<task name="approve_mr">
<description>Mid report waiting for approval</description>
<successor>mr_approve_join</successor>
</task>
<task name="reject_mr">
<description>Mid report waiting for approval</description>
<successor>mr_reject_join</successor>
</task>
<join name="mr_approve_join" context="mr_approve_multi_instance" threshold="2" cancel="True">
<description>Mid report was approved</description>
<successor>send_lr</successor>
</join>
<join name="mr_reject_join" context="mr_reject_multi_instance" threshold="2" cancel="True">
<description>Mid report was rejected</description>
<successor>mr_reject_xor</successor>
</join>
<exclusive-choice name="mr_reject_xor">
<pre-assign name="mr_rejected" value="False" />
<default-successor>end</default-successor>
<conditional-successor>
<equals left-field="mr_rejected" right-value="True" />
<successor>send_mr</successor>
</conditional-successor>
</exclusive-choice>
<task name="send_lr">
<description>Send Final Report</description>
<successor>lr_approve_multi_instance</successor>
<successor>lr_reject_multi_instance</successor>
</task>
<multi-instance name="lr_approve_multi_instance" times="3">
<description>Final report waiting for approval</description>
<successor>approve_lr</successor>
</multi-instance>
<multi-instance name="lr_reject_multi_instance" times="3">
<description>Final report waiting for approval</description>
<successor>reject_lr</successor>
</multi-instance>
<task name="approve_lr">
<description>Final report waiting for approval</description>
<successor>lr_approve_join</successor>
</task>
<task name="reject_lr">
<description>Final report waiting for approval</description>
<successor>lr_reject_join</successor>
</task>
<join name="lr_approve_join" context="lr_approve_multi_instance" threshold="2" cancel="True">
<description>Final report was approved</description>
<successor>end</successor>
</join>
<join name="lr_reject_join" context="lr_reject_multi_instance" threshold="2" cancel="True">
<description>Final report was rejected</description>
<successor>lr_reject_xor</successor>
</join>
<exclusive-choice name="lr_reject_xor">
<pre-assign name="lr_rejected" value="False" />
<default-successor>end</default-successor>
<conditional-successor>
<equals left-field="lr_rejected" right-value="True" />
<successor>send_lr</successor>
</conditional-successor>
</exclusive-choice>
</process-definition>