cpee 1.3.132 → 1.3.133

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.132"
3
+ s.version = "1.3.133"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
@@ -0,0 +1,27 @@
1
+ <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
2
+ <topic id="running">
3
+ <event>activity_calling</event>
4
+ <event>activity_manipulating</event>
5
+ <event>activity_failed</event>
6
+ <event>activity_done</event>
7
+ </topic>
8
+ <topic id="properties/position">
9
+ <event>change</event>
10
+ </topic>
11
+ <topic id="properties/description">
12
+ <event>change</event>
13
+ <event>error</event>
14
+ </topic>
15
+ <topic id="properties/state">
16
+ <event>change</event>
17
+ </topic>
18
+ <topic id="properties/dataelements">
19
+ <event>change</event>
20
+ </topic>
21
+ <topic id="properties/endpoints">
22
+ <event>change</event>
23
+ </topic>
24
+ <topic id="properties/handlers">
25
+ <event>change</event>
26
+ </topic>
27
+ </subscription>
@@ -1,90 +1,65 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <info>Enter info here</info>
3
- <state>ready</state>
2
+ <info>asd</info>
3
+ <state>stopped</state>
4
4
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
- <positions/>
5
+ <positions>
6
+ <a1>after</a1>
7
+ </positions>
6
8
  <dataelements>
7
- <persons>3</persons>
8
- <card>Visa_12345</card>
9
- <airline>null</airline>
10
- <hotels>[]</hotels>
11
- <from>Vienna</from>
12
- <to>Prague</to>
13
- <costs>0</costs>
9
+ <x/>
14
10
  </dataelements>
15
11
  <endpoints>
16
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
17
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
18
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
12
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
19
13
  </endpoints>
20
- <dsl>call :a1, :bookAir, { :method =&gt; "post", :parameters =&gt; { :from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons } }, &lt;&lt;-end
21
- data.airline = result.value('id')
22
- data.costs += result.value('costs').to_f
23
- status.update 1, 'Hotel'
24
- end
25
- parallel do
26
- loop pre_test{data.persons &gt; 0} do
27
- parallel_branch data.persons do |p|
28
- call :a2, :bookHotel, { :method =&gt; "post", :parameters =&gt; { :to =&gt; data.to } }, &lt;&lt;-end
29
- data.hotels &lt;&lt; result.value('id')
30
- data.costs += result.value('costs').to_f
31
- end
32
- end
33
- manipulate :a3, &lt;&lt;-end
34
- data.persons -= 1
35
- end
14
+ <dsl>parallel do
15
+ parallel_branch do
16
+ call :a4, :timeout, { :label =&gt; nil, :method =&gt; "post", :parameters =&gt; { :timeout =&gt; a } }
36
17
  end
37
- end
38
- choose do
39
- alternative data.costs &gt; 700 do
40
- call :a4, :approve, { :method =&gt; "post", :parameters =&gt; { :costs =&gt; data.costs } }
18
+ parallel_branch do
19
+ call :a5, :timeout, { :label =&gt; nil, :method =&gt; "post", :parameters =&gt; { :timeout =&gt; a } }
41
20
  end
42
21
  end
22
+ call :a2, :timeout, { :label =&gt; nil, :method =&gt; "post", :parameters =&gt; { :timeout =&gt; b } }, &lt;&lt;-end
23
+ data.x += "a2,"
24
+ end
43
25
  </dsl>
44
26
  <dslx>
45
27
  <description xmlns="http://cpee.org/ns/description/1.0">
