cpee 1.3.120 → 1.3.121

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,83 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <info>Enter info here</info>
3
+ <state>finished</state>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <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>
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 =&gt; "Get JSON", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-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 =&gt; "Get XML", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
24
+ data.xml_lv = result.find('string(/data/lv)')
25
+ data.xml_lvnr = result.find('string(/data/lv/@id)')
26
+ end
27
+ </dsl>
28
+ <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>
50
+ </dslx>
51
+ <status>
52
+ <id>0</id>
53
+ <message>undefined</message>
54
+ </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>
78
+ <transformation>
79
+ <description type="copy"/>
80
+ <dataelements type="xslt"/>
81
+ <endpoints type="xslt"/>
82
+ </transformation>
83
+ </properties>
@@ -0,0 +1,83 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <info>Enter info here</info>
3
+ <state>finished</state>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <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>
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 =&gt; "Get JSON", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-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 =&gt; "Get XML", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
24
+ data.xml_lv = result.find('string(/data/lv)')
25
+ data.xml_lvnr = result.find('string(/data/lv/@id)')
26
+ end
27
+ </dsl>
28
+ <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>
50
+ </dslx>
51
+ <status>
52
+ <id>0</id>
53
+ <message>undefined</message>
54
+ </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>
78
+ <transformation>
79
+ <description type="copy"/>
80
+ <dataelements type="xslt"/>
81
+ <endpoints type="xslt"/>
82
+ </transformation>
83
+ </properties>
@@ -0,0 +1,77 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <info>Enter info here</info>
3
+ <state>ready</state>
4
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
5
+ <positions/>
6
+ <dataelements/>
7
+ <endpoints>
8
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
9
+ <json>http://cpee.org/services/json.php</json>
10
+ <xml>http://cpee.org/services/xml.php</xml>
11
+ </endpoints>
12
+ <dsl>call :a1, :json, { :label =&gt; "Get JSON", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
13
+ data.json = result
14
+ data.json_lv = result['lv']
15
+ data.json_lvnr = result['lv']['lvnr']
16
+ end
17
+ call :a2, :xml, { :label =&gt; "Get XML", :method =&gt; "get", :parameters =&gt; nil }, &lt;&lt;-end
18
+ data.xml_lv = result.find('string(/data/lv)')
19
+ data.xml_lvnr = result.find('string(/data/lv/@id)')
20
+ end
21
+ </dsl>
22
+ <dslx>
23
+ <description xmlns="http://cpee.org/ns/description/1.0">
24
+ <call id="a1" endpoint="json" svg-label="Get JSON">
25
+ <parameters>
26
+ <label>Get JSON</label>
27
+ <method>get</method>
28
+ <parameters/>
29
+ </parameters>
30
+ <manipulate>data.json = result
31
+ data.json_lv = result['lv']
32
+ data.json_lvnr = result['lv']['lvnr']</manipulate>
33
+ </call>
34
+ <call id="a2" endpoint="xml">
35
+ <parameters>
36
+ <label>Get XML</label>
37
+ <method>get</method>
38
+ <parameters/>
39
+ </parameters>
40
+ <manipulate>data.xml_lv = result.find('string(/data/lv)')
41
+ data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
42
+ </call>
43
+ </description>
44
+ </dslx>
45
+ <status>
46
+ <id>0</id>
47
+ <message>undefined</message>
48
+ </status>
49
+ <description>
50
+ <description xmlns="http://cpee.org/ns/description/1.0">
51
+ <call id="a1" endpoint="json" svg-label="Get JSON">
52
+ <parameters>
53
+ <label>Get JSON</label>
54
+ <method>get</method>
55
+ <parameters/>
56
+ </parameters>
57
+ <manipulate>data.json = result
58
+ data.json_lv = result['lv']
59
+ data.json_lvnr = result['lv']['lvnr']</manipulate>
60
+ </call>
61
+ <call id="a2" endpoint="xml">
62
+ <parameters>
63
+ <label>Get XML</label>
64
+ <method>get</method>
65
+ <parameters/>
66
+ </parameters>
67
+ <manipulate>data.xml_lv = result.find('string(/data/lv)')
68
+ data.xml_lvnr = result.find('string(/data/lv/@id)')</manipulate>
69
+ </call>
70
+ </description>
71
+ </description>
72
+ <transformation>
73
+ <description type="copy"/>
74
+ <dataelements type="xslt"/>
75
+ <endpoints type="xslt"/>
76
+ </transformation>
77
+ </properties>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.120
4
+ version: 1.3.121
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-11-15 00:00:00.000000000 Z
14
+ date: 2014-01-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -69,6 +69,17 @@ extra_rdoc_files:
69
69
  - README
70
70
  files:
71
71
  - server/server.rb
72
+ - server/instances/3/properties.xml
73
+ - server/instances/9/properties.xml
74
+ - server/instances/5/properties.xml
75
+ - server/instances/10/properties.xml
76
+ - server/instances/1/properties.xml
77
+ - server/instances/8/properties.xml
78
+ - server/instances/4/properties.xml
79
+ - server/instances/2/properties.xml
80
+ - server/instances/7/properties.xml
81
+ - server/instances/11/properties.xml
82
+ - server/instances/6/properties.xml
72
83
  - server/resources/properties.schema.active
73
84
  - server/resources/properties.schema.finished
74
85
  - server/resources/transformation_dslx.xsl
@@ -118,15 +129,12 @@ files:
118
129
  - cockpit/lib/ui.css
119
130
  - cockpit/lib/jquery.min.js
120
131
  - cockpit/lib/jquery.svgdom.js
121
- - cockpit/testsets/RESCUE - Book Movie - Local.xml
122
132
  - cockpit/testsets/Syncing P34 3.xml
123
133
  - cockpit/testsets/Linear.xml
124
134
  - cockpit/testsets/SOPROMO Test Sonification.xml
125
135
  - cockpit/testsets/Mangler 1.xml
126
- - cockpit/testsets/RESCUE - Book Movie.xml
127
136
  - cockpit/testsets/TEST - Bad Loop.xml
128
137
  - cockpit/testsets/index.xml
129
- - cockpit/testsets/RESCUE - Loop-Parallel Injection.xml
130
138
  - cockpit/testsets/ICSOC Testset.xml
131
139
  - cockpit/testsets/Syncing P34.xml
132
140
  - cockpit/testsets/Syncing P34 1.xml
@@ -1,100 +0,0 @@
1
- <?xml version="1.0"?>
2
- <testset>
3
- <positions/>
4
- <handlerwrapper>RescueHandlerWrapper</handlerwrapper>
5
- <dataelements>
6
- <title>""</title>
7
- <date>""</date>
8
- <selected_title>""</selected_title>
9
- <starting_time>""</starting_time>
10
- <selected_cinema/>
11
- <selected_date/>
12
- <hall/>
13
- <zip>1100</zip>
14
- <city/>
15
- <reservation_number/>
16
- </dataelements>
17
- <endpoints>
18
- <services>http://localhost:9290/groups/Cinemas/</services>
19
- <injection_handler>http://localhost:9291/</injection_handler>
20
- <select>http://localhost:9293/pgwl</select>
21
- </endpoints>
22
- <description>
23
- <description xmlns="http://cpee.org/ns/description/1.0">
24
- <call id="collect_input" endpoint="select">
25
- <parameters>
26
- <method>post</method>
27
- <info>true</info>
28
- <templates>
29
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
30
- <name>'Cinemas-Input'</name>
31
- <lang>'EN'</lang>
32
- </templates>
33
- </parameters>
34
- <manipulate output="result">
35
- data.title = result.data.value('title')
36
- data.date = result.data.value('date')
37
- data.city = result.data.value('city')
38
- </manipulate>
39
- </call>
40
- <call id="use_repo_cinemas" endpoint="services">
41
- <constraints>
42
- <constraint xpath="address/city" comparator="==" variable="city"/>
43
- </constraints>
44
- <parameters><!--{{{-->
45
- <info>true</info>
46
- <service>
47
- <serviceoperation>"search_and_book"</serviceoperation>
48
- <injection_handler>endpoints.injection_handler</injection_handler>
49
- </service>
50
- <additional_endpoints>
51
- <selector_service>"select"</selector_service>
52
- </additional_endpoints>
53
- <parameters>
54
- <title>data.title</title>
55
- <date>data.date</date>
56
- </parameters>
57
- </parameters><!--}}}-->
58
- <manipulate output="result">
59
- res = result[0]
60
- if res['status'] == 200
61
- # Computing service responses
62
- data.reservation_number = res['reservation_id']
63
- data.starting_time = res['starting_time']
64
- data.selected_title = res['movie_title']
65
- data.selected_date = res['selected_date']
66
- data.hall = res['hall']
67
- # Computing properties of executed services
68
- perf_book = properties['call_book']['perform_book']
69
- data.selected_cinema = " #{perf_book.values[0]['vendor']['name']}\n#{perf_book.values[0]['address']['street']}\n#{perf_book.values[0]['address']['zip']} #{perf_book.values[0]['address']['city']}"
70
- end
71
- </manipulate>
72
- </call>
73
- <call id="confirm" endpoint="select">
74
- <parameters>
75
- <method>post</method>
76
- <info>true</info>
77
- <templates>
78
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
79
- <!-- uri>'http://gus.lan/input-forms/cinemas.xsl'</uri -->
80
- <name>'Cinemas-Output'</name>
81
- <lang>'EN'</lang>
82
- </templates>
83
- <parameters>
84
- <title>data.selected_title</title>
85
- <date>data.selected_date</date>
86
- <time>data.starting_time</time>
87
- <hall>data.hall</hall>
88
- <res_nr>data.reservation_number</res_nr>
89
- <cinema>data.selected_cinema</cinema>
90
- </parameters>
91
- </parameters>
92
- </call>
93
- </description>
94
- </description>
95
- <transformation>
96
- <description type='xslt'>http://cpee.org/~demo/rescue-1.0.xslt</description>
97
- <dataelements type='rest'/>
98
- <endpoints type='rest'/>
99
- </transformation>
100
- </testset>
@@ -1,100 +0,0 @@
1
- <?xml version="1.0"?>
2
- <testset>
3
- <positions/>
4
- <handlerwrapper>RescueHandlerWrapper</handlerwrapper>
5
- <dataelements>
6
- <title>""</title>
7
- <date>""</date>
8
- <selected_title>""</selected_title>
9
- <starting_time>""</starting_time>
10
- <selected_cinema/>
11
- <selected_date/>
12
- <hall/>
13
- <zip>1100</zip>
14
- <city/>
15
- <reservation_number/>
16
- </dataelements>
17
- <endpoints>
18
- <services>http://sumatra.wst.univie.ac.at:9290/groups/Cinemas/</services>
19
- <injection_handler>http://sumatra.wst.univie.ac.at:9291/</injection_handler>
20
- <select>http://sumatra.wst.univie.ac.at:9293/pgwl</select>
21
- </endpoints>
22
- <description>
23
- <description xmlns="http://cpee.org/ns/description/1.0">
24
- <call id="collect_input" endpoint="select">
25
- <parameters>
26
- <method>post</method>
27
- <info>true</info>
28
- <templates>
29
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
30
- <name>'Cinemas-Input'</name>
31
- <lang>'EN'</lang>
32
- </templates>
33
- </parameters>
34
- <manipulate output="result">
35
- data.title = result.data.value('title')
36
- data.date = result.data.value('date')
37
- data.city = result.data.value('city')
38
- </manipulate>
39
- </call>
40
- <call id="use_repo_cinemas" endpoint="services">
41
- <constraints>
42
- <constraint xpath="address/city" comparator="==" variable="city"/>
43
- </constraints>
44
- <parameters><!--{{{-->
45
- <info>true</info>
46
- <service>
47
- <serviceoperation>"search_and_book"</serviceoperation>
48
- <injection_handler>endpoints.injection_handler</injection_handler>
49
- </service>
50
- <additional_endpoints>
51
- <selector_service>"select"</selector_service>
52
- </additional_endpoints>
53
- <parameters>
54
- <title>data.title</title>
55
- <date>data.date</date>
56
- </parameters>
57
- </parameters><!--}}}-->
58
- <manipulate output="result">
59
- res = result[0]
60
- if res['status'] == 200
61
- # Computing service responses
62
- data.reservation_number = res['reservation_id']
63
- data.starting_time = res['starting_time']
64
- data.selected_title = res['movie_title']
65
- data.selected_date = res['selected_date']
66
- data.hall = res['hall']
67
- # Computing properties of executed services
68
- perf_book = properties['call_book']['perform_book']
69
- data.selected_cinema = " #{perf_book.values[0]['vendor']['name']}\n#{perf_book.values[0]['address']['street']}\n#{perf_book.values[0]['address']['zip']} #{perf_book.values[0]['address']['city']}"
70
- end
71
- </manipulate>
72
- </call>
73
- <call id="confirm" endpoint="select">
74
- <parameters>
75
- <method>post</method>
76
- <info>true</info>
77
- <templates>
78
- <uri>'http://gruppe.wst.univie.ac.at/~ralph/input-forms/cinemas.xsl'</uri>
79
- <!-- uri>'http://gus.lan/input-forms/cinemas.xsl'</uri -->
80
- <name>'Cinemas-Output'</name>
81
- <lang>'EN'</lang>
82
- </templates>
83
- <parameters>
84
- <title>data.selected_title</title>
85
- <date>data.selected_date</date>
86
- <time>data.starting_time</time>
87
- <hall>data.hall</hall>
88
- <res_nr>data.reservation_number</res_nr>
89
- <cinema>data.selected_cinema</cinema>
90
- </parameters>
91
- </parameters>
92
- </call>
93
- </description>
94
- </description>
95
- <transformation>
96
- <description type='xslt'>http://cpee.org/~demo/rescue-1.0.xslt</description>
97
- <dataelements type='rest'/>
98
- <endpoints type='rest'/>
99
- </transformation>
100
- </testset>