cpee 1.4.11 → 1.4.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/js/instance.js +35 -0
- data/cockpit/themes/compact/theme.js +26 -2
- data/cockpit/themes/default/theme.js +26 -2
- data/cpee.gemspec +1 -1
- data/lib/cpee/implementation.rb +1 -1
- data/lib/cpee/instantiation.rb +24 -7
- data/lib/engine.xml +1 -1
- data/log/logs/3b0cfe66-5a3d-43de-b5a1-d7b9386be65a.xes.yaml +413 -0
- data/log/template.xes_yaml +1 -1
- data/log/xes_yaml.rb +1 -1
- data/server/handlerwrappers/default.rb +5 -1
- data/server/instances/679/properties.xml +1 -1
- data/server/instances/681/properties.xml +156 -0
- data/server/instances/682/properties.xml +156 -0
- data/server/instances/683/properties.xml +156 -0
- data/server/instances/684/properties.xml +156 -0
- data/server/instances/685/properties.xml +156 -0
- data/server/instances/686/properties.xml +156 -0
- data/server/instances/687/properties.xml +156 -0
- data/server/instances/688/properties.xml +118 -0
- data/server/instances/689/properties.xml +156 -0
- data/server/instances/690/properties.xml +156 -0
- data/server/instances/691/properties.xml +129 -0
- data/server/instances/692/properties.xml +31 -0
- data/server/instances/693/properties.xml +118 -0
- data/server/instances/694/properties.xml +118 -0
- data/server/instances/695/properties.xml +156 -0
- data/server/instances/696/properties.xml +156 -0
- data/server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/consumer-secret +1 -0
- data/server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/producer-secret +1 -0
- data/server/instances/{679/notifications/1b946ec6292b2dacfbad69f6f5e2b085 → 697/notifications/a183b4ae18e11f2b646201d40b7bfede}/subscription.xml +0 -0
- data/server/instances/697/notifications/ruleengine/consumer-secret +1 -0
- data/server/instances/697/notifications/ruleengine/producer-secret +1 -0
- data/server/instances/697/notifications/ruleengine/subscription.xml +16 -0
- data/server/instances/697/properties.xml +156 -0
- data/server/resources/notifications/ruleengine/consumer-secret +1 -0
- data/server/resources/notifications/ruleengine/producer-secret +1 -0
- data/server/resources/notifications/ruleengine/subscription.xml +16 -0
- data/server/server.pid +1 -1
- metadata +29 -5
- data/server/instances/679/notifications/1b946ec6292b2dacfbad69f6f5e2b085/consumer-secret +0 -1
- data/server/instances/679/notifications/1b946ec6292b2dacfbad69f6f5e2b085/producer-secret +0 -1
@@ -0,0 +1,129 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>159687b9-6f90-4199-82e0-88fb08359256</uuid>
|
4
|
+
<info>Plain Instance</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
</attributes>
|
8
|
+
<state>finished</state>
|
9
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
+
<positions/>
|
11
|
+
<dataelements/>
|
12
|
+
<endpoints>
|
13
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
14
|
+
</endpoints>
|
15
|
+
<dsl>parallel :wait => -1 do
|
16
|
+
parallel_branch do ||
|
17
|
+
call :a1, :timeout, parameters: { :label => "", :method => :post, :arguments => [⭐(:name => :timeout, :value => "2")], :sensors => nil }
|
18
|
+
end
|
19
|
+
parallel_branch do ||
|
20
|
+
call :a2, :timeout, parameters: { :label => "", :method => :post, :arguments => [⭐(:name => :timeout, :value => "5")], :sensors => nil }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
</dsl>
|
24
|
+
<dslx>
|
25
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
26
|
+
<parallel wait="-1">
|
27
|
+
<parallel_branch pass="" local="">
|
28
|
+
<call id="a1" endpoint="timeout">
|
29
|
+
<parameters>
|
30
|
+
<label/>
|
31
|
+
<method>:post</method>
|
32
|
+
<arguments>
|
33
|
+
<timeout>2</timeout>
|
34
|
+
</arguments>
|
35
|
+
<sensors/>
|
36
|
+
</parameters>
|
37
|
+
<_timing>
|
38
|
+
<_timing_min/>
|
39
|
+
<_timing_max/>
|
40
|
+
<_timing_avg/>
|
41
|
+
</_timing>
|
42
|
+
<_notes>
|
43
|
+
<_notes_general/>
|
44
|
+
<_attachments/>
|
45
|
+
</_notes>
|
46
|
+
</call>
|
47
|
+
</parallel_branch>
|
48
|
+
<parallel_branch pass="" local="">
|
49
|
+
<call id="a2" endpoint="timeout">
|
50
|
+
<parameters>
|
51
|
+
<label/>
|
52
|
+
<method>:post</method>
|
53
|
+
<arguments>
|
54
|
+
<timeout>5</timeout>
|
55
|
+
</arguments>
|
56
|
+
<sensors/>
|
57
|
+
</parameters>
|
58
|
+
<_timing>
|
59
|
+
<_timing_min/>
|
60
|
+
<_timing_max/>
|
61
|
+
<_timing_avg/>
|
62
|
+
</_timing>
|
63
|
+
<_notes>
|
64
|
+
<_notes_general/>
|
65
|
+
<_attachments/>
|
66
|
+
</_notes>
|
67
|
+
</call>
|
68
|
+
</parallel_branch>
|
69
|
+
</parallel>
|
70
|
+
</description>
|
71
|
+
</dslx>
|
72
|
+
<status>
|
73
|
+
<id>0</id>
|
74
|
+
<message>undefined</message>
|
75
|
+
</status>
|
76
|
+
<description>
|
77
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
78
|
+
<parallel wait="-1">
|
79
|
+
<parallel_branch pass="" local="">
|
80
|
+
<call id="a1" endpoint="timeout">
|
81
|
+
<parameters>
|
82
|
+
<label/>
|
83
|
+
<method>:post</method>
|
84
|
+
<arguments>
|
85
|
+
<timeout>2</timeout>
|
86
|
+
</arguments>
|
87
|
+
<sensors/>
|
88
|
+
</parameters>
|
89
|
+
<_timing>
|
90
|
+
<_timing_min/>
|
91
|
+
<_timing_max/>
|
92
|
+
<_timing_avg/>
|
93
|
+
</_timing>
|
94
|
+
<_notes>
|
95
|
+
<_notes_general/>
|
96
|
+
<_attachments/>
|
97
|
+
</_notes>
|
98
|
+
</call>
|
99
|
+
</parallel_branch>
|
100
|
+
<parallel_branch pass="" local="">
|
101
|
+
<call id="a2" endpoint="timeout">
|
102
|
+
<parameters>
|
103
|
+
<label/>
|
104
|
+
<method>:post</method>
|
105
|
+
<arguments>
|
106
|
+
<timeout>5</timeout>
|
107
|
+
</arguments>
|
108
|
+
<sensors/>
|
109
|
+
</parameters>
|
110
|
+
<_timing>
|
111
|
+
<_timing_min/>
|
112
|
+
<_timing_max/>
|
113
|
+
<_timing_avg/>
|
114
|
+
</_timing>
|
115
|
+
<_notes>
|
116
|
+
<_notes_general/>
|
117
|
+
<_attachments/>
|
118
|
+
</_notes>
|
119
|
+
</call>
|
120
|
+
</parallel_branch>
|
121
|
+
</parallel>
|
122
|
+
</description>
|
123
|
+
</description>
|
124
|
+
<transformation>
|
125
|
+
<description type="copy"/>
|
126
|
+
<dataelements type="none"/>
|
127
|
+
<endpoints type="none"/>
|
128
|
+
</transformation>
|
129
|
+
</properties>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>4ac1c506-6afa-45d2-9805-6afe76a6a615</uuid>
|
4
|
+
<info/>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
</attributes>
|
8
|
+
<state>ready</state>
|
9
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
+
<positions/>
|
11
|
+
<dataelements/>
|
12
|
+
<endpoints>
|
13
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
14
|
+
</endpoints>
|
15
|
+
<dsl/>
|
16
|
+
<dslx>
|
17
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
18
|
+
</dslx>
|
19
|
+
<status>
|
20
|
+
<id>0</id>
|
21
|
+
<message>undefined</message>
|
22
|
+
</status>
|
23
|
+
<description>
|
24
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
25
|
+
</description>
|
26
|
+
<transformation>
|
27
|
+
<description type="copy"/>
|
28
|
+
<dataelements type="none"/>
|
29
|
+
<endpoints type="none"/>
|
30
|
+
</transformation>
|
31
|
+
</properties>
|
@@ -0,0 +1,118 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>d006f3d2-1379-4e08-9deb-ac2da730db34</uuid>
|
4
|
+
<info>Linear</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
</attributes>
|
8
|
+
<state>finished</state>
|
9
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
+
<positions/>
|
11
|
+
<dataelements>
|
12
|
+
<x>a2,a3,</x>
|
13
|
+
</dataelements>
|
14
|
+
<endpoints>
|
15
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
+
</endpoints>
|
17
|
+
<dsl>call :a1, :timeout, parameters: { :label => "Step 1", :method => :post, :arguments => [⭐(:name => :timeout, :value => "2")] }, finalize: <<-END
|
18
|
+
data.x += "a1,"
|
19
|
+
END
|
20
|
+
call :a2, :timeout, parameters: { :label => "Step 2", :method => :post, :arguments => [⭐(:name => :timeout, :value => "4")] }, finalize: <<-END
|
21
|
+
data.x += "a2,"
|
22
|
+
END
|
23
|
+
call :a3, :timeout, parameters: { :label => "Step 3", :method => :post, :arguments => [⭐(:name => :timeout, :value => "4")] }, finalize: <<-END
|
24
|
+
data.x += "a3,"
|
25
|
+
END
|
26
|
+
</dsl>
|
27
|
+
<dslx>
|
28
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
29
|
+
<!--{{{-->
|
30
|
+
<call id="a1" endpoint="timeout">
|
31
|
+
<parameters>
|
32
|
+
<!--{{{-->
|
33
|
+
<label>Step 1</label>
|
34
|
+
<method>:post</method>
|
35
|
+
<arguments>
|
36
|
+
<timeout>2</timeout>
|
37
|
+
</arguments>
|
38
|
+
</parameters>
|
39
|
+
<!--}}}-->
|
40
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
41
|
+
</call>
|
42
|
+
<call id="a2" endpoint="timeout">
|
43
|
+
<parameters>
|
44
|
+
<!--{{{-->
|
45
|
+
<label>Step 2</label>
|
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
|
+
<label>Step 3</label>
|
58
|
+
<method>:post</method>
|
59
|
+
<arguments>
|
60
|
+
<timeout>4</timeout>
|
61
|
+
</arguments>
|
62
|
+
</parameters>
|
63
|
+
<!--}}}-->
|
64
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
65
|
+
</call>
|
66
|
+
</description>
|
67
|
+
</dslx>
|
68
|
+
<status>
|
69
|
+
<id>0</id>
|
70
|
+
<message>undefined</message>
|
71
|
+
</status>
|
72
|
+
<description>
|
73
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
74
|
+
<!--{{{-->
|
75
|
+
<call id="a1" endpoint="timeout">
|
76
|
+
<parameters>
|
77
|
+
<!--{{{-->
|
78
|
+
<label>Step 1</label>
|
79
|
+
<method>:post</method>
|
80
|
+
<arguments>
|
81
|
+
<timeout>2</timeout>
|
82
|
+
</arguments>
|
83
|
+
</parameters>
|
84
|
+
<!--}}}-->
|
85
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
86
|
+
</call>
|
87
|
+
<call id="a2" endpoint="timeout">
|
88
|
+
<parameters>
|
89
|
+
<!--{{{-->
|
90
|
+
<label>Step 2</label>
|
91
|
+
<method>:post</method>
|
92
|
+
<arguments>
|
93
|
+
<timeout>4</timeout>
|
94
|
+
</arguments>
|
95
|
+
</parameters>
|
96
|
+
<!--}}}-->
|
97
|
+
<finalize output="result">data.x += "a2,"</finalize>
|
98
|
+
</call>
|
99
|
+
<call id="a3" endpoint="timeout">
|
100
|
+
<parameters>
|
101
|
+
<!--{{{-->
|
102
|
+
<label>Step 3</label>
|
103
|
+
<method>:post</method>
|
104
|
+
<arguments>
|
105
|
+
<timeout>4</timeout>
|
106
|
+
</arguments>
|
107
|
+
</parameters>
|
108
|
+
<!--}}}-->
|
109
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
110
|
+
</call>
|
111
|
+
</description>
|
112
|
+
</description>
|
113
|
+
<transformation>
|
114
|
+
<description type="copy"/>
|
115
|
+
<dataelements type="rest"/>
|
116
|
+
<endpoints type="rest"/>
|
117
|
+
</transformation>
|
118
|
+
</properties>
|
@@ -0,0 +1,118 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>a3c8e307-34c0-4048-9fc1-ad5d9e5a4419</uuid>
|
4
|
+
<info>Linear</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
</attributes>
|
8
|
+
<state>finished</state>
|
9
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
+
<positions/>
|
11
|
+
<dataelements>
|
12
|
+
<x>a2,a3,</x>
|
13
|
+
</dataelements>
|
14
|
+
<endpoints>
|
15
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
+
</endpoints>
|
17
|
+
<dsl>call :a1, :timeout, parameters: { :label => "Step 1", :method => :post, :arguments => [⭐(:name => :timeout, :value => "2")] }, finalize: <<-END
|
18
|
+
data.x += "a1,"
|
19
|
+
END
|
20
|
+
call :a2, :timeout, parameters: { :label => "Step 2", :method => :post, :arguments => [⭐(:name => :timeout, :value => "4")] }, finalize: <<-END
|
21
|
+
data.x += "a2,"
|
22
|
+
END
|
23
|
+
call :a3, :timeout, parameters: { :label => "Step 3", :method => :post, :arguments => [⭐(:name => :timeout, :value => "4")] }, finalize: <<-END
|
24
|
+
data.x += "a3,"
|
25
|
+
END
|
26
|
+
</dsl>
|
27
|
+
<dslx>
|
28
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
29
|
+
<!--{{{-->
|
30
|
+
<call id="a1" endpoint="timeout">
|
31
|
+
<parameters>
|
32
|
+
<!--{{{-->
|
33
|
+
<label>Step 1</label>
|
34
|
+
<method>:post</method>
|
35
|
+
<arguments>
|
36
|
+
<timeout>2</timeout>
|
37
|
+
</arguments>
|
38
|
+
</parameters>
|
39
|
+
<!--}}}-->
|
40
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
41
|
+
</call>
|
42
|
+
<call id="a2" endpoint="timeout">
|
43
|
+
<parameters>
|
44
|
+
<!--{{{-->
|
45
|
+
<label>Step 2</label>
|
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
|
+
<label>Step 3</label>
|
58
|
+
<method>:post</method>
|
59
|
+
<arguments>
|
60
|
+
<timeout>4</timeout>
|
61
|
+
</arguments>
|
62
|
+
</parameters>
|
63
|
+
<!--}}}-->
|
64
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
65
|
+
</call>
|
66
|
+
</description>
|
67
|
+
</dslx>
|
68
|
+
<status>
|
69
|
+
<id>0</id>
|
70
|
+
<message>undefined</message>
|
71
|
+
</status>
|
72
|
+
<description>
|
73
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
74
|
+
<!--{{{-->
|
75
|
+
<call id="a1" endpoint="timeout">
|
76
|
+
<parameters>
|
77
|
+
<!--{{{-->
|
78
|
+
<label>Step 1</label>
|
79
|
+
<method>:post</method>
|
80
|
+
<arguments>
|
81
|
+
<timeout>2</timeout>
|
82
|
+
</arguments>
|
83
|
+
</parameters>
|
84
|
+
<!--}}}-->
|
85
|
+
<finalize output="result">data.x += "a1,"</finalize>
|
86
|
+
</call>
|
87
|
+
<call id="a2" endpoint="timeout">
|
88
|
+
<parameters>
|
89
|
+
<!--{{{-->
|
90
|
+
<label>Step 2</label>
|
91
|
+
<method>:post</method>
|
92
|
+
<arguments>
|
93
|
+
<timeout>4</timeout>
|
94
|
+
</arguments>
|
95
|
+
</parameters>
|
96
|
+
<!--}}}-->
|
97
|
+
<finalize output="result">data.x += "a2,"</finalize>
|
98
|
+
</call>
|
99
|
+
<call id="a3" endpoint="timeout">
|
100
|
+
<parameters>
|
101
|
+
<!--{{{-->
|
102
|
+
<label>Step 3</label>
|
103
|
+
<method>:post</method>
|
104
|
+
<arguments>
|
105
|
+
<timeout>4</timeout>
|
106
|
+
</arguments>
|
107
|
+
</parameters>
|
108
|
+
<!--}}}-->
|
109
|
+
<finalize output="result">data.x += "a3,"</finalize>
|
110
|
+
</call>
|
111
|
+
</description>
|
112
|
+
</description>
|
113
|
+
<transformation>
|
114
|
+
<description type="copy"/>
|
115
|
+
<dataelements type="rest"/>
|
116
|
+
<endpoints type="rest"/>
|
117
|
+
</transformation>
|
118
|
+
</properties>
|
@@ -0,0 +1,156 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>ef148c0b-5fc6-4edd-92e6-f3811fe5ad88</uuid>
|
4
|
+
<info>Enter info here</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
</attributes>
|
8
|
+
<state>finished</state>
|
9
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
+
<positions/>
|
11
|
+
<dataelements>
|
12
|
+
<persons>0</persons>
|
13
|
+
<card>Visa_12345</card>
|
14
|
+
<airline>American Airlines</airline>
|
15
|
+
<hotels>["Ibis","Ibis","Ibis"]</hotels>
|
16
|
+
<from>Vienna</from>
|
17
|
+
<to>Prague</to>
|
18
|
+
<costs>680.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: { :label => "Book Airline", :method => :post, :arguments => [⭐(:name => :from, :value => "data.from"), ⭐(:name => :to, :value => "data.to"), ⭐(:name => :persons, :value => "data.persons")] }, finalize: <<-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 > 0} do
|
32
|
+
parallel_branch data.persons do |p|
|
33
|
+
call :a2, :bookHotel, parameters: { :label => "Book Hotel", :method => :post, :arguments => [⭐(:name => :to, :value => "data.to")] }, finalize: <<-END
|
34
|
+
data.hotels << result.value('id')
|
35
|
+
data.costs += result.value('costs').to_f
|
36
|
+
END
|
37
|
+
end
|
38
|
+
manipulate :a3, <<-END
|
39
|
+
data.persons -= 1
|
40
|
+
END
|
41
|
+
end
|
42
|
+
end
|
43
|
+
choose :inclusive do
|
44
|
+
alternative test{data.costs > 700} do
|
45
|
+
call :a4, :approve, parameters: { :label => "Approve Hotel", :method => :post, :arguments => [⭐(:name => :costs, :value => "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
|
+
<label>Book Airline</label>
|
54
|
+
<method>:post</method>
|
55
|
+
<arguments>
|
56
|
+
<from>data.from</from>
|
57
|
+
<to>data.to</to>
|
58
|
+
<persons>data.persons</persons>
|
59
|
+
</arguments>
|
60
|
+
</parameters>
|
61
|
+
<finalize output="result">data.airline = result.value('id')
|
62
|
+
data.costs += result.value('costs').to_f
|
63
|
+
status.update 1, 'Hotel'</finalize>
|
64
|
+
</call>
|
65
|
+
<parallel>
|
66
|
+
<loop mode="pre_test" condition="data.persons > 0">
|
67
|
+
<parallel_branch pass="data.persons" local="p">
|
68
|
+
<call id="a2" endpoint="bookHotel">
|
69
|
+
<parameters>
|
70
|
+
<label>Book Hotel</label>
|
71
|
+
<method>:post</method>
|
72
|
+
<arguments>
|
73
|
+
<to>data.to</to>
|
74
|
+
</arguments>
|
75
|
+
</parameters>
|
76
|
+
<finalize output="result">data.hotels << result.value('id')
|
77
|
+
data.costs += result.value('costs').to_f</finalize>
|
78
|
+
</call>
|
79
|
+
</parallel_branch>
|
80
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
81
|
+
</loop>
|
82
|
+
</parallel>
|
83
|
+
<choose mode="inclusive">
|
84
|
+
<alternative condition="data.costs > 700">
|
85
|
+
<call id="a4" endpoint="approve">
|
86
|
+
<parameters>
|
87
|
+
<label>Approve Hotel</label>
|
88
|
+
<method>:post</method>
|
89
|
+
<arguments>
|
90
|
+
<costs>data.costs</costs>
|
91
|
+
</arguments>
|
92
|
+
</parameters>
|
93
|
+
</call>
|
94
|
+
</alternative>
|
95
|
+
</choose>
|
96
|
+
</description>
|
97
|
+
</dslx>
|
98
|
+
<status>
|
99
|
+
<id>1</id>
|
100
|
+
<message>Hotel</message>
|
101
|
+
</status>
|
102
|
+
<description>
|
103
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
104
|
+
<call id="a1" endpoint="bookAir">
|
105
|
+
<parameters>
|
106
|
+
<label>Book Airline</label>
|
107
|
+
<method>:post</method>
|
108
|
+
<arguments>
|
109
|
+
<from>data.from</from>
|
110
|
+
<to>data.to</to>
|
111
|
+
<persons>data.persons</persons>
|
112
|
+
</arguments>
|
113
|
+
</parameters>
|
114
|
+
<finalize output="result">data.airline = result.value('id')
|
115
|
+
data.costs += result.value('costs').to_f
|
116
|
+
status.update 1, 'Hotel'</finalize>
|
117
|
+
</call>
|
118
|
+
<parallel>
|
119
|
+
<loop mode="pre_test" condition="data.persons > 0">
|
120
|
+
<parallel_branch pass="data.persons" local="p">
|
121
|
+
<call id="a2" endpoint="bookHotel">
|
122
|
+
<parameters>
|
123
|
+
<label>Book Hotel</label>
|
124
|
+
<method>:post</method>
|
125
|
+
<arguments>
|
126
|
+
<to>data.to</to>
|
127
|
+
</arguments>
|
128
|
+
</parameters>
|
129
|
+
<finalize output="result">data.hotels << result.value('id')
|
130
|
+
data.costs += result.value('costs').to_f</finalize>
|
131
|
+
</call>
|
132
|
+
</parallel_branch>
|
133
|
+
<manipulate id="a3">data.persons -= 1</manipulate>
|
134
|
+
</loop>
|
135
|
+
</parallel>
|
136
|
+
<choose mode="inclusive">
|
137
|
+
<alternative condition="data.costs > 700">
|
138
|
+
<call id="a4" endpoint="approve">
|
139
|
+
<parameters>
|
140
|
+
<label>Approve Hotel</label>
|
141
|
+
<method>:post</method>
|
142
|
+
<arguments>
|
143
|
+
<costs>data.costs</costs>
|
144
|
+
</arguments>
|
145
|
+
</parameters>
|
146
|
+
</call>
|
147
|
+
</alternative>
|
148
|
+
</choose>
|
149
|
+
</description>
|
150
|
+
</description>
|
151
|
+
<transformation>
|
152
|
+
<description type="copy"/>
|
153
|
+
<dataelements type="rest"/>
|
154
|
+
<endpoints type="rest"/>
|
155
|
+
</transformation>
|
156
|
+
</properties>
|