cpee 1.3.199 → 1.3.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bebdb07cc5029a31ac8117dfc98b358f07f39f5
4
- data.tar.gz: 24a63f873a6da0bb4bbc0b143b6fa5551b1bc028
3
+ metadata.gz: 4215d86c5b5e3daaffdc593131104a00a499b3da
4
+ data.tar.gz: 643e2bb20c12043bcb020064438083dac522a4dd
5
5
  SHA512:
6
- metadata.gz: c0f42dc279a9463b8569e25bb84625c6e47398f41a75a6e86d922eb9b9037993a18b15b4412763b3ec5b4d8fbf7a0f59479b8add80a4a926aad66275de6215f5
7
- data.tar.gz: b168f50a944b892505df3ced14b54af5a4daa3f2f5b371e01eda72508358b5abcb6e7552968a89e6f3f9a16adde304fc17430d18f80958ec6a245a1a1a9e6bfc
6
+ metadata.gz: af36c491a2ab0047fcc643ea6aa056630a8367099c251713d232b37cdf983ee8329f525c6921bae3c29bad378b8214d430a71ce9a52b5439262d6d9cc740b119
7
+ data.tar.gz: bec5ab89cc4bf45d99cdae72aae4d7ea8f1551f2e2b402388ed5d7100e4839e7eca90461a8088b3ca634ab6f4eb60a78b98993fb175b57402b1ead355c2c92ef
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.199"
3
+ s.version = "1.3.200"
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"
@@ -1,13 +1,13 @@
1
1
  # This file is part of CPEE.
2
- #
2
+ #
3
3
  # CPEE is free software: you can redistribute it and/or modify it under the terms
4
4
  # of the GNU General Public License as published by the Free Software Foundation,
5
5
  # either version 3 of the License, or (at your option) any later version.
6
- #
6
+ #
7
7
  # CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
8
8
  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9
9
  # PARTICULAR PURPOSE. See the GNU General Public License for more details.
10
- #
10
+ #
11
11
  # You should have received a copy of the GNU General Public License along with
12
12
  # CPEE (file COPYING in the main directory). If not, see
13
13
  # <http://www.gnu.org/licenses/>.
@@ -28,7 +28,7 @@ module CPEE
28
28
  attr_reader :info, :protocol, :method
29
29
 
30
30
  def delete_if!(event,key)
31
- @handler.send @method, :DELETE, *@data if @key == key && @event == event
31
+ @handler.send @method, :DELETE, nil, *@data if @key == key && @event == event
32
32
  nil
33
33
  end
34
34
 
@@ -1,13 +1,13 @@
1
1
  # This file is part of CPEE.
2
- #
2
+ #
3
3
  # CPEE is free software: you can redistribute it and/or modify it under the terms
4
4
  # of the GNU General Public License as published by the Free Software Foundation,
5
5
  # either version 3 of the License, or (at your option) any later version.
6
- #
6
+ #
7
7
  # CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
8
8
  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9
9
  # PARTICULAR PURPOSE. See the GNU General Public License for more details.
10
- #
10
+ #
11
11
  # You should have received a copy of the GNU General Public License along with
12
12
  # CPEE (file COPYING in the main directory). If not, see
13
13
  # <http://www.gnu.org/licenses/>.
