cpee 2.1.27 → 2.1.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e72947d6797d6a34cc0908b21b9d30d9186833a377cd38ff10ebcefe30b8618
4
- data.tar.gz: 315abe74acc3d2e86555d8292d643df6f03ee4f5e7ef325f1ee05e87c08ccdee
3
+ metadata.gz: 56e67e4d9fd57c8c9b51f5c5e2dd281f37fc0c219fe607c41d56e8da68cf3802
4
+ data.tar.gz: 5c537c87ed397e3da5a58fa9a06a410371408229d72f8302ac3f8d1aad07bddc
5
5
  SHA512:
6
- metadata.gz: fd25a0b08d05b4b0d257364e55883f9257fbd29ba24dd9d08bdb2cad53c12dc3388914e711a5999d6e737d7e20eb8225d01f2efd758bb85b1afeb9d477b4ecb6
7
- data.tar.gz: 8bd408a48e2868d761e27b0ebec57813b877711c41de16624102faedd4ffb3d2158cc54a0eedca2ff583069b9996547cde3ed2eb1d4b02055396ee6d70e553e2
6
+ metadata.gz: 1e2ffe8f6b2594b0d7badfef16628e2444df2762a639bbaf93f36191c44d69b81a120bd3ed66502f869689039fb8a5e1b0d7c10cfc36200101fc512678678a59
7
+ data.tar.gz: 6eca82caf6987dd5e17c0629be864747444efd7e0d03e202d98c4759e2b5d2d29625911d08fe11c222e8b8a8d05211f7880645c260987b9225216daa93948a82
@@ -0,0 +1,79 @@
1
+ <?xml version="1.0"?>
2
+ <testset xmlns="http://cpee.org/ns/properties/2.0">
3
+ <executionhandler>ruby</executionhandler>
4
+ <dataelements/>
5
+ <endpoints>
6
+ <timeout>https://cpee.org/services/timeout.php</timeout>
7
+ <subprocess>https://cpee.org/flow/start/url/</subprocess>
8
+ </endpoints>
9
+ <attributes>
10
+ <info>Subprocess</info>
11
+ <creator>Christine Ashcreek</creator>
12
+ <author>Christine Ashcreek</author>
13
+ <modeltype>CPEE</modeltype>
14
+ <guarded>none</guarded>
15
+ <guarded_id/>
16
+ <model_uuid>1fc43528-3e4a-40ee-8503-c0ed7e5d883c</model_uuid>
17
+ <model_version/>
18
+ <theme>extended</theme>
19
+ <design_dir>Templates.dir</design_dir>
20
+ <design_stage>development</design_stage>
21
+ </attributes>
22
+ <description>
23
+ <description xmlns="http://cpee.org/ns/description/1.0">
24
+ <call id="a1" endpoint="subprocess">
25
+ <parameters>
26
+ <label>Sub</label>
27
+ <method>:post</method>
28
+ <arguments>
29
+ <behavior>wait_running</behavior>
30
+ <url>https://cpee.org/design/server/Templates.dir/Wait.xml</url>
31
+ <init>
32
+ <bla>3</bla>
33
+ </init>
34
+ <endpoints/>
35
+ <customization/>
36
+ </arguments>
37
+ </parameters>
38
+ <code>
39
+ <prepare/>
40
+ <finalize output="result">data.test = result</finalize>
41
+ <update output="result"/>
42
+ <rescue output="result"/>
43
+ </code>
44
+ <annotations>
45
+ <_timing>
46
+ <_timing_weight/>
47
+ <_timing_avg/>
48
+ <explanations/>
49
+ </_timing>
50
+ <_context_data_analysis>
51
+ <probes/>
52
+ <ips/>
53
+ </_context_data_analysis>
54
+ <report>
55
+ <url/>
56
+ </report>
57
+ <_notes>
58
+ <_notes_general/>
59
+ </_notes>
60
+ </annotations>
61
+ <documentation>
62
+ <input/>
63
+ <output/>
64
+ <implementation>
65
+ <description/>
66
+ </implementation>
67
+ <code>
68
+ <description/>
69
+ </code>
70
+ </documentation>
71
+ </call>
72
+ </description>
73
+ </description>
74
+ <transformation>
75
+ <description type="copy"/>
76
+ <dataelements type="none"/>
77
+ <endpoints type="none"/>
78
+ </transformation>
79
+ </testset>
@@ -0,0 +1 @@
1
+ https://cpee.org/flow/engine/215
@@ -0,0 +1 @@
1
+ e109897c-8484-4d87-b7d3-8786731a2f0a
@@ -0,0 +1,13 @@
1
+ {
2
+ "info": "Subprocess",
3
+ "creator": "Christine Ashcreek",
4
+ "author": "Christine Ashcreek",
5
+ "modeltype": "CPEE",
6
+ "guarded": "none",
7
+ "guarded_id": "",
8
+ "model_uuid": "1fc43528-3e4a-40ee-8503-c0ed7e5d883c",
9
+ "model_version": "",
10
+ "theme": "extended",
11
+ "design_dir": "Templates.dir",
12
+ "design_stage": "development"
13
+ }
@@ -1,3 +1,4 @@
1
+ <?xml version="1.0"?>
1
2
  <testset xmlns="http://cpee.org/ns/properties/2.0">
