cpee 1.4.14 → 1.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee.gemspec +1 -1
- data/lib/cpee/instantiation.rb +1 -0
- data/log/logs/index.php +13 -11
- data/server/handlerwrappers/default.rb +6 -0
- data/server/instances/698/notifications/ruleengine/consumer-secret +1 -0
- data/server/instances/698/notifications/ruleengine/producer-secret +1 -0
- data/server/instances/698/notifications/ruleengine/subscription.xml +16 -0
- data/server/instances/698/properties.xml +31 -0
- data/server/resources/topics.xml +3 -0
- data/server/resources/transformation_dslx.xsl +6 -6
- data/server/server.pid +1 -1
- metadata +6 -5
- data/server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/consumer-secret +0 -1
- data/server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/producer-secret +0 -1
- data/server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/subscription.xml +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b13f28d6d5cfedcbb895a4eb6540c4863185775ea7f9278987e5b33c69a6de44
|
4
|
+
data.tar.gz: ac3de30fe85b18f5672ab6de0afc9c6fe8a667026c4cd953fc3149ef056416bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c93bebfe9e70e13b14f8605975660bb6e7832af57a04c662cdedfdfd66ebfc70e6717a8b43336d18df6b86ac8f23023e556676870a8a77859d89f4956ae4461
|
7
|
+
data.tar.gz: af1e1fc3393cc605fd726954640607fe402794c8faad542c1866766667f7aa1c2ef09a0a5664f86abc04edf001b921c14625ba9285330e3a8263907f2522a66e
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.4.
|
3
|
+
s.version = "1.4.15"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
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"
|
data/lib/cpee/instantiation.rb
CHANGED
data/log/logs/index.php
CHANGED
@@ -21,19 +21,21 @@
|
|
21
21
|
if (preg_match("/\.xes\.yaml$/",$entry)) {
|
22
22
|
$stat = stat($entry);
|
23
23
|
$yaml = yaml_parse_file($entry,0);
|
24
|
-
$
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
if (isset($yaml['log']['trace']) && isset($yaml['log']['trace']['cpee:name'])) {
|
25
|
+
$dt = new DateTime();
|
26
|
+
$siz = formatBytes($stat['size']);
|
27
|
+
$file = array();
|
28
|
+
$file['info'] = $yaml['log']['trace']['cpee:name'];
|
29
|
+
$file['name'] = $entry;
|
30
|
+
$file['size'] = $siz[0];
|
31
|
+
$file['sizeunits'] = $siz[1];
|
31
32
|
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
$dt->setTimestamp($stat['mtime']);
|
34
|
+
$file['modified'] = $dt->format("Y-m-d H:i:s");
|
35
|
+
$file['modifieddate'] = intval($dt->format("Ymd"));
|
35
36
|
|
36
|
-
|
37
|
+
$files[$stat['mtime']] = $file;
|
38
|
+
}
|
37
39
|
}
|
38
40
|
}
|
39
41
|
closedir($handle);
|
@@ -222,6 +222,12 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
|
|
222
222
|
end
|
223
223
|
end
|
224
224
|
|
225
|
+
def test_condition(mr,code)
|
226
|
+
res = mr.instance_eval(code)
|
227
|
+
@controller.notify("condition/eval", :instance => @controller.instance, :instance_uuid => @controller.uuid, :code => code, :condition => (res ? "true" : "false"), :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"), :attributes => @controller.attributes_translated)
|
228
|
+
res
|
229
|
+
end
|
230
|
+
|
225
231
|
def simulate(type,nesting,tid,parent,parameters={}) #{{{
|
226
232
|
pp "#{type} - #{nesting} - #{tid} - #{parent} - #{parameters.inspect}"
|
227
233
|
|
@@ -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,31 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>6ee8ca08-e62a-4e2f-97df-89ee8da82a39</uuid>
|
4
|
+
<info/>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>default</theme>
|
7
|
+
</attributes>
|
8
|
+
<state>ready</state>
|
9
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
+
<positions/>
|
11
|
+
<dataelements/>
|
12
|
+
<endpoints>
|
13
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
14
|
+
</endpoints>
|
15
|
+
<dsl/>
|
16
|
+
<dslx>
|
17
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
18
|
+
</dslx>
|
19
|
+
<status>
|
20
|
+
<id>0</id>
|
21
|
+
<message>undefined</message>
|
22
|
+
</status>
|
23
|
+
<description>
|
24
|
+
<description xmlns="http://cpee.org/ns/description/1.0"/>
|
25
|
+
</description>
|
26
|
+
<transformation>
|
27
|
+
<description type="copy"/>
|
28
|
+
<dataelements type="none"/>
|
29
|
+
<endpoints type="none"/>
|
30
|
+
</transformation>
|
31
|
+
</properties>
|
data/server/resources/topics.xml
CHANGED
@@ -119,28 +119,28 @@
|
|
119
119
|
<xsl:text>loop </xsl:text>
|
120
120
|
<xsl:if test="@mode='pre_test'">
|
121
121
|
<xsl:choose>
|
122
|
-
<xsl:when test="
|
122
|
+
<xsl:when test="@language='application/x-ruby'">
|
123
123
|
<xsl:text>pre_test{</xsl:text>
|
124
124
|
<xsl:value-of select="@condition"/>
|
125
125
|
<xsl:text>} </xsl:text>
|
126
126
|
</xsl:when>
|
127
127
|
<xsl:otherwise>
|
128
128
|
<xsl:text>pre_test("</xsl:text>
|
129
|
-
<xsl:value-of select="@condition"/>
|
129
|
+
<xsl:value-of select="str:replace(str:replace(@condition,'\','\\'),'"','\"')"/>
|
130
130
|
<xsl:text>")</xsl:text>
|
131
131
|
</xsl:otherwise>
|
132
132
|
</xsl:choose>
|
133
133
|
</xsl:if>
|
134
134
|
<xsl:if test="@mode='post_test'">
|
135
135
|
<xsl:choose>
|
136
|
-
<xsl:when test="
|
136
|
+
<xsl:when test="@language='application/x-ruby'">
|
137
137
|
<xsl:text>post_test{</xsl:text>
|
138
138
|
<xsl:value-of select="@condition"/>
|
139
139
|
<xsl:text>} </xsl:text>
|
140
140
|
</xsl:when>
|
141
141
|
<xsl:otherwise>
|
142
142
|
<xsl:text>post_test("</xsl:text>
|
143
|
-
<xsl:value-of select="@condition"/>
|
143
|
+
<xsl:value-of select="str:replace(str:replace(@condition,'\','\\'),'"','\"')"/>
|
144
144
|
<xsl:text>")</xsl:text>
|
145
145
|
</xsl:otherwise>
|
146
146
|
</xsl:choose>
|
@@ -232,14 +232,14 @@
|
|
232
232
|
</xsl:call-template>
|
233
233
|
<xsl:text>alternative </xsl:text>
|
234
234
|
<xsl:choose>
|
235
|
-
<xsl:when test="
|
235
|
+
<xsl:when test="@language='application/x-ruby'">
|
236
236
|
<xsl:text>test{</xsl:text>
|
237
237
|
<xsl:value-of select="@condition"/>
|
238
238
|
<xsl:text>}</xsl:text>
|
239
239
|
</xsl:when>
|
240
240
|
<xsl:otherwise>
|
241
241
|
<xsl:text>test("</xsl:text>
|
242
|
-
<xsl:value-of select="@condition"/>
|
242
|
+
<xsl:value-of select="str:replace(str:replace(@condition,'\','\\'),'"','\"')"/>
|
243
243
|
<xsl:text>")</xsl:text>
|
244
244
|
</xsl:otherwise>
|
245
245
|
</xsl:choose>
|
data/server/server.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
31386
|
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.4.
|
4
|
+
version: 1.4.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: tools
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: riddl
|
@@ -384,13 +384,14 @@ files:
|
|
384
384
|
- server/instances/694/properties.xml
|
385
385
|
- server/instances/695/properties.xml
|
386
386
|
- server/instances/696/properties.xml
|
387
|
-
- server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/consumer-secret
|
388
|
-
- server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/producer-secret
|
389
|
-
- server/instances/697/notifications/a183b4ae18e11f2b646201d40b7bfede/subscription.xml
|
390
387
|
- server/instances/697/notifications/ruleengine/consumer-secret
|
391
388
|
- server/instances/697/notifications/ruleengine/producer-secret
|
392
389
|
- server/instances/697/notifications/ruleengine/subscription.xml
|
393
390
|
- server/instances/697/properties.xml
|
391
|
+
- server/instances/698/notifications/ruleengine/consumer-secret
|
392
|
+
- server/instances/698/notifications/ruleengine/producer-secret
|
393
|
+
- server/instances/698/notifications/ruleengine/subscription.xml
|
394
|
+
- server/instances/698/properties.xml
|
394
395
|
- server/instances/7/properties.xml
|
395
396
|
- server/instances/8/properties.xml
|
396
397
|
- server/instances/9/properties.xml
|
@@ -1 +0,0 @@
|
|
1
|
-
43d1346b92825e0e7ad20f179a2748ce
|
@@ -1 +0,0 @@
|
|
1
|
-
9e7ec114be32e18e62975ca5c2ae34b4
|
@@ -1,38 +0,0 @@
|
|
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>
|