cpee 1.3.119 → 1.3.120
Sign up to get free protection for your applications and to get access to all the features.
- data/cockpit/contrib/graph_example.svg +1166 -0
- data/cockpit/contrib/legend.svg +817 -0
- data/cockpit/contrib/tree_example.svg +788 -0
- data/cockpit/css/ui.css +41 -14
- data/cockpit/index.html +82 -35
- data/cockpit/js/instance.js +38 -28
- data/cockpit/js/ui.js +18 -1
- data/cockpit/js/wfadaptor.cpee.js +3 -20
- data/cockpit/lib/contextmenu.css +8 -2
- data/cockpit/lib/jquery.cookie.js +117 -0
- data/cockpit/lib/wfadaptor.css +4 -0
- data/cockpit/testsets/Concurrent.xml +2 -2
- data/cockpit/testsets/Coopis Testset.xml +39 -37
- data/cockpit/testsets/Endpoints and Data Manipulation.xml +14 -12
- data/cockpit/testsets/ICSOC Testset.xml +61 -59
- data/cockpit/testsets/Linear.xml +31 -29
- data/cockpit/testsets/Mangler 1.xml +57 -55
- data/cockpit/testsets/Mangler 2.xml +60 -58
- data/cockpit/testsets/RESCUE - Book Movie - Local.xml +68 -66
- data/cockpit/testsets/RESCUE - Book Movie.xml +68 -66
- data/cockpit/testsets/RESCUE - Loop-Parallel Injection.xml +61 -59
- data/cockpit/testsets/SOPROMO Test Sonification.xml +38 -36
- data/cockpit/testsets/Syncing P34 1.xml +31 -29
- data/cockpit/testsets/Syncing P34 2.xml +31 -29
- data/cockpit/testsets/Syncing P34 3.xml +31 -29
- data/cockpit/testsets/Syncing P34.xml +31 -29
- data/cockpit/testsets/TEST - Bad Loop.xml +129 -127
- data/cockpit/testsets/TEST - Wrong Positions.xml +142 -140
- data/cpee.gemspec +1 -1
- data/server/handlerwrappers/default.rb +13 -0
- data/server/resources/properties.init +3 -1
- data/server/resources/transformation_dslx.xsl +3 -0
- metadata +6 -6
- data/server/instances/1/notifications/9a9f296b8446be3ee15a99fbb94543dd/consumer-secret +0 -1
- data/server/instances/1/notifications/9a9f296b8446be3ee15a99fbb94543dd/producer-secret +0 -1
- data/server/instances/1/notifications/9a9f296b8446be3ee15a99fbb94543dd/subscription.xml +0 -27
- data/server/instances/1/properties.xml +0 -41
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.3.
|
3
|
+
s.version = "1.3.120"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3"
|
6
6
|
s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
|
@@ -41,6 +41,19 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
|
|
41
41
|
|
42
42
|
status, result, headers = client.request type => params
|
43
43
|
raise "Could not #{parameters[:method] || 'post'} #{@handler_endpoint}" if status != 200
|
44
|
+
if result.length == 1
|
45
|
+
if result[0].is_a? Riddl::Parameter::Simple
|
46
|
+
result = result[0]
|
47
|
+
elsif result[0].is_a? Riddl::Parameter::Complex
|
48
|
+
if result[0].mimetype == 'application/json'
|
49
|
+
result = JSON::parse(result[0].value.read)
|
50
|
+
elsif result[0].mimetype == 'application/xml' || result[0].mimetype == 'text/xml'
|
51
|
+
result = XML::Smart::string(result[0].value.read)
|
52
|
+
else
|
53
|
+
result = result[0]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
44
57
|
|
45
58
|
if headers["CPEE_CALLBACK"] && headers["CPEE_CALLBACK"] == 'true'
|
46
59
|
@controller.callbacks[callback] = CPEE::Callback.new("callback activity: #{@handler_position}",self,:callback,nil,nil,:http)
|
@@ -25,7 +25,9 @@
|
|
25
25
|
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
26
26
|
</endpoints>
|
27
27
|
<dsl/>
|
28
|
-
<dslx
|
28
|
+
<dslx>
|
29
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
30
|
+
</dslx>
|
29
31
|
<status>
|
30
32
|
<id>0</id>
|
31
33
|
<message>undefined</message>
|
@@ -215,6 +215,9 @@
|
|
215
215
|
<xsl:when test="@type = 'symbolic'">
|
216
216
|
<xsl:value-of select="text()"/>
|
217
217
|
</xsl:when>
|
218
|
+
<xsl:when test="not(node())">
|
219
|
+
<xsl:text>nil</xsl:text>
|
220
|
+
</xsl:when>
|
218
221
|
<xsl:otherwise>
|
219
222
|
<xsl:text>"</xsl:text>
|
220
223
|
<xsl:value-of select="text()"/>
|
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.
|
4
|
+
version: 1.3.120
|
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-
|
14
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: riddl
|
@@ -69,10 +69,6 @@ extra_rdoc_files:
|
|
69
69
|
- README
|
70
70
|
files:
|
71
71
|
- server/server.rb
|
72
|
-
- server/instances/1/properties.xml
|
73
|
-
- server/instances/1/notifications/9a9f296b8446be3ee15a99fbb94543dd/consumer-secret
|
74
|
-
- server/instances/1/notifications/9a9f296b8446be3ee15a99fbb94543dd/subscription.xml
|
75
|
-
- server/instances/1/notifications/9a9f296b8446be3ee15a99fbb94543dd/producer-secret
|
76
72
|
- server/resources/properties.schema.active
|
77
73
|
- server/resources/properties.schema.finished
|
78
74
|
- server/resources/transformation_dslx.xsl
|
@@ -95,8 +91,11 @@ files:
|
|
95
91
|
- lib/engine/instances.rng
|
96
92
|
- lib/cpee.xml
|
97
93
|
- cockpit/css/ui.css
|
94
|
+
- cockpit/contrib/graph_example.svg
|
95
|
+
- cockpit/contrib/tree_example.svg
|
98
96
|
- cockpit/contrib/transformation2.xsl
|
99
97
|
- cockpit/contrib/transformation1.xsl
|
98
|
+
- cockpit/contrib/legend.svg
|
100
99
|
- cockpit/contrib/symbols.svg
|
101
100
|
- cockpit/index.html
|
102
101
|
- cockpit/lib/jquery.caret.min.js
|
@@ -104,6 +103,7 @@ files:
|
|
104
103
|
- cockpit/lib/wfadaptor.js
|
105
104
|
- cockpit/lib/wfadaptor.css
|
106
105
|
- cockpit/lib/jquery-ui.custom.min.js
|
106
|
+
- cockpit/lib/jquery.cookie.js
|
107
107
|
- cockpit/lib/parsequery.js
|
108
108
|
- cockpit/lib/util.js
|
109
109
|
- cockpit/lib/ui.js
|
@@ -1 +0,0 @@
|
|
1
|
-
0ae34c4d977c3ce6ec3fb7123f33f44d
|
@@ -1 +0,0 @@
|
|
1
|
-
b771dae71e9968a0c1514db370f0aa96
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
2
|
-
<topic id="running">
|
3
|
-
<event>activity_calling</event>
|
4
|
-
<event>activity_manipulating</event>
|
5
|
-
<event>activity_failed</event>
|
6
|
-
<event>activity_done</event>
|
7
|
-
</topic>
|
8
|
-
<topic id="properties/position">
|
9
|
-
<event>change</event>
|
10
|
-
</topic>
|
11
|
-
<topic id="properties/description">
|
12
|
-
<event>change</event>
|
13
|
-
<event>error</event>
|
14
|
-
</topic>
|
15
|
-
<topic id="properties/state">
|
16
|
-
<event>change</event>
|
17
|
-
</topic>
|
18
|
-
<topic id="properties/dataelements">
|
19
|
-
<event>change</event>
|
20
|
-
</topic>
|
21
|
-
<topic id="properties/endpoints">
|
22
|
-
<event>change</event>
|
23
|
-
</topic>
|
24
|
-
<topic id="properties/handlers">
|
25
|
-
<event>change</event>
|
26
|
-
</topic>
|
27
|
-
</subscription>
|
@@ -1,41 +0,0 @@
|
|
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
|
-
|
18
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
19
|
-
<info/>
|
20
|
-
<state>ready</state>
|
21
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
22
|
-
<positions/>
|
23
|
-
<dataelements/>
|
24
|
-
<endpoints>
|
25
|
-
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
26
|
-
</endpoints>
|
27
|
-
<dsl/>
|
28
|
-
<dslx/>
|
29
|
-
<status>
|
30
|
-
<id>0</id>
|
31
|
-
<message>undefined</message>
|
32
|
-
</status>
|
33
|
-
<description>
|
34
|
-
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
35
|
-
</description>
|
36
|
-
<transformation>
|
37
|
-
<description type='copy'/>
|
38
|
-
<dataelements type='xslt'/>
|
39
|
-
<endpoints type='xslt'/>
|
40
|
-
</transformation>
|
41
|
-
</properties>
|