2
3
  <executionhandler>ruby</executionhandler>
3
4
  <dataelements>
@@ -6,7 +7,17 @@
6
7
  <endpoints>
7
8
  <start_url>https://cpee.org/flow/start/url/</start_url>
8
9
  </endpoints>
9
- <positions/>
10
+ <attributes>
11
+ <info>Track Test</info>
12
+ <modeltype>CPEE</modeltype>
13
+ <theme>default</theme>
14
+ <customer>pilotfabrik</customer>
15
+ <status>development</status>
16
+ <creator>Christine Ashcreek</creator>
17
+ <author>Christine Ashcreek</author>
18
+ <design_stage>development</design_stage>
19
+ <design_dir>Templates.dir</design_dir>
20
+ </attributes>
10
21
  <description>
11
22
  <description xmlns="http://cpee.org/ns/description/1.0">
12
23
  <loop mode="pre_test" condition="true">
@@ -26,33 +37,36 @@
26
37
  <behavior>wait_running</behavior>
27
38
  <url>https://cpee.org/flow/templates/instantiate/Take_Sub.xml</url>
28
39
  <init>
29
- <time>4</time>
40
+ <time>5</time>
30
41
  </init>
31
42
  <endpoints/>
32
- <stream/>
43
+ <customization/>
33
44
  </arguments>
34
- <stream>
35
- <sensors/>
36
- <aggregators/>
37
- <costs/>
38
- </stream>
39
- <report>
40
- <url/>
41
- </report>
42
45
  </parameters>
43
46
  <annotations>
44
47
  <_timing>
45
- <_timing_wait/>
46
- <_timing_threshold/>
47
- <_timing_min/>
48
- <_timing_max/>
48
+ <_timing_weight/>
49
49
  <_timing_avg/>
50
+ <_context_data_analysis>
51
+ <probes/>
52
+ <ips/>
53
+ </_context_data_analysis>
54
+ <report>
55
+ <url/>
56
+ </report>
57
+ <explanations/>
50
58
  </_timing>
51
59
  <_notes>
52
60
  <_notes_general/>
53
61
  </_notes>
54
62
  </annotations>
55
- <documentation/>
63
+ <documentation>
64
+ <input/>
65
+ <output/>
66
+ <implementation>
67
+ <description/>
68
+ </implementation>
69
+ </documentation>
56
70
  </call>
57
71
  </parallel_branch>
58
72
  <manipulate id="a4" label="">data.i += 1</manipulate>
@@ -73,15 +87,4 @@
73
87
  <dataelements type="none"/>
74
88
  <endpoints type="none"/>
75
89
  </transformation>
