cpee 1.3.139 → 1.3.140
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/server/instances/1/properties.xml +101 -69
- data/server/instances/10/properties.xml +70 -106
- data/server/instances/11/properties.xml +109 -0
- 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
- data/server/resources/transformation_dslx.xsl +3 -0
- metadata +99 -101
- 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
@@ -1,23 +1,83 @@
|
|
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
5
|
<positions/>
|
6
|
-
<dataelements
|
7
|
-
|
8
|
-
|
6
|
+
<dataelements>
|
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>
|
12
|
+
</dataelements>
|
13
|
+
<endpoints>
|
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>
|
17
|
+
</endpoints>
|
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']
|
22
|
+
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)')
|
26
|
+
end
|
9
27
|
</dsl>
|
10
28
|
<dslx>
|
11
|
-
<description xmlns="http://cpee.org/ns/description/1.0"
|
29
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
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">
|
41
|
+
<parameters>
|
42
|
+
<label>Get XML</label>
|
43
|
+
<method>get</method>
|
44
|
+
<parameters/>
|
45
|
+
</parameters>
|
46
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
47
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
48
|
+
</call>
|
49
|
+
</description>
|
12
50
|
</dslx>
|
13
51
|
<status>
|
14
52
|
<id>0</id>
|
15
53
|
<message>undefined</message>
|
16
54
|
</status>
|
17
|
-
<description
|
55
|
+
<description>
|
56
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
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">
|
68
|
+
<parameters>
|
69
|
+
<label>Get XML</label>
|
70
|
+
<method>get</method>
|
71
|
+
<parameters/>
|
72
|
+
</parameters>
|
73
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
74
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
75
|
+
</call>
|
76
|
+
</description>
|
77
|
+
</description>
|
18
78
|
<transformation>
|
19
|
-
<description type="
|
20
|
-
<dataelements type="
|
21
|
-
<endpoints type="
|
79
|
+
<description type="copy"/>
|
80
|
+
<dataelements type="xslt"/>
|
81
|
+
<endpoints type="xslt"/>
|
22
82
|
</transformation>
|
23
83
|
</properties>
|
@@ -1,55 +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
|
-
<
|
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>
|
8
12
|
</dataelements>
|
9
13
|
<endpoints>
|
10
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>
|
11
17
|
</endpoints>
|
12
|
-
<dsl>
|
13
|
-
data.
|
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']
|
14
22
|
end
|
15
|
-
call :
|
16
|
-
data.
|
17
|
-
|
18
|
-
loop pre_test("data.a < 3") do
|
19
|
-
call :a26, :timeout, { :label => "B", :method => nil, :type => "serviceTask", :mid => "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters => { :timeout => 1 } }, <<-end
|
20
|
-
data.a += 1
|
21
|
-
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)')
|
22
26
|
end
|
23
27
|
</dsl>
|
24
28
|
<dslx>
|
25
29
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
26
|
-
<
|
27
|
-
|
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">
|
28
41
|
<parameters>
|
29
|
-
<label>
|
30
|
-
<method
|
31
|
-
<
|
32
|
-
<mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
|
33
|
-
<parameters>
|
34
|
-
<timeout>1</timeout>
|
35
|
-
</parameters>
|
42
|
+
<label>Get XML</label>
|
43
|
+
<method>get</method>
|
44
|
+
<parameters/>
|
36
45
|
</parameters>
|
37
|
-
<manipulate
|
46
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
47
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
38
48
|
</call>
|
39
|
-
<loop pre_test="data.a < 3" language="text/javascript">
|
40
|
-
<call id="a26" endpoint="timeout">
|
41
|
-
<parameters>
|
42
|
-
<label>B</label>
|
43
|
-
<method/>
|
44
|
-
<type>serviceTask</type>
|
45
|
-
<mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
|
46
|
-
<parameters>
|
47
|
-
<timeout>1</timeout>
|
48
|
-
</parameters>
|
49
|
-
</parameters>
|
50
|
-
<manipulate output="result" language="application/javascript">data.a += 1</manipulate>
|
51
|
-
</call>
|
52
|
-
</loop>
|
53
49
|
</description>
|
54
50
|
</dslx>
|
55
51
|
<status>
|
@@ -57,147 +53,31 @@ end
|
|
57
53
|
<message>undefined</message>
|
58
54
|
</status>
|
59
55
|
<description>
|
60
|
-
<
|
61
|
-
<
|
62
|
-
|
63
|
-
|
64
|
-
<
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
</
|
75
|
-
<
|
76
|
-
|
77
|
-
|
78
|
-
</
|
79
|
-
|
80
|
-
|
81
|
-
<extensionElements>
|
82
|
-
<signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
|
83
|
-
</extensionElements>
|
84
|
-
<incoming>sid-5767BE20-FA77-40C8-8BA1-5CE7F08BE49A</incoming>
|
85
|
-
<outgoing>sid-50971135-760B-4E94-A668-750D20161820</outgoing>
|
86
|
-
<outgoing>sid-6287006E-67AC-4F0B-957B-DAA1B25481BB</outgoing>
|
87
|
-
</exclusiveGateway>
|
88
|
-
<endEvent id="sid-A9E292EC-7A6E-477C-9FB7-CBBF0FCEB65A" name="">
|
89
|
-
<extensionElements>
|
90
|
-
<signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
|
91
|
-
</extensionElements>
|
92
|
-
<incoming>sid-50971135-760B-4E94-A668-750D20161820</incoming>
|
93
|
-
</endEvent>
|
94
|
-
<startEvent id="sid-2A054430-1FC6-495B-B993-C52D7E8F4C5A" name="">
|
95
|
-
<extensionElements>
|
96
|
-
<signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"/>
|
97
|
-
</extensionElements>
|
98
|
-
<outgoing>sid-94FB40DD-638F-456C-98F7-1A1C1D7289DA</outgoing>
|
99
|
-
</startEvent>
|
100
|
-
<serviceTask completionQuantity="1" id="sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819" implementation="unspecified" isForCompensation="false" name="B " startQuantity="1">
|
101
|
-
<extensionElements>
|
102
|
-
<signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
|
103
|
-
<signavio:signavioMetaData metaKey="risklevel" metaValue=""/>
|
104
|
-
<signavio:signavioMetaData metaKey="externaldocuments" metaValue="[]"/>
|
105
|
-
</extensionElements>
|
106
|
-
<incoming>sid-564DD764-715A-4CE7-9041-049B1378F1E9</incoming>
|
107
|
-
<incoming>sid-6287006E-67AC-4F0B-957B-DAA1B25481BB</incoming>
|
108
|
-
<outgoing>sid-4D71E4A1-65DE-482D-934B-A8DA84976540</outgoing>
|
109
|
-
<ioSpecification id="sid-fd521444-b8e5-4112-852b-e97dc282c7bc">
|
110
|
-
<dataInput id="sid-267030ed-8cfb-4efc-864a-7c76731717df" itemSubjectRef="1" name="timeout"/>
|
111
|
-
<dataOutput id="result" isCollection="true" name="result"/>
|
112
|
-
</ioSpecification>
|
113
|
-
<property id="sid-3c14c71f-a713-43cb-a97e-8e0feef6c76f" itemSubjectRef="timeout" name="cpee:endpoint"/>
|
114
|
-
<dataOutputAssociation id="sid-d12149f5-e3fe-4be8-9572-ac6f52590e6c">
|
115
|
-
<sourceRef>result</sourceRef>
|
116
|
-
<targetRef>sid-2B36B8D1-1C12-42B0-B9F4-95B8D987A952</targetRef>
|
117
|
-
</dataOutputAssociation>
|
118
|
-
</serviceTask>
|
119
|
-
<scriptTask completionQuantity="1" id="sid-2B36B8D1-1C12-42B0-B9F4-95B8D987A952" isForCompensation="false" name="BS" scriptFormat="application/javascript" startQuantity="1">
|
120
|
-
<extensionElements>
|
121
|
-
<signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
|
122
|
-
<signavio:signavioMetaData metaKey="risklevel" metaValue=""/>
|
123
|
-
<signavio:signavioMetaData metaKey="externaldocuments" metaValue="[]"/>
|
124
|
-
</extensionElements>
|
125
|
-
<incoming>sid-4D71E4A1-65DE-482D-934B-A8DA84976540</incoming>
|
126
|
-
<outgoing>sid-5767BE20-FA77-40C8-8BA1-5CE7F08BE49A</outgoing>
|
127
|
-
<script>data.a += 1
|
128
|
-
</script>
|
129
|
-
</scriptTask>
|
130
|
-
<sequenceFlow id="sid-94FB40DD-638F-456C-98F7-1A1C1D7289DA" name="" sourceRef="sid-2A054430-1FC6-495B-B993-C52D7E8F4C5A" targetRef="sid-AE367C8A-F10A-4D12-A504-D9D1F26EC9DB"/>
|
131
|
-
<sequenceFlow id="sid-564DD764-715A-4CE7-9041-049B1378F1E9" name="" sourceRef="sid-AE367C8A-F10A-4D12-A504-D9D1F26EC9DB" targetRef="sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819"/>
|
132
|
-
<sequenceFlow id="sid-50971135-760B-4E94-A668-750D20161820" name="" sourceRef="sid-13A34C12-BE7A-4B17-A6C9-064F97F5C720" targetRef="sid-A9E292EC-7A6E-477C-9FB7-CBBF0FCEB65A"/>
|
133
|
-
<sequenceFlow id="sid-5767BE20-FA77-40C8-8BA1-5CE7F08BE49A" name="" sourceRef="sid-2B36B8D1-1C12-42B0-B9F4-95B8D987A952" targetRef="sid-13A34C12-BE7A-4B17-A6C9-064F97F5C720"/>
|
134
|
-
<sequenceFlow id="sid-4D71E4A1-65DE-482D-934B-A8DA84976540" name="" sourceRef="sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819" targetRef="sid-2B36B8D1-1C12-42B0-B9F4-95B8D987A952"/>
|
135
|
-
<sequenceFlow id="sid-6287006E-67AC-4F0B-957B-DAA1B25481BB" name="" sourceRef="sid-13A34C12-BE7A-4B17-A6C9-064F97F5C720" targetRef="sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819">
|
136
|
-
<conditionExpression id="sid-396bdaa2-591f-41ab-842f-e3e7b0e21f79" xsi:type="tFormalExpression">data.a < 3</conditionExpression>
|
137
|
-
</sequenceFlow>
|
138
|
-
</process>
|
139
|
-
<bpmndi:BPMNDiagram id="sid-386eba6e-be23-4074-b5d6-90b0941ad55e">
|
140
|
-
<bpmndi:BPMNPlane bpmnElement="sid-e7ec7f0f-533f-46b9-8508-e6cab411a15d" id="sid-31933578-8c41-4391-9a75-accbd8fc04a2">
|
141
|
-
<bpmndi:BPMNShape bpmnElement="sid-AE367C8A-F10A-4D12-A504-D9D1F26EC9DB" id="sid-AE367C8A-F10A-4D12-A504-D9D1F26EC9DB_gui">
|
142
|
-
<omgdc:Bounds height="80.0" width="100.0" x="135.0" y="75.0"/>
|
143
|
-
<bpmndi:BPMNLabel>
|
144
|
-
<omgdc:Bounds height="12.0" width="8.571426391601562" x="180.71428680419922" y="108.0"/>
|
145
|
-
</bpmndi:BPMNLabel>
|
146
|
-
</bpmndi:BPMNShape>
|
147
|
-
<bpmndi:BPMNShape bpmnElement="sid-13A34C12-BE7A-4B17-A6C9-064F97F5C720" id="sid-13A34C12-BE7A-4B17-A6C9-064F97F5C720_gui" isMarkerVisible="true">
|
148
|
-
<omgdc:Bounds height="40.0" width="40.0" x="585.0" y="95.0"/>
|
149
|
-
</bpmndi:BPMNShape>
|
150
|
-
<bpmndi:BPMNShape bpmnElement="sid-A9E292EC-7A6E-477C-9FB7-CBBF0FCEB65A" id="sid-A9E292EC-7A6E-477C-9FB7-CBBF0FCEB65A_gui">
|
151
|
-
<omgdc:Bounds height="28.0" width="28.0" x="670.0" y="101.0"/>
|
152
|
-
</bpmndi:BPMNShape>
|
153
|
-
<bpmndi:BPMNShape bpmnElement="sid-2A054430-1FC6-495B-B993-C52D7E8F4C5A" id="sid-2A054430-1FC6-495B-B993-C52D7E8F4C5A_gui">
|
154
|
-
<omgdc:Bounds height="30.0" width="30.0" x="60.0" y="100.0"/>
|
155
|
-
</bpmndi:BPMNShape>
|
156
|
-
<bpmndi:BPMNShape bpmnElement="sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819" id="sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819_gui">
|
157
|
-
<omgdc:Bounds height="80.0" width="100.0" x="278.0" y="75.0"/>
|
158
|
-
<bpmndi:BPMNLabel>
|
159
|
-
<omgdc:Bounds height="12.0" width="8.571426391601562" x="323.7142868041992" y="108.0"/>
|
160
|
-
</bpmndi:BPMNLabel>
|
161
|
-
</bpmndi:BPMNShape>
|
162
|
-
<bpmndi:BPMNShape bpmnElement="sid-2B36B8D1-1C12-42B0-B9F4-95B8D987A952" id="sid-2B36B8D1-1C12-42B0-B9F4-95B8D987A952_gui">
|
163
|
-
<omgdc:Bounds height="80.0" width="100.0" x="440.0" y="75.0"/>
|
164
|
-
<bpmndi:BPMNLabel>
|
165
|
-
<omgdc:Bounds height="12.0" width="17.142852783203125" x="481.42857360839844" y="108.0"/>
|
166
|
-
</bpmndi:BPMNLabel>
|
167
|
-
</bpmndi:BPMNShape>
|
168
|
-
<bpmndi:BPMNEdge bpmnElement="sid-50971135-760B-4E94-A668-750D20161820" id="sid-50971135-760B-4E94-A668-750D20161820_gui">
|
169
|
-
<omgdi:waypoint x="625.0" y="115.37579617834395"/>
|
170
|
-
<omgdi:waypoint x="670.0" y="115.08917197452229"/>
|
171
|
-
</bpmndi:BPMNEdge>
|
172
|
-
<bpmndi:BPMNEdge bpmnElement="sid-6287006E-67AC-4F0B-957B-DAA1B25481BB" id="sid-6287006E-67AC-4F0B-957B-DAA1B25481BB_gui">
|
173
|
-
<omgdi:waypoint x="605.5" y="135.0"/>
|
174
|
-
<omgdi:waypoint x="605.5" y="214.0"/>
|
175
|
-
<omgdi:waypoint x="328.0" y="214.0"/>
|
176
|
-
<omgdi:waypoint x="328.0" y="155.0"/>
|
177
|
-
</bpmndi:BPMNEdge>
|
178
|
-
<bpmndi:BPMNEdge bpmnElement="sid-4D71E4A1-65DE-482D-934B-A8DA84976540" id="sid-4D71E4A1-65DE-482D-934B-A8DA84976540_gui">
|
179
|
-
<omgdi:waypoint x="378.0" y="115.0"/>
|
180
|
-
<omgdi:waypoint x="440.0" y="115.0"/>
|
181
|
-
</bpmndi:BPMNEdge>
|
182
|
-
<bpmndi:BPMNEdge bpmnElement="sid-5767BE20-FA77-40C8-8BA1-5CE7F08BE49A" id="sid-5767BE20-FA77-40C8-8BA1-5CE7F08BE49A_gui">
|
183
|
-
<omgdi:waypoint x="540.0" y="115.5"/>
|
184
|
-
<omgdi:waypoint x="585.0" y="115.5"/>
|
185
|
-
</bpmndi:BPMNEdge>
|
186
|
-
<bpmndi:BPMNEdge bpmnElement="sid-94FB40DD-638F-456C-98F7-1A1C1D7289DA" id="sid-94FB40DD-638F-456C-98F7-1A1C1D7289DA_gui">
|
187
|
-
<omgdi:waypoint x="90.0" y="115.0"/>
|
188
|
-
<omgdi:waypoint x="135.0" y="115.0"/>
|
189
|
-
</bpmndi:BPMNEdge>
|
190
|
-
<bpmndi:BPMNEdge bpmnElement="sid-564DD764-715A-4CE7-9041-049B1378F1E9" id="sid-564DD764-715A-4CE7-9041-049B1378F1E9_gui">
|
191
|
-
<omgdi:waypoint x="235.0" y="115.0"/>
|
192
|
-
<omgdi:waypoint x="278.0" y="115.0"/>
|
193
|
-
</bpmndi:BPMNEdge>
|
194
|
-
</bpmndi:BPMNPlane>
|
195
|
-
</bpmndi:BPMNDiagram>
|
196
|
-
</definitions>
|
56
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
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">
|
68
|
+
<parameters>
|
69
|
+
<label>Get XML</label>
|
70
|
+
<method>get</method>
|
71
|
+
<parameters/>
|
72
|
+
</parameters>
|
73
|
+
<manipulate>data.xml_lv = result.find('string(/data/lv)')
|
74
|
+
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
75
|
+
</call>
|
76
|
+
</description>
|
197
77
|
</description>
|
198
78
|
<transformation>
|
199
|
-
<description type="
|
200
|
-
<dataelements type="
|
201
|
-
<endpoints type="
|
79
|
+
<description type="copy"/>
|
80
|
+
<dataelements type="xslt"/>
|
81
|
+
<endpoints type="xslt"/>
|
202
82
|
</transformation>
|
203
83
|
</properties>
|
@@ -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>
|