@@ -0,0 +1,150 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>f6d37491-8224-4fb1-a189-3992206b89e5</uuid>
4
+ <info>Enter info here</info>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</theme>
7
+ </attributes>
8
+ <state>stopped</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions/>
11
+ <dataelements>
12
+ <persons>0</persons>
13
+ <card>Visa_12345</card>
14
+ <airline>AUA</airline>
15
+ <hotels>["Rathaus","Ibis","Rathaus"]</hotels>
16
+ <from>Vienna</from>
17
+ <to>Prague</to>
18
+ <costs>831.0</costs>
19
+ </dataelements>
20
+ <endpoints>
21
+ <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
22
+ <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
23
+ <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
24
+ </endpoints>
25
+ <dsl>call :a1, :bookAir, parameters: { :method =&gt; :post, :arguments =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, finalize: &lt;&lt;-END
26
+ data.airline = result.value('id')
27
+ data.costs += result.value('costs').to_f
28
+ status.update 1, 'Hotel'
29
+ END
30
+ parallel do
31
+ loop pre_test{data.persons &gt; 0} do
32
+ parallel_branch data.persons do |p|
33
+ call :a2, :bookHotel, parameters: { :method =&gt; :post, :arguments =&gt; {:to =&gt; data.to} }, finalize: &lt;&lt;-END
34
+ data.hotels &lt;&lt; result.value('id')
35
+ data.costs += result.value('costs').to_f
36
+ END
37
+ end
38
+ manipulate :a3, &lt;&lt;-END
39
+ data.persons -= 1
40
+ END
41
+ end
42
+ end
43
+ choose :inclusive do
44
+ alternative "data.costs &gt; 700" do
45
+ call :a4, :approve, parameters: { :method =&gt; :post, :arguments =&gt; {:costs =&gt; data.costs} }
46
+ end
47
+ end
48
+ </dsl>
49
+ <dslx>
50
+ <description xmlns="http://cpee.org/ns/description/1.0">
51
+ <call id="a1" endpoint="bookAir">
52
+ <parameters>
53
+ <method>:post</method>
54
+ <arguments>
55
+ <from>data.from</from>
56
+ <to>data.to</to>
57
+ <persons>data.persons</persons>
58
+ </arguments>
59
+ </parameters>
60
+ <finalize output="result">data.airline = result.value('id')
61
+ data.costs += result.value('costs').to_f
62
+ status.update 1, 'Hotel'</finalize>
63
+ </call>
64
+ <parallel>
65
+ <loop mode="pre_test" condition="data.persons &gt; 0">
66
+ <parallel_branch pass="data.persons" local="p">
67
+ <call id="a2" endpoint="bookHotel">
68
+ <parameters>
69
+ <method>:post</method>
70
+ <arguments>
71
+ <to>data.to</to>
72
+ </arguments>
73
+ </parameters>
74
+ <finalize output="result">data.hotels &lt;&lt; result.value('id')
75
+ data.costs += result.value('costs').to_f</finalize>
76
+ </call>
77
+ </parallel_branch>
78
+ <manipulate id="a3">data.persons -= 1</manipulate>
79
+ </loop>
80
+ </parallel>
81
+ <choose>
82
+ <alternative condition="data.costs &gt; 700">
83
+ <call id="a4" endpoint="approve">
84
+ <parameters>
85
+ <method>:post</method>
86
+ <arguments>
87
+ <costs>data.costs</costs>
88
+ </arguments>
89
+ </parameters>
90
+ </call>
91
+ </alternative>
92
+ </choose>
93
+ </description>
94
+ </dslx>
95
+ <status>
96
+ <id>0</id>
97
+ <message>undefined</message>
98
+ </status>
99
+ <description>
100
+ <description xmlns="http://cpee.org/ns/description/1.0">
101
+ <call id="a1" endpoint="bookAir">
102
+ <parameters>
103
+ <method>:post</method>
104
+ <arguments>
105
+ <from>data.from</from>
106
+ <to>data.to</to>
107
+ <persons>data.persons</persons>
108
+ </arguments>
109
+ </parameters>
110
+ <finalize output="result">data.airline = result.value('id')
111
+ data.costs += result.value('costs').to_f
112
+ status.update 1, 'Hotel'</finalize>
113
+ </call>
114
+ <parallel>
115
+ <loop mode="pre_test" condition="data.persons &gt; 0">
116
+ <parallel_branch pass="data.persons" local="p">
117
+ <call id="a2" endpoint="bookHotel">
118
+ <parameters>
119
+ <method>:post</method>
120
+ <arguments>
121
+ <to>data.to</to>
122
+ </arguments>
123
+ </parameters>
124
+ <finalize output="result">data.hotels &lt;&lt; result.value('id')
125
+ data.costs += result.value('costs').to_f</finalize>
126
+ </call>
127
+ </parallel_branch>
128
+ <manipulate id="a3">data.persons -= 1</manipulate>
129
+ </loop>
130
+ </parallel>
131
+ <choose>
132
+ <alternative condition="data.costs &gt; 700">
133
+ <call id="a4" endpoint="approve">
134
+ <parameters>
135
+ <method>:post</method>
136
+ <arguments>
137
+ <costs>data.costs</costs>
138
+ </arguments>
139
+ </parameters>
140
+ </call>
141
+ </alternative>
142
+ </choose>
143
+ </description>
144
+ </description>
145
+ <transformation>
146
+ <description type="copy"/>
147
+ <dataelements type="rest"/>
148
+ <endpoints type="rest"/>
149
+ </transformation>
150
+ </properties>
@@ -0,0 +1,150 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>5741ccff-f3c0-4801-bff2-92bb57251233</uuid>
4
+ <info>Enter info here</info>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</theme>
7
+ </attributes>
8
+ <state>stopped</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions/>
11
+ <dataelements>
12
+ <persons>2</persons>
13
+ <card>Visa_12345</card>
14
+ <airline>Aeroflott</airline>
15
+ <hotels>[]</hotels>
16
+ <from>Vienna</from>
17
+ <to>Prague</to>
18
+ <costs>319.0</costs>
19
+ </dataelements>
20
+ <endpoints>
21
+ <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
22
+ <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
23
+ <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
24
+ </endpoints>
25
+ <dsl>call :a1, :bookAir, parameters: { :method =&gt; :post, :arguments =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, finalize: &lt;&lt;-END
26
+ data.airline = result.value('id')
27
+ data.costs += result.value('costs').to_f
28
+ status.update 1, 'Hotel'
29
+ END
30
+ parallel do
31
+ loop pre_test{data.persons &gt; 0} do
32
+ parallel_branch data.persons do |p|
33
+ call :a2, :bookHotel, parameters: { :method =&gt; :post, :arguments =&gt; {:to =&gt; data.to} }, finalize: &lt;&lt;-END
34
+ data.hotels &lt;&lt; result.value('id')
35
+ data.costs += result.value('costs').to_f
36
+ END
37
+ end
38
+ manipulate :a3, &lt;&lt;-END
39
+ data.persons -= 1
40
+ END
41
+ end
42
+ end
43
+ choose :inclusive do
44
+ alternative "data.costs &gt; 700" do
45
+ call :a4, :approve, parameters: { :method =&gt; :post, :arguments =&gt; {:costs =&gt; data.costs} }
46
+ end
47
+ end
48
+ </dsl>
49
+ <dslx>
50
+ <description xmlns="http://cpee.org/ns/description/1.0">
51
+ <call id="a1" endpoint="bookAir">
52
+ <parameters>
53
+ <method>:post</method>
54
+ <arguments>
55
+ <from>data.from</from>
56
+ <to>data.to</to>
57
+ <persons>data.persons</persons>
58
+ </arguments>
59
+ </parameters>
60
+ <finalize output="result">data.airline = result.value('id')
61
+ data.costs += result.value('costs').to_f
62
+ status.update 1, 'Hotel'</finalize>
63
+ </call>
64
+ <parallel>
65
+ <loop mode="pre_test" condition="data.persons &gt; 0">
66
+ <parallel_branch pass="data.persons" local="p">
67
+ <call id="a2" endpoint="bookHotel">
68
+ <parameters>
69
+ <method>:post</method>
70
+ <arguments>
71
+ <to>data.to</to>
72
+ </arguments>
73
+ </parameters>
74
+ <finalize output="result">data.hotels &lt;&lt; result.value('id')
75
+ data.costs += result.value('costs').to_f</finalize>
76
+ </call>
77
+ </parallel_branch>
78
+ <manipulate id="a3">data.persons -= 1</manipulate>
79
+ </loop>
80
+ </parallel>
81
+ <choose>
82
+ <alternative condition="data.costs &gt; 700">
83
+ <call id="a4" endpoint="approve">
84
+ <parameters>
85
+ <method>:post</method>
86
+ <arguments>
87
+ <costs>data.costs</costs>
88
+ </arguments>
89
+ </parameters>
90
+ </call>
91
+ </alternative>
92
+ </choose>
93
+ </description>
94
+ </dslx>
95
+ <status>
96
+ <id>0</id>
97
+ <message>undefined</message>
98
+ </status>
99
+ <description>
100
+ <description xmlns="http://cpee.org/ns/description/1.0">
101
+ <call id="a1" endpoint="bookAir">
102
+ <parameters>
103
+ <method>:post</method>
104
+ <arguments>
105
+ <from>data.from</from>
106
+ <to>data.to</to>
107
+ <persons>data.persons</persons>
108
+ </arguments>
109
+ </parameters>
110
+ <finalize output="result">data.airline = result.value('id')
111
+ data.costs += result.value('costs').to_f
112
+ status.update 1, 'Hotel'</finalize>
113
+ </call>
114
+ <parallel>
115
+ <loop mode="pre_test" condition="data.persons &gt; 0">
116
+ <parallel_branch pass="data.persons" local="p">
117
+ <call id="a2" endpoint="bookHotel">
118
+ <parameters>
119
+ <method>:post</method>
120
+ <arguments>
121
+ <to>data.to</to>
122
+ </arguments>
123
+ </parameters>
124
+ <finalize output="result">data.hotels &lt;&lt; result.value('id')
125
+ data.costs += result.value('costs').to_f</finalize>
126
+ </call>
127
+ </parallel_branch>
128
+ <manipulate id="a3">data.persons -= 1</manipulate>
129
+ </loop>
130
+ </parallel>
131
+ <choose>
132
+ <alternative condition="data.costs &gt; 700">
133
+ <call id="a4" endpoint="approve">
134
+ <parameters>
135
+ <method>:post</method>
136
+ <arguments>
137
+ <costs>data.costs</costs>
138
+ </arguments>
139
+ </parameters>
140
+ </call>
141
+ </alternative>
142
+ </choose>
143
+ </description>
144
+ </description>
145
+ <transformation>
146
+ <description type="copy"/>
147
+ <dataelements type="rest"/>
148
+ <endpoints type="rest"/>
149
+ </transformation>
150
+ </properties>
@@ -0,0 +1,114 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>a280af73-c385-42c6-ab4c-2d292021a7d2</uuid>
4
+ <info>Linear</info>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</theme>
7
+ </attributes>
8
+ <state>stopped</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions>
11
+ <a1>after</a1>
12
+ </positions>
13
+ <dataelements>
14
+ <x/>
15
+ </dataelements>
16
+ <endpoints>
17
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
18
+ </endpoints>
19
+ <dsl>call :a1, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }, finalize: &lt;&lt;-END
20
+ data.x += "a1,"
21
+ END
22
+ call :a2, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 4} }, finalize: &lt;&lt;-END
23
+ data.x += "a2,"
24
+ END
25
+ call :a3, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 4} }, finalize: &lt;&lt;-END
26
+ data.x += "a3,"
27
+ END
28
+ </dsl>
29
+ <dslx>
30
+ <description xmlns="http://cpee.org/ns/description/1.0">
31
+ <!--{{{-->
32
+ <call id="a1" endpoint="timeout">
33
+ <parameters>
34
+ <!--{{{-->
35
+ <method>:post</method>
36
+ <arguments>
37
+ <timeout>2</timeout>
38
+ </arguments>
39
+ </parameters>
40
+ <!--}}}-->
41
+ <finalize output="result">data.x += "a1,"</finalize>
42
+ </call>
43
+ <call id="a2" endpoint="timeout">
44
+ <parameters>
45
+ <!--{{{-->
46
+ <method>:post</method>
47
+ <arguments>
48
+ <timeout>4</timeout>
49
+ </arguments>
50
+ </parameters>
51
+ <!--}}}-->
52
+ <finalize output="result">data.x += "a2,"</finalize>
53
+ </call>
54
+ <call id="a3" endpoint="timeout">
55
+ <parameters>
56
+ <!--{{{-->
57
+ <method>:post</method>
58
+ <arguments>
59
+ <timeout>4</timeout>
60
+ </arguments>
61
+ </parameters>
62
+ <!--}}}-->
63
+ <finalize output="result">data.x += "a3,"</finalize>
64
+ </call>
65
+ </description>
66
+ </dslx>
67
+ <status>
68
+ <id>0</id>
69
+ <message>undefined</message>
70
+ </status>
71
+ <description>
72
+ <description xmlns="http://cpee.org/ns/description/1.0">
73
+ <!--{{{-->
74
+ <call id="a1" endpoint="timeout">
75
+ <parameters>
76
+ <!--{{{-->
77
+ <method>:post</method>
78
+ <arguments>
79
+ <timeout>2</timeout>
80
+ </arguments>
81
+ </parameters>
82
+ <!--}}}-->
83
+ <finalize output="result">data.x += "a1,"</finalize>
84
+ </call>
85
+ <call id="a2" endpoint="timeout">
86
+ <parameters>
87
+ <!--{{{-->
88
+ <method>:post</method>
89
+ <arguments>
90
+ <timeout>4</timeout>
91
+ </arguments>
92
+ </parameters>
93
+ <!--}}}-->
94
+ <finalize output="result">data.x += "a2,"</finalize>
95
+ </call>
96
+ <call id="a3" endpoint="timeout">
97
+ <parameters>
98
+ <!--{{{-->
99
+ <method>:post</method>
100
+ <arguments>
101
+ <timeout>4</timeout>
102
+ </arguments>
103
+ </parameters>
104
+ <!--}}}-->
105
+ <finalize output="result">data.x += "a3,"</finalize>
106
+ </call>
107
+ </description>
108
+ </description>
109
+ <transformation>
110
+ <description type="copy"/>
111
+ <dataelements type="rest"/>
112
+ <endpoints type="rest"/>
113
+ </transformation>
114
+ </properties>