76
- <attributes>
77
- <info>Track Test</info>
78
- <modeltype>CPEE</modeltype>
79
- <theme>default</theme>
80
- <customer>pilotfabrik</customer>
81
- <status>development</status>
82
- <creator>Christine Ashcreek</creator>
83
- <author>Christine Ashcreek</author>
84
- <design_stage>development</design_stage>
85
- <design_dir>Templates.dir</design_dir>
86
- </attributes>
87
- </testset>
90
+ </testset>
@@ -0,0 +1 @@
1
+ https://cpee.org/flow/engine/194
@@ -0,0 +1 @@
1
+ 92a04ef3-759d-451b-97ef-a5dab3c8809a
@@ -0,0 +1,11 @@
1
+ {
2
+ "info": "Track Test",
3
+ "modeltype": "CPEE",
4
+ "theme": "default",
5
+ "customer": "pilotfabrik",
6
+ "status": "development",
7
+ "creator": "Christine Ashcreek",
8
+ "author": "Christine Ashcreek",
9
+ "design_stage": "development",
10
+ "design_dir": "Templates.dir"
11
+ }
@@ -0,0 +1,73 @@
1
+ <?xml version="1.0"?>
2
+ <testset xmlns="http://cpee.org/ns/properties/2.0">
3
+ <executionhandler>ruby</executionhandler>
4
+ <dataelements/>
5
+ <endpoints>
6
+ <timeout>https://cpee.org/services/timeout.php</timeout>
7
+ <subprocess>https://cpee.org/flow/start/url/</subprocess>
8
+ </endpoints>
9
+ <attributes>
10
+ <info>Wait</info>
11
+ <creator>Christine Ashcreek</creator>
12
+ <author>Christine Ashcreek</author>
13
+ <modeltype>CPEE</modeltype>
14
+ <guarded>none</guarded>
15
+ <guarded_id/>
16
+ <model_uuid>c09dad6b-547e-41a9-8f31-95c40e71c607</model_uuid>
17
+ <model_version/>
18
+ <theme>extended</theme>
19
+ <design_dir>Templates.dir</design_dir>
20
+ <design_stage>development</design_stage>
21
+ </attributes>
22
+ <description>
23
+ <description xmlns="http://cpee.org/ns/description/1.0">
24
+ <call id="a1" endpoint="timeout">
25
+ <parameters>
26
+ <label>Wait </label>
27
+ <method>:post</method>
28
+ <arguments>
29
+ <timeout>2</timeout>
30
+ </arguments>
31
+ </parameters>
32
+ <code>
33
+ <prepare/>
34
+ <finalize output="result">data.test = 7</finalize>
35
+ <update output="result"/>
36
+ <rescue output="result"/>
37
+ </code>
38
+ <annotations>
39
+ <_timing>
40
+ <_timing_weight/>
41
+ <_timing_avg/>
42
+ <explanations/>
43
+ </_timing>
44
+ <_context_data_analysis>
45
+ <probes/>
46
+ <ips/>
47
+ </_context_data_analysis>
48
+ <report>
49
+ <url/>
50
+ </report>
51
+ <_notes>
52
+ <_notes_general/>
53
+ </_notes>
54
+ </annotations>
55
+ <documentation>
56
+ <input/>
57
+ <output/>
58
+ <implementation>
59
+ <description/>
60
+ </implementation>
61
+ <code>
62
+ <description/>
63
+ </code>
64
+ </documentation>
65
+ </call>
66
+ </description>
67
+ </description>
68
+ <transformation>
69
+ <description type="copy"/>
70
+ <dataelements type="none"/>
71
+ <endpoints type="none"/>
72
+ </transformation>
73
+ </testset>
@@ -0,0 +1 @@
1
+ https://cpee.org/flow/engine/199
@@ -0,0 +1 @@
1
+ bf96a05e-845c-4f6e-88a8-b0d0d0ea9b8f
@@ -0,0 +1,13 @@
1
+ {
2
+ "info": "Wait",
3
+ "creator": "Christine Ashcreek",
4
+ "author": "Christine Ashcreek",
5
+ "modeltype": "CPEE",
6
+ "guarded": "none",
7
+ "guarded_id": "",
8
+ "model_uuid": "c09dad6b-547e-41a9-8f31-95c40e71c607",
9
+ "model_version": "",
10
+ "theme": "extended",
11
+ "design_dir": "Templates.dir",
12
+ "design_stage": "development"
13
+ }
@@ -15,19 +15,22 @@
15
15
  <method>:get</method>
16
16
  <arguments/>
17
17
  </parameters>
18
- <_timing>
19
- <_timing_min/>
20
- <_timing_max/>
21
- <_timing_avg/>
22
- </_timing>
23
- <_notes>
24
- <_notes_general/>
25
- <_attachments/>
26
- </_notes>
27
18
  <code>
28
19
  <finalize output="result"/>
29
20
  <update output="result"/>
30
21
  </code>
22
+ <annotations>
23
+ <_timing>
24
+ <_timing_min/>
25
+ <_timing_max/>
26
+ <_timing_avg/>
27
+ </_timing>
28
+ <_notes>
29
+ <_notes_general/>
30
+ <_attachments/>
31
+ </_notes>
32
+ </annotations>
33
+ <documentation/>
31
34
  </call>
