cpee 1.3.188 → 1.3.189

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0945c717914907e42fc04e35d1c7abbb7ced2bc6'
4
- data.tar.gz: 584bf95746c861682ddaf116bb55fd74f374df5f
3
+ metadata.gz: d211ffeb9e90a4d9922995a30431485fd868cdfc
4
+ data.tar.gz: 9664f5da7d3d0a9bb2aba654d11f42d618243362
5
5
  SHA512:
6
- metadata.gz: 1f4160c8856b0dffc7fab55faf5480c4d0f83e4e2459f0cf6585e8b27d3af4be5ee39617732a4893c916859c17363f2790b962eab9da02e0793ad7d7c1dfd5c4
7
- data.tar.gz: a3f92e0823d40f34c4802df8ed2e0d21269490e0ab4315259b53e6fe2167ab9552b132e6e8c87230dd4a7638e4dacfca35fceef8af6774dc1bd06afff58b39cd
6
+ metadata.gz: '0890a45cdaff78864593bcd660238a924553b31b05fdb9b8c66b999812fd5fbc3fa2624db5003c5297fb90fac25640b2a4cd64c5cba0832934f7645b60b3847c'
7
+ data.tar.gz: 6bc56f7aac0c0bdb870a331bce9f2d7acd5cc9fd5135f93969b2f4088cfb30ce32e40677f4ff286a44f8aaaeb6b746ebcca541ca4673d7f69a110a7e82ef77f9
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.188"
3
+ s.version = "1.3.189"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
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"
@@ -78,7 +78,8 @@ module CPEE
78
78
  )
79
79
  @notifications = Riddl::Utils::Notifications::Producer::Backend.new(
80
80
  opts[:topics],
81
- @directory + '/notifications/'
81
+ @directory + '/notifications/',
82
+ opts[:notifications_init]
82
83
  )
83
84
 
84
85
  @notifications.subscriptions.keys.each do |key|
@@ -35,6 +35,7 @@ module CPEE
35
35
  opts[:transformation_dslx] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/transformation_dslx.xsl')
36
36
  opts[:transformation_service] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/transformation.xml')
37
37
  opts[:empty_dslx] ||= File.expand_path(File.dirname(__FILE__) + '/../../server/resources/empty_dslx.xml')
38
+ opts[:notifications_init] ||= nil
38
39
  opts[:infinite_loop_stop] ||= 10000
39
40
 