46
- <call id="a1" endpoint="bookAir">
47
- <parameters>
48
- <method>post</method>
49
- <parameters>
50
- <from>data.from</from>
51
- <to>data.to</to>
52
- <persons>data.persons</persons>
53
- </parameters>
54
- </parameters>
55
- <manipulate output="result"> data.airline = result.value('id')
56
- data.costs += result.value('costs').to_f
57
- status.update 1, 'Hotel'</manipulate>
58
- </call>
59
- <parallel>
60
- <loop pre_test="data.persons &gt; 0">
61
- <parallel_branch pass="data.persons" local="p">
62
- <call id="a2" endpoint="bookHotel">
28
+ <!--{{{-->
29
+ <parallel svg-label="">
30
+ <parallel_branch svg-label="">
31
+ <call id="a4" endpoint="timeout" svg-label="">
32
+ <parameters>
33
+ <label/>
34
+ <method>post</method>
63
35
  <parameters>
64
- <method>post</method>
65
- <parameters>
66
- <to>data.to</to>
67
- </parameters>
36
+ <timeout>a</timeout>
68
37
  </parameters>
69
- <manipulate output="result"> data.hotels &lt;&lt; result.value('id')
70
- data.costs += result.value('costs').to_f</manipulate>
71
- </call>
72
- </parallel_branch>
73
- <manipulate id="a3"> data.persons -= 1</manipulate>
74
- </loop>
75
- </parallel>
76
- <choose>
77
- <alternative condition="data.costs &gt; 700">
78
- <call id="a4" endpoint="approve">
38
+ </parameters>
39
+ </call>
40
+ </parallel_branch>
41
+ <parallel_branch svg-label="">
42
+ <call id="a5" endpoint="timeout" svg-label="">
79
43
  <parameters>
44
+ <label/>
80
45
  <method>post</method>
81
46
  <parameters>
82
- <costs>data.costs</costs>
47
+ <timeout>a</timeout>
83
48
  </parameters>
84
49
  </parameters>
85
50
  </call>
86
- </alternative>
87
- </choose>
51
+ </parallel_branch>
52
+ </parallel>
53
+ <call id="a2" endpoint="timeout">
54
+ <parameters>
55
+ <label/>
56
+ <method>post</method>
57
+ <parameters>
58
+ <timeout>b</timeout>
59
+ </parameters>
60
+ </parameters>
61
+ <manipulate>data.x += "a2,"</manipulate>
62
+ </call>
88
63
  </description>
89
64
  </dslx>
90
65
  <status>
@@ -93,48 +68,41 @@ end
93
68
  </status>
94
69
  <description>
95
70
  <description xmlns="http://cpee.org/ns/description/1.0">
96
- <call id="a1" endpoint="bookAir">
97
- <parameters>
98
- <method>post</method>
99
- <parameters>
100
- <from>data.from</from>
101
- <to>data.to</to>
102
- <persons>data.persons</persons>
103
- </parameters>
104
- </parameters>
105
- <manipulate output="result"> data.airline = result.value('id')
106
- data.costs += result.value('costs').to_f
107
- status.update 1, 'Hotel'</manipulate>
108
- </call>
109
- <parallel>
110
- <loop pre_test="data.persons &gt; 0">
111
- <parallel_branch pass="data.persons" local="p">
112
- <call id="a2" endpoint="bookHotel">
71
+ <!--{{{-->
72
+ <parallel svg-label="">
73
+ <parallel_branch svg-label="">
74
+ <call id="a4" endpoint="timeout" svg-label="">
75
+ <parameters>
76
+ <label/>
77
+ <method>post</method>
113
78
  <parameters>
114
- <method>post</method>
115
- <parameters>
116
- <to>data.to</to>
117
- </parameters>
79
+ <timeout>a</timeout>
118
80
  </parameters>
119
- <manipulate output="result"> data.hotels &lt;&lt; result.value('id')
120
- data.costs += result.value('costs').to_f</manipulate>
121
- </call>
122
- </parallel_branch>
123
- <manipulate id="a3"> data.persons -= 1</manipulate>
124
- </loop>
125
- </parallel>
126
- <choose>
127
- <alternative condition="data.costs &gt; 700">
128
- <call id="a4" endpoint="approve">
81
+ </parameters>
82
+ </call>
83
+ </parallel_branch>
84
+ <parallel_branch svg-label="">
85
+ <call id="a5" endpoint="timeout" svg-label="">
129
86
  <parameters>
87
+ <label/>
130
88
  <method>post</method>
131
89
  <parameters>
132
- <costs>data.costs</costs>
90
+ <timeout>a</timeout>
133
91
  </parameters>
134
92
  </parameters>
135
93
  </call>
136
- </alternative>
137
- </choose>
94
+ </parallel_branch>
95
+ </parallel>
96
+ <call id="a2" endpoint="timeout">
97
+ <parameters>
98
+ <label/>
99
+ <method>post</method>
100
+ <parameters>
101
+ <timeout>b</timeout>
102
+ </parameters>
103
+ </parameters>
104
+ <manipulate>data.x += "a2,"</manipulate>
105
+ </call>
138
106
  </description>
139
107
  </description>
140
108
  <transformation>
@@ -1,51 +1,127 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <info>Enter info here</info>
3
- <state>finished</state>
2
+ <info>asdads</info>
3
+ <state>ready</state>
4
4
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
5
  <positions/>
6
- <dataelements>
7
- <json>{"lv":"Workflow Technologies","id":{"lvnr":"050311","gruppe":1}}</json>
8
- <json_lv>Workflow Technologies</json_lv>
9
- <json_lvnr/>
10
- <xml_lv>Workflow Technologies</xml_lv>
11
- <xml_lvnr>050311</xml_lvnr>
12
- </dataelements>
6
+ <dataelements/>
13
7
  <endpoints>
14
8
  <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
15
- <json>http://cpee.org/services/json.php</json>
16
- <xml>http://cpee.org/services/xml.php</xml>
17
9
  </endpoints>
18
- <dsl>call :a1, :json, { :label =&gt; "Get JSON", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
19
- data.json = result
20
- data.json_lv = result['lv']
21
- data.json_lvnr = result['lv']['lvnr']
10
+ <dsl>call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
11
+ data.a += 1
22
12
  end
23
- call :a2, :xml, { :label =&gt; "Get XML", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
24
- data.xml_lv = result.find('string(/data/lv)')
25
- data.xml_lvnr = result.find('string(/data/lv/@id)')
13
+ call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
14
+ loop pre_test{true} do
15
+ choose :exclusive do
16
+ alternative "data.a &gt;= 3 &amp;&amp; data.a &lt; 6" do
17
+ call :a62, :timeout, { :label =&gt; "D", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-0937F905-A975-4DB2-A8C9-CD523611AEF5", :parameters =&gt; { :timeout =&gt; 1 } }
18
+ call :a58, :timeout, { :label =&gt; "A", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters =&gt; { :timeout =&gt; 1 } }, &lt;&lt;-end
19
+ data.a += 1
20
+ end
21
+ call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
22
+ end
23
+ alternative "data.a &lt; 3" do
24
+ call :a60, :timeout, { :label =&gt; "C", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-7E70A0D7-660E-4C1B-B377-64387F99BD87", :parameters =&gt; { :timeout =&gt; 1 } }
25
+ call :a61, :timeout, { :label =&gt; "B", :method =&gt; nil, :type =&gt; "serviceTask", :mid =&gt; "sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E", :parameters =&gt; { :timeout =&gt; 1 } }
26
+ end
27
+ otherwise do
28
+ break
29
+ end
30
+ end
26
31
  end
27
32
  </dsl>
28
33
  <dslx>
29
34
  <description xmlns="http://cpee.org/ns/description/1.0">
30
- <call id="a1" endpoint="json" svg-label="Get JSON">
35
+ <call id="a58" endpoint="timeout">
31
36
  <parameters>
32
- <label>Get JSON</label>
33
- <method>get</method>
34
- <parameters/>
37
+ <label>A</label>
38
+ <method/>
39
+ <type>serviceTask</type>
40
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
41
+ <parameters>
42
+ <timeout>1</timeout>
43
+ </parameters>
35
44
  </parameters>
36
- <manipulate>data.json = result
37
- data.json_lv = result['lv']
38
- data.json_lvnr = result['lv']['lvnr']</manipulate>
45
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
39
46
  </call>
40
- <call id="a2" endpoint="xml">
47
+ <call id="a61" endpoint="timeout">
41
48
  <parameters>
42
- <label>Get XML</label>
43
- <method>get</method>
44
- <parameters/>
49
+ <label>B</label>
50
+ <method/>
51
+ <type>serviceTask</type>
52
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
53
+ <parameters>
54
+ <timeout>1</timeout>
55
+ </parameters>
45
56
  </parameters>
46
- <manipulate>data.xml_lv = result.find('string(/data/lv)')
47
- data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
48
57
  </call>
58
+ <loop pre_test="true">
59
+ <choose mode="exclusive">
60
+ <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript">
61
+ <call id="a62" endpoint="timeout">
62
+ <parameters>
63
+ <label>D</label>
64
+ <method/>
65
+ <type>serviceTask</type>
66
+ <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
67
+ <parameters>
68
+ <timeout>1</timeout>
69
+ </parameters>
70
+ </parameters>
71
+ </call>
72
+ <call id="a58" endpoint="timeout">
73
+ <parameters>
74
+ <label>A</label>
75
+ <method/>
76
+ <type>serviceTask</type>
77
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
78
+ <parameters>
79
+ <timeout>1</timeout>
80
+ </parameters>
81
+ </parameters>
82
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
83
+ </call>
84
+ <call id="a61" endpoint="timeout">
85
+ <parameters>
86
+ <label>B</label>
87
+ <method/>
88
+ <type>serviceTask</type>
89
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
90
+ <parameters>
91
+ <timeout>1</timeout>
92
+ </parameters>
93
+ </parameters>
94
+ </call>
95
+ </alternative>
96
+ <alternative condition="data.a &lt; 3" language="text/javascript">
97
+ <call id="a60" endpoint="timeout">
98
+ <parameters>
99
+ <label>C</label>
100
+ <method/>
101
+ <type>serviceTask</type>
102
+ <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
103
+ <parameters>
104
+ <timeout>1</timeout>
105
+ </parameters>
106
+ </parameters>
107
+ </call>
108
+ <call id="a61" endpoint="timeout">
109
+ <parameters>
110
+ <label>B</label>
111
+ <method/>
112
+ <type>serviceTask</type>
113
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
114
+ <parameters>
115
+ <timeout>1</timeout>
116
+ </parameters>
117
+ </parameters>
118
+ </call>
119
+ </alternative>
120
+ <otherwise>
121
+ <break/>
122
+ </otherwise>
123
+ </choose>
124
+ </loop>
49
125
  </description>
50
126
  </dslx>
51
127
  <status>
@@ -54,25 +130,96 @@ data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
54
130
  </status>
55
131
  <description>
56
132
  <description xmlns="http://cpee.org/ns/description/1.0">
57
- <call id="a1" endpoint="json" svg-label="Get JSON">
133
+ <call id="a58" endpoint="timeout">
58
134
  <parameters>
59
- <label>Get JSON</label>
60
- <method>get</method>
61
- <parameters/>
135
+ <label>A</label>
136
+ <method/>
137
+ <type>serviceTask</type>
138
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
139
+ <parameters>
140
+ <timeout>1</timeout>
141
+ </parameters>
62
142
  </parameters>
63
- <manipulate>data.json = result
64
- data.json_lv = result['lv']
65
- data.json_lvnr = result['lv']['lvnr']</manipulate>
143
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
66
144
  </call>
67
- <call id="a2" endpoint="xml">
145
+ <call id="a61" endpoint="timeout">
68
146
  <parameters>
69
- <label>Get XML</label>
70
- <method>get</method>
71
- <parameters/>
147
+ <label>B</label>
148
+ <method/>
149
+ <type>serviceTask</type>
150
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
151
+ <parameters>
152
+ <timeout>1</timeout>
153
+ </parameters>
72
154
  </parameters>
73
- <manipulate>data.xml_lv = result.find('string(/data/lv)')
74
- data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
75
155
  </call>
156
+ <loop pre_test="true">
157
+ <choose mode="exclusive">
158
+ <alternative condition="data.a &gt;= 3 &amp;&amp; data.a &lt; 6" language="text/javascript">
159
+ <call id="a62" endpoint="timeout">
160
+ <parameters>
161
+ <label>D</label>
162
+ <method/>
163
+ <type>serviceTask</type>
164
+ <mid>sid-0937F905-A975-4DB2-A8C9-CD523611AEF5</mid>
165
+ <parameters>
166
+ <timeout>1</timeout>
167
+ </parameters>
168
+ </parameters>
169
+ </call>
170
+ <call id="a58" endpoint="timeout">
171
+ <parameters>
172
+ <label>A</label>
173
+ <method/>
174
+ <type>serviceTask</type>
175
+ <mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
176
+ <parameters>
177
+ <timeout>1</timeout>
178
+ </parameters>
179
+ </parameters>
180
+ <manipulate output="result" language="application/javascript">data.a += 1</manipulate>
181
+ </call>
182
+ <call id="a61" endpoint="timeout">
183
+ <parameters>
184
+ <label>B</label>
185
+ <method/>
186
+ <type>serviceTask</type>
187
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
188
+ <parameters>
189
+ <timeout>1</timeout>
190
+ </parameters>
191
+ </parameters>
192
+ </call>
193
+ </alternative>
194
+ <alternative condition="data.a &lt; 3" language="text/javascript">
195
+ <call id="a60" endpoint="timeout">
196
+ <parameters>
197
+ <label>C</label>
198
+ <method/>
199
+ <type>serviceTask</type>
200
+ <mid>sid-7E70A0D7-660E-4C1B-B377-64387F99BD87</mid>
201
+ <parameters>
202
+ <timeout>1</timeout>
203
+ </parameters>
204
+ </parameters>
205
+ </call>
206
+ <call id="a61" endpoint="timeout">
207
+ <parameters>
208
+ <label>B</label>
209
+ <method/>
210
+ <type>serviceTask</type>
211
+ <mid>sid-D16D28EC-08D9-4FA6-92F4-D533E21C9C5E</mid>
212
+ <parameters>
213
+ <timeout>1</timeout>
214
+ </parameters>
215
+ </parameters>
216
+ </call>
217
+ </alternative>
218
+ <otherwise>
219
+ <break/>
220
+ </otherwise>
221
+ </choose>
222
+ </loop>
76
223
  </description>
77
224
  </description>
78
225
  <transformation>