32
35
  </description>
33
36
  </description>
@@ -43,4 +46,4 @@
43
46
  <customer>pilotfabrik</customer>
44
47
  <status>development</status>
45
48
  </attributes>
46
- </testset>
49
+ </testset>
@@ -19,14 +19,6 @@
19
19
  <endpoints/>
20
20
  <stream/>
21
21
  </arguments>
22
- <stream>
23
- <sensors/>
24
- <aggregators/>
25
- <costs/>
26
- </stream>
27
- <report>
28
- <url/>
29
- </report>
30
22
  </parameters>
31
23
  <annotations>
32
24
  <_timing>
@@ -39,7 +31,11 @@
39
31
  <_notes>
40
32
  <_notes_general/>
41
33
  </_notes>
34
+ <report>
35
+ <url/>
36
+ </report>
42
37
  </annotations>
38
+ <documentation/>
43
39
  </call>
44
40
  </description>
45
41
  </description>
@@ -17,19 +17,22 @@
17
17
  <timeout>!data.time</timeout>
18
18
  </arguments>
19
19
  </parameters>
20
- <_timing>
21
- <_timing_min/>
22
- <_timing_max/>
23
- <_timing_avg/>
24
- </_timing>
25
- <_notes>
26
- <_notes_general/>
27
- <_attachments/>
28
- </_notes>
29
20
  <code>
30
21
  <finalize output="result">data.duration = data.time</finalize>
31
22
  <update output="result"/>
32
23
  </code>
24
+ <annotations>
25
+ <_timing>
26
+ <_timing_min/>
27
+ <_timing_max/>
28
+ <_timing_avg/>
29
+ </_timing>
30
+ <_notes>
31
+ <_notes_general/>
32
+ <_attachments/>
33
+ </_notes>
34
+ </annotations>
35
+ <documentation/>
33
36
  </call>
34
37
  </description>
35
38
  </description>
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.1.27"
3
+ s.version = "2.1.29"
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.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
@@ -263,7 +263,7 @@ module CPEE
263
263
  def response
264
264
  opts = @a[0]
265
265
  id = @r[0].to_i
266
- unless opts[:redis].exists?("instance:#{id}/state")
266
+ unless CPEE::Persistence::exists?(id,opts)
267
267
  @status = 404
268
268
  return
269
269
  end
@@ -285,7 +285,7 @@ module CPEE
285
285
  opts = @a[0]
286
286
  redis = opts[:redis]
287
287
  id = @r[0].to_i
288
- unless redis.exists?("instance:#{id}/state")
288
+ unless CPEE::Persistence::exists?(id,opts)
289
289
  @status = 404
290
290
  return
291
291
  end
@@ -297,4 +297,11 @@ module CPEE
297
297
  end
298
298
  end #}}}
299
299
 
300
+ class FAIL < Riddl::Implementation #{{{
301
+ def response
302
+ @status = 404
303
+ nil
304
+ end
305
+ end #}}}
306
+
300
307
  end
@@ -19,11 +19,15 @@ module CPEE
19
19
 
20
20
  def self::implementation(id,opts)
21
21
  Proc.new do
22
- run CPEE::Callbacks::Callbacks, id, opts if get
23
- on resource do
24
- run CPEE::Callbacks::GetCallback, id, opts if get
25
- run CPEE::Callbacks::DelCallback, id, opts if delete
26
- run CPEE::Callbacks::ExCallback, id, opts if put
22
+ if CPEE::Persistence::exists?(id,opts)
23
+ run CPEE::Callbacks::Callbacks, id, opts if get
24
+ on resource do
25
+ run CPEE::Callbacks::GetCallback, id, opts if get
26
+ run CPEE::Callbacks::DelCallback, id, opts if delete
27
+ run CPEE::Callbacks::ExCallback, id, opts if put
28
+ end
29
+ else
30
+ run CPEE::FAIL
27
31
  end
28
32
  end
29
33
  end
@@ -19,23 +19,27 @@ module CPEE
19
19
 
20
20
  def self::implementation(id,opts)
21
21
  Proc.new do
