cpee 1.4.18 → 1.4.20
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/cockpit/testsets/Subprocess.xml +52 -0
- data/cockpit/testsets/Take_5.xml +44 -0
- data/cockpit/testsets/testsets.xml +1 -0
- data/cpee.gemspec +1 -1
- data/lib/cpee/controller.rb +7 -31
- data/lib/cpee/empty_workflow.rb +8 -4
- data/lib/cpee/implementation.rb +9 -1
- data/lib/cpee/instantiation.rb +40 -17
- data/lib/cpee/value_helper.rb +32 -0
- data/lib/engine.xml +1 -1
- data/log/display.rb +46 -0
- data/log/logs/27d46c68-d457-4ca8-808a-094585842aea.xes.yaml +130 -0
- data/log/logs/292ee7f7-fab8-438d-b251-5fc4d13b3d5b.xes.yaml +171 -0
- data/log/logs/546a855f-6223-49ed-bc7d-c256b391663b.xes.yaml +74 -0
- data/log/logs/5673f24b-5ac0-4bd6-b315-16992f02ddbb.xes.yaml +336 -0
- data/log/logs/7a4ad7e9-2fdb-41da-a623-094f5eaca9ce.xes.yaml +74 -0
- data/log/logs/7d24f231-44db-4d0b-8193-4601ede4591e.xes.yaml +167 -0
- data/log/logs/8abdeac5-a28a-4aad-9fad-e47e47f58f0a.xes.yaml +171 -0
- data/log/logs/a6ff458b-8e56-4411-a552-9b943ed69d6b.xes.yaml +128 -0
- data/log/logs/ccb051e7-639f-4b51-a1e3-3fd5a55f2c02.xes.yaml +128 -0
- data/log/logs/fbc5fa87-ba3c-40b9-9605-e1bb1cc7e0d9.xes.yaml +130 -0
- data/log/sic.rb +51 -0
- data/log/template.xes_yaml +3 -1
- data/log/xes_xml.rb +1 -1
- data/log/xes_yaml.pid +1 -0
- data/log/xes_yaml.rb +1 -1
- data/server/dev.rb +33 -0
- data/server/handlerwrappers/default.rb +5 -2
- data/server/{resources → instances/1}/notifications/ruleengine/consumer-secret +0 -0
- data/server/{resources → instances/1}/notifications/ruleengine/producer-secret +0 -0
- data/server/{resources → instances/1}/notifications/ruleengine/subscription.xml +0 -0
- data/server/instances/1/properties.xml +31 -0
- data/server/instances/10/notifications/1b735894fe9c3cc45308d1ed4cd6b930/consumer-secret +1 -0
- data/server/instances/10/notifications/1b735894fe9c3cc45308d1ed4cd6b930/producer-secret +1 -0
- data/server/instances/10/notifications/1b735894fe9c3cc45308d1ed4cd6b930/subscription.xml +5 -0
- data/server/instances/10/notifications/logging/consumer-secret +1 -0
- data/server/instances/10/notifications/logging/producer-secret +1 -0
- data/server/instances/10/notifications/logging/subscription.xml +16 -0
- data/server/instances/10/properties.xml +80 -0
- data/server/instances/11/notifications/logging/consumer-secret +1 -0
- data/server/instances/11/notifications/logging/producer-secret +1 -0
- data/server/instances/11/notifications/logging/subscription.xml +16 -0
- data/server/instances/11/properties.xml +97 -0
- data/server/instances/12/notifications/2678055be8f23525a98b5c031fe2ee46/consumer-secret +1 -0
- data/server/instances/12/notifications/2678055be8f23525a98b5c031fe2ee46/producer-secret +1 -0
- data/server/instances/12/notifications/2678055be8f23525a98b5c031fe2ee46/subscription.xml +5 -0
- data/server/instances/12/notifications/logging/consumer-secret +1 -0
- data/server/instances/12/notifications/logging/producer-secret +1 -0
- data/server/instances/12/notifications/logging/subscription.xml +16 -0
- data/server/instances/12/properties.xml +80 -0
- data/server/instances/13/notifications/90d34985542a88c3071d176f6400efe7/consumer-secret +1 -0
- data/server/instances/13/notifications/90d34985542a88c3071d176f6400efe7/producer-secret +1 -0
- data/server/instances/13/notifications/90d34985542a88c3071d176f6400efe7/subscription.xml +38 -0
- data/server/instances/13/notifications/logging/consumer-secret +1 -0
- data/server/instances/13/notifications/logging/producer-secret +1 -0
- data/server/instances/13/notifications/logging/subscription.xml +16 -0
- data/server/instances/13/properties.xml +97 -0
- data/server/instances/14/notifications/fa408cd6922b14cb1bfeee36e895f636/consumer-secret +1 -0
- data/server/instances/14/notifications/fa408cd6922b14cb1bfeee36e895f636/producer-secret +1 -0
- data/server/instances/14/notifications/fa408cd6922b14cb1bfeee36e895f636/subscription.xml +5 -0
- data/server/instances/14/notifications/logging/consumer-secret +1 -0
- data/server/instances/14/notifications/logging/producer-secret +1 -0
- data/server/instances/14/notifications/logging/subscription.xml +16 -0
- data/server/instances/14/properties.xml +80 -0
- data/server/instances/2/notifications/ruleengine/consumer-secret +1 -0
- data/server/instances/2/notifications/ruleengine/producer-secret +1 -0
- data/server/instances/2/notifications/ruleengine/subscription.xml +16 -0
- data/server/instances/2/properties.xml +31 -0
- data/server/instances/3/notifications/ruleengine/consumer-secret +1 -0
- data/server/instances/3/notifications/ruleengine/producer-secret +1 -0
- data/server/instances/3/notifications/ruleengine/subscription.xml +16 -0
- data/server/instances/3/properties.xml +31 -0
- data/server/instances/4/notifications/ruleengine/consumer-secret +1 -0
- data/server/instances/4/notifications/ruleengine/producer-secret +1 -0
- data/server/instances/4/notifications/ruleengine/subscription.xml +16 -0
- data/server/instances/4/properties.xml +31 -0
- data/server/instances/5/notifications/logging/consumer-secret +1 -0
- data/server/instances/5/notifications/logging/producer-secret +1 -0
- data/server/instances/5/notifications/logging/subscription.xml +16 -0
- data/server/instances/5/properties.xml +97 -0
- data/server/instances/6/notifications/ae6d58eba25c66a57b41181de8935442/consumer-secret +1 -0
- data/server/instances/6/notifications/ae6d58eba25c66a57b41181de8935442/producer-secret +1 -0
- data/server/instances/6/notifications/ae6d58eba25c66a57b41181de8935442/subscription.xml +5 -0
- data/server/instances/6/notifications/logging/consumer-secret +1 -0
- data/server/instances/6/notifications/logging/producer-secret +1 -0
- data/server/instances/6/notifications/logging/subscription.xml +16 -0
- data/server/instances/6/properties.xml +78 -0
- data/server/instances/7/notifications/d83173e3a3f5d1e05f5182042d5b627e/consumer-secret +1 -0
- data/server/instances/7/notifications/d83173e3a3f5d1e05f5182042d5b627e/producer-secret +1 -0
- data/server/instances/7/notifications/d83173e3a3f5d1e05f5182042d5b627e/subscription.xml +5 -0
- data/server/instances/7/notifications/logging/consumer-secret +1 -0
- data/server/instances/7/notifications/logging/producer-secret +1 -0
- data/server/instances/7/notifications/logging/subscription.xml +16 -0
- data/server/instances/7/properties.xml +78 -0
- data/server/instances/8/notifications/d6eb404431e5643fdbcf3a3ead0bdec5/consumer-secret +1 -0
- data/server/instances/8/notifications/d6eb404431e5643fdbcf3a3ead0bdec5/producer-secret +1 -0
- data/server/instances/8/notifications/d6eb404431e5643fdbcf3a3ead0bdec5/subscription.xml +5 -0
- data/server/instances/8/notifications/logging/consumer-secret +1 -0
- data/server/instances/8/notifications/logging/producer-secret +1 -0
- data/server/instances/8/notifications/logging/subscription.xml +16 -0
- data/server/instances/8/properties.xml +80 -0
- data/server/instances/9/notifications/e242ccf30f3878511aaf390e20e42d5d/consumer-secret +1 -0
- data/server/instances/9/notifications/e242ccf30f3878511aaf390e20e42d5d/producer-secret +1 -0
- data/server/instances/9/notifications/e242ccf30f3878511aaf390e20e42d5d/subscription.xml +38 -0
- data/server/instances/9/notifications/logging/consumer-secret +1 -0
- data/server/instances/9/notifications/logging/producer-secret +1 -0
- data/server/instances/9/notifications/logging/subscription.xml +16 -0
- data/server/instances/9/properties.xml +97 -0
- data/server/resources/notifications/logging/consumer-secret +1 -0
- data/server/resources/notifications/logging/producer-secret +1 -0
- data/server/resources/notifications/logging/subscription.xml +16 -0
- data/server/resources/transformation_dslx.xsl +2 -2
- data/server/server.pid +1 -0
- data/tools/cpee +22 -8
- metadata +103 -5
@@ -0,0 +1 @@
|
|
1
|
+
37ce8b34e23659b5f3c6dd046241b3ac
|
@@ -0,0 +1 @@
|
|
1
|
+
82c48ff1425bb2bc7970a0684328d20e
|
@@ -0,0 +1 @@
|
|
1
|
+
f7c77861ac613eeac8fb9829c9a545a2
|
@@ -0,0 +1 @@
|
|
1
|
+
2a24d172b1aeb05fe94fdc5e095dec32
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/">
|
2
|
+
<topic id="activity">
|
3
|
+
<event>calling</event>
|
4
|
+
<event>receiving</event>
|
5
|
+
<event>done</event>
|
6
|
+
</topic>
|
7
|
+
<topic id="dataelements">
|
8
|
+
<event>change</event>
|
9
|
+
</topic>
|
10
|
+
<topic id="endpoints">
|
11
|
+
<event>change</event>
|
12
|
+
</topic>
|
13
|
+
<topic id="attributes">
|
14
|
+
<event>change</event>
|
15
|
+
</topic>
|
16
|
+
</subscription>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>546a855f-6223-49ed-bc7d-c256b391663b</uuid>
|
4
|
+
<info>Take Time</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
<customer>pilotfabrik</customer>
|
8
|
+
<status>development</status>
|
9
|
+
</attributes>
|
10
|
+
<state changed="2019-02-12T22:53:58+01:00">ready</state>
|
11
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
12
|
+
<positions/>
|
13
|
+
<dataelements/>
|
14
|
+
<endpoints>
|
15
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
16
|
+
</endpoints>
|
17
|
+
<dsl>call :a1, :timeout, parameters: { :label => "", :method => :post, :arguments => [⭐(:name => :timeout, :value => "5")] }, finalize: <<-END
|
18
|
+
data.a = 17
|
19
|
+
END
|
20
|
+
</dsl>
|
21
|
+
<dslx>
|
22
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
23
|
+
<call id="a1" endpoint="timeout">
|
24
|
+
<parameters>
|
25
|
+
<label/>
|
26
|
+
<method>:post</method>
|
27
|
+
<arguments>
|
28
|
+
<timeout>5</timeout>
|
29
|
+
</arguments>
|
30
|
+
</parameters>
|
31
|
+
<finalize output="result">data.a = 17</finalize>
|
32
|
+
<update output="result"/>
|
33
|
+
<_timing>
|
34
|
+
<_timing_min/>
|
35
|
+
<_timing_max/>
|
36
|
+
<_timing_avg/>
|
37
|
+
</_timing>
|
38
|
+
<_notes>
|
39
|
+
<_notes_general/>
|
40
|
+
<_attachments/>
|
41
|
+
</_notes>
|
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="timeout">
|
52
|
+
<parameters>
|
53
|
+
<label/>
|
54
|
+
<method>:post</method>
|
55
|
+
<arguments>
|
56
|
+
<timeout>5</timeout>
|
57
|
+
</arguments>
|
58
|
+
</parameters>
|
59
|
+
<finalize output="result">data.a = 17</finalize>
|
60
|
+
<update output="result"/>
|
61
|
+
<_timing>
|
62
|
+
<_timing_min/>
|
63
|
+
<_timing_max/>
|
64
|
+
<_timing_avg/>
|
65
|
+
</_timing>
|
66
|
+
<_notes>
|
67
|
+
<_notes_general/>
|
68
|
+
<_attachments/>
|
69
|
+
</_notes>
|
70
|
+
</call>
|
71
|
+
</description>
|
72
|
+
</description>
|
73
|
+
<transformation>
|
74
|
+
<description type="copy"/>
|
75
|
+
<dataelements type="none"/>
|
76
|
+
<endpoints type="none"/>
|
77
|
+
</transformation>
|
78
|
+
</properties>
|
@@ -0,0 +1 @@
|
|
1
|
+
2ab960e5f1760300b4f9f8d1fa256ca3
|
@@ -0,0 +1 @@
|
|
1
|
+
7158603441e1dfdc21d29d9740692b61
|
@@ -0,0 +1 @@
|
|
1
|
+
f7c77861ac613eeac8fb9829c9a545a2
|
@@ -0,0 +1 @@
|
|
1
|
+
2a24d172b1aeb05fe94fdc5e095dec32
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/">
|
2
|
+
<topic id="activity">
|
3
|
+
<event>calling</event>
|
4
|
+
<event>receiving</event>
|
5
|
+
<event>done</event>
|
6
|
+
</topic>
|
7
|
+
<topic id="dataelements">
|
8
|
+
<event>change</event>
|
9
|
+
</topic>
|
10
|
+
<topic id="endpoints">
|
11
|
+
<event>change</event>
|
12
|
+
</topic>
|
13
|
+
<topic id="attributes">
|
14
|
+
<event>change</event>
|
15
|
+
</topic>
|
16
|
+
</subscription>
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>ccb051e7-639f-4b51-a1e3-3fd5a55f2c02</uuid>
|
4
|
+
<info>Take Time</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
<customer>pilotfabrik</customer>
|
8
|
+
<status>development</status>
|
9
|
+
</attributes>
|
10
|
+
<state changed="2019-02-12T22:59:53+01:00">finished</state>
|
11
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
12
|
+
<positions/>
|
13
|
+
<dataelements>
|
14
|
+
<a>17</a>
|
15
|
+
</dataelements>
|
16
|
+
<endpoints>
|
17
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
18
|
+
</endpoints>
|
19
|
+
<dsl>call :a1, :timeout, parameters: { :label => "", :method => :post, :arguments => [⭐(:name => :timeout, :value => "5")] }, finalize: <<-END
|
20
|
+
data.a = 17
|
21
|
+
END
|
22
|
+
</dsl>
|
23
|
+
<dslx>
|
24
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
25
|
+
<call id="a1" endpoint="timeout">
|
26
|
+
<parameters>
|
27
|
+
<label/>
|
28
|
+
<method>:post</method>
|
29
|
+
<arguments>
|
30
|
+
<timeout>5</timeout>
|
31
|
+
</arguments>
|
32
|
+
</parameters>
|
33
|
+
<finalize output="result">data.a = 17</finalize>
|
34
|
+
<update output="result"/>
|
35
|
+
<_timing>
|
36
|
+
<_timing_min/>
|
37
|
+
<_timing_max/>
|
38
|
+
<_timing_avg/>
|
39
|
+
</_timing>
|
40
|
+
<_notes>
|
41
|
+
<_notes_general/>
|
42
|
+
<_attachments/>
|
43
|
+
</_notes>
|
44
|
+
</call>
|
45
|
+
</description>
|
46
|
+
</dslx>
|
47
|
+
<status>
|
48
|
+
<id>0</id>
|
49
|
+
<message>undefined</message>
|
50
|
+
</status>
|
51
|
+
<description>
|
52
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
53
|
+
<call id="a1" endpoint="timeout">
|
54
|
+
<parameters>
|
55
|
+
<label/>
|
56
|
+
<method>:post</method>
|
57
|
+
<arguments>
|
58
|
+
<timeout>5</timeout>
|
59
|
+
</arguments>
|
60
|
+
</parameters>
|
61
|
+
<finalize output="result">data.a = 17</finalize>
|
62
|
+
<update output="result"/>
|
63
|
+
<_timing>
|
64
|
+
<_timing_min/>
|
65
|
+
<_timing_max/>
|
66
|
+
<_timing_avg/>
|
67
|
+
</_timing>
|
68
|
+
<_notes>
|
69
|
+
<_notes_general/>
|
70
|
+
<_attachments/>
|
71
|
+
</_notes>
|
72
|
+
</call>
|
73
|
+
</description>
|
74
|
+
</description>
|
75
|
+
<transformation>
|
76
|
+
<description type="copy"/>
|
77
|
+
<dataelements type="none"/>
|
78
|
+
<endpoints type="none"/>
|
79
|
+
</transformation>
|
80
|
+
</properties>
|
@@ -0,0 +1 @@
|
|
1
|
+
8834afc6608dc137800ef5c84e8a3639
|
@@ -0,0 +1 @@
|
|
1
|
+
f024ba270ead96a1fbf367c26152eefe
|
@@ -0,0 +1,38 @@
|
|
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="attributes">
|
26
|
+
<event>change</event>
|
27
|
+
</topic>
|
28
|
+
<topic id="transformation">
|
29
|
+
<event>change</event>
|
30
|
+
</topic>
|
31
|
+
<topic id="handlerwrapper">
|
32
|
+
<event>error</event>
|
33
|
+
<event>change</event>
|
34
|
+
</topic>
|
35
|
+
<topic id="handlers">
|
36
|
+
<event>change</event>
|
37
|
+
</topic>
|
38
|
+
</subscription>
|
@@ -0,0 +1 @@
|
|
1
|
+
f7c77861ac613eeac8fb9829c9a545a2
|
@@ -0,0 +1 @@
|
|
1
|
+
2a24d172b1aeb05fe94fdc5e095dec32
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/">
|
2
|
+
<topic id="activity">
|
3
|
+
<event>calling</event>
|
4
|
+
<event>receiving</event>
|
5
|
+
<event>done</event>
|
6
|
+
</topic>
|
7
|
+
<topic id="dataelements">
|
8
|
+
<event>change</event>
|
9
|
+
</topic>
|
10
|
+
<topic id="endpoints">
|
11
|
+
<event>change</event>
|
12
|
+
</topic>
|
13
|
+
<topic id="attributes">
|
14
|
+
<event>change</event>
|
15
|
+
</topic>
|
16
|
+
</subscription>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>7d24f231-44db-4d0b-8193-4601ede4591e</uuid>
|
4
|
+
<info>Subprocess</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
<customer>pilotfabrik</customer>
|
8
|
+
<status>development</status>
|
9
|
+
</attributes>
|
10
|
+
<state changed="2019-02-12T23:06:14+01:00">finished</state>
|
11
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
12
|
+
<positions/>
|
13
|
+
<dataelements>
|
14
|
+
<instance>10</instance>
|
15
|
+
<res>{"CPEE-INSTANCE":"10","CPEE-INSTANCE-URL":"http://localhost:8298/10","CPEE-INSTANCE-UUID":"a6ff458b-8e56-4411-a552-9b943ed69d6b","a":17}</res>
|
16
|
+
</dataelements>
|
17
|
+
<endpoints>
|
18
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
19
|
+
<instantiate>http://localhost:9296/url/</instantiate>
|
20
|
+
</endpoints>
|
21
|
+
<dsl>call :a1, :instantiate, parameters: { :label => "Take 5", :method => :post, :arguments => [⭐(:name => :info, :value => "Take Time"), ⭐(:name => :behavior, :value => "wait_running"), ⭐(:name => :url, :value => "http://localhost/testsets/Take_5.xml"), ⭐(:name => :init, :value => "{ \"a\": 3 }")] }, finalize: <<-END
|
22
|
+
data.instance = result['CPEE-INSTANCE']
|
23
|
+
data.res = result
|
24
|
+
END
|
25
|
+
</dsl>
|
26
|
+
<dslx>
|
27
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
28
|
+
<call id="a1" endpoint="instantiate">
|
29
|
+
<parameters>
|
30
|
+
<label>Take 5</label>
|
31
|
+
<method>:post</method>
|
32
|
+
<arguments>
|
33
|
+
<info>Take Time</info>
|
34
|
+
<behavior>wait_running</behavior>
|
35
|
+
<url>http://localhost/testsets/Take_5.xml</url>
|
36
|
+
<init>
|
37
|
+
<a>3</a>
|
38
|
+
</init>
|
39
|
+
</arguments>
|
40
|
+
</parameters>
|
41
|
+
<finalize output="result">data.instance = result['CPEE-INSTANCE']
|
42
|
+
data.res = result</finalize>
|
43
|
+
<update output="result"/>
|
44
|
+
<_timing>
|
45
|
+
<_timing_min/>
|
46
|
+
<_timing_max/>
|
47
|
+
<_timing_avg/>
|
48
|
+
</_timing>
|
49
|
+
<_notes>
|
50
|
+
<_notes_general/>
|
51
|
+
<_notes_output/>
|
52
|
+
<_attachments/>
|
53
|
+
</_notes>
|
54
|
+
</call>
|
55
|
+
</description>
|
56
|
+
</dslx>
|
57
|
+
<status>
|
58
|
+
<id>0</id>
|
59
|
+
<message>undefined</message>
|
60
|
+
</status>
|
61
|
+
<description>
|
62
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
63
|
+
<call id="a1" endpoint="instantiate">
|
64
|
+
<parameters>
|
65
|
+
<label>Take 5</label>
|
66
|
+
<method>:post</method>
|
67
|
+
<arguments>
|
68
|
+
<info>Take Time</info>
|
69
|
+
<behavior>wait_running</behavior>
|
70
|
+
<url>http://localhost/testsets/Take_5.xml</url>
|
71
|
+
<init>
|
72
|
+
<a>3</a>
|
73
|
+
</init>
|
74
|
+
</arguments>
|
75
|
+
</parameters>
|
76
|
+
<finalize output="result">data.instance = result['CPEE-INSTANCE']
|
77
|
+
data.res = result</finalize>
|
78
|
+
<update output="result"/>
|
79
|
+
<_timing>
|
80
|
+
<_timing_min/>
|
81
|
+
<_timing_max/>
|
82
|
+
<_timing_avg/>
|
83
|
+
</_timing>
|
84
|
+
<_notes>
|
85
|
+
<_notes_general/>
|
86
|
+
<_notes_output/>
|
87
|
+
<_attachments/>
|
88
|
+
</_notes>
|
89
|
+
</call>
|
90
|
+
</description>
|
91
|
+
</description>
|
92
|
+
<transformation>
|
93
|
+
<description type="copy"/>
|
94
|
+
<dataelements type="none"/>
|
95
|
+
<endpoints type="none"/>
|
96
|
+
</transformation>
|
97
|
+
</properties>
|
@@ -0,0 +1 @@
|
|
1
|
+
f7c77861ac613eeac8fb9829c9a545a2
|
@@ -0,0 +1 @@
|
|
1
|
+
2a24d172b1aeb05fe94fdc5e095dec32
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0" url="http://localhost:9299/">
|
2
|
+
<topic id="activity">
|
3
|
+
<event>calling</event>
|
4
|
+
<event>receiving</event>
|
5
|
+
<event>done</event>
|
6
|
+
</topic>
|
7
|
+
<topic id="dataelements">
|
8
|
+
<event>change</event>
|
9
|
+
</topic>
|
10
|
+
<topic id="endpoints">
|
11
|
+
<event>change</event>
|
12
|
+
</topic>
|
13
|
+
<topic id="attributes">
|
14
|
+
<event>change</event>
|
15
|
+
</topic>
|
16
|
+
</subscription>
|
@@ -445,7 +445,7 @@
|
|
445
445
|
<xsl:param name="myspace"/>
|
446
446
|
<xsl:if test="text()">
|
447
447
|
<xsl:for-each select="str:tokenize(text(), '
')">
|
448
|
-
<xsl:value-of select="concat('
',concat(str:padding($myspace+$myspacemultiplier+$myspacemultiplier),string(.)))" />
|
448
|
+
<xsl:value-of select="concat('
',concat(str:padding($myspace+$myspacemultiplier+$myspacemultiplier),str:replace(str:replace(string(.),'\','\\'),'"','\"')))" />
|
449
449
|
</xsl:for-each>
|
450
450
|
<xsl:call-template name="print-newline"/>
|
451
451
|
<xsl:call-template name="print-space">
|
@@ -474,7 +474,7 @@
|
|
474
474
|
</xsl:otherwise>
|
475
475
|
</xsl:choose>
|
476
476
|
<xsl:for-each select="str:tokenize(text(), '
')">
|
477
|
-
<xsl:value-of select="concat('
',concat(str:padding($myspace+$myspacemultiplier+$myspacemultiplier),string(.)))" />
|
477
|
+
<xsl:value-of select="concat('
',concat(str:padding($myspace+$myspacemultiplier+$myspacemultiplier),str:replace(str:replace(string(.),'\','\\'),'"','\"')))" />
|
478
478
|
</xsl:for-each>
|
479
479
|
<xsl:call-template name="print-newline"/>
|
480
480
|
<xsl:call-template name="print-space">
|
data/server/server.pid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
26686
|
data/tools/cpee
CHANGED
@@ -32,11 +32,11 @@ ARGV.options { |opt|
|
|
32
32
|
opt.on("Options:")
|
33
33
|
opt.on("--help", "-h", "This text") { puts opt; exit }
|
34
34
|
opt.on("")
|
35
|
-
opt.on(wrap("[archive DIR URL] save properties from all finished instances listed at URL into DIR
|
35
|
+
opt.on(wrap("[archive DIR URL] save properties from all finished instances listed at URL into DIR. Examples:\ncpee archive ./archive http://localhost:9298/\ncpee archive ./archive http://localhost:9298/1/"))
|
36
36
|
opt.on("")
|
37
37
|
opt.on(wrap("[abandon URL] running processes are stopped; ready or stopped processes are abandoned.\ne.g. cpee abandon http://localhost:9298/1/"))
|
38
38
|
opt.on("")
|
39
|
-
opt.on(wrap("[delete! URL]
|
39
|
+
opt.on(wrap("[delete! URL] DANGER ZONE. Vanishes forever. Not in archive.\ne.g. cpee delete! http://localhost:9298/1/"))
|
40
40
|
opt.on("")
|
41
41
|
opt.on(wrap("[new DIR] scaffolds a sample execution engine. Everything except instances can be removed for default behaviour."))
|
42
42
|
opt.on("")
|
@@ -80,12 +80,26 @@ elsif command == 'archive'
|
|
80
80
|
if res.success?
|
81
81
|
if res.headers['Content-Type'] =~ /^(text|application)\/xml/
|
82
82
|
XML::Smart.string(res.response_body) do |doc|
|
83
|
-
doc.root.
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
83
|
+
if doc.root.qname.to_s == "instances"
|
84
|
+
doc.root.children.each do |i|
|
85
|
+
if ["finished","abandoned"].include?(i.attributes['state'])
|
86
|
+
prop = Typhoeus.get(File.join(p2,i.attributes['id'],'properties','/'))
|
87
|
+
if prop.success?
|
88
|
+
File.write(File.join(p1,i.attributes['uuid'] + '.xml'),prop.response_body) if prop.headers['Content-Type'] =~ /^(text|application)\/xml/
|
89
|
+
Typhoeus.delete(File.join(p2,i.attributes['id'],'/'))
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
elsif doc.root.qname.to_s == "info"
|
94
|
+
prop = Typhoeus.get(File.join(p2,'properties','/'))
|
95
|
+
if prop.success?
|
96
|
+
xprop = XML::Smart::string(prop.response_body)
|
97
|
+
xprop.register_namespace 'p', 'http://riddl.org/ns/common-patterns/properties/1.0'
|
98
|
+
if ["finished","abandoned"].include?(xprop.find("string(/p:properties/p:state)"))
|
99
|
+
uuid = xprop.find("string(/p:properties/p:attributes/p:uuid)")
|
100
|
+
id = File.basename(p2)
|
101
|
+
File.write(File.join(p1,uuid + '.xml'),prop.response_body) if prop.headers['Content-Type'] =~ /^(text|application)\/xml/
|
102
|
+
Typhoeus.delete(File.join(p2,'/'))
|
89
103
|
end
|
90
104
|
end
|
91
105
|
end
|