weel 1.2.6 → 1.99.2
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/lib/weel.rb +196 -152
- data/test/TestHandlerWrapper.rb +7 -0
- data/test/TestWorkflow.rb +6 -6
- data/test/basic/tc_choose.rb +10 -10
- data/test/basic/tc_codereplace.rb +12 -12
- data/test/basic/tc_parallel.rb +20 -20
- data/test/basic/tc_search.rb +7 -7
- data/test/basic/tc_state.rb +6 -5
- data/test/basic/tc_wf_control.rb +9 -9
- data/test/complex/tc_generalsynchonizingmerge_loopsearch.rb +12 -12
- data/test/complex/tc_parallel_stop.rb +4 -4
- data/test/exec/tc_exec.rb +25 -0
- data/test/simulation_v0.0.1.tgz +0 -0
- data/test/wfp_adv_branching/tc_generalsynchronizingmerge.rb +6 -6
- data/test/wfp_adv_branching/tc_localsynchronizingmerge.rb +5 -5
- data/test/wfp_adv_branching/tc_multichoice_structuredsynchronizingmerge.rb +6 -6
- data/test/wfp_adv_branching/tc_structured_discriminator.rb +3 -3
- data/test/wfp_adv_branching/tc_structured_partial_join.rb +6 -6
- data/test/wfp_basic/tc_exclusivechoice_simplemerge.rb +2 -2
- data/test/wfp_basic/tc_parallelsplit_synchronization.rb +3 -3
- data/test/wfp_basic/tc_sequence.rb +3 -3
- data/test/wfp_iteration/tc_structuredloop.rb +11 -11
- data/test/wfp_state_based/tc_deferredchoice.rb +4 -4
- data/test/wfp_state_based/tc_interleavedparallelrouting.rb +3 -3
- data/weel.gemspec +1 -1
- metadata +49 -45
@@ -8,23 +8,23 @@ class TestWFPLocalSynchronizingMerge < Test::Unit::TestCase
|
|
8
8
|
@wf.description do
|
9
9
|
parallel do
|
10
10
|
parallel_branch do
|
11
|
-
|
11
|
+
call :a1_1, :endpoint1, :call => Proc.new{sleep 0.2}
|
12
12
|
end
|
13
13
|
parallel_branch do
|
14
|
-
|
14
|
+
call :a1_2, :endpoint1, :call => Proc.new{sleep 0.4}
|
15
15
|
end
|
16
16
|
choose do
|
17
17
|
alternative(false) do
|
18
18
|
parallel_branch do
|
19
|
-
|
19
|
+
call :a2_1, :endpoint1
|
20
20
|
end
|
21
21
|
end
|
22
22
|
otherwise do
|
23
|
-
|
23
|
+
call :a2_2, :endpoint1, :call => Proc.new{sleep 0.1}
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
call :a3, :endpoint1
|
28
28
|
end
|
29
29
|
@wf.start.join
|
30
30
|
wf_sassert('|running|Ca2_2Da2_2')
|
@@ -9,13 +9,13 @@ class TestWFPMultiChoice < Test::Unit::TestCase
|
|
9
9
|
@wf.description do
|
10
10
|
choose do
|
11
11
|
alternative(data.x == 1) do
|
12
|
-
|
12
|
+
call :a1_1, :endpoint1
|
13
13
|
end
|
14
14
|
alternative(data.x > 0) do
|
15
|
-
|
15
|
+
call :a1_2, :endpoint1
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
18
|
+
call :a2, :endpoint1
|
19
19
|
end
|
20
20
|
@wf.start.join
|
21
21
|
wf_sassert('|running|Ca1_1Da1_1Ca1_2Da1_2Ca2Da2|finished|')
|
@@ -27,18 +27,18 @@ class TestWFPMultiChoice < Test::Unit::TestCase
|
|
27
27
|
parallel do
|
28
28
|
parallel_branch do
|
29
29
|
alternative(data.x == 1) do
|
30
|
-
|
30
|
+
call :a1_1, :endpoint1
|
31
31
|
Thread.pass
|
32
32
|
end
|
33
33
|
end
|
34
34
|
parallel_branch do
|
35
35
|
alternative(data.x > 0) do
|
36
|
-
|
36
|
+
call :a1_2, :endpoint1, :call => Proc.new{sleep 0.5}
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
41
|
-
|
41
|
+
call :a2, :endpoint1
|
42
42
|
end
|
43
43
|
@wf.start.join
|
44
44
|
wf_assert('CALL a1_1')
|
@@ -9,14 +9,14 @@ class TestWFPStructuredDiscriminator < Test::Unit::TestCase
|
|
9
9
|
@wf.description do
|
10
10
|
parallel :wait => 1 do
|
11
11
|
parallel_branch do
|
12
|
-
|
12
|
+
call :a_1_1, :endpoint1
|
13
13
|
Thread.pass
|
14
14
|
end
|
15
15
|
parallel_branch do
|
16
|
-
|
16
|
+
call :a_1_2, :endpoint1, :call => Proc.new{sleep 0.2}
|
17
17
|
end
|
18
18
|
end
|
19
|
-
|
19
|
+
call :a_2, :endpoint1
|
20
20
|
end
|
21
21
|
t = @wf.start.join
|
22
22
|
wf_assert("CALL a_1_1:")
|
@@ -9,22 +9,22 @@ class TestWFPCancellingStructuredPartialJoin < Test::Unit::TestCase
|
|
9
9
|
@wf.description do
|
10
10
|
parallel :wait => 3 do
|
11
11
|
parallel_branch do
|
12
|
-
|
12
|
+
call :a_1, :endpoint1
|
13
13
|
end
|
14
14
|
parallel_branch do
|
15
|
-
|
15
|
+
call :a_2, :endpoint1, :call => Proc.new{sleep 0.2}
|
16
16
|
end
|
17
17
|
parallel_branch do
|
18
|
-
|
18
|
+
call :a_3, :endpoint1
|
19
19
|
end
|
20
20
|
parallel_branch do
|
21
|
-
|
21
|
+
call :a_4, :endpoint1, :call => Proc.new{sleep 0.6}
|
22
22
|
end
|
23
23
|
parallel_branch do
|
24
|
-
|
24
|
+
call :a_5, :endpoint1
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
call :a_6, :endpoint1, :call => Proc.new{sleep 0.2}
|
28
28
|
end
|
29
29
|
t = @wf.start.join
|
30
30
|
wf_assert("CALL a_1:")
|
@@ -8,10 +8,10 @@ class TestWFPExclusiveChoice < Test::Unit::TestCase
|
|
8
8
|
@wf.description do
|
9
9
|
choose do
|
10
10
|
alternative(true) do
|
11
|
-
|
11
|
+
call :a1_1, :endpoint1
|
12
12
|
end
|
13
13
|
otherwise do
|
14
|
-
|
14
|
+
call :a1_2, :endpoint1
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -8,13 +8,13 @@ class TestWFPParallel < Test::Unit::TestCase
|
|
8
8
|
@wf.description do
|
9
9
|
parallel :wait do
|
10
10
|
parallel_branch do
|
11
|
-
|
11
|
+
call :a1_1, :endpoint1
|
12
12
|
end
|
13
13
|
parallel_branch do
|
14
|
-
|
14
|
+
call :a1_2, :endpoint1
|
15
15
|
end
|
16
16
|
end
|
17
|
-
|
17
|
+
call :a2, :endpoint1
|
18
18
|
end
|
19
19
|
@wf.start.join
|
20
20
|
wf_assert('CALL a1_1')
|
@@ -6,9 +6,9 @@ class TestWFPSequence < Test::Unit::TestCase
|
|
6
6
|
|
7
7
|
def test_sequence
|
8
8
|
@wf.description do
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
call :a1_1, :endpoint1
|
10
|
+
call :a1_2, :endpoint1
|
11
|
+
call :a1_3, :endpoint1
|
12
12
|
end
|
13
13
|
@wf.start.join
|
14
14
|
wf_sassert('|running|Ca1_1Da1_1Ca1_2Da1_2Ca1_3Da1_3|finished|')
|
@@ -7,15 +7,15 @@ class TestWFPInterleavedParallelRouting < Test::Unit::TestCase
|
|
7
7
|
|
8
8
|
def test_loop
|
9
9
|
@wf.description do
|
10
|
-
|
10
|
+
manipulate :a1 do
|
11
11
|
data.x = 0
|
12
12
|
end
|
13
13
|
loop pre_test{data.x < 3} do
|
14
|
-
|
14
|
+
call :a2, :endpoint1 do
|
15
15
|
data.x += 1
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
18
|
+
call :a3, :endpoint1
|
19
19
|
end
|
20
20
|
@wf.start.join
|
21
21
|
wf_sassert('|running|Ma1Da1Ca2Ma2Da2Ca2Ma2Da2Ca2Ma2Da2Ca3Da3|finished|');
|
@@ -24,16 +24,16 @@ class TestWFPInterleavedParallelRouting < Test::Unit::TestCase
|
|
24
24
|
end
|
25
25
|
def test_loop_search
|
26
26
|
@wf.description do
|
27
|
-
|
27
|
+
manipulate :a1 do
|
28
28
|
data.x = 0
|
29
29
|
end
|
30
30
|
loop pre_test{data.x < 3} do
|
31
|
-
|
32
|
-
|
31
|
+
call :a2_1, :endpoint1
|
32
|
+
manipulate :a2_2 do
|
33
33
|
data.x += 1
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
36
|
+
call :a3, :endpoint1
|
37
37
|
end
|
38
38
|
@wf.search WEEL::Position.new(:a2_2, :at)
|
39
39
|
@wf.data :x => 2
|
@@ -44,16 +44,16 @@ class TestWFPInterleavedParallelRouting < Test::Unit::TestCase
|
|
44
44
|
end
|
45
45
|
def test_loop_jump_over
|
46
46
|
@wf.description do
|
47
|
-
|
47
|
+
manipulate :a1 do
|
48
48
|
data.x = 0
|
49
49
|
end
|
50
50
|
loop pre_test{data.x < 3} do
|
51
|
-
|
52
|
-
|
51
|
+
call :a2_1, :endpoint1
|
52
|
+
manipulate :a2_2 do
|
53
53
|
data.x += 1
|
54
54
|
end
|
55
55
|
end
|
56
|
-
|
56
|
+
call :a3, :endpoint1
|
57
57
|
end
|
58
58
|
@wf.search WEEL::Position.new(:a3, :at)
|
59
59
|
@wf.data :x => 0
|
@@ -9,23 +9,23 @@ class TestWFPDeferredChoice < Test::Unit::TestCase
|
|
9
9
|
@wf.description do
|
10
10
|
parallel :wait=>1 do
|
11
11
|
parallel_branch do
|
12
|
-
|
12
|
+
call :a1_1, :endpoint1, :call => Proc.new{sleep 0.5} do
|
13
13
|
data.choice = 1
|
14
14
|
end
|
15
15
|
Thread.pass
|
16
16
|
end
|
17
17
|
parallel_branch do
|
18
|
-
|
18
|
+
call(:a1_2, :endpoint1, :call => Proc.new{sleep 1.0}) do
|
19
19
|
data.choice = 2
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
23
23
|
choose do
|
24
24
|
alternative(data.choice == 1) do
|
25
|
-
|
25
|
+
call :a2_1, :endpoint1
|
26
26
|
end
|
27
27
|
alternative(data.choice == 2) do
|
28
|
-
|
28
|
+
call :a2_2, :endpoint1
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -10,15 +10,15 @@ class TestWFPInterleavedParallelRouting < Test::Unit::TestCase
|
|
10
10
|
parallel do
|
11
11
|
parallel_branch do
|
12
12
|
critical(:section1) do
|
13
|
-
|
13
|
+
call :a1, :endpoint1
|
14
14
|
end
|
15
15
|
critical(:section1) do
|
16
|
-
|
16
|
+
call :a3, :endpoint1
|
17
17
|
end
|
18
18
|
end
|
19
19
|
parallel_branch do
|
20
20
|
critical(:section1) do
|
21
|
-
|
21
|
+
call :a2, :endpoint1
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/weel.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2
|
4
|
+
version: 1.99.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: see http://cpee.org
|
15
15
|
email: juergen.mangler@gmail.com
|
@@ -33,34 +33,36 @@ files:
|
|
33
33
|
- test/SimHandlerWrapper.rb
|
34
34
|
- test/TestHandlerWrapper.rb
|
35
35
|
- test/ContinueTest.rb
|
36
|
-
- test/TestWorkflow.rb
|
37
36
|
- test/TestMixin.rb
|
38
|
-
- test/
|
39
|
-
- test/
|
40
|
-
- test/wfp_basic/tc_sequence.rb
|
41
|
-
- test/wfp_state_based/tc_deferredchoice.rb
|
37
|
+
- test/simulation_v0.0.1.tgz
|
38
|
+
- test/TestWorkflow.rb
|
42
39
|
- test/wfp_state_based/tc_interleavedparallelrouting.rb
|
40
|
+
- test/wfp_state_based/tc_deferredchoice.rb
|
43
41
|
- test/wfp_iteration/tc_structuredloop.rb
|
44
|
-
- test/
|
45
|
-
- test/basic/tc_wf_control.rb
|
46
|
-
- test/basic/tc_endpoint.rb
|
47
|
-
- test/basic/tc_parallel.rb
|
48
|
-
- test/basic/tc_codereplace.rb
|
49
|
-
- test/basic/tc_data.rb
|
50
|
-
- test/basic/tc_search.rb
|
51
|
-
- test/basic/tc_state.rb
|
52
|
-
- test/basic/tc_handler.rb
|
42
|
+
- test/exec/tc_exec.rb
|
53
43
|
- test/wfp_adv_branching/tc_multichoice_structuredsynchronizingmerge.rb
|
54
|
-
- test/wfp_adv_branching/
|
55
|
-
- test/wfp_adv_branching/
|
44
|
+
- test/wfp_adv_branching/tc_generalsynchronizingmerge.rb
|
45
|
+
- test/wfp_adv_branching/tc_localsynchronizingmerge.rb
|
56
46
|
- test/wfp_adv_branching/tc_threadmerge.rb
|
57
|
-
- test/wfp_adv_branching/tc_structured_partial_join.rb
|
58
47
|
- test/wfp_adv_branching/tc_generalizedjoin.rb
|
59
|
-
- test/wfp_adv_branching/
|
48
|
+
- test/wfp_adv_branching/tc_threadsplit.rb
|
49
|
+
- test/wfp_adv_branching/tc_multimerge.rb
|
60
50
|
- test/wfp_adv_branching/tc_structured_discriminator.rb
|
61
|
-
- test/wfp_adv_branching/
|
62
|
-
- test/
|
51
|
+
- test/wfp_adv_branching/tc_structured_partial_join.rb
|
52
|
+
- test/basic/tc_codereplace.rb
|
53
|
+
- test/basic/tc_data.rb
|
54
|
+
- test/basic/tc_handler.rb
|
55
|
+
- test/basic/tc_parallel.rb
|
56
|
+
- test/basic/tc_search.rb
|
57
|
+
- test/basic/tc_endpoint.rb
|
58
|
+
- test/basic/tc_wf_control.rb
|
59
|
+
- test/basic/tc_choose.rb
|
60
|
+
- test/basic/tc_state.rb
|
63
61
|
- test/complex/tc_parallel_stop.rb
|
62
|
+
- test/complex/tc_generalsynchonizingmerge_loopsearch.rb
|
63
|
+
- test/wfp_basic/tc_exclusivechoice_simplemerge.rb
|
64
|
+
- test/wfp_basic/tc_sequence.rb
|
65
|
+
- test/wfp_basic/tc_parallelsplit_synchronization.rb
|
64
66
|
homepage: http://cpee.org/
|
65
67
|
licenses:
|
66
68
|
- LGPL-3
|
@@ -71,17 +73,17 @@ require_paths:
|
|
71
73
|
- lib
|
72
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
75
|
requirements:
|
74
|
-
- - '>='
|
76
|
+
- - ! '>='
|
75
77
|
- !ruby/object:Gem::Version
|
76
78
|
version: 1.9.3
|
77
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
80
|
requirements:
|
79
|
-
- - '>='
|
81
|
+
- - ! '>='
|
80
82
|
- !ruby/object:Gem::Version
|
81
83
|
version: '0'
|
82
84
|
requirements: []
|
83
85
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.0.
|
86
|
+
rubygems_version: 2.0.3
|
85
87
|
signing_key:
|
86
88
|
specification_version: 4
|
87
89
|
summary: Preliminary release of the Workflow Execution Engine Library (WEEL)
|
@@ -89,31 +91,33 @@ test_files:
|
|
89
91
|
- test/SimHandlerWrapper.rb
|
90
92
|
- test/TestHandlerWrapper.rb
|
91
93
|
- test/ContinueTest.rb
|
92
|
-
- test/TestWorkflow.rb
|
93
94
|
- test/TestMixin.rb
|
94
|
-
- test/
|
95
|
-
- test/
|
96
|
-
- test/wfp_basic/tc_sequence.rb
|
97
|
-
- test/wfp_state_based/tc_deferredchoice.rb
|
95
|
+
- test/simulation_v0.0.1.tgz
|
96
|
+
- test/TestWorkflow.rb
|
98
97
|
- test/wfp_state_based/tc_interleavedparallelrouting.rb
|
98
|
+
- test/wfp_state_based/tc_deferredchoice.rb
|
99
99
|
- test/wfp_iteration/tc_structuredloop.rb
|
100
|
-
- test/
|
101
|
-
- test/basic/tc_wf_control.rb
|
102
|
-
- test/basic/tc_endpoint.rb
|
103
|
-
- test/basic/tc_parallel.rb
|
104
|
-
- test/basic/tc_codereplace.rb
|
105
|
-
- test/basic/tc_data.rb
|
106
|
-
- test/basic/tc_search.rb
|
107
|
-
- test/basic/tc_state.rb
|
108
|
-
- test/basic/tc_handler.rb
|
100
|
+
- test/exec/tc_exec.rb
|
109
101
|
- test/wfp_adv_branching/tc_multichoice_structuredsynchronizingmerge.rb
|
110
|
-
- test/wfp_adv_branching/
|
111
|
-
- test/wfp_adv_branching/
|
102
|
+
- test/wfp_adv_branching/tc_generalsynchronizingmerge.rb
|
103
|
+
- test/wfp_adv_branching/tc_localsynchronizingmerge.rb
|
112
104
|
- test/wfp_adv_branching/tc_threadmerge.rb
|
113
|
-
- test/wfp_adv_branching/tc_structured_partial_join.rb
|
114
105
|
- test/wfp_adv_branching/tc_generalizedjoin.rb
|
115
|
-
- test/wfp_adv_branching/
|
106
|
+
- test/wfp_adv_branching/tc_threadsplit.rb
|
107
|
+
- test/wfp_adv_branching/tc_multimerge.rb
|
116
108
|
- test/wfp_adv_branching/tc_structured_discriminator.rb
|
117
|
-
- test/wfp_adv_branching/
|
118
|
-
- test/
|
109
|
+
- test/wfp_adv_branching/tc_structured_partial_join.rb
|
110
|
+
- test/basic/tc_codereplace.rb
|
111
|
+
- test/basic/tc_data.rb
|
112
|
+
- test/basic/tc_handler.rb
|
113
|
+
- test/basic/tc_parallel.rb
|
114
|
+
- test/basic/tc_search.rb
|
115
|
+
- test/basic/tc_endpoint.rb
|
116
|
+
- test/basic/tc_wf_control.rb
|
117
|
+
- test/basic/tc_choose.rb
|
118
|
+
- test/basic/tc_state.rb
|
119
119
|
- test/complex/tc_parallel_stop.rb
|
120
|
+
- test/complex/tc_generalsynchonizingmerge_loopsearch.rb
|
121
|
+
- test/wfp_basic/tc_exclusivechoice_simplemerge.rb
|
122
|
+
- test/wfp_basic/tc_sequence.rb
|
123
|
+
- test/wfp_basic/tc_parallelsplit_synchronization.rb
|