22
- on resource "notifications" do
23
- run CPEE::Notifications::Overview if get
24
- on resource "topics" do
25
- run CPEE::Notifications::Topics, opts if get
26
- end
27
- on resource "subscriptions" do
28
- run CPEE::Notifications::Subscriptions, id, opts if get
29
- run CPEE::Notifications::CreateSubscription, id, opts if post 'create_subscription'
30
- on resource do
31
- run CPEE::Notifications::Subscription, id, opts if get
32
- run CPEE::Notifications::UpdateSubscription, id, opts if put 'change_subscription'
33
- run CPEE::Notifications::DeleteSubscription, id, opts if delete
34
- on resource 'sse' do
35
- run CPEE::Notifications::SSE, id, opts if sse
22
+ if CPEE::Persistence::exists?(id,opts)
23
+ on resource "notifications" do
24
+ run CPEE::Notifications::Overview if get
25
+ on resource "topics" do
26
+ run CPEE::Notifications::Topics, opts if get
27
+ end
28
+ on resource "subscriptions" do
29
+ run CPEE::Notifications::Subscriptions, id, opts if get
30
+ run CPEE::Notifications::CreateSubscription, id, opts if post 'create_subscription'
31
+ on resource do
32
+ run CPEE::Notifications::Subscription, id, opts if get
33
+ run CPEE::Notifications::UpdateSubscription, id, opts if put 'change_subscription'
34
+ run CPEE::Notifications::DeleteSubscription, id, opts if delete
35
+ on resource 'sse' do
36
+ run CPEE::Notifications::SSE, id, opts if sse
37
+ end
36
38
  end
37
39
  end
38
40
  end
41
+ else
42
+ run CPEE::FAIL
39
43
  end
40
44
  end
41
45
  end
@@ -25,71 +25,75 @@ module CPEE
25
25
 
26
26
  def self::implementation(id,opts)
27
27
  Proc.new do
28
- run CPEE::Properties::Get, id, opts if get
29
- run CPEE::Properties::Patch, id, opts if patch 'set-some-properties'
30
- run CPEE::Properties::Put, id, opts if put 'set-some-properties'
31
- on resource 'state' do
32
- run CPEE::Properties::GetStateMachine, id, opts if get 'machine'
33
- run CPEE::Properties::GetState, id, opts if get
34
- run CPEE::Properties::PutState, id, opts if put 'state'
35
- on resource '@changed' do
36
- run CPEE::Properties::GetStateChanged, id, opts if get
37
- end
38
- end
39
- on resource 'status' do
40
- run CPEE::Properties::GetStatus, id, opts if get
41
- run CPEE::Properties::PutStatus, id, opts if put 'status'
42
- on resource 'id' do
43
- run CPEE::Properties::GetStatusID, id, opts if get
44
- end
45
- on resource 'message' do
46
- run CPEE::Properties::GetStatusMessage, id, opts if get
47
- end
48
- end
49
- on resource 'executionhandler' do
50
- run CPEE::Properties::GetExecutionHandler, id, opts if get
51
- run CPEE::Properties::PutExecutionHandler, id, opts if put 'executionhandler'
52
- end
53
- on resource 'positions' do
54
- run CPEE::Properties::GetPositions, id, opts if get
55
- run CPEE::Properties::PatchPositions, id, opts if patch 'positions'
56
- run CPEE::Properties::PutPositions, id, opts if put 'positions'
57
- run CPEE::Properties::PostPositions, id, opts if post 'position'
58
- on resource do
59
- run CPEE::Properties::GetDetail, 'positions', id, opts if get
60
- run CPEE::Properties::SetDetail, id, opts if put 'detail'
61
- run CPEE::Properties::DelDetail, id, opts if delete
62
- on resource '@passthrough' do
63
- run CPEE::Properties::GetPt, id, opts if get
28
+ if CPEE::Persistence::exists?(id,opts)
29
+ run CPEE::Properties::Get, id, opts if get
30
+ run CPEE::Properties::Patch, id, opts if patch 'set-some-properties'
31
+ run CPEE::Properties::Put, id, opts if put 'set-some-properties'
32
+ on resource 'state' do
33
+ run CPEE::Properties::GetStateMachine, id, opts if get 'machine'
34
+ run CPEE::Properties::GetState, id, opts if get
35
+ run CPEE::Properties::PutState, id, opts if put 'state'
36
+ on resource '@changed' do
37
+ run CPEE::Properties::GetStateChanged, id, opts if get
64
38
  end
65
39
  end
