cpee 1.3.173 → 1.3.174
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/ui.css +31 -17
- data/cockpit/index.html +27 -21
- data/cockpit/js/instance.js +74 -46
- data/cockpit/js/wfadaptor.cpee.js +1 -1
- data/cockpit/lib/{contextmenu.css → custommenu.css} +14 -8
- data/cockpit/lib/custommenu.js +101 -0
- data/cpee.gemspec +1 -1
- data/lib/cpee/controller.rb +1 -1
- data/lib/cpee/handler_properties.rb +2 -0
- data/lib/cpee/implementation.rb +5 -3
- data/server/handlerwrappers/default.rb +5 -0
- data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/consumer-secret +1 -0
- data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/producer-secret +1 -0
- data/server/instances/12/notifications/7ace1a6f6974fe3574107a19b5e9d036/subscription.xml +33 -0
- data/server/instances/15/properties.xml +44 -0
- data/server/instances/16/properties.xml +44 -0
- data/server/instances/17/properties.xml +44 -0
- data/server/instances/18/properties.xml +45 -0
- data/server/instances/19/properties.xml +45 -0
- 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/resources/properties.init +4 -2
- data/server/resources/properties.schema.active +2 -5
- data/server/resources/properties.schema.finished +2 -5
- data/server/resources/properties.schema.inactive +2 -5
- data/server/resources/topics.xml +3 -0
- data/server/server.pid +1 -0
- metadata +23 -4
- data/cockpit/lib/contextmenu.js +0 -63
@@ -0,0 +1,46 @@
|
|
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
|
+
<attributes>
|
20
|
+
<info/>
|
21
|
+
<modeltype>CPEE</modeltype>
|
22
|
+
</attributes>
|
23
|
+
<state>ready</state>
|
24
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
25
|
+
<positions/>
|
26
|
+
<dataelements/>
|
27
|
+
<endpoints>
|
28
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
29
|
+
</endpoints>
|
30
|
+
<dsl/>
|
31
|
+
<dslx>
|
32
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
33
|
+
</dslx>
|
34
|
+
<status>
|
35
|
+
<id>0</id>
|
36
|
+
<message>undefined</message>
|
37
|
+
</status>
|
38
|
+
<description>
|
39
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
40
|
+
</description>
|
41
|
+
<transformation>
|
42
|
+
<description type='copy'/>
|
43
|
+
<dataelements type='none'/>
|
44
|
+
<endpoints type='none'/>
|
45
|
+
</transformation>
|
46
|
+
</properties>
|
@@ -0,0 +1 @@
|
|
1
|
+
e5b828bbc99196b4cd9b380f14182287
|
@@ -0,0 +1 @@
|
|
1
|
+
9d28838a905aa987ea9991d1a06af847
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/events">
|
2
|
+
<topic id="running">
|
3
|
+
<event>activity_calling</event>
|
4
|
+
<event>activity_failed</event>
|
5
|
+
<event>activity_manipulating</event>
|
6
|
+
<event>activity_done</event>
|
7
|
+
</topic>
|
8
|
+
<topic id="properties/dataelements">
|
9
|
+
<event>change</event>
|
10
|
+
</topic>
|
11
|
+
<topic id="properties/endpoints">
|
12
|
+
<event>change</event>
|
13
|
+
</topic>
|
14
|
+
<topic id="properties/description">
|
15
|
+
<event>error</event>
|
16
|
+
</topic>
|
17
|
+
<topic id="properties/state">
|
18
|
+
<event>change</event>
|
19
|
+
</topic>
|
20
|
+
<topic id="properties/status">
|
21
|
+
<event>change</event>
|
22
|
+
</topic>
|
23
|
+
</subscription>
|
@@ -0,0 +1,112 @@
|
|
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>ready</state>
|
7
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
8
|
+
<positions>
|
9
|
+
<a1>after</a1>
|
10
|
+
</positions>
|
11
|
+
<dataelements>
|
12
|
+
<x/>
|
13
|
+
</dataelements>
|
14
|
+
<endpoints>
|
15
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
+
</endpoints>
|
17
|
+
<dsl>call :a1, :timeout, { :method => :post, :parameters => {:timeout => 2} }, <<-end
|
18
|
+
data.x += "a1,"
|
19
|
+
end
|
20
|
+
call :a2, :timeout, { :method => :post, :parameters => {:timeout => 4} }, <<-end
|
21
|
+
data.x += "a2,"
|
22
|
+
end
|
23
|
+
call :a3, :timeout, { :method => :post, :parameters => {:timeout => 4} }, <<-end
|
24
|
+
data.x += "a3,"
|
25
|
+
end
|
26
|
+
</dsl>
|
27
|
+
<dslx>
|
28
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
29
|
+
<!--{{{-->
|
30
|
+
<call id="a1" endpoint="timeout">
|
31
|
+
<parameters>
|
32
|
+
<!--{{{-->
|
33
|
+
<method>:post</method>
|
34
|
+
<parameters>
|
35
|
+
<timeout>2</timeout>
|
36
|
+
</parameters>
|
37
|
+
</parameters>
|
38
|
+
<!--}}}-->
|
39
|
+
<manipulate output="result"> data.x += "a1,"</manipulate>
|
40
|
+
</call>
|
41
|
+
<call id="a2" endpoint="timeout">
|
42
|
+
<parameters>
|
43
|
+
<!--{{{-->
|
44
|
+
<method>:post</method>
|
45
|
+
<parameters>
|
46
|
+
<timeout>4</timeout>
|
47
|
+
</parameters>
|
48
|
+
</parameters>
|
49
|
+
<!--}}}-->
|
50
|
+
<manipulate output="result"> data.x += "a2,"</manipulate>
|
51
|
+
</call>
|
52
|
+
<call id="a3" endpoint="timeout">
|
53
|
+
<parameters>
|
54
|
+
<!--{{{-->
|
55
|
+
<method>:post</method>
|
56
|
+
<parameters>
|
57
|
+
<timeout>4</timeout>
|
58
|
+
</parameters>
|
59
|
+
</parameters>
|
60
|
+
<!--}}}-->
|
61
|
+
<manipulate output="result"> data.x += "a3,"</manipulate>
|
62
|
+
</call>
|
63
|
+
</description>
|
64
|
+
</dslx>
|
65
|
+
<status>
|
66
|
+
<id>0</id>
|
67
|
+
<message>undefined</message>
|
68
|
+
</status>
|
69
|
+
<description>
|
70
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
71
|
+
<!--{{{-->
|
72
|
+
<call id="a1" endpoint="timeout">
|
73
|
+
<parameters>
|
74
|
+
<!--{{{-->
|
75
|
+
<method>:post</method>
|
76
|
+
<parameters>
|
77
|
+
<timeout>2</timeout>
|
78
|
+
</parameters>
|
79
|
+
</parameters>
|
80
|
+
<!--}}}-->
|
81
|
+
<manipulate output="result"> data.x += "a1,"</manipulate>
|
82
|
+
</call>
|
83
|
+
<call id="a2" endpoint="timeout">
|
84
|
+
<parameters>
|
85
|
+
<!--{{{-->
|
86
|
+
<method>:post</method>
|
87
|
+
<parameters>
|
88
|
+
<timeout>4</timeout>
|
89
|
+
</parameters>
|
90
|
+
</parameters>
|
91
|
+
<!--}}}-->
|
92
|
+
<manipulate output="result"> data.x += "a2,"</manipulate>
|
93
|
+
</call>
|
94
|
+
<call id="a3" endpoint="timeout">
|
95
|
+
<parameters>
|
96
|
+
<!--{{{-->
|
97
|
+
<method>:post</method>
|
98
|
+
<parameters>
|
99
|
+
<timeout>4</timeout>
|
100
|
+
</parameters>
|
101
|
+
</parameters>
|
102
|
+
<!--}}}-->
|
103
|
+
<manipulate output="result"> data.x += "a3,"</manipulate>
|
104
|
+
</call>
|
105
|
+
</description>
|
106
|
+
</description>
|
107
|
+
<transformation>
|
108
|
+
<description type="copy"/>
|
109
|
+
<dataelements type="rest"/>
|
110
|
+
<endpoints type="rest"/>
|
111
|
+
</transformation>
|
112
|
+
</properties>
|
@@ -0,0 +1 @@
|
|
1
|
+
2c514bee318e81ce6fca9642b90ea301
|
@@ -0,0 +1 @@
|
|
1
|
+
e87b5d3b6615ebe2795a9c743f496d19
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/events">
|
2
|
+
<topic id="running">
|
3
|
+
<event>activity_calling</event>
|
4
|
+
<event>activity_failed</event>
|
5
|
+
<event>activity_manipulating</event>
|
6
|
+
<event>activity_done</event>
|
7
|
+
</topic>
|
8
|
+
<topic id="properties/dataelements">
|
9
|
+
<event>change</event>
|
10
|
+
</topic>
|
11
|
+
<topic id="properties/endpoints">
|
12
|
+
<event>change</event>
|
13
|
+
</topic>
|
14
|
+
<topic id="properties/description">
|
15
|
+
<event>error</event>
|
16
|
+
</topic>
|
17
|
+
<topic id="properties/state">
|
18
|
+
<event>change</event>
|
19
|
+
</topic>
|
20
|
+
<topic id="properties/status">
|
21
|
+
<event>change</event>
|
22
|
+
</topic>
|
23
|
+
</subscription>
|
@@ -0,0 +1,148 @@
|
|
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>ready</state>
|
7
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
8
|
+
<positions/>
|
9
|
+
<dataelements>
|
10
|
+
<persons>3</persons>
|
11
|
+
<card>Visa_12345</card>
|
12
|
+
<airline>null</airline>
|
13
|
+
<hotels>[]</hotels>
|
14
|
+
<from>Vienna</from>
|
15
|
+
<to>Prague</to>
|
16
|
+
<costs>0</costs>
|
17
|
+
</dataelements>
|
18
|
+
<endpoints>
|
19
|
+
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
20
|
+
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
21
|
+
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
22
|
+
</endpoints>
|
23
|
+
<dsl>call :a1, :bookAir, { :method => :post, :parameters => {:from => data.from, :to => data.to, :persons => data.persons} }, <<-end
|
24
|
+
data.airline = result.value('id')
|
25
|
+
data.costs += result.value('costs').to_f
|
26
|
+
status.update 1, 'Hotel'
|
27
|
+
end
|
28
|
+
parallel do
|
29
|
+
loop pre_test{data.persons > 0} do
|
30
|
+
parallel_branch data.persons do |p|
|
31
|
+
call :a2, :bookHotel, { :method => :post, :parameters => {:to => data.to} }, <<-end
|
32
|
+
data.hotels << result.value('id')
|
33
|
+
data.costs += result.value('costs').to_f
|
34
|
+
end
|
35
|
+
end
|
36
|
+
manipulate :a3, <<-end
|
37
|
+
data.persons -= 1
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
choose :inclusive do
|
42
|
+
alternative "data.costs > 700" do
|
43
|
+
call :a4, :approve, { :method => :post, :parameters => {:costs => data.costs} }
|
44
|
+
end
|
45
|
+
end
|
46
|
+
</dsl>
|
47
|
+
<dslx>
|
48
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
49
|
+
<call id="a1" endpoint="bookAir">
|
50
|
+
<parameters>
|
51
|
+
<method>:post</method>
|
52
|
+
<parameters>
|
53
|
+
<from>data.from</from>
|
54
|
+
<to>data.to</to>
|
55
|
+
<persons>data.persons</persons>
|
56
|
+
</parameters>
|
57
|
+
</parameters>
|
58
|
+
<manipulate output="result"> data.airline = result.value('id')
|
59
|
+
data.costs += result.value('costs').to_f
|
60
|
+
status.update 1, 'Hotel'</manipulate>
|
61
|
+
</call>
|
62
|
+
<parallel>
|
63
|
+
<loop pre_test="data.persons > 0">
|
64
|
+
<parallel_branch pass="data.persons" local="p">
|
65
|
+
<call id="a2" endpoint="bookHotel">
|
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"> data.persons -= 1</manipulate>
|
77
|
+
</loop>
|
78
|
+
</parallel>
|
79
|
+
<choose>
|
80
|
+
<alternative condition="data.costs > 700">
|
81
|
+
<call id="a4" endpoint="approve">
|
82
|
+
<parameters>
|
83
|
+
<method>:post</method>
|
84
|
+
<parameters>
|
85
|
+
<costs>data.costs</costs>
|
86
|
+
</parameters>
|
87
|
+
</parameters>
|
88
|
+
</call>
|
89
|
+
</alternative>
|
90
|
+
</choose>
|
91
|
+
</description>
|
92
|
+
</dslx>
|
93
|
+
<status>
|
94
|
+
<id>0</id>
|
95
|
+
<message>undefined</message>
|
96
|
+
</status>
|
97
|
+
<description>
|
98
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
99
|
+
<call id="a1" endpoint="bookAir">
|
100
|
+
<parameters>
|
101
|
+
<method>:post</method>
|
102
|
+
<parameters>
|
103
|
+
<from>data.from</from>
|
104
|
+
<to>data.to</to>
|
105
|
+
<persons>data.persons</persons>
|
106
|
+
</parameters>
|
107
|
+
</parameters>
|
108
|
+
<manipulate output="result"> data.airline = result.value('id')
|
109
|
+
data.costs += result.value('costs').to_f
|
110
|
+
status.update 1, 'Hotel'</manipulate>
|
111
|
+
</call>
|
112
|
+
<parallel>
|
113
|
+
<loop pre_test="data.persons > 0">
|
114
|
+
<parallel_branch pass="data.persons" local="p">
|
115
|
+
<call id="a2" endpoint="bookHotel">
|
116
|
+
<parameters>
|
117
|
+
<method>:post</method>
|
118
|
+
<parameters>
|
119
|
+
<to>data.to</to>
|
120
|
+
</parameters>
|
121
|
+
</parameters>
|
122
|
+
<manipulate output="result"> data.hotels << result.value('id')
|
123
|
+
data.costs += result.value('costs').to_f</manipulate>
|
124
|
+
</call>
|
125
|
+
</parallel_branch>
|
126
|
+
<manipulate id="a3"> data.persons -= 1</manipulate>
|
127
|
+
</loop>
|
128
|
+
</parallel>
|
129
|
+
<choose>
|
130
|
+
<alternative condition="data.costs > 700">
|
131
|
+
<call id="a4" endpoint="approve">
|
132
|
+
<parameters>
|
133
|
+
<method>:post</method>
|
134
|
+
<parameters>
|
135
|
+
<costs>data.costs</costs>
|
136
|
+
</parameters>
|
137
|
+
</parameters>
|
138
|
+
</call>
|
139
|
+
</alternative>
|
140
|
+
</choose>
|
141
|
+
</description>
|
142
|
+
</description>
|
143
|
+
<transformation>
|
144
|
+
<description type="copy"/>
|
145
|
+
<dataelements type="none"/>
|
146
|
+
<endpoints type="none"/>
|
147
|
+
</transformation>
|
148
|
+
</properties>
|
@@ -16,8 +16,10 @@
|
|
16
16
|
-->
|
17
17
|
|
18
18
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
19
|
-
<
|
20
|
-
|
19
|
+
<attributes>
|
20
|
+
<info/>
|
21
|
+
<modeltype>CPEE</modeltype>
|
22
|
+
</attributes>
|
21
23
|
<state>ready</state>
|
22
24
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
23
25
|
<positions/>
|
@@ -15,14 +15,11 @@
|
|
15
15
|
-->
|
16
16
|
|
17
17
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
18
|
-
<
|
19
|
-
<text/>
|
20
|
-
</info>
|
21
|
-
<properties type="complex" modifiable="false" mutable="false">
|
18
|
+
<attributes type="complex" modifiable="false" mutable="false">
|
22
19
|
<zeroOrMore>
|
23
20
|
<element><anyName/><text/></element>
|
24
21
|
</zeroOrMore>
|
25
|
-
</
|
22
|
+
</attributes>
|
26
23
|
<handlerwrapper type="simple" modifiable="false" mutable="false">
|
27
24
|
<data type="string">
|
28
25
|
<param name="pattern">[A-Z][a-zA-Z]*</param>
|
@@ -15,14 +15,11 @@
|
|
15
15
|
-->
|
16
16
|
|
17
17
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
18
|
-
<
|
19
|
-
<text/>
|
20
|
-
</info>
|
21
|
-
<properties type="complex" modifiable="false" mutable="false">
|
18
|
+
<attributes type="complex" modifiable="false" mutable="false">
|
22
19
|
<zeroOrMore>
|
23
20
|
<element><anyName/><text/></element>
|
24
21
|
</zeroOrMore>
|
25
|
-
</
|
22
|
+
</attributes>
|
26
23
|
<handlerwrapper type="simple" modifiable="false" mutable="false">
|
27
24
|
<data type="string">
|
28
25
|
<param name="pattern">[A-Z][a-zA-Z]*</param>
|
@@ -15,14 +15,11 @@
|
|
15
15
|
-->
|
16
16
|
|
17
17
|
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
18
|
-
<
|
19
|
-
<text/>
|
20
|
-
</info>
|
21
|
-
<properties type="complex" modifiable="true">
|
18
|
+
<attributes type="complex" modifiable="true">
|
22
19
|
<zeroOrMore>
|
23
20
|
<element><anyName/><text/></element>
|
24
21
|
</zeroOrMore>
|
25
|
-
</
|
22
|
+
</attributes>
|
26
23
|
<handlerwrapper type="simple" modifiable="true">
|
27
24
|
<data type="string">
|
28
25
|
<param name="pattern">[A-Z][a-zA-Z]*</param>
|
data/server/resources/topics.xml
CHANGED
data/server/server.pid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
23402
|