cpee 1.3.175 → 1.3.176
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/index.html +1 -1
- data/cockpit/js/instance.js +40 -37
- data/cockpit/lib/relaxngui.js +4 -0
- data/cockpit/lib/ui.css +0 -5
- data/cockpit/lib/ui.js +6 -2
- data/cockpit/rngtest.html +74 -0
- data/cockpit/rngtest.rng +60 -0
- data/cockpit/rngtest.xml +15 -0
- data/cockpit/testsets/Concurrent.xml +2 -2
- data/cockpit/testsets/Coopis Testset.xml +4 -4
- data/cockpit/testsets/Linear.xml +3 -3
- data/cockpit/testsets/Mangler 1.xml +1 -1
- data/cockpit/testsets/Mangler 2.xml +8 -8
- data/cockpit/testsets/SOPROMO Test Sonification.xml +10 -10
- data/cockpit/testsets/Syncing P34 1.xml +4 -4
- data/cockpit/testsets/Syncing P34 2.xml +4 -4
- data/cockpit/testsets/Syncing P34 3.xml +4 -4
- data/cockpit/testsets/Syncing P34.xml +4 -4
- data/cockpit/testsets/TEST - Wrong Positions.xml +20 -20
- data/cockpit/testsets/Update.xml +11 -0
- data/cockpit/testsets/Worklist Test.xml +39 -0
- data/cockpit/testsets/testsets.xml +4 -0
- data/cpee.gemspec +1 -1
- data/lib/cpee/callback.rb +6 -2
- data/lib/cpee/controller.rb +8 -8
- data/lib/cpee/handler_notifications.rb +4 -4
- data/lib/cpee/handler_properties.rb +5 -5
- data/lib/cpee/implementation.rb +1 -1
- data/server/handlerwrappers/default.rb +30 -25
- data/server/handlerwrappers/soap.rb +13 -13
- data/server/instances/1/properties.xml +69 -101
- data/server/instances/10/properties.xml +106 -70
- data/server/instances/11/properties.xml +133 -73
- data/server/instances/12/properties.xml +1 -0
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +1 -0
- data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +1 -0
- data/server/instances/{13/notifications/4ff0cde5161c44dae49b263cbc12eaf8 → 14/notifications/5bcce90b170116a77fb25aea4e133acc}/subscription.xml +0 -0
- data/server/instances/14/properties.xml +160 -160
- data/server/instances/15/properties.xml +28 -314
- data/server/instances/16/properties.xml +28 -249
- data/server/instances/17/properties.xml +28 -130
- data/server/instances/18/properties.xml +3 -2
- data/server/instances/19/properties.xml +0 -1
- data/server/instances/2/properties.xml +191 -44
- data/server/instances/20/properties.xml +46 -0
- data/server/instances/21/properties.xml +46 -0
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +1 -0
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +1 -0
- data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +23 -0
- data/server/instances/22/properties.xml +112 -0
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +1 -0
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +1 -0
- data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +23 -0
- data/server/instances/23/properties.xml +148 -0
- data/server/instances/24/properties.xml +66 -0
- data/server/instances/25/properties.xml +46 -0
- data/server/instances/26/properties.xml +112 -0
- data/server/instances/27/properties.xml +212 -0
- data/server/instances/28/properties.xml +363 -0
- data/server/instances/29/properties.xml +148 -0
- data/server/instances/3/properties.xml +70 -44
- data/server/instances/30/properties.xml +150 -0
- data/server/instances/31/properties.xml +52 -0
- data/server/instances/32/properties.xml +52 -0
- data/server/instances/33/properties.xml +60 -0
- data/server/instances/34/properties.xml +148 -0
- data/server/instances/35/properties.xml +148 -0
- data/server/instances/36/properties.xml +150 -0
- data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/consumer-secret +1 -0
- data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/producer-secret +1 -0
- data/server/instances/37/notifications/2b67c793efcea22d88beaa28249001be/subscription.xml +34 -0
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/consumer-secret +1 -0
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/producer-secret +1 -0
- data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/subscription.xml +33 -0
- data/server/instances/37/properties.xml +57 -0
- 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
- data/server/resources/topics.xml +15 -15
- data/server/resources/transformation_dslx.xsl +43 -5
- data/test/cb.rb +9 -0
- metadata +44 -9
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/consumer-secret +0 -1
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/producer-secret +0 -1
- data/server/instances/12/notifications/8d7f2ae546a742fce3a0a488266ea51d/subscription.xml +0 -6
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/consumer-secret +0 -1
- data/server/instances/13/notifications/4ff0cde5161c44dae49b263cbc12eaf8/producer-secret +0 -1
@@ -0,0 +1,150 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<info>Enter info here</info>
|
4
|
+
<modeltype>CPEE</modeltype>
|
5
|
+
</attributes>
|
6
|
+
<state>stopped</state>
|
7
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
8
|
+
<positions>
|
9
|
+
<a4>at</a4>
|
10
|
+
</positions>
|
11
|
+
<dataelements>
|
12
|
+
<persons>0</persons>
|
13
|
+
<card>Visa_12345</card>
|
14
|
+
<airline>FlyNiki</airline>
|
15
|
+
<hotels>["Mariott","Mariott","Rathaus"]</hotels>
|
16
|
+
<from>Vienna</from>
|
17
|
+
<to>Prague</to>
|
18
|
+
<costs>1085.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, { :method => :post, :parameters => {:from => data.from, :to => data.to, :persons => data.persons} }, <<-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, { :method => :post, :parameters => {:to => data.to} }, <<-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 "data.costs > 700" do
|
45
|
+
call :a4, :approve, { :method => :post, :parameters => {:costs => 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
|
+
<parameters>
|
55
|
+
<from>data.from</from>
|
56
|
+
<to>data.to</to>
|
57
|
+
<persons>data.persons</persons>
|
58
|
+
</parameters>
|
59
|
+
</parameters>
|
60
|
+
<manipulate output="result"> data.airline = result.value('id')
|
61
|
+
data.costs += result.value('costs').to_f
|
62
|
+
status.update 1, 'Hotel'</manipulate>
|
63
|
+
</call>
|
64
|
+
<parallel>
|
65
|
+
<loop pre_test="data.persons > 0">
|
66
|
+
<parallel_branch pass="data.persons" local="p">
|
67
|
+
<call id="a2" endpoint="bookHotel">
|
68
|
+
<parameters>
|
69
|
+
<method>:post</method>
|
70
|
+
<parameters>
|
71
|
+
<to>data.to</to>
|
72
|
+
</parameters>
|
73
|
+
</parameters>
|
74
|
+
<manipulate output="result"> data.hotels << result.value('id')
|
75
|
+
data.costs += result.value('costs').to_f</manipulate>
|
76
|
+
</call>
|
77
|
+
</parallel_branch>
|
78
|
+
<manipulate id="a3"> data.persons -= 1</manipulate>
|
79
|
+
</loop>
|
80
|
+
</parallel>
|
81
|
+
<choose>
|
82
|
+
<alternative condition="data.costs > 700">
|
83
|
+
<call id="a4" endpoint="approve">
|
84
|
+
<parameters>
|
85
|
+
<method>:post</method>
|
86
|
+
<parameters>
|
87
|
+
<costs>data.costs</costs>
|
88
|
+
</parameters>
|
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
|
+
<parameters>
|
105
|
+
<from>data.from</from>
|
106
|
+
<to>data.to</to>
|
107
|
+
<persons>data.persons</persons>
|
108
|
+
</parameters>
|
109
|
+
</parameters>
|
110
|
+
<manipulate output="result"> data.airline = result.value('id')
|
111
|
+
data.costs += result.value('costs').to_f
|
112
|
+
status.update 1, 'Hotel'</manipulate>
|
113
|
+
</call>
|
114
|
+
<parallel>
|
115
|
+
<loop pre_test="data.persons > 0">
|
116
|
+
<parallel_branch pass="data.persons" local="p">
|
117
|
+
<call id="a2" endpoint="bookHotel">
|
118
|
+
<parameters>
|
119
|
+
<method>:post</method>
|
120
|
+
<parameters>
|
121
|
+
<to>data.to</to>
|
122
|
+
</parameters>
|
123
|
+
</parameters>
|
124
|
+
<manipulate output="result"> data.hotels << result.value('id')
|
125
|
+
data.costs += result.value('costs').to_f</manipulate>
|
126
|
+
</call>
|
127
|
+
</parallel_branch>
|
128
|
+
<manipulate id="a3"> data.persons -= 1</manipulate>
|
129
|
+
</loop>
|
130
|
+
</parallel>
|
131
|
+
<choose>
|
132
|
+
<alternative condition="data.costs > 700">
|
133
|
+
<call id="a4" endpoint="approve">
|
134
|
+
<parameters>
|
135
|
+
<method>:post</method>
|
136
|
+
<parameters>
|
137
|
+
<costs>data.costs</costs>
|
138
|
+
</parameters>
|
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 @@
|
|
1
|
+
54f1d10ddc672714405bf9afe3a89056
|
@@ -0,0 +1 @@
|
|
1
|
+
9ddbeb9417f834f3592ddb5ef1808115
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
2
|
+
<topic id="activity">
|
3
|
+
<event>calling</event>
|
4
|
+
<event>status</event>
|
5
|
+
<event>manipulating</event>
|
6
|
+
<event>failed</event>
|
7
|
+
<event>done</event>
|
8
|
+
</topic>
|
9
|
+
<topic id="position">
|
10
|
+
<event>change</event>
|
11
|
+
</topic>
|
12
|
+
<topic id="description">
|
13
|
+
<event>change</event>
|
14
|
+
<event>error</event>
|
15
|
+
</topic>
|
16
|
+
<topic id="state">
|
17
|
+
<event>change</event>
|
18
|
+
</topic>
|
19
|
+
<topic id="dataelements">
|
20
|
+
<event>change</event>
|
21
|
+
</topic>
|
22
|
+
<topic id="endpoints">
|
23
|
+
<event>change</event>
|
24
|
+
</topic>
|
25
|
+
<topic id="transformation">
|
26
|
+
<event>change</event>
|
27
|
+
</topic>
|
28
|
+
<topic id="handlerwrapper">
|
29
|
+
<event>result</event>
|
30
|
+
</topic>
|
31
|
+
<topic id="handlers">
|
32
|
+
<event>change</event>
|
33
|
+
</topic>
|
34
|
+
</subscription>
|
@@ -0,0 +1 @@
|
|
1
|
+
d3b5aa9b361325fe5598bd1c17d4aeca
|
@@ -0,0 +1 @@
|
|
1
|
+
ac2ab87dbd562ffd6aaa3bd463ca4678
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
2
|
+
<topic id="activity">
|
3
|
+
<event>calling</event>
|
4
|
+
<event>manipulating</event>
|
5
|
+
<event>failed</event>
|
6
|
+
<event>done</event>
|
7
|
+
</topic>
|
8
|
+
<topic id="position">
|
9
|
+
<event>change</event>
|
10
|
+
</topic>
|
11
|
+
<topic id="description">
|
12
|
+
<event>change</event>
|
13
|
+
<event>error</event>
|
14
|
+
</topic>
|
15
|
+
<topic id="state">
|
16
|
+
<event>change</event>
|
17
|
+
</topic>
|
18
|
+
<topic id="dataelements">
|
19
|
+
<event>change</event>
|
20
|
+
</topic>
|
21
|
+
<topic id="endpoints">
|
22
|
+
<event>change</event>
|
23
|
+
</topic>
|
24
|
+
<topic id="transformation">
|
25
|
+
<event>change</event>
|
26
|
+
</topic>
|
27
|
+
<topic id="handlerwrapper">
|
28
|
+
<event>result</event>
|
29
|
+
</topic>
|
30
|
+
<topic id="handlers">
|
31
|
+
<event>change</event>
|
32
|
+
</topic>
|
33
|
+
</subscription>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<info>Enter info here</info>
|
4
|
+
<modeltype>CPEE</modeltype>
|
5
|
+
</attributes>
|
6
|
+
<state>finished</state>
|
7
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
8
|
+
<positions/>
|
9
|
+
<dataelements>
|
10
|
+
<b>9</b>
|
11
|
+
<a>9</a>
|
12
|
+
</dataelements>
|
13
|
+
<endpoints>
|
14
|
+
<cb>http://gruppe.wst.univie.ac.at/~mangler/services/callback.simple.php</cb>
|
15
|
+
</endpoints>
|
16
|
+
<dsl>call :a1, :cb, { :label => "Update", :method => :post, :parameters => nil }, <<-END, <<-END
|
17
|
+
data.a = result.value
|
18
|
+
END
|
19
|
+
data.b = result.value
|
20
|
+
END
|
21
|
+
</dsl>
|
22
|
+
<dslx>
|
23
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
24
|
+
<call id="a1" endpoint="cb">
|
25
|
+
<parameters>
|
26
|
+
<label>"Update"</label>
|
27
|
+
<method>:post</method>
|
28
|
+
<parameters/>
|
29
|
+
</parameters>
|
30
|
+
<finalize>data.a = result.value</finalize>
|
31
|
+
<update>data.b = result.value</update>
|
32
|
+
</call>
|
33
|
+
</description>
|
34
|
+
</dslx>
|
35
|
+
<status>
|
36
|
+
<id>0</id>
|
37
|
+
<message>undefined</message>
|
38
|
+
</status>
|
39
|
+
<description>
|
40
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
41
|
+
<call id="a1" endpoint="cb">
|
42
|
+
<parameters>
|
43
|
+
<label>"Update"</label>
|
44
|
+
<method>:post</method>
|
45
|
+
<parameters/>
|
46
|
+
</parameters>
|
47
|
+
<finalize>data.a = result.value</finalize>
|
48
|
+
<update>data.b = result.value</update>
|
49
|
+
</call>
|
50
|
+
</description>
|
51
|
+
</description>
|
52
|
+
<transformation>
|
53
|
+
<description type="copy"/>
|
54
|
+
<dataelements type="none"/>
|
55
|
+
<endpoints type="none"/>
|
56
|
+
</transformation>
|
57
|
+
</properties>
|
@@ -1,83 +1,43 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!--
|
3
|
+
This file is part of CPEE.
|
4
|
+
|
5
|
+
CPEE is free software: you can redistribute it and/or modify it under the terms
|
6
|
+
of the GNU General Public License as published by the Free Software Foundation,
|
7
|
+
either version 3 of the License, or (at your option) any later version.
|
8
|
+
|
9
|
+
CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
|
10
|
+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
11
|
+
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
12
|
+
|
13
|
+
You should have received a copy of the GNU General Public License along with
|
14
|
+
CPEE (file COPYING in the main directory). If not, see
|
15
|
+
<http://www.gnu.org/licenses/>.
|
16
|
+
-->
|
17
|
+
|
1
18
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<info
|
3
|
-
<state>
|
19
|
+
<info/>
|
20
|
+
<state>ready</state>
|
4
21
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
5
22
|
<positions/>
|
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>
|
23
|
+
<dataelements/>
|
13
24
|
<endpoints>
|
14
25
|
<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
26
|
</endpoints>
|
18
|
-
<dsl
|
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
|
27
|
-
</dsl>
|
27
|
+
<dsl/>
|
28
28
|
<dslx>
|
29
|
-
<description xmlns="http://cpee.org/ns/description/1.0"
|
30
|
-
|
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>
|
50
|
-
</dslx>
|
29
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
30
|
+
</dslx>
|
51
31
|
<status>
|
52
32
|
<id>0</id>
|
53
33
|
<message>undefined</message>
|
54
34
|
</status>
|
55
35
|
<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>
|
36
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
77
37
|
</description>
|
78
38
|
<transformation>
|
79
|
-
<description type=
|
80
|
-
<dataelements type=
|
81
|
-
<endpoints type=
|
39
|
+
<description type='copy'/>
|
40
|
+
<dataelements type='xslt'/>
|
41
|
+
<endpoints type='xslt'/>
|
82
42
|
</transformation>
|
83
|
-
</properties>
|
43
|
+
</properties>
|
@@ -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>
|