66
- end
67
- %w{dataelements endpoints attributes}.each do |ele|
68
- on resource ele do
69
- run CPEE::Properties::GetItems, ele, id, opts if get
70
- run CPEE::Properties::PatchItems, ele, id, opts if patch ele
71
- run CPEE::Properties::PutItems, ele, id, opts if put ele
72
- run CPEE::Properties::PostItem, ele, id, opts if post ele[0..-2]
40
+ on resource 'status' do
41
+ run CPEE::Properties::GetStatus, id, opts if get
42
+ run CPEE::Properties::PutStatus, id, opts if put 'status'
43
+ on resource 'id' do
44
+ run CPEE::Properties::GetStatusID, id, opts if get
45
+ end
46
+ on resource 'message' do
47
+ run CPEE::Properties::GetStatusMessage, id, opts if get
48
+ end
49
+ end
50
+ on resource 'executionhandler' do
51
+ run CPEE::Properties::GetExecutionHandler, id, opts if get
52
+ run CPEE::Properties::PutExecutionHandler, id, opts if put 'executionhandler'
53
+ end
54
+ on resource 'positions' do
55
+ run CPEE::Properties::GetPositions, id, opts if get
56
+ run CPEE::Properties::PatchPositions, id, opts if patch 'positions'
57
+ run CPEE::Properties::PutPositions, id, opts if put 'positions'
58
+ run CPEE::Properties::PostPositions, id, opts if post 'position'
73
59
  on resource do
74
- run CPEE::Properties::GetItem, ele, id, opts if get
75
- run CPEE::Properties::SetItem, ele, id, opts if put 'string'
76
- run CPEE::Properties::DelItem, ele, id, opts if delete
60
+ run CPEE::Properties::GetDetail, 'positions', id, opts if get
61
+ run CPEE::Properties::SetDetail, id, opts if put 'detail'
62
+ run CPEE::Properties::DelDetail, id, opts if delete
63
+ on resource '@passthrough' do
64
+ run CPEE::Properties::GetPt, id, opts if get
65
+ end
77
66
  end
78
67
  end
79
- end
80
- on resource 'dsl' do
81
- run CPEE::Properties::GetComplex, 'dsl', 'text/plain', id, opts if get
82
- end
83
- on resource 'dslx' do
84
- run CPEE::Properties::GetComplex, 'dslx', 'text/xml', id, opts if get
85
- end
86
- on resource 'description' do
87
- run CPEE::Properties::GetComplex, 'description', 'text/xml', id, opts if get
88
- run CPEE::Properties::PutDescription, id, opts if put 'description'
89
- end
90
- on resource 'transformation' do
91
- run CPEE::Properties::GetTransformation, id, opts if get
92
- run CPEE::Properties::PutTransformation, id, opts if put 'transformation'
68
+ %w{dataelements endpoints attributes}.each do |ele|
69
+ on resource ele do
70
+ run CPEE::Properties::GetItems, ele, id, opts if get
71
+ run CPEE::Properties::PatchItems, ele, id, opts if patch ele
72
+ run CPEE::Properties::PutItems, ele, id, opts if put ele
73
+ run CPEE::Properties::PostItem, ele, id, opts if post ele[0..-2]
74
+ on resource do
75
+ run CPEE::Properties::GetItem, ele, id, opts if get
76
+ run CPEE::Properties::SetItem, ele, id, opts if put 'string'
77
+ run CPEE::Properties::DelItem, ele, id, opts if delete
78
+ end
79
+ end
80
+ end
81
+ on resource 'dsl' do
82
+ run CPEE::Properties::GetComplex, 'dsl', 'text/plain', id, opts if get
83
+ end
84
+ on resource 'dslx' do
85
+ run CPEE::Properties::GetComplex, 'dslx', 'text/xml', id, opts if get
86
+ end
87
+ on resource 'description' do
88
+ run CPEE::Properties::GetComplex, 'description', 'text/xml', id, opts if get
89
+ run CPEE::Properties::PutDescription, id, opts if put 'description'
90
+ end
91
+ on resource 'transformation' do
92
+ run CPEE::Properties::GetTransformation, id, opts if get
93
+ run CPEE::Properties::PutTransformation, id, opts if put 'transformation'
94
+ end
95
+ else
96
+ run CPEE::FAIL
93
97
  end
94
98
  end
95
99
  end
@@ -63,6 +63,10 @@ module CPEE
63
63
  opts[:redis].get("instance:#{id}/#{item}")
64
64
  end #}}}
