cpee 1.3.153 → 1.3.154
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 +4 -4
- data/cpee.gemspec +1 -1
- data/lib/cpee/processtransformation/bpmn2.rb +5 -4
- data/lib/cpee/processtransformation/structures.rb +9 -8
- data/server/instances/1/properties.xml +101 -69
- data/server/instances/10/properties.xml +70 -106
- data/server/instances/11/properties.xml +73 -133
- data/server/instances/2/properties.xml +44 -191
- data/server/instances/3/properties.xml +44 -70
- data/server/instances/4/properties.xml +68 -28
- data/server/instances/5/properties.xml +70 -10
- data/server/instances/6/properties.xml +55 -175
- data/server/instances/7/properties.xml +52 -118
- data/server/instances/8/properties.xml +50 -112
- data/server/instances/9/properties.xml +47 -115
- metadata +99 -105
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/consumer-secret +0 -1
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/producer-secret +0 -1
- data/server/instances/1/notifications/d12eff1ac812661c05d7090ce7394cf9/subscription.xml +0 -27
- data/server/instances/11/notifications/e0910b6b5536976209bca471780066f1/consumer-secret +0 -1
- data/server/instances/11/notifications/e0910b6b5536976209bca471780066f1/producer-secret +0 -1
- data/server/instances/11/notifications/e0910b6b5536976209bca471780066f1/subscription.xml +0 -27
@@ -1,93 +1,51 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<info>
|
3
|
-
<state>
|
2
|
+
<info>Enter info here</info>
|
3
|
+
<state>finished</state>
|
4
4
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
5
|
-
<positions
|
6
|
-
<a1>after</a1>
|
7
|
-
</positions>
|
5
|
+
<positions/>
|
8
6
|
<dataelements>
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
14
|
-
<to>Prague</to>
|
15
|
-
<costs>1936.0</costs>
|
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>
|
16
12
|
</dataelements>
|
17
13
|
<endpoints>
|
18
|
-
<
|
19
|
-
<
|
20
|
-
<
|
14
|
+
<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>
|
21
17
|
</endpoints>
|
22
|
-
<dsl>call :a1, :
|
23
|
-
data.
|
24
|
-
|
25
|
-
|
18
|
+
<dsl>call :a1, :json, { :label => "Get JSON", :method => "get", :parameters => nil }, <<-end
|
19
|
+
data.json = result
|
20
|
+
data.json_lv = result['lv']
|
21
|
+
data.json_lvnr = result['lv']['lvnr']
|
26
22
|
end
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
call :a2, :bookHotel, { :method => :post, :parameters => {:to => data.to} }, <<-end
|
31
|
-
data.hotels << result.value('id')
|
32
|
-
data.costs += result.value('costs').to_f
|
33
|
-
end
|
34
|
-
end
|
35
|
-
manipulate :a3, <<-end
|
36
|
-
data.persons -= 1
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
choose :inclusive do
|
41
|
-
alternative "data.costs > 700" do
|
42
|
-
call :a4, :approve, { :method => :post, :parameters => {:costs => data.costs} }
|
43
|
-
end
|
23
|
+
call :a2, :xml, { :label => "Get XML", :method => "get", :parameters => nil }, <<-end
|
24
|
+
data.xml_lv = result.find('string(/data/lv)')
|
25
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')
|
44
26
|
end
|
45
27
|
</dsl>
|
46
28
|
<dslx>
|
47
29
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
48
|
-
<call id="a1" endpoint="
|
30
|
+
<call id="a1" endpoint="json" svg-label="Get JSON">
|
31
|
+
<parameters>
|
32
|
+
<label>Get JSON</label>
|
33
|
+
<method>get</method>
|
34
|
+
<parameters/>
|
35
|
+
</parameters>
|
36
|
+
<manipulate>data.json = result
|
37
|
+
data.json_lv = result['lv']
|
38
|
+
data.json_lvnr = result['lv']['lvnr']</manipulate>
|
39
|
+
</call>
|
40
|
+
<call id="a2" endpoint="xml">
|
49
41
|
<parameters>
|
50
|
-
<label>
|
51
|
-
<method
|
52
|
-
<parameters
|
53
|
-
<from>data.from</from>
|
54
|
-
<to>data.to</to>
|
55
|
-
<persons>data.persons</persons>
|
56
|
-
</parameters>
|
42
|
+
<label>Get XML</label>
|
43
|
+
<method>get</method>
|
44
|
+
<parameters/>
|
57
45
|
</parameters>
|
58
|
-
<manipulate>data.
|
59
|
-
|
60
|
-
status.update 1, 'Hotel'</manipulate>
|
46
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
47
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
61
48
|
</call>
|
62
|
-
<parallel svg-label="">
|
63
|
-
<loop pre_test="data.persons > 0" svg-label="">
|
64
|
-
<parallel_branch pass="data.persons" local="p" svg-label="">
|
65
|
-
<call id="a2" endpoint="bookHotel" svg-label="">
|
66
|
-
<parameters>
|
67
|
-
<method>:post</method>
|
68
|
-
<parameters>
|
69
|
-
<to>data.to</to>
|
70
|
-
</parameters>
|
71
|
-
</parameters>
|
72
|
-
<manipulate output="result"> data.hotels << result.value('id')
|
73
|
-
data.costs += result.value('costs').to_f</manipulate>
|
74
|
-
</call>
|
75
|
-
</parallel_branch>
|
76
|
-
<manipulate id="a3" svg-label=""> data.persons -= 1</manipulate>
|
77
|
-
</loop>
|
78
|
-
</parallel>
|
79
|
-
<choose svg-label="">
|
80
|
-
<alternative condition="data.costs > 700" svg-label="">
|
81
|
-
<call id="a4" endpoint="approve" svg-label="">
|
82
|
-
<parameters>
|
83
|
-
<method>:post</method>
|
84
|
-
<parameters>
|
85
|
-
<costs>data.costs</costs>
|
86
|
-
</parameters>
|
87
|
-
</parameters>
|
88
|
-
</call>
|
89
|
-
</alternative>
|
90
|
-
</choose>
|
91
49
|
</description>
|
92
50
|
</dslx>
|
93
51
|
<status>
|
@@ -96,54 +54,30 @@ end
|
|
96
54
|
</status>
|
97
55
|
<description>
|
98
56
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
99
|
-
<call id="a1" endpoint="
|
57
|
+
<call id="a1" endpoint="json" svg-label="Get JSON">
|
58
|
+
<parameters>
|
59
|
+
<label>Get JSON</label>
|
60
|
+
<method>get</method>
|
61
|
+
<parameters/>
|
62
|
+
</parameters>
|
63
|
+
<manipulate>data.json = result
|
64
|
+
data.json_lv = result['lv']
|
65
|
+
data.json_lvnr = result['lv']['lvnr']</manipulate>
|
66
|
+
</call>
|
67
|
+
<call id="a2" endpoint="xml">
|
100
68
|
<parameters>
|
101
|
-
<label>
|
102
|
-
<method
|
103
|
-
<parameters
|
104
|
-
<from>data.from</from>
|
105
|
-
<to>data.to</to>
|
106
|
-
<persons>data.persons</persons>
|
107
|
-
</parameters>
|
69
|
+
<label>Get XML</label>
|
70
|
+
<method>get</method>
|
71
|
+
<parameters/>
|
108
72
|
</parameters>
|
109
|
-
<manipulate>data.
|
110
|
-
|
111
|
-
status.update 1, 'Hotel'</manipulate>
|
73
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
74
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
112
75
|
</call>
|
113
|
-
<parallel svg-label="">
|
114
|
-
<loop pre_test="data.persons > 0" svg-label="">
|
115
|
-
<parallel_branch pass="data.persons" local="p" svg-label="">
|
116
|
-
<call id="a2" endpoint="bookHotel" svg-label="">
|
117
|
-
<parameters>
|
118
|
-
<method>:post</method>
|
119
|
-
<parameters>
|
120
|
-
<to>data.to</to>
|
121
|
-
</parameters>
|
122
|
-
</parameters>
|
123
|
-
<manipulate output="result"> data.hotels << result.value('id')
|
124
|
-
data.costs += result.value('costs').to_f</manipulate>
|
125
|
-
</call>
|
126
|
-
</parallel_branch>
|
127
|
-
<manipulate id="a3" svg-label=""> data.persons -= 1</manipulate>
|
128
|
-
</loop>
|
129
|
-
</parallel>
|
130
|
-
<choose svg-label="">
|
131
|
-
<alternative condition="data.costs > 700" svg-label="">
|
132
|
-
<call id="a4" endpoint="approve" svg-label="">
|
133
|
-
<parameters>
|
134
|
-
<method>:post</method>
|
135
|
-
<parameters>
|
136
|
-
<costs>data.costs</costs>
|
137
|
-
</parameters>
|
138
|
-
</parameters>
|
139
|
-
</call>
|
140
|
-
</alternative>
|
141
|
-
</choose>
|
142
76
|
</description>
|
143
77
|
</description>
|
144
78
|
<transformation>
|
145
79
|
<description type="copy"/>
|
146
|
-
<dataelements type="
|
147
|
-
<endpoints type="
|
80
|
+
<dataelements type="xslt"/>
|
81
|
+
<endpoints type="xslt"/>
|
148
82
|
</transformation>
|
149
83
|
</properties>
|
@@ -1,90 +1,51 @@
|
|
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
5
|
<positions/>
|
6
6
|
<dataelements>
|
7
|
-
<
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<to>Prague</to>
|
13
|
-
<costs>1021.0</costs>
|
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>
|
14
12
|
</dataelements>
|
15
13
|
<endpoints>
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
14
|
+
<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>
|
19
17
|
</endpoints>
|
20
|
-
<dsl>call :a1, :
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
<dsl>call :a1, :json, { :label => "Get JSON", :method => "get", :parameters => nil }, <<-end
|
19
|
+
data.json = result
|
20
|
+
data.json_lv = result['lv']
|
21
|
+
data.json_lvnr = result['lv']['lvnr']
|
24
22
|
end
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
37
|
-
end
|
38
|
-
choose :inclusive do
|
39
|
-
alternative "data.costs > 700" do
|
40
|
-
call :a4, :approve, { :method => :post, :parameters => {:costs => data.costs} }
|
41
|
-
end
|
23
|
+
call :a2, :xml, { :label => "Get XML", :method => "get", :parameters => nil }, <<-end
|
24
|
+
data.xml_lv = result.find('string(/data/lv)')
|
25
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')
|
42
26
|
end
|
43
27
|
</dsl>
|
44
28
|
<dslx>
|
45
29
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
46
|
-
<call id="a1" endpoint="
|
30
|
+
<call id="a1" endpoint="json" svg-label="Get JSON">
|
31
|
+
<parameters>
|
32
|
+
<label>Get JSON</label>
|
33
|
+
<method>get</method>
|
34
|
+
<parameters/>
|
35
|
+
</parameters>
|
36
|
+
<manipulate>data.json = result
|
37
|
+
data.json_lv = result['lv']
|
38
|
+
data.json_lvnr = result['lv']['lvnr']</manipulate>
|
39
|
+
</call>
|
40
|
+
<call id="a2" endpoint="xml">
|
47
41
|
<parameters>
|
48
|
-
<
|
49
|
-
<
|
50
|
-
|
51
|
-
<to>data.to</to>
|
52
|
-
<persons>data.persons</persons>
|
53
|
-
</parameters>
|
42
|
+
<label>Get XML</label>
|
43
|
+
<method>get</method>
|
44
|
+
<parameters/>
|
54
45
|
</parameters>
|
55
|
-
<manipulate
|
56
|
-
|
57
|
-
status.update 1, 'Hotel'</manipulate>
|
46
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
47
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
58
48
|
</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>
|
88
49
|
</description>
|
89
50
|
</dslx>
|
90
51
|
<status>
|
@@ -93,53 +54,30 @@ end
|
|
93
54
|
</status>
|
94
55
|
<description>
|
95
56
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
96
|
-
<call id="a1" endpoint="
|
57
|
+
<call id="a1" endpoint="json" svg-label="Get JSON">
|
58
|
+
<parameters>
|
59
|
+
<label>Get JSON</label>
|
60
|
+
<method>get</method>
|
61
|
+
<parameters/>
|
62
|
+
</parameters>
|
63
|
+
<manipulate>data.json = result
|
64
|
+
data.json_lv = result['lv']
|
65
|
+
data.json_lvnr = result['lv']['lvnr']</manipulate>
|
66
|
+
</call>
|
67
|
+
<call id="a2" endpoint="xml">
|
97
68
|
<parameters>
|
98
|
-
<
|
99
|
-
<
|
100
|
-
|
101
|
-
<to>data.to</to>
|
102
|
-
<persons>data.persons</persons>
|
103
|
-
</parameters>
|
69
|
+
<label>Get XML</label>
|
70
|
+
<method>get</method>
|
71
|
+
<parameters/>
|
104
72
|
</parameters>
|
105
|
-
<manipulate
|
106
|
-
|
107
|
-
status.update 1, 'Hotel'</manipulate>
|
73
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
74
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
108
75
|
</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>
|
138
76
|
</description>
|
139
77
|
</description>
|
140
78
|
<transformation>
|
141
79
|
<description type="copy"/>
|
142
|
-
<dataelements type="
|
143
|
-
<endpoints type="
|
80
|
+
<dataelements type="xslt"/>
|
81
|
+
<endpoints type="xslt"/>
|
144
82
|
</transformation>
|
145
83
|
</properties>
|
@@ -1,90 +1,45 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<info>
|
3
|
-
<state>
|
2
|
+
<info>Enter info here</info>
|
3
|
+
<state>ready</state>
|
4
4
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
5
5
|
<positions/>
|
6
|
-
<dataelements
|
7
|
-
<persons>0</persons>
|
8
|
-
<card>Visa_12345</card>
|
9
|
-
<airline>FlyNiki</airline>
|
10
|
-
<hotels>["Ibis","Mariott","Rathaus"]</hotels>
|
11
|
-
<from>Vienna</from>
|
12
|
-
<to>Prague</to>
|
13
|
-
<costs>724.0</costs>
|
14
|
-
</dataelements>
|
6
|
+
<dataelements/>
|
15
7
|
<endpoints>
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
8
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
9
|
+
<json>http://cpee.org/services/json.php</json>
|
10
|
+
<xml>http://cpee.org/services/xml.php</xml>
|
19
11
|
</endpoints>
|
20
|
-
<dsl>call :a1, :
|
21
|
-
|
22
|
-
|
23
|
-
|
12
|
+
<dsl>call :a1, :json, { :label => "Get JSON", :method => "get", :parameters => nil }, <<-end
|
13
|
+
data.json = result
|
14
|
+
data.json_lv = result['lv']
|
15
|
+
data.json_lvnr = result['lv']['lvnr']
|
24
16
|
end
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
37
|
-
end
|
38
|
-
choose :inclusive do
|
39
|
-
alternative "data.costs > 700" do
|
40
|
-
call :a4, :approve, { :method => :post, :parameters => {:costs => data.costs} }
|
41
|
-
end
|
17
|
+
call :a2, :xml, { :label => "Get XML", :method => "get", :parameters => nil }, <<-end
|
18
|
+
data.xml_lv = result.find('string(/data/lv)')
|
19
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')
|
42
20
|
end
|
43
21
|
</dsl>
|
44
22
|
<dslx>
|
45
23
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
46
|
-
<call id="a1" endpoint="
|
24
|
+
<call id="a1" endpoint="json" svg-label="Get JSON">
|
25
|
+
<parameters>
|
26
|
+
<label>Get JSON</label>
|
27
|
+
<method>get</method>
|
28
|
+
<parameters/>
|
29
|
+
</parameters>
|
30
|
+
<manipulate>data.json = result
|
31
|
+
data.json_lv = result['lv']
|
32
|
+
data.json_lvnr = result['lv']['lvnr']</manipulate>
|
33
|
+
</call>
|
34
|
+
<call id="a2" endpoint="xml">
|
47
35
|
<parameters>
|
48
|
-
<
|
49
|
-
<
|
50
|
-
|
51
|
-
<to>data.to</to>
|
52
|
-
<persons>data.persons</persons>
|
53
|
-
</parameters>
|
36
|
+
<label>Get XML</label>
|
37
|
+
<method>get</method>
|
38
|
+
<parameters/>
|
54
39
|
</parameters>
|
55
|
-
<manipulate
|
56
|
-
|
57
|
-
status.update 1, 'Hotel'</manipulate>
|
40
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
41
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
58
42
|
</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>
|
88
43
|
</description>
|
89
44
|
</dslx>
|
90
45
|
<status>
|
@@ -93,53 +48,30 @@ end
|
|
93
48
|
</status>
|
94
49
|
<description>
|
95
50
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
96
|
-
<call id="a1" endpoint="
|
51
|
+
<call id="a1" endpoint="json" svg-label="Get JSON">
|
52
|
+
<parameters>
|
53
|
+
<label>Get JSON</label>
|
54
|
+
<method>get</method>
|
55
|
+
<parameters/>
|
56
|
+
</parameters>
|
57
|
+
<manipulate>data.json = result
|
58
|
+
data.json_lv = result['lv']
|
59
|
+
data.json_lvnr = result['lv']['lvnr']</manipulate>
|
60
|
+
</call>
|
61
|
+
<call id="a2" endpoint="xml">
|
97
62
|
<parameters>
|
98
|
-
<
|
99
|
-
<
|
100
|
-
|
101
|
-
<to>data.to</to>
|
102
|
-
<persons>data.persons</persons>
|
103
|
-
</parameters>
|
63
|
+
<label>Get XML</label>
|
64
|
+
<method>get</method>
|
65
|
+
<parameters/>
|
104
66
|
</parameters>
|
105
|
-
<manipulate
|
106
|
-
|
107
|
-
status.update 1, 'Hotel'</manipulate>
|
67
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
68
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
108
69
|
</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>
|
138
70
|
</description>
|
139
71
|
</description>
|
140
72
|
<transformation>
|
141
73
|
<description type="copy"/>
|
142
|
-
<dataelements type="
|
143
|
-
<endpoints type="
|
74
|
+
<dataelements type="xslt"/>
|
75
|
+
<endpoints type="xslt"/>
|
144
76
|
</transformation>
|
145
77
|
</properties>
|