cpee 1.3.142 → 1.3.143
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/controller.rb +2 -2
- 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/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 +101 -99
- data/server/instances/11/properties.xml +0 -109
@@ -1,83 +1,23 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<info>
|
3
|
-
<state>
|
2
|
+
<info>asdad</info>
|
3
|
+
<state>ready</state>
|
4
4
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
5
5
|
<positions/>
|
6
|
-
<dataelements
|
7
|
-
|
8
|
-
|
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
|
6
|
+
<dataelements/>
|
7
|
+
<endpoints/>
|
8
|
+
<dsl><?xml version="1.0"?>
|
27
9
|
</dsl>
|
28
10
|
<dslx>
|
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>
|
11
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
50
12
|
</dslx>
|
51
13
|
<status>
|
52
14
|
<id>0</id>
|
53
15
|
<message>undefined</message>
|
54
16
|
</status>
|
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>
|
17
|
+
<description/>
|
78
18
|
<transformation>
|
79
|
-
<description type="
|
80
|
-
<dataelements type="
|
81
|
-
<endpoints type="
|
19
|
+
<description type="rest">http://localhost:9295</description>
|
20
|
+
<dataelements type="rest">http://localhost:9295</dataelements>
|
21
|
+
<endpoints type="rest">http://localhost:9295</endpoints>
|
82
22
|
</transformation>
|
83
23
|
</properties>
|
@@ -1,51 +1,55 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
2
|
<info>Enter info here</info>
|
3
|
-
<state>
|
3
|
+
<state>ready</state>
|
4
4
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
5
5
|
<positions/>
|
6
6
|
<dataelements>
|
7
|
-
<
|
8
|
-
<json_lv>Workflow Technologies</json_lv>
|
9
|
-
<json_lvnr/>
|
10
|
-
<xml_lv>Workflow Technologies</xml_lv>
|
11
|
-
<xml_lvnr>050311</xml_lvnr>
|
7
|
+
<a/>
|
12
8
|
</dataelements>
|
13
9
|
<endpoints>
|
14
10
|
<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
11
|
</endpoints>
|
18
|
-
<dsl>
|
19
|
-
data.
|
20
|
-
data.json_lv = result['lv']
|
21
|
-
data.json_lvnr = result['lv']['lvnr']
|
12
|
+
<dsl>manipulate :a22, <<-end
|
13
|
+
data.a = 0
|
22
14
|
end
|
23
|
-
call :
|
24
|
-
data.
|
25
|
-
|
15
|
+
call :a26, :timeout, { :label => "B", :method => nil, :type => "serviceTask", :mid => "sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819", :parameters => { :timeout => 1 } }, <<-end
|
16
|
+
data.a += 1
|
17
|
+
end
|
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
|
26
22
|
end
|
27
23
|
</dsl>
|
28
24
|
<dslx>
|
29
25
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
30
|
-
<
|
31
|
-
|
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">
|
26
|
+
<manipulate id="a22" output="result" language="application/javascript">data.a = 0</manipulate>
|
27
|
+
<call id="a26" endpoint="timeout">
|
41
28
|
<parameters>
|
42
|
-
<label>
|
43
|
-
<method
|
44
|
-
<
|
29
|
+
<label>B</label>
|
30
|
+
<method/>
|
31
|
+
<type>serviceTask</type>
|
32
|
+
<mid>sid-49FC5AAA-6F02-4F10-9379-6AB4AADDF819</mid>
|
33
|
+
<parameters>
|
34
|
+
<timeout>1</timeout>
|
35
|
+
</parameters>
|
45
36
|
</parameters>
|
46
|
-
<manipulate>data.
|
47
|
-
data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
37
|
+
<manipulate output="result" language="application/javascript">data.a += 1</manipulate>
|
48
38
|
</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>
|
49
53
|
</description>
|
50
54
|
</dslx>
|
51
55
|
<status>
|
@@ -53,31 +57,147 @@ data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
|
53
57
|
<message>undefined</message>
|
54
58
|
</status>
|
55
59
|
<description>
|
56
|
-
<
|
57
|
-
<
|
58
|
-
|
59
|
-
|
60
|
-
<
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
60
|
+
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:signavio="http://www.signavio.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Signavio Process Editor, http://www.signavio.com" exporterVersion="7.6.0" expressionLanguage="http://www.w3.org/1999/XPath" id="sid-3defc3e5-0d9d-49ab-a544-09f484e9665e" targetNamespace="http://www.signavio.com/bpmn20" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
|
61
|
+
<itemDefinition id="timeout" isCollection="false" structureRef="http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php"/>
|
62
|
+
<process id="sid-e7ec7f0f-533f-46b9-8508-e6cab411a15d" isClosed="false" isExecutable="true" processType="None">
|
63
|
+
<property id="sid-8b87c302-5376-421b-9cd9-e41aaa198a14" itemSubjectRef="timeout">
|
64
|
+
<dataState id="sid-1117f953-b5d5-42ef-b707-c082dc3d978b" name="cpee:endpoint"/>
|
65
|
+
</property>
|
66
|
+
<property id="sid-d0b230e9-4665-40da-8d4c-cfdbd2c30c3a" name="a">
|
67
|
+
<dataState id="sid-41a3c137-21ff-488f-920a-66bd2de5e2de" name="cpee:dataelement"/>
|
68
|
+
</property>
|
69
|
+
<scriptTask completionQuantity="1" id="sid-AE367C8A-F10A-4D12-A504-D9D1F26EC9DB" isForCompensation="false" name="A" scriptFormat="application/javascript" startQuantity="1">
|
70
|
+
<extensionElements>
|
71
|
+
<signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
|
72
|
+
<signavio:signavioMetaData metaKey="risklevel" metaValue=""/>
|
73
|
+
<signavio:signavioMetaData metaKey="externaldocuments" metaValue="[]"/>
|
74
|
+
</extensionElements>
|
75
|
+
<incoming>sid-94FB40DD-638F-456C-98F7-1A1C1D7289DA</incoming>
|
76
|
+
<outgoing>sid-564DD764-715A-4CE7-9041-049B1378F1E9</outgoing>
|
77
|
+
<script>data.a = 0
|
78
|
+
</script>
|
79
|
+
</scriptTask>
|
80
|
+
<exclusiveGateway default="sid-50971135-760B-4E94-A668-750D20161820" gatewayDirection="Diverging" id="sid-13A34C12-BE7A-4B17-A6C9-064F97F5C720" name="">
|
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>
|
77
197
|
</description>
|
78
198
|
<transformation>
|
79
|
-
<description type="
|
80
|
-
<dataelements type="
|
81
|
-
<endpoints type="
|
199
|
+
<description type="rest">http://localhost:9295/bpmn2/</description>
|
200
|
+
<dataelements type="rest">http://localhost:9295/bpmn2/</dataelements>
|
201
|
+
<endpoints type="rest">http://localhost:9295/bpmn2/</endpoints>
|
82
202
|
</transformation>
|
83
203
|
</properties>
|
@@ -1,51 +1,93 @@
|
|
1
1
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<info>
|
3
|
-
<state>
|
2
|
+
<info>sdff</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
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
9
|
+
<persons>0</persons>
|
10
|
+
<card>Visa_12345</card>
|
11
|
+
<airline>Lufthansa</airline>
|
12
|
+
<hotels>["Mariott","Ibis","Ibis"]</hotels>
|
13
|
+
<from>Vienna</from>
|
14
|
+
<to>Prague</to>
|
15
|
+
<costs>1936.0</costs>
|
12
16
|
</dataelements>
|
13
17
|
<endpoints>
|
14
|
-
<
|
15
|
-
<
|
16
|
-
<
|
18
|
+
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
19
|
+
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
20
|
+
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
17
21
|
</endpoints>
|
18
|
-
<dsl>call :a1, :
|
19
|
-
data.
|
20
|
-
data.
|
21
|
-
|
22
|
+
<dsl>call :a1, :bookAir, { :label => "blaa", :method => :post, :parameters => {:from => data.from, :to => data.to, :persons => data.persons} }, <<-end
|
23
|
+
data.airline = result.value('id')
|
24
|
+
data.costs += result.value('costs').to_f
|
25
|
+
status.update 1, 'Hotel'
|
22
26
|
end
|
23
|
-
|
24
|
-
data.
|
25
|
-
data.
|
27
|
+
parallel do
|
28
|
+
loop pre_test{data.persons > 0} do
|
29
|
+
parallel_branch data.persons do |p|
|
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
|
26
44
|
end
|
27
45
|
</dsl>
|
28
46
|
<dslx>
|
29
47
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
30
|
-
<call id="a1" endpoint="
|
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">
|
48
|
+
<call id="a1" endpoint="bookAir">
|
41
49
|
<parameters>
|
42
|
-
<label>
|
43
|
-
<method
|
44
|
-
<parameters
|
50
|
+
<label>"blaa"</label>
|
51
|
+
<method>:post</method>
|
52
|
+
<parameters>
|
53
|
+
<from>data.from</from>
|
54
|
+
<to>data.to</to>
|
55
|
+
<persons>data.persons</persons>
|
56
|
+
</parameters>
|
45
57
|
</parameters>
|
46
|
-
<manipulate>data.
|
47
|
-
data.
|
58
|
+
<manipulate>data.airline = result.value('id')
|
59
|
+
data.costs += result.value('costs').to_f
|
60
|
+
status.update 1, 'Hotel'</manipulate>
|
48
61
|
</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>
|
49
91
|
</description>
|
50
92
|
</dslx>
|
51
93
|
<status>
|
@@ -54,30 +96,54 @@ data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
|
|
54
96
|
</status>
|
55
97
|
<description>
|
56
98
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
57
|
-
<call id="a1" endpoint="
|
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">
|
99
|
+
<call id="a1" endpoint="bookAir">
|
68
100
|
<parameters>
|
69
|
-
<label>
|
70
|
-
<method
|
71
|
-
<parameters
|
101
|
+
<label>"blaa"</label>
|
102
|
+
<method>:post</method>
|
103
|
+
<parameters>
|
104
|
+
<from>data.from</from>
|
105
|
+
<to>data.to</to>
|
106
|
+
<persons>data.persons</persons>
|
107
|
+
</parameters>
|
72
108
|
</parameters>
|
73
|
-
<manipulate>data.
|
74
|
-
data.
|
109
|
+
<manipulate>data.airline = result.value('id')
|
110
|
+
data.costs += result.value('costs').to_f
|
111
|
+
status.update 1, 'Hotel'</manipulate>
|
75
112
|
</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>
|
76
142
|
</description>
|
77
143
|
</description>
|
78
144
|
<transformation>
|
79
145
|
<description type="copy"/>
|
80
|
-
<dataelements type="
|
81
|
-
<endpoints type="
|
146
|
+
<dataelements type="rest"/>
|
147
|
+
<endpoints type="rest"/>
|
82
148
|
</transformation>
|
83
149
|
</properties>
|