65
65
 
66
+ def self::exists?(id,opts) #{{{
67
+ opts[:redis].exists?("instance:#{id}/state")
68
+ end #}}}
69
+
66
70
  def self::set_handler(id,opts,key,url,values,update=false) #{{{
67
71
  exis = opts[:redis].smembers("instance:#{id}/handlers/#{key}")
68
72
 
@@ -149,8 +149,8 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
149
149
  def activity_handle(passthrough, parameters) # {{{
150
150
  raise "Wrong endpoint" if @handler_endpoint.nil? || @handler_endpoint.empty?
151
151
  @label = parameters[:label]
152
- @anno = parameters[:annotations]
153
- @controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters, :annotations => anno)
152
+ @anno = parameters.delete(:annotations) rescue nil
153
+ @controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters, :annotations => @anno)
154
154
  if passthrough.to_s.empty?
155
155
  proto_curl parameters
156
156
  else
@@ -198,7 +198,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
198
198
  @controller.notify("status/change", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :id => status.id, :message => status.message)
199
199
  end
200
200
  unless changed_dataelements.nil? || changed_dataelements.empty?
201
- de = dataelements.slice(*changed_dataelements).transform_values { |v| enc = detect_encoding(v); (enc == 'OTHER' ? v.inspect : (v.encode('UTF-8',enc) rescue convert_to_base64(v))) }
201
+ de = dataelements.slice(*changed_dataelements).transform_values { |v| enc = detect_encoding(v); (enc == 'OTHER' ? v : (v.encode('UTF-8',enc) rescue convert_to_base64(v))) }
202
202
  @controller.notify("dataelements/change", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :changed => changed_dataelements, :values => de)
203
203
  end
204
204
  unless changed_endpoints.nil? || changed_endpoints.empty?
@@ -276,7 +276,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
276
276
  ''
277
277
  else
278
278
  enc = detect_encoding(ttt)
279
- enc == 'OTHER' ? ttt.inspect : (ttt.encode('UTF-8',enc) rescue convert_to_base64(ttt))
279
+ enc == 'OTHER' ? ttt : (ttt.encode('UTF-8',enc) rescue convert_to_base64(ttt))
280
280
  end
281
281
  elsif r.mimetype == 'text/plain' || r.mimetype == 'text/html'
282
282
  ttt = r.value.read
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: 2.1.27
4
+ version: 2.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: tools
12
12
  cert_chain: []
13
- date: 2021-11-10 00:00:00.000000000 Z
13
+ date: 2021-11-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl
@@ -226,8 +226,15 @@ files:
226
226
  - cockpit/templates/IUPC arXiv:1104.3609 P34 1.xml
227
227
  - cockpit/templates/IUPC arXiv:1104.3609 P34 2.xml
228
228
  - cockpit/templates/IUPC arXiv:1104.3609 P34 3.xml
229
+ - cockpit/templates/Subprocess.xml
230
+ - cockpit/templates/Subprocess.xml.active
231
+ - cockpit/templates/Subprocess.xml.active-uuid
232
+ - cockpit/templates/Subprocess.xml.attrs
229
233
  - cockpit/templates/Track Test Local.xml
230
234
  - cockpit/templates/Track Test.xml
235
+ - cockpit/templates/Track Test.xml.active
236
+ - cockpit/templates/Track Test.xml.active-uuid
237
+ - cockpit/templates/Track Test.xml.attrs
231
238
  - cockpit/templates/UR-VUE 2020 Manual Adjust.xml
232
239
  - cockpit/templates/UR-VUE 2020 Solution Baseline.xml
233
240
  - cockpit/templates/UR-VUE 2020 Solution Baseline.xml.active
@@ -235,6 +242,10 @@ files:
235
242
  - cockpit/templates/UR-VUE 2020 Solution NN.xml
236
243
  - cockpit/templates/UR-VUE 2020 Solution View.xml
237
244
  - cockpit/templates/UR-VUE 2020.xml
245
+ - cockpit/templates/Wait.xml
246
+ - cockpit/templates/Wait.xml.active
247
+ - cockpit/templates/Wait.xml.active-uuid
248
+ - cockpit/templates/Wait.xml.attrs
238
249
  - cockpit/templates/Worklist.xml
239
250
  - cockpit/templates/instantiate.local/Take_Sub.xml
240
251
  - cockpit/templates/instantiate/Take_Perf.xml