40
41
  opts[:runtime_options] << [
@@ -0,0 +1,138 @@
1
+ <log xmlns="http://www.xes-standard.org/" xes.version="1.0" xes.features="nested-attributes" openxes.version="1.0RC7">
2
+ <extension name="Time" prefix="time" uri="http://www.xes-standard.org/time.xesext"/>
3
+ <extension name="Concept" prefix="concept" uri="http://www.xes-standard.org/concept.xesext"/>
4
+ <extension name="Organizational" prefix="org" uri="http://www.xes-standard.org/org.xesext"/>
5
+ <trace>
6
+ <string key="concept:name" value="Instance 44"/>
7
+ <string key="concept:name" value="Instance 44"/>
8
+ <string key="concept:name" value="Instance 44"/>
9
+ <event>
10
+ <string key="concept:name" value=""/>
11
+ <list key="data_send">
12
+ <string key="timeout" value="2"/>
13
+ </list>
14
+ <list key="data_received">
15
+ <string key="html_text" value="Timeout: 2"/>
16
+ </list>
17
+ <date key="time:timestamp" value="2016-11-21 20:29:55 +0100"/>
18
+ </event>
19
+ <string key="concept:name" value="Instance 44"/>
20
+ <string key="concept:name" value="Instance 44"/>
21
+ <event>
22
+ <string key="concept:name" value=""/>
23
+ <list key="data_send">
24
+ <string key="timeout" value="2"/>
25
+ </list>
26
+ <list key="data_received">
27
+ <string key="html_text" value="Timeout: 2"/>
28
+ </list>
29
+ <date key="time:timestamp" value="2016-11-21 20:29:58 +0100"/>
30
+ </event>
31
+ <string key="concept:name" value="Instance 44"/>
32
+ <event>
33
+ <string key="concept:name" value=""/>
34
+ <list key="data_send">
35
+ <string key="timeout" value="3"/>
36
+ </list>
37
+ <list key="data_received">
38
+ <string key="html_text" value="Timeout: 3"/>
39
+ </list>
40
+ <date key="time:timestamp" value="2016-11-21 20:29:59 +0100"/>
41
+ </event>
42
+ <string key="concept:name" value="Instance 44"/>
43
+ <string key="concept:name" value="Instance 44"/>
44
+ <event>
45
+ <string key="concept:name" value=""/>
46
+ <list key="data_send">
47
+ <string key="timeout" value="1"/>
48
+ </list>
49
+ <list key="data_received">
50
+ <string key="html_text" value="Timeout: 1"/>
51
+ </list>
52
+ <date key="time:timestamp" value="2016-11-21 20:30:00 +0100"/>
53
+ </event>
54
+ <string key="concept:name" value="Instance 44"/>
55
+ <event>
56
+ <string key="concept:name" value=""/>
57
+ <date key="time:timestamp" value="2016-11-21 20:30:00 +0100"/>
58
+ </event>
59
+ <string key="concept:name" value="Instance 44"/>
60
+ <event>
61
+ <string key="concept:name" value=""/>
62
+ <list key="data_send">
63
+ <string key="timeout" value="1"/>
64
+ </list>
65
+ <list key="data_received">
66
+ <string key="html_text" value="Timeout: 1"/>
67
+ </list>
68
+ <date key="time:timestamp" value="2016-11-21 20:30:01 +0100"/>
69
+ </event>
70
+ <string key="concept:name" value="Instance 44"/>
71
+ <event>
72
+ <string key="concept:name" value=""/>
73
+ <date key="time:timestamp" value="2016-11-21 20:30:01 +0100"/>
74
+ </event>
75
+ <string key="concept:name" value="Instance 44"/>
76
+ <event>
77
+ <string key="concept:name" value=""/>
78
+ <list key="data_send">
79
+ <string key="timeout" value="1"/>
80
+ </list>
81
+ <list key="data_received">
82
+ <string key="html_text" value="Timeout: 1"/>
83
+ </list>
84
+ <date key="time:timestamp" value="2016-11-21 20:30:02 +0100"/>
85
+ </event>
86
+ <string key="concept:name" value="Instance 44"/>
87
+ <event>
88
+ <string key="concept:name" value=""/>
89
+ <date key="time:timestamp" value="2016-11-21 20:30:02 +0100"/>
90
+ </event>
91
+ <string key="concept:name" value="Instance 44"/>
92
+ <event>
93
+ <string key="concept:name" value=""/>
94
+ <list key="data_send">
95
+ <string key="timeout" value="1"/>
96
+ </list>
97
+ <list key="data_received">
98
+ <string key="html_text" value="Timeout: 1"/>
99
+ </list>
100
+ <date key="time:timestamp" value="2016-11-21 20:30:03 +0100"/>
101
+ </event>
102
+ <string key="concept:name" value="Instance 44"/>
103
+ <event>
104
+ <string key="concept:name" value=""/>
105
+ <date key="time:timestamp" value="2016-11-21 20:30:03 +0100"/>
106
+ </event>
107
+ <string key="concept:name" value="Instance 44"/>
108
+ <event>
109
+ <string key="concept:name" value=""/>
110
+ <list key="data_send">
111
+ <string key="timeout" value="1"/>
112
+ </list>
113
+ <list key="data_received">
114
+ <string key="html_text" value="Timeout: 1"/>
115
+ </list>
116
+ <date key="time:timestamp" value="2016-11-21 20:30:04 +0100"/>
117
+ </event>
118
+ <string key="concept:name" value="Instance 44"/>
119
+ <event>
120
+ <string key="concept:name" value=""/>
121
+ <date key="time:timestamp" value="2016-11-21 20:30:04 +0100"/>
122
+ </event>
123
+ <string key="concept:name" value="Instance 44"/>
124
+ <string key="concept:name" value="Instance 44"/>
125
+ <event>
126
+ <string key="concept:name" value=""/>
127
+ <list key="data_send">
128
+ <string key="timeout" value="1"/>
129
+ </list>
130
+ <list key="data_received">
131
+ <string key="html_text" value="Timeout: 1"/>
132
+ </list>
133
+ <date key="time:timestamp" value="2016-11-21 20:30:05 +0100"/>
134
+ </event>
135
+ <string key="concept:name" value="Instance 44"/>
136
+ <string key="concept:name" value="Instance 44"/>
137
+ </trace>
138
+ </log>
@@ -0,0 +1,176 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <info>Test</info>
4
+ <modeltype>CPEE</modeltype>
5
+ <theme>default</theme>
6
+ </attributes>
7
+ <state>finished</state>
8
+ <handlerwrapper>LogHandlerWrapper</handlerwrapper>
9
+ <positions/>
10
+ <dataelements>
11
+ <i>0</i>
12
+ </dataelements>
13
+ <endpoints>
14
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
15
+ </endpoints>
16
+ <dsl>call :a2, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }
17
+ parallel :wait =&gt; -1 do
18
+ parallel_branch do ||
19
+ call :a3, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }
20
+ end
21
+ parallel_branch do ||
22
+ call :a4, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 3} }
23
+ end
24
+ end
25
+ loop pre_test{data.i &gt; 0} do
26
+ call :a6, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 1} }
27
+ manipulate :a7, &lt;&lt;-END
28
+ data.i -= 1
29
+ END
30
+ end
31
+ choose :exclusive do
32
+ alternative "true" do
33
+ call :a5, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 1} }
34
+ end
35
+ end
36
+ </dsl>
37
+ <dslx>
38
+ <description xmlns="http://cpee.org/ns/description/1.0">
39
+ <call id="a2" endpoint="timeout">
40
+ <parameters>
41
+ <label/>
42
+ <method>:post</method>
43
+ <arguments>
44
+ <timeout>2</timeout>
45
+ </arguments>
46
+ </parameters>
47
+ <finalize output="result"/>
48
+ <update output="result"/>
49
+ </call>
50
+ <parallel wait="-1">
51
+ <parallel_branch pass="" local="">
52
+ <call id="a3" endpoint="timeout">
53
+ <parameters>
54
+ <label/>
55
+ <method>:post</method>
56
+ <arguments>
57
+ <timeout>2</timeout>
58
+ </arguments>
59
+ </parameters>
60
+ </call>
61
+ </parallel_branch>
62
+ <parallel_branch pass="" local="">
63
+ <call id="a4" endpoint="timeout">
64
+ <parameters>
65
+ <label/>
66
+ <method>:post</method>
67
+ <arguments>
68
+ <timeout>3</timeout>
69
+ </arguments>
70
+ </parameters>
71
+ </call>
72
+ </parallel_branch>
73
+ </parallel>
74
+ <loop mode="pre_test" condition="data.i &gt; 0">
75
+ <call id="a6" endpoint="timeout">
76
+ <parameters>
77
+ <label/>
78
+ <method>:post</method>
79
+ <arguments>
80
+ <timeout>1</timeout>
81
+ </arguments>
82
+ </parameters>
83
+ </call>
84
+ <manipulate id="a7">data.i -= 1</manipulate>
85
+ </loop>
86
+ <choose mode="exclusive">
87
+ <alternative condition="true">
88
+ <call id="a5" endpoint="timeout">
89
+ <parameters>
90
+ <label/>
91
+ <method>:post</method>
92
+ <arguments>
93
+ <timeout>1</timeout>
94
+ </arguments>
95
+ </parameters>
96
+ </call>
97
+ </alternative>
98
+ <otherwise/>
99
+ </choose>
100
+ </description>
101
+ </dslx>
102
+ <status>
103
+ <id>0</id>
104
+ <message>undefined</message>
105
+ </status>
106
+ <description>
107
+ <description xmlns="http://cpee.org/ns/description/1.0">
108
+ <call id="a2" endpoint="timeout">
109
+ <parameters>
110
+ <label/>
111
+ <method>:post</method>
112
+ <arguments>
113
+ <timeout>2</timeout>
114
+ </arguments>
115
+ </parameters>
116
+ <finalize output="result"/>
117
+ <update output="result"/>
118
+ </call>
119
+ <parallel wait="-1">
120
+ <parallel_branch pass="" local="">
121
+ <call id="a3" endpoint="timeout">
122
+ <parameters>
123
+ <label/>
124
+ <method>:post</method>
125
+ <arguments>
126
+ <timeout>2</timeout>
127
+ </arguments>
128
+ </parameters>
129
+ </call>
130
+ </parallel_branch>
131
+ <parallel_branch pass="" local="">
132
+ <call id="a4" endpoint="timeout">
133
+ <parameters>
134
+ <label/>
135
+ <method>:post</method>
136
+ <arguments>
137
+ <timeout>3</timeout>
138
+ </arguments>
139
+ </parameters>
140
+ </call>
141
+ </parallel_branch>
142
+ </parallel>
143
+ <loop mode="pre_test" condition="data.i &gt; 0">
144
+ <call id="a6" endpoint="timeout">
145
+ <parameters>
146
+ <label/>
147
+ <method>:post</method>
148
+ <arguments>
149
+ <timeout>1</timeout>
150
+ </arguments>
151
+ </parameters>
152
+ </call>
153
+ <manipulate id="a7">data.i -= 1</manipulate>
154
+ </loop>
155
+ <choose mode="exclusive">
156
+ <alternative condition="true">
157
+ <call id="a5" endpoint="timeout">
158
+ <parameters>
159
+ <label/>
160
+ <method>:post</method>
161
+ <arguments>
162
+ <timeout>1</timeout>
163
+ </arguments>
164
+ </parameters>
165
+ </call>
166
+ </alternative>
167
+ <otherwise/>
168
+ </choose>
169
+ </description>
170
+ </description>
171
+ <transformation>
172
+ <description type="copy"/>
173
+ <dataelements type="none"/>
174
+ <endpoints type="none"/>
175
+ </transformation>
176
+ </properties>
@@ -0,0 +1,10 @@
1
+ <log xmlns="http://www.xes-standard.org/" xes.version="1.0" xes.features="nested-attributes" openxes.version="1.0RC7">
2
+ <extension name="Time" prefix="time" uri="http://www.xes-standard.org/time.xesext"/>
3
+ <extension name="Concept" prefix="concept" uri="http://www.xes-standard.org/concept.xesext"/>
4
+ <extension name="Organizational" prefix="org" uri="http://www.xes-standard.org/org.xesext"/>
5
+ <trace>
6
+ <string key="concept:name" value="Instance 45"/>
7
+ <string key="concept:name" value="Instance 45"/>
8
+ <string key="concept:name" value="Instance 45"/>
9
+ </trace>
10
+ </log>
@@ -0,0 +1,176 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <info>Test</info>
4
+ <modeltype>CPEE</modeltype>
5
+ <theme>cpee</theme>
6
+ </attributes>
7
+ <state>ready</state>
8
+ <handlerwrapper>LogHandlerWrapper</handlerwrapper>
9
+ <positions/>
10
+ <dataelements>
11
+ <i>5</i>
12
+ </dataelements>
13
+ <endpoints>
14
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
15
+ </endpoints>
16
+ <dsl>call :a2, :timeout, parameters: { :label =&gt; Sonja, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }
17
+ parallel :wait =&gt; -1 do
18
+ parallel_branch do ||
19
+ call :a3, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }
20
+ end
21
+ parallel_branch do ||
22
+ call :a4, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 3} }
23
+ end
24
+ end
25
+ loop pre_test{data.i &gt; 0} do
26
+ call :a6, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 1} }
27
+ manipulate :a7, &lt;&lt;-END
28
+ data.i -= 1
29
+ END
30
+ end
31
+ choose :exclusive do
32
+ alternative "true" do
33
+ call :a5, :timeout, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 1} }
34
+ end
35
+ end
36
+ </dsl>
37
+ <dslx>
38
+ <description xmlns="http://cpee.org/ns/description/1.0">
39
+ <call id="a2" endpoint="timeout">
40
+ <parameters>
41
+ <label>Sonja</label>
42
+ <method>:post</method>
43
+ <arguments>
44
+ <timeout>2</timeout>
45
+ </arguments>
46
+ </parameters>
47
+ <finalize output="result"/>
48
+ <update output="result"/>
49
+ </call>
50
+ <parallel wait="-1">
51
+ <parallel_branch pass="" local="">
52
+ <call id="a3" endpoint="timeout">
53
+ <parameters>
54
+ <label/>
55
+ <method>:post</method>
56
+ <arguments>
57
+ <timeout>2</timeout>
58
+ </arguments>
59
+ </parameters>
60
+ </call>
61
+ </parallel_branch>
62
+ <parallel_branch pass="" local="">
63
+ <call id="a4" endpoint="timeout">
64
+ <parameters>
65
+ <label/>
66
+ <method>:post</method>
67
+ <arguments>
68
+ <timeout>3</timeout>
69
+ </arguments>
70
+ </parameters>
71
+ </call>
72
+ </parallel_branch>
73
+ </parallel>
74
+ <loop mode="pre_test" condition="data.i &gt; 0">
75
+ <call id="a6" endpoint="timeout">
76
+ <parameters>
77
+ <label/>
78
+ <method>:post</method>
79
+ <arguments>
80
+ <timeout>1</timeout>
81
+ </arguments>
82
+ </parameters>
83
+ </call>
84
+ <manipulate id="a7">data.i -= 1</manipulate>
85
+ </loop>
86
+ <choose mode="exclusive">
87
+ <alternative condition="true">
88
+ <call id="a5" endpoint="timeout">
89
+ <parameters>
90
+ <label/>
91
+ <method>:post</method>
92
+ <arguments>
93
+ <timeout>1</timeout>
94
+ </arguments>
95
+ </parameters>
96
+ </call>
97
+ </alternative>
98
+ <otherwise/>
99
+ </choose>
100
+ </description>
101
+ </dslx>
102
+ <status>
103
+ <id>0</id>
104
+ <message>undefined</message>
105
+ </status>
106
+ <description>
107
+ <description xmlns="http://cpee.org/ns/description/1.0">
108
+ <call id="a2" endpoint="timeout">
109
+ <parameters>
110
+ <label>Sonja</label>
111
+ <method>:post</method>
112
+ <arguments>
113
+ <timeout>2</timeout>
114
+ </arguments>
115
+ </parameters>
116
+ <finalize output="result"/>
117
+ <update output="result"/>
118
+ </call>
119
+ <parallel wait="-1">
120
+ <parallel_branch pass="" local="">
121
+ <call id="a3" endpoint="timeout">
122
+ <parameters>
123
+ <label/>
124
+ <method>:post</method>
125
+ <arguments>
126
+ <timeout>2</timeout>
127
+ </arguments>
128
+ </parameters>
129
+ </call>
130
+ </parallel_branch>
131
+ <parallel_branch pass="" local="">
132
+ <call id="a4" endpoint="timeout">
133
+ <parameters>
134
+ <label/>
135
+ <method>:post</method>
136
+ <arguments>
137
+ <timeout>3</timeout>
138
+ </arguments>
139
+ </parameters>
140
+ </call>
141
+ </parallel_branch>
142
+ </parallel>
143
+ <loop mode="pre_test" condition="data.i &gt; 0">
144
+ <call id="a6" endpoint="timeout">
145
+ <parameters>
146
+ <label/>
147
+ <method>:post</method>
148
+ <arguments>
149
+ <timeout>1</timeout>
150
+ </arguments>
151
+ </parameters>
152
+ </call>
153
+ <manipulate id="a7">data.i -= 1</manipulate>
154
+ </loop>
155
+ <choose mode="exclusive">
156
+ <alternative condition="true">
157
+ <call id="a5" endpoint="timeout">
158
+ <parameters>
159
+ <label/>
160
+ <method>:post</method>
161
+ <arguments>
162
+ <timeout>1</timeout>
163
+ </arguments>
164
+ </parameters>
165
+ </call>
166
+ </alternative>
167
+ <otherwise/>
168
+ </choose>
169
+ </description>
170
+ </description>
171
+ <transformation>
172
+ <description type="copy"/>
173
+ <dataelements type="none"/>
174
+ <endpoints type="none"/>
175
+ </transformation>
176
+ </properties>
@@ -0,0 +1 @@
1
+ 25824
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.188
4
+ version: 1.3.189
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -324,10 +324,14 @@ files:
324
324
  - server/instances/42/log.xes
