cpee 1.4.14 → 1.4.15

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b035169baa04869f21924b955faaa36c092398680822978bd8104b724ad5c843
4
- data.tar.gz: b6b2d0da1ee104f59032f01ec4a4631fbe895ebaf0a47bd92558dc9df2e21604
3
+ metadata.gz: b13f28d6d5cfedcbb895a4eb6540c4863185775ea7f9278987e5b33c69a6de44
4
+ data.tar.gz: ac3de30fe85b18f5672ab6de0afc9c6fe8a667026c4cd953fc3149ef056416bd
5
5
  SHA512:
6
- metadata.gz: 318c0bec273609a0ecbb00c344b39e2b6eaa668a932726135a494d1a2ad37e5c3016d3a0d76bd73297e2c5c7f504d08418bfa8ea28ec91c92e1838c082664ddb
7
- data.tar.gz: 117def939696e083df7d5b357117065dddccb2e668000250305cfce51f804b6f83adaefcffe58600447aaf259ab92d45871c756f76b4cc56a97c02972660a3dc
6
+ metadata.gz: 9c93bebfe9e70e13b14f8605975660bb6e7832af57a04c662cdedfdfd66ebfc70e6717a8b43336d18df6b86ac8f23023e556676870a8a77859d89f4956ae4461
7
+ data.tar.gz: af1e1fc3393cc605fd726954640607fe402794c8faad542c1866766667f7aa1c2ef09a0a5664f86abc04edf001b921c14625ba9285330e3a8263907f2522a66e
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.4.14"
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"
@@ -120,6 +120,7 @@ module CPEE
120
120
  status, response = res.put [
121
121
  Riddl::Parameter::Simple.new('value',v)
122
122
  ]
123
+ sleep 0.42
123
124
  end rescue nil
124
125
  end
125
126
  end
@@ -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
- $dt = new DateTime();
25
- $siz = formatBytes($stat['size']);
26
- $file = array();
27
- $file['info'] = $yaml['log']['trace']['cpee:name'];
28
- $file['name'] = $entry;
29
- $file['size'] = $siz[0];
30
- $file['sizeunits'] = $siz[1];
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
- $dt->setTimestamp($stat['mtime']);
33
- $file['modified'] = $dt->format("Y-m-d H:i:s");
34
- $file['modifieddate'] = intval($dt->format("Ymd"));
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
- $files[$stat['mtime']] = $file;
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>
@@ -25,6 +25,9 @@
25
25
  <vote>syncing_before</vote>
26
26
  <vote>syncing_after</vote>
27
27
  </topic>
28
+ <topic id='condition'>
29
+ <event>eval</event>
30
+ </topic>
28
31
  <topic id='position'>
29
32
  <event>change</event>
30
33
  </topic>
@@ -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="not(@language) or @language='application/x-ruby'">
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,'\','\\'),'&quot;','\&quot;')"/>
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="not(@language) or @language='application/x-ruby'">
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,'\','\\'),'&quot;','\&quot;')"/>
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="not(@language) or @language='application/x-ruby'">
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,'\','\\'),'&quot;','\&quot;')"/>
243
243
  <xsl:text>")</xsl:text>
244
244
  </xsl:otherwise>
245
245
  </xsl:choose>
@@ -1 +1 @@
1
- 28864
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.14
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-08-16 00:00:00.000000000 Z
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,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>