cpee 1.3.171 → 1.3.172
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee.gemspec +1 -1
- data/lib/cpee/processtransformation/cpee.rb +1 -1
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/consumer-secret +1 -0
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret +1 -0
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml +27 -0
- data/server/instances/1/properties.xml +69 -101
- data/server/instances/10/properties.xml +106 -70
- data/server/instances/11/properties.xml +133 -73
- data/server/instances/12/properties.xml +1 -0
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +1 -0
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +1 -0
- data/server/instances/{13/notifications/4ff0cde5161c44dae49b263cbc12eaf8 → 14/notifications/5bcce90b170116a77fb25aea4e133acc}/subscription.xml +0 -0
- data/server/instances/14/properties.xml +160 -160
- data/server/instances/2/properties.xml +191 -44
- data/server/instances/3/properties.xml +70 -44
- data/server/instances/4/properties.xml +28 -68
- data/server/instances/5/properties.xml +10 -70
- data/server/instances/6/properties.xml +175 -55
- data/server/instances/7/properties.xml +118 -52
- data/server/instances/8/properties.xml +112 -50
- data/server/instances/9/properties.xml +115 -47
- metadata +111 -115
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/consumer-secret +0 -1
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/producer-secret +0 -1
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/subscription.xml +0 -6
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/consumer-secret +0 -1
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/producer-secret +0 -1
- data/server/instances/15/properties.xml +0 -330
- data/server/instances/16/properties.xml +0 -265
- data/server/instances/17/properties.xml +0 -146
- data/server/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 034f47004dd93371307acac832103da6def58c5d
|
4
|
+
data.tar.gz: c1b2847bed42368ff237d28ce408c168f8134e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48bb489c2264e2fc03f27bd8909dea93eee20ab6e023ce6e9fa73d72ed968b35dd553111168ed79a798331ccfdfa3b54c0a5503efd36b89996e9471877aa033a
|
7
|
+
data.tar.gz: 0555b076bf0f97cf2613b10b7dfb52aee4421d653e2bd3324a44e4a41cbf0934088114b4bab6f660e602c7e2f57d63bd3699642698d81200ea4fbc3c775116d0
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.3.
|
3
|
+
s.version = "1.3.172"
|
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"
|
@@ -38,7 +38,7 @@ module CPEE
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def print_Loop(node,res)
|
41
|
-
if node.sub.length == 2
|
41
|
+
if node.sub.length == 2 && node.sub[1].condition.empty? && ((node.sub[1].length == 1 && node.sub[1][0].class.name.gsub(/\w+:+/,'') == 'Break') || node.sub[1].length == 0)
|
42
42
|
s1 = res.add('loop', 'pre_test' => node.sub[0].condition.empty? ? 'true' : node.sub[0].condition.join(' && '))
|
43
43
|
s1.attributes['language'] = node.sub[0].condition_type unless node.sub[0].condition_type.nil?
|
44
44
|
node.sub[0].attributes.each do |k,v|
|
@@ -0,0 +1 @@
|
|
1
|
+
d206763d6042af84dad267ae316c2a00
|
@@ -0,0 +1 @@
|
|
1
|
+
63f8cb395dd00d19bf520b0ffa283007
|
@@ -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>
|
3
|
-
<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
|
-
<
|
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
|
-
<
|
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>
|
21
|
-
|
22
|
-
|
23
|
-
status.update 1, 'Hotel'
|
24
|
-
end
|
25
|
-
parallel do
|
26
|
-
loop pre_test{data.persons > 0} do
|
27
|
-
parallel_branch data.persons do |p|
|
28
|
-
call :a2, :bookHotel, { :method => "post", :parameters => { :to => data.to } }, <<-end
|
29
|
-
data.hotels << result.value('id')
|
30
|
-
data.costs += result.value('costs').to_f
|
31
|
-
end
|
32
|
-
end
|
33
|
-
manipulate :a3, <<-end
|
34
|
-
data.persons -= 1
|
35
|
-
end
|
14
|
+
<dsl>parallel do
|
15
|
+
parallel_branch do
|
16
|
+
call :a4, :timeout, { :label => nil, :method => "post", :parameters => { :timeout => a } }
|
36
17
|
end
|
37
|
-
|
38
|
-
|
39
|
-
alternative data.costs > 700 do
|
40
|
-
call :a4, :approve, { :method => "post", :parameters => { :costs => data.costs } }
|
18
|
+
parallel_branch do
|
19
|
+
call :a5, :timeout, { :label => nil, :method => "post", :parameters => { :timeout => a } }
|
41
20
|
end
|
42
21
|
end
|
22
|
+
call :a2, :timeout, { :label => nil, :method => "post", :parameters => { :timeout => b } }, <<-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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<
|
50
|
-
<
|
51
|
-
|
52
|
-
|
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 > 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
|
-
<
|
65
|
-
<parameters>
|
66
|
-
<to>data.to</to>
|
67
|
-
</parameters>
|
36
|
+
<timeout>a</timeout>
|
68
37
|
</parameters>
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<
|
74
|
-
</loop>
|
75
|
-
</parallel>
|
76
|
-
<choose>
|
77
|
-
<alternative condition="data.costs > 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
|
-
<
|
47
|
+
<timeout>a</timeout>
|
83
48
|
</parameters>
|
84
49
|
</parameters>
|
85
50
|
</call>
|
86
|
-
</
|
87
|
-
</
|
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
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<
|
100
|
-
<
|
101
|
-
|
102
|
-
|
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 > 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
|
-
<
|
115
|
-
<parameters>
|
116
|
-
<to>data.to</to>
|
117
|
-
</parameters>
|
79
|
+
<timeout>a</timeout>
|
118
80
|
</parameters>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<
|
124
|
-
</loop>
|
125
|
-
</parallel>
|
126
|
-
<choose>
|
127
|
-
<alternative condition="data.costs > 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
|
-
<
|
90
|
+
<timeout>a</timeout>
|
133
91
|
</parameters>
|
134
92
|
</parameters>
|
135
93
|
</call>
|
136
|
-
</
|
137
|
-
</
|
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,62 +1,90 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
2
|
<info>Enter info here</info>
|
3
|
-
<state>
|
3
|
+
<state>finished</state>
|
4
4
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
5
|
-
<positions
|
6
|
-
<a1>after</a1>
|
7
|
-
</positions>
|
5
|
+
<positions/>
|
8
6
|
<dataelements>
|
9
|
-
<
|
7
|
+
<persons>0</persons>
|
8
|
+
<card>Visa_12345</card>
|
9
|
+
<airline>Lufthansa</airline>
|
10
|
+
<hotels>["Rathaus","Rathaus","Ibis"]</hotels>
|
11
|
+
<from>Vienna</from>
|
12
|
+
<to>Prague</to>
|
13
|
+
<costs>940.0</costs>
|
10
14
|
</dataelements>
|
11
15
|
<endpoints>
|
12
|
-
<
|
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>
|
13
19
|
</endpoints>
|
14
|
-
<dsl>call :a1, :
|
15
|
-
data.
|
20
|
+
<dsl>call :a1, :bookAir, { :method => :post, :parameters => {:from => data.from, :to => data.to, :persons => data.persons} }, <<-end
|
21
|
+
data.airline = result.value('id')
|
22
|
+
data.costs += result.value('costs').to_f
|
23
|
+
status.update 1, 'Hotel'
|
16
24
|
end
|
17
|
-
|
18
|
-
data.
|
25
|
+
parallel do
|
26
|
+
loop pre_test{data.persons > 0} do
|
27
|
+
parallel_branch data.persons do |p|
|
28
|
+
call :a2, :bookHotel, { :method => :post, :parameters => {:to => data.to} }, <<-end
|
29
|
+
data.hotels << result.value('id')
|
30
|
+
data.costs += result.value('costs').to_f
|
31
|
+
end
|
32
|
+
end
|
33
|
+
manipulate :a3, <<-end
|
34
|
+
data.persons -= 1
|
35
|
+
end
|
36
|
+
end
|
19
37
|
end
|
20
|
-
|
21
|
-
data.
|
38
|
+
choose :inclusive do
|
39
|
+
alternative "data.costs > 700" do
|
40
|
+
call :a4, :approve, { :method => :post, :parameters => {:costs => data.costs} }
|
41
|
+
end
|
22
42
|
end
|
23
43
|
</dsl>
|
24
44
|
<dslx>
|
25
45
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
26
|
-
|
27
|
-
<call id="a1" endpoint="timeout">
|
46
|
+
<call id="a1" endpoint="bookAir">
|
28
47
|
<parameters>
|
29
|
-
|
30
|
-
<method>post</method>
|
48
|
+
<method>:post</method>
|
31
49
|
<parameters>
|
32
|
-
<
|
50
|
+
<from>data.from</from>
|
51
|
+
<to>data.to</to>
|
52
|
+
<persons>data.persons</persons>
|
33
53
|
</parameters>
|
34
54
|
</parameters>
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
<call id="a2" endpoint="timeout">
|
39
|
-
<parameters>
|
40
|
-
<!--{{{-->
|
41
|
-
<method>post</method>
|
42
|
-
<parameters>
|
43
|
-
<timeout>4</timeout>
|
44
|
-
</parameters>
|
45
|
-
</parameters>
|
46
|
-
<!--}}}-->
|
47
|
-
<manipulate output="result"> data.x += "a2,"</manipulate>
|
48
|
-
</call>
|
49
|
-
<call id="a3" endpoint="timeout">
|
50
|
-
<parameters>
|
51
|
-
<!--{{{-->
|
52
|
-
<method>post</method>
|
53
|
-
<parameters>
|
54
|
-
<timeout>4</timeout>
|
55
|
-
</parameters>
|
56
|
-
</parameters>
|
57
|
-
<!--}}}-->
|
58
|
-
<manipulate output="result"> data.x += "a3,"</manipulate>
|
55
|
+
<manipulate output="result"> data.airline = result.value('id')
|
56
|
+
data.costs += result.value('costs').to_f
|
57
|
+
status.update 1, 'Hotel'</manipulate>
|
59
58
|
</call>
|
59
|
+
<parallel>
|
60
|
+
<loop pre_test="data.persons > 0">
|
61
|
+
<parallel_branch pass="data.persons" local="p">
|
62
|
+
<call id="a2" endpoint="bookHotel">
|
63
|
+
<parameters>
|
64
|
+
<method>:post</method>
|
65
|
+
<parameters>
|
66
|
+
<to>data.to</to>
|
67
|
+
</parameters>
|
68
|
+
</parameters>
|
69
|
+
<manipulate output="result"> data.hotels << 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 > 700">
|
78
|
+
<call id="a4" endpoint="approve">
|
79
|
+
<parameters>
|
80
|
+
<method>:post</method>
|
81
|
+
<parameters>
|
82
|
+
<costs>data.costs</costs>
|
83
|
+
</parameters>
|
84
|
+
</parameters>
|
85
|
+
</call>
|
86
|
+
</alternative>
|
87
|
+
</choose>
|
60
88
|
</description>
|
61
89
|
</dslx>
|
62
90
|
<status>
|
@@ -65,40 +93,48 @@ end
|
|
65
93
|
</status>
|
66
94
|
<description>
|
67
95
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
68
|
-
|
69
|
-
<call id="a1" endpoint="timeout">
|
70
|
-
<parameters>
|
71
|
-
<!--{{{-->
|
72
|
-
<method>post</method>
|
73
|
-
<parameters>
|
74
|
-
<timeout>2</timeout>
|
75
|
-
</parameters>
|
76
|
-
</parameters>
|
77
|
-
<!--}}}-->
|
78
|
-
<manipulate output="result"> data.x += "a1,"</manipulate>
|
79
|
-
</call>
|
80
|
-
<call id="a2" endpoint="timeout">
|
81
|
-
<parameters>
|
82
|
-
<!--{{{-->
|
83
|
-
<method>post</method>
|
84
|
-
<parameters>
|
85
|
-
<timeout>4</timeout>
|
86
|
-
</parameters>
|
87
|
-
</parameters>
|
88
|
-
<!--}}}-->
|
89
|
-
<manipulate output="result"> data.x += "a2,"</manipulate>
|
90
|
-
</call>
|
91
|
-
<call id="a3" endpoint="timeout">
|
96
|
+
<call id="a1" endpoint="bookAir">
|
92
97
|
<parameters>
|
93
|
-
|
94
|
-
<method>post</method>
|
98
|
+
<method>:post</method>
|
95
99
|
<parameters>
|
96
|
-
<
|
100
|
+
<from>data.from</from>
|
101
|
+
<to>data.to</to>
|
102
|
+
<persons>data.persons</persons>
|
97
103
|
</parameters>
|
98
104
|
</parameters>
|
99
|
-
|
100
|
-
|
105
|
+
<manipulate output="result"> data.airline = result.value('id')
|
106
|
+
data.costs += result.value('costs').to_f
|
107
|
+
status.update 1, 'Hotel'</manipulate>
|
101
108
|
</call>
|
109
|
+
<parallel>
|
110
|
+
<loop pre_test="data.persons > 0">
|
111
|
+
<parallel_branch pass="data.persons" local="p">
|
112
|
+
<call id="a2" endpoint="bookHotel">
|
113
|
+
<parameters>
|
114
|
+
<method>:post</method>
|
115
|
+
<parameters>
|
116
|
+
<to>data.to</to>
|
117
|
+
</parameters>
|
118
|
+
</parameters>
|
119
|
+
<manipulate output="result"> data.hotels << 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 > 700">
|
128
|
+
<call id="a4" endpoint="approve">
|
129
|
+
<parameters>
|
130
|
+
<method>:post</method>
|
131
|
+
<parameters>
|
132
|
+
<costs>data.costs</costs>
|
133
|
+
</parameters>
|
134
|
+
</parameters>
|
135
|
+
</call>
|
136
|
+
</alternative>
|
137
|
+
</choose>
|
102
138
|
</description>
|
103
139
|
</description>
|
104
140
|
<transformation>
|