325
325
  - server/instances/42/properties.xml
326
326
  - server/instances/43/log.xes
327
- - server/instances/43/notifications/f66c804e47c37eac47c5891e66e4e52d/consumer-secret
328
- - server/instances/43/notifications/f66c804e47c37eac47c5891e66e4e52d/producer-secret
329
- - server/instances/43/notifications/f66c804e47c37eac47c5891e66e4e52d/subscription.xml
330
327
  - server/instances/43/properties.xml
328
+ - server/instances/44/log.xes
329
+ - server/instances/44/properties.xml
330
+ - server/instances/45/log.xes
331
+ - server/instances/45/notifications/7d1bd93a743784ab3600acb22b18f933/consumer-secret
332
+ - server/instances/45/notifications/7d1bd93a743784ab3600acb22b18f933/producer-secret
333
+ - server/instances/45/notifications/7d1bd93a743784ab3600acb22b18f933/subscription.xml
334
+ - server/instances/45/properties.xml
331
335
  - server/instances/5/properties.xml
332
336
  - server/instances/6/properties.xml
333
337
  - server/instances/7/properties.xml
@@ -341,6 +345,7 @@ files:
341
345
  - server/resources/topics.xml
342
346
  - server/resources/transformation.xml
343
347
  - server/resources/transformation_dslx.xsl
348
+ - server/server.pid
344
349
  - server/server.rb
345
350
  - test/callback.rb
346
351
  homepage: http://cpee.org/