openwferu 0.9.15 → 0.9.16
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +4 -2
- data/lib/openwfe/engine/engine.rb +143 -25
- data/lib/openwfe/engine/file_persisted_engine.rb +3 -3
- data/lib/openwfe/expool/errorjournal.rb +48 -25
- data/lib/openwfe/expool/expressionpool.rb +77 -106
- data/lib/openwfe/expool/expstorage.rb +6 -5
- data/lib/openwfe/expool/threadedexpstorage.rb +190 -0
- data/lib/openwfe/expool/yamlexpstorage.rb +5 -150
- data/lib/openwfe/expressions/condition.rb +6 -6
- data/lib/openwfe/expressions/environment.rb +7 -2
- data/lib/openwfe/expressions/expressionmap.rb +14 -0
- data/lib/openwfe/expressions/fe_command.rb +2 -1
- data/lib/openwfe/expressions/fe_concurrence.rb +40 -18
- data/lib/openwfe/expressions/fe_cron.rb +14 -11
- data/lib/openwfe/expressions/fe_cursor.rb +2 -3
- data/lib/openwfe/expressions/fe_define.rb +34 -31
- data/lib/openwfe/expressions/fe_equals.rb +11 -21
- data/lib/openwfe/expressions/fe_filter_definition.rb +0 -2
- data/lib/openwfe/expressions/fe_fqv.rb +1 -3
- data/lib/openwfe/expressions/fe_if.rb +37 -12
- data/lib/openwfe/expressions/fe_iterator.rb +1 -1
- data/lib/openwfe/expressions/fe_listen.rb +147 -28
- data/lib/openwfe/expressions/fe_losfor.rb +13 -1
- data/lib/openwfe/expressions/fe_misc.rb +70 -11
- data/lib/openwfe/expressions/fe_participant.rb +3 -3
- data/lib/openwfe/expressions/fe_reserve.rb +1 -1
- data/lib/openwfe/expressions/fe_save.rb +11 -12
- data/lib/openwfe/expressions/fe_sequence.rb +22 -29
- data/lib/openwfe/expressions/fe_sleep.rb +11 -7
- data/lib/openwfe/expressions/fe_subprocess.rb +24 -10
- data/lib/openwfe/expressions/fe_value.rb +35 -15
- data/lib/openwfe/expressions/fe_when.rb +2 -4
- data/lib/openwfe/expressions/flowexpression.rb +73 -37
- data/lib/openwfe/expressions/merge.rb +2 -4
- data/lib/openwfe/expressions/raw.rb +40 -31
- data/lib/openwfe/expressions/raw_prog.rb +18 -9
- data/lib/openwfe/expressions/raw_xml.rb +1 -8
- data/lib/openwfe/expressions/simplerep.rb +27 -5
- data/lib/openwfe/expressions/time.rb +45 -15
- data/lib/openwfe/expressions/timeout.rb +2 -1
- data/lib/openwfe/expressions/wtemplate.rb +2 -2
- data/lib/openwfe/flowexpressionid.rb +62 -16
- data/lib/openwfe/listeners/listener.rb +28 -37
- data/lib/openwfe/listeners/listeners.rb +1 -1
- data/lib/openwfe/listeners/socketlisteners.rb +7 -15
- data/lib/openwfe/logging.rb +5 -4
- data/lib/openwfe/{rest → orest}/controlclient.rb +3 -5
- data/lib/openwfe/{rest → orest}/definitions.rb +0 -2
- data/lib/openwfe/{rest → orest}/exception.rb +0 -0
- data/lib/openwfe/{rest → orest}/oldrestservlet.rb +1 -1
- data/lib/openwfe/{rest → orest}/osocket.rb +1 -1
- data/lib/openwfe/{rest → orest}/restclient.rb +0 -2
- data/lib/openwfe/orest/workitem.rb +206 -0
- data/lib/openwfe/{rest → orest}/worklistclient.rb +15 -5
- data/lib/openwfe/{rest → orest}/xmlcodec.rb +4 -1
- data/lib/openwfe/participants/enoparticipants.rb +4 -14
- data/lib/openwfe/participants/participantmap.rb +16 -12
- data/lib/openwfe/participants/participants.rb +46 -1
- data/lib/openwfe/participants/socketparticipants.rb +1 -6
- data/lib/openwfe/service.rb +15 -6
- data/lib/openwfe/storage/yamlcustom.rb +3 -0
- data/lib/openwfe/storage/yamlfilestorage.rb +3 -1
- data/lib/openwfe/util/dollar.rb +21 -14
- data/lib/openwfe/util/lru.rb +29 -10
- data/lib/openwfe/util/observable.rb +4 -1
- data/lib/openwfe/util/otime.rb +3 -0
- data/lib/openwfe/util/scheduler.rb +346 -114
- data/lib/openwfe/utils.rb +67 -13
- data/lib/openwfe/version.rb +1 -1
- data/lib/openwfe/workitem.rb +22 -165
- data/lib/openwfe/worklist/oldrest.rb +2 -2
- data/test/bm/bm_1_xml_vs_prog.rb +56 -0
- data/test/{ft_26_load.rb → bm/ft_26_load.rb} +0 -0
- data/test/{ft_26b_load.rb → bm/ft_26b_load.rb} +0 -0
- data/test/{ft_26c_load.rb → bm/ft_26c_load.rb} +16 -4
- data/test/clone_test.rb +62 -0
- data/test/cron_test.rb +56 -1
- data/test/cronline_test.rb +17 -8
- data/test/description_test.rb +57 -0
- data/test/dollar_test.rb +17 -6
- data/test/eno_test.rb +22 -9
- data/test/fe_lookup_att_test.rb +50 -0
- data/test/fei_test.rb +18 -9
- data/test/flowtestbase.rb +24 -2
- data/test/ft_0.rb +10 -12
- data/test/ft_0e_multibody.rb +34 -0
- data/test/ft_10_loop.rb +4 -6
- data/test/ft_11_ppd.rb +5 -20
- data/test/ft_14b_subprocess.rb +2 -2
- data/test/ft_15_iterator.rb +56 -4
- data/test/ft_15b_iterator.rb +48 -0
- data/test/ft_16_fqv.rb +18 -3
- data/test/ft_23c_wait.rb +7 -5
- data/test/ft_25_cancel.rb +5 -3
- data/test/ft_27_getflowpos.rb +14 -11
- data/test/ft_28_fileparticipant.rb +3 -4
- data/test/ft_2_concurrence.rb +8 -12
- data/test/ft_2b_concurrence.rb +3 -2
- data/test/ft_30_socketlistener.rb +5 -6
- data/test/ft_32c_journal.rb +2 -2
- data/test/ft_32d_journal.rb +5 -6
- data/test/ft_33_description.rb +8 -3
- data/test/ft_34_cancelwfid.rb +3 -3
- data/test/ft_38_tag.rb +7 -10
- data/test/ft_39_reserve.rb +4 -2
- data/test/ft_3_equals.rb +18 -13
- data/test/ft_44b_restore.rb +2 -6
- data/test/ft_49_condition.rb +16 -12
- data/test/ft_4_misc.rb +51 -12
- data/test/ft_50_xml_attribute.rb +1 -1
- data/test/ft_54_listen.rb +96 -10
- data/test/ft_54b_listen.rb +68 -0
- data/test/ft_55_ptimeout.rb +1 -2
- data/test/ft_58_ejournal.rb +8 -33
- data/test/ft_59_ps.rb +2 -3
- data/test/ft_59b_ps_for_pat.rb +59 -0
- data/test/ft_5_time.rb +45 -4
- data/test/ft_60_ecancel.rb +7 -7
- data/test/ft_61_elsub.rb +1 -1
- data/test/ft_64_alias.rb +1 -1
- data/test/ft_67_schedlaunch.rb +29 -16
- data/test/ft_69_cancelmissing.rb +1 -1
- data/test/ft_6_lambda.rb +8 -6
- data/test/ft_70_lookupvar.rb +2 -2
- data/test/ft_71_log.rb +60 -0
- data/test/ft_72_lookup_processes.rb +79 -0
- data/test/ft_73_cancel_sub.rb +144 -0
- data/test/ft_74_block_and_workitem_dup.rb +63 -0
- data/test/ft_75_ruby_attributes.rb +87 -0
- data/test/ft_76_merge_isolate.rb +90 -0
- data/test/ft_7_lose.rb +2 -1
- data/test/ft_tests.rb +9 -0
- data/test/lookup_att_test.rb +90 -0
- data/test/misc_test.rb +33 -50
- data/test/orest_test.rb +1 -1
- data/test/participant_test.rb +32 -8
- data/test/pending.rb +6 -7
- data/test/rake_ltest.rb +3 -0
- data/test/rake_qtest.rb +4 -1
- data/test/raw_prog_test.rb +1 -1
- data/test/restart_cron_test.rb +6 -6
- data/test/restart_sleep_test.rb +8 -8
- data/test/ruby_procdef_test.rb +2 -2
- data/test/rutest_utils.rb +9 -3
- data/test/scheduler_1_test.rb +88 -0
- data/test/scheduler_test.rb +49 -4
- data/test/sec_test.rb +18 -11
- metadata +51 -34
- data/test/cron_test_2.rb +0 -50
@@ -0,0 +1,88 @@
|
|
1
|
+
|
2
|
+
#
|
3
|
+
# Testing OpenWFE
|
4
|
+
#
|
5
|
+
# John Mettraux at openwfe.org
|
6
|
+
#
|
7
|
+
# Sun Oct 29 16:18:25 JST 2006
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'test/unit'
|
11
|
+
require 'openwfe/util/scheduler'
|
12
|
+
|
13
|
+
#
|
14
|
+
# testing otime and the scheduler
|
15
|
+
#
|
16
|
+
|
17
|
+
class Scheduler1Test < Test::Unit::TestCase
|
18
|
+
|
19
|
+
#def setup
|
20
|
+
#end
|
21
|
+
|
22
|
+
#def teardown
|
23
|
+
#end
|
24
|
+
|
25
|
+
def test_0
|
26
|
+
|
27
|
+
scheduler = OpenWFE::Scheduler.new
|
28
|
+
scheduler.sstart
|
29
|
+
|
30
|
+
job_id = scheduler.schedule_every "500", :tags => "Avery" do
|
31
|
+
# don't do a thing
|
32
|
+
end
|
33
|
+
|
34
|
+
successful = true
|
35
|
+
|
36
|
+
200000.times do
|
37
|
+
#assert_not_nil scheduler.get_job(job_id)
|
38
|
+
if scheduler.get_job(job_id) == nil
|
39
|
+
successful = false
|
40
|
+
break
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
scheduler.sstop
|
45
|
+
|
46
|
+
assert successful
|
47
|
+
end
|
48
|
+
|
49
|
+
def test_1
|
50
|
+
|
51
|
+
scheduler = OpenWFE::Scheduler.new
|
52
|
+
scheduler.sstart
|
53
|
+
|
54
|
+
job_id = scheduler.schedule_every "500", :tags => "Avery" do
|
55
|
+
# don't do a thing
|
56
|
+
end
|
57
|
+
|
58
|
+
successful = true
|
59
|
+
|
60
|
+
200000.times do
|
61
|
+
#assert_equal 1, scheduler.find_jobs("Avery").size
|
62
|
+
if scheduler.find_jobs("Avery").size != 1
|
63
|
+
successful = false
|
64
|
+
break
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
scheduler.sstop
|
69
|
+
|
70
|
+
assert successful
|
71
|
+
end
|
72
|
+
|
73
|
+
#
|
74
|
+
# testing "deviation", if I may call it like that...
|
75
|
+
#
|
76
|
+
def _test_2
|
77
|
+
scheduler = OpenWFE::Scheduler.new
|
78
|
+
scheduler.sstart
|
79
|
+
last = nil
|
80
|
+
job_id = scheduler.schedule_every "1s" do
|
81
|
+
t = Time.now
|
82
|
+
puts t.to_f
|
83
|
+
end
|
84
|
+
sleep 4 * 60
|
85
|
+
scheduler.sstop
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
data/test/scheduler_test.rb
CHANGED
@@ -126,13 +126,17 @@ class SchedulerTest < Test::Unit::TestCase
|
|
126
126
|
|
127
127
|
count = 0
|
128
128
|
|
129
|
-
scheduler.schedule_every("1s") do
|
129
|
+
job_id = scheduler.schedule_every("1s") do
|
130
130
|
count += 1
|
131
131
|
end
|
132
132
|
|
133
|
-
sleep
|
133
|
+
sleep 3.5
|
134
|
+
|
135
|
+
assert_equal 3, count
|
134
136
|
|
135
|
-
|
137
|
+
job = scheduler.get_job job_id
|
138
|
+
|
139
|
+
assert_equal "1s", job.schedule_info
|
136
140
|
|
137
141
|
#
|
138
142
|
# phase 1
|
@@ -234,7 +238,7 @@ class SchedulerTest < Test::Unit::TestCase
|
|
234
238
|
var = true
|
235
239
|
end
|
236
240
|
|
237
|
-
|
241
|
+
assert_equal var, true
|
238
242
|
assert_nil job_id
|
239
243
|
end
|
240
244
|
|
@@ -289,6 +293,47 @@ class SchedulerTest < Test::Unit::TestCase
|
|
289
293
|
scheduler.stop
|
290
294
|
end
|
291
295
|
|
296
|
+
#
|
297
|
+
# Testing tags
|
298
|
+
#
|
299
|
+
def test_10
|
300
|
+
|
301
|
+
scheduler = OpenWFE::Scheduler.new
|
302
|
+
scheduler.start
|
303
|
+
|
304
|
+
value = nil
|
305
|
+
|
306
|
+
scheduler.schedule_in "3s", :tags => "fish" do
|
307
|
+
value = "fish"
|
308
|
+
end
|
309
|
+
|
310
|
+
assert_equal scheduler.find_jobs('deer'), []
|
311
|
+
assert_equal scheduler.find_jobs('fish').size, 1
|
312
|
+
|
313
|
+
scheduler.schedule "* * * * *", :tags => "fish" do
|
314
|
+
value = "cron-fish"
|
315
|
+
end
|
316
|
+
scheduler.schedule "* * * * *", :tags => "vegetable" do
|
317
|
+
value = "daikon"
|
318
|
+
end
|
319
|
+
|
320
|
+
assert_equal scheduler.find_jobs('fish').size, 2
|
321
|
+
#puts scheduler.find_jobs('fish')
|
322
|
+
|
323
|
+
scheduler.find_jobs('fish').each do |job|
|
324
|
+
scheduler.unschedule(job.job_id)
|
325
|
+
end
|
326
|
+
|
327
|
+
assert_equal scheduler.find_jobs('fish'), []
|
328
|
+
|
329
|
+
assert_equal scheduler.find_jobs('vegetable').size, 1
|
330
|
+
|
331
|
+
scheduler.find_jobs('vegetable')[0].unschedule
|
332
|
+
|
333
|
+
assert_equal scheduler.find_jobs('vegetable').size, 0
|
334
|
+
end
|
335
|
+
|
336
|
+
|
292
337
|
protected
|
293
338
|
|
294
339
|
class TestSchedulable
|
data/test/sec_test.rb
CHANGED
@@ -21,7 +21,6 @@ class SecTest < Test::Unit::TestCase
|
|
21
21
|
#def teardown
|
22
22
|
#end
|
23
23
|
|
24
|
-
#def xxxx_sec_0
|
25
24
|
def test_sec_0
|
26
25
|
|
27
26
|
engine = OpenWFE::Engine.new
|
@@ -41,7 +40,7 @@ class SecTest < Test::Unit::TestCase
|
|
41
40
|
</sequence>
|
42
41
|
</process-definition>'''
|
43
42
|
|
44
|
-
dotest
|
43
|
+
dotest engine, def0
|
45
44
|
|
46
45
|
assert(
|
47
46
|
OpenWFE::grep(
|
@@ -62,11 +61,13 @@ class SecTest < Test::Unit::TestCase
|
|
62
61
|
</sequence>
|
63
62
|
</process-definition>'''
|
64
63
|
|
65
|
-
dotest
|
64
|
+
dotest engine, def1
|
66
65
|
|
67
|
-
|
68
|
-
|
69
|
-
|
66
|
+
assert_equal(
|
67
|
+
1,
|
68
|
+
OpenWFE::grep(
|
69
|
+
"undefined method `my_name' for \"stringobject\":String",
|
70
|
+
"logs/openwferu.log").size)
|
70
71
|
|
71
72
|
def2 =
|
72
73
|
'''<process-definition name="" revision="0">
|
@@ -109,6 +110,12 @@ class SecTest < Test::Unit::TestCase
|
|
109
110
|
engine = OpenWFE::Engine.new
|
110
111
|
|
111
112
|
engine.register_participant(:toto) do |workitem|
|
113
|
+
|
114
|
+
workitem.attributes.delete("___map_type")
|
115
|
+
#
|
116
|
+
# if the xmlencoder was used in previous, this field
|
117
|
+
# might be set, removing it.
|
118
|
+
|
112
119
|
value = "#{workitem.attributes.size}_#{workitem.f}"
|
113
120
|
end
|
114
121
|
|
@@ -122,17 +129,17 @@ class SecTest < Test::Unit::TestCase
|
|
122
129
|
|
123
130
|
engine.launch(OpenWFE::LaunchItem.new(def0))
|
124
131
|
|
125
|
-
sleep 0.
|
132
|
+
sleep 0.200
|
126
133
|
|
127
|
-
assert_equal
|
134
|
+
assert_equal "3_", value
|
128
135
|
|
129
136
|
engine.ac[:ruby_eval_allowed] = true
|
130
137
|
|
131
138
|
engine.launch(OpenWFE::LaunchItem.new(def0))
|
132
139
|
|
133
|
-
sleep 0.
|
140
|
+
sleep 0.200
|
134
141
|
|
135
|
-
assert_equal
|
142
|
+
assert_equal "3_35", value
|
136
143
|
|
137
144
|
engine.stop
|
138
145
|
end
|
@@ -149,7 +156,7 @@ class SecTest < Test::Unit::TestCase
|
|
149
156
|
|
150
157
|
engine.launch(li)
|
151
158
|
|
152
|
-
sleep 0.
|
159
|
+
sleep 0.250
|
153
160
|
end
|
154
161
|
|
155
162
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: openwferu
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.9.16
|
7
|
+
date: 2007-11-19 00:00:00 +09:00
|
8
8
|
summary: an open source ruby workflow and bpm engine
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -33,39 +33,23 @@ authors:
|
|
33
33
|
files:
|
34
34
|
- bin/validate-workflow.rb
|
35
35
|
- lib/openwfe
|
36
|
-
- lib/openwfe.rb
|
37
36
|
- lib/openwfe/contextual.rb
|
38
37
|
- lib/openwfe/def.rb
|
39
38
|
- lib/openwfe/engine
|
40
|
-
- lib/openwfe/exceptions.rb
|
41
|
-
- lib/openwfe/expool
|
42
|
-
- lib/openwfe/expressions
|
43
|
-
- lib/openwfe/filterdef.rb
|
44
|
-
- lib/openwfe/flowexpressionid.rb
|
45
|
-
- lib/openwfe/listeners
|
46
|
-
- lib/openwfe/logging.rb
|
47
|
-
- lib/openwfe/omixins.rb
|
48
|
-
- lib/openwfe/participants
|
49
|
-
- lib/openwfe/rest
|
50
|
-
- lib/openwfe/rudefinitions.rb
|
51
|
-
- lib/openwfe/service.rb
|
52
|
-
- lib/openwfe/storage
|
53
|
-
- lib/openwfe/tools
|
54
|
-
- lib/openwfe/util
|
55
|
-
- lib/openwfe/utils.rb
|
56
|
-
- lib/openwfe/version.rb
|
57
|
-
- lib/openwfe/workitem.rb
|
58
|
-
- lib/openwfe/worklist
|
59
39
|
- lib/openwfe/engine/engine.rb
|
60
40
|
- lib/openwfe/engine/file_persisted_engine.rb
|
41
|
+
- lib/openwfe/exceptions.rb
|
42
|
+
- lib/openwfe/expool
|
61
43
|
- lib/openwfe/expool/errorjournal.rb
|
62
44
|
- lib/openwfe/expool/expressionpool.rb
|
63
45
|
- lib/openwfe/expool/expstorage.rb
|
64
46
|
- lib/openwfe/expool/history.rb
|
65
47
|
- lib/openwfe/expool/journal.rb
|
66
48
|
- lib/openwfe/expool/journal_replay.rb
|
49
|
+
- lib/openwfe/expool/threadedexpstorage.rb
|
67
50
|
- lib/openwfe/expool/wfidgen.rb
|
68
51
|
- lib/openwfe/expool/yamlexpstorage.rb
|
52
|
+
- lib/openwfe/expressions
|
69
53
|
- lib/openwfe/expressions/condition.rb
|
70
54
|
- lib/openwfe/expressions/environment.rb
|
71
55
|
- lib/openwfe/expressions/expressionmap.rb
|
@@ -105,26 +89,39 @@ files:
|
|
105
89
|
- lib/openwfe/expressions/time.rb
|
106
90
|
- lib/openwfe/expressions/timeout.rb
|
107
91
|
- lib/openwfe/expressions/wtemplate.rb
|
92
|
+
- lib/openwfe/filterdef.rb
|
93
|
+
- lib/openwfe/flowexpressionid.rb
|
94
|
+
- lib/openwfe/listeners
|
108
95
|
- lib/openwfe/listeners/listener.rb
|
109
96
|
- lib/openwfe/listeners/listeners.rb
|
110
97
|
- lib/openwfe/listeners/socketlisteners.rb
|
98
|
+
- lib/openwfe/logging.rb
|
99
|
+
- lib/openwfe/omixins.rb
|
100
|
+
- lib/openwfe/orest
|
101
|
+
- lib/openwfe/orest/controlclient.rb
|
102
|
+
- lib/openwfe/orest/definitions.rb
|
103
|
+
- lib/openwfe/orest/exception.rb
|
104
|
+
- lib/openwfe/orest/oldrestservlet.rb
|
105
|
+
- lib/openwfe/orest/osocket.rb
|
106
|
+
- lib/openwfe/orest/restclient.rb
|
107
|
+
- lib/openwfe/orest/workitem.rb
|
108
|
+
- lib/openwfe/orest/worklistclient.rb
|
109
|
+
- lib/openwfe/orest/xmlcodec.rb
|
110
|
+
- lib/openwfe/participants
|
111
111
|
- lib/openwfe/participants/enoparticipants.rb
|
112
112
|
- lib/openwfe/participants/participant.rb
|
113
113
|
- lib/openwfe/participants/participantmap.rb
|
114
114
|
- lib/openwfe/participants/participants.rb
|
115
115
|
- lib/openwfe/participants/soapparticipants.rb
|
116
116
|
- lib/openwfe/participants/socketparticipants.rb
|
117
|
-
- lib/openwfe/
|
118
|
-
- lib/openwfe/
|
119
|
-
- lib/openwfe/
|
120
|
-
- lib/openwfe/rest/oldrestservlet.rb
|
121
|
-
- lib/openwfe/rest/osocket.rb
|
122
|
-
- lib/openwfe/rest/restclient.rb
|
123
|
-
- lib/openwfe/rest/worklistclient.rb
|
124
|
-
- lib/openwfe/rest/xmlcodec.rb
|
117
|
+
- lib/openwfe/rudefinitions.rb
|
118
|
+
- lib/openwfe/service.rb
|
119
|
+
- lib/openwfe/storage
|
125
120
|
- lib/openwfe/storage/yamlcustom.rb
|
126
121
|
- lib/openwfe/storage/yamlfilestorage.rb
|
122
|
+
- lib/openwfe/tools
|
127
123
|
- lib/openwfe/tools/flowtracer.rb
|
124
|
+
- lib/openwfe/util
|
128
125
|
- lib/openwfe/util/dollar.rb
|
129
126
|
- lib/openwfe/util/irb.rb
|
130
127
|
- lib/openwfe/util/kotoba.rb
|
@@ -136,19 +133,30 @@ files:
|
|
136
133
|
- lib/openwfe/util/scheduler.rb
|
137
134
|
- lib/openwfe/util/schedulers.rb
|
138
135
|
- lib/openwfe/util/workqueue.rb
|
136
|
+
- lib/openwfe/utils.rb
|
137
|
+
- lib/openwfe/version.rb
|
138
|
+
- lib/openwfe/workitem.rb
|
139
|
+
- lib/openwfe/worklist
|
139
140
|
- lib/openwfe/worklist/oldrest.rb
|
140
141
|
- lib/openwfe/worklist/storelocks.rb
|
141
142
|
- lib/openwfe/worklist/storeparticipant.rb
|
142
143
|
- lib/openwfe/worklist/worklist.rb
|
144
|
+
- lib/openwfe.rb
|
145
|
+
- test/bm
|
146
|
+
- test/bm/bm_1_xml_vs_prog.rb
|
147
|
+
- test/bm/ft_26_load.rb
|
148
|
+
- test/bm/ft_26b_load.rb
|
149
|
+
- test/bm/ft_26c_load.rb
|
143
150
|
- test/clone_test.rb
|
144
151
|
- test/concurrence_test.rb
|
145
152
|
- test/console_test.rb
|
146
153
|
- test/cron_test.rb
|
147
|
-
- test/cron_test_2.rb
|
148
154
|
- test/cronline_test.rb
|
155
|
+
- test/description_test.rb
|
149
156
|
- test/dollar_test.rb
|
150
157
|
- test/eno_test.rb
|
151
158
|
- test/expmap_test.rb
|
159
|
+
- test/fe_lookup_att_test.rb
|
152
160
|
- test/fei_test.rb
|
153
161
|
- test/file_persisted_engine_test.rb
|
154
162
|
- test/file_persistence_test.rb
|
@@ -158,6 +166,7 @@ files:
|
|
158
166
|
- test/ft_0b_sequence.rb
|
159
167
|
- test/ft_0c_testname.rb
|
160
168
|
- test/ft_0d_participant.rb
|
169
|
+
- test/ft_0e_multibody.rb
|
161
170
|
- test/ft_10_loop.rb
|
162
171
|
- test/ft_10b_loop2.rb
|
163
172
|
- test/ft_11_ppd.rb
|
@@ -167,6 +176,7 @@ files:
|
|
167
176
|
- test/ft_14_subprocess.rb
|
168
177
|
- test/ft_14b_subprocess.rb
|
169
178
|
- test/ft_15_iterator.rb
|
179
|
+
- test/ft_15b_iterator.rb
|
170
180
|
- test/ft_16_fqv.rb
|
171
181
|
- test/ft_17_condition.rb
|
172
182
|
- test/ft_18_pname.rb
|
@@ -180,9 +190,6 @@ files:
|
|
180
190
|
- test/ft_23c_wait.rb
|
181
191
|
- test/ft_24_def.rb
|
182
192
|
- test/ft_25_cancel.rb
|
183
|
-
- test/ft_26_load.rb
|
184
|
-
- test/ft_26b_load.rb
|
185
|
-
- test/ft_26c_load.rb
|
186
193
|
- test/ft_27_getflowpos.rb
|
187
194
|
- test/ft_28_fileparticipant.rb
|
188
195
|
- test/ft_29_httprb.rb
|
@@ -220,11 +227,13 @@ files:
|
|
220
227
|
- test/ft_52_obs_participant.rb
|
221
228
|
- test/ft_53_null_noop_participant.rb
|
222
229
|
- test/ft_54_listen.rb
|
230
|
+
- test/ft_54b_listen.rb
|
223
231
|
- test/ft_55_ptimeout.rb
|
224
232
|
- test/ft_56_timeout.rb
|
225
233
|
- test/ft_57_a.rb
|
226
234
|
- test/ft_58_ejournal.rb
|
227
235
|
- test/ft_59_ps.rb
|
236
|
+
- test/ft_59b_ps_for_pat.rb
|
228
237
|
- test/ft_5_time.rb
|
229
238
|
- test/ft_60_ecancel.rb
|
230
239
|
- test/ft_61_elsub.rb
|
@@ -239,6 +248,12 @@ files:
|
|
239
248
|
- test/ft_69_cancelmissing.rb
|
240
249
|
- test/ft_6_lambda.rb
|
241
250
|
- test/ft_70_lookupvar.rb
|
251
|
+
- test/ft_71_log.rb
|
252
|
+
- test/ft_72_lookup_processes.rb
|
253
|
+
- test/ft_73_cancel_sub.rb
|
254
|
+
- test/ft_74_block_and_workitem_dup.rb
|
255
|
+
- test/ft_75_ruby_attributes.rb
|
256
|
+
- test/ft_76_merge_isolate.rb
|
242
257
|
- test/ft_7_lose.rb
|
243
258
|
- test/ft_7b_lose.rb
|
244
259
|
- test/ft_8_forget.rb
|
@@ -247,6 +262,7 @@ files:
|
|
247
262
|
- test/hash_test.rb
|
248
263
|
- test/hparticipant_test.rb
|
249
264
|
- test/kotoba_test.rb
|
265
|
+
- test/lookup_att_test.rb
|
250
266
|
- test/lru_test.rb
|
251
267
|
- test/misc_test.rb
|
252
268
|
- test/nut_0_irb.rb
|
@@ -266,6 +282,7 @@ files:
|
|
266
282
|
- test/ruby_procdef_test.rb
|
267
283
|
- test/rutest_utils.rb
|
268
284
|
- test/safely_test.rb
|
285
|
+
- test/scheduler_1_test.rb
|
269
286
|
- test/scheduler_test.rb
|
270
287
|
- test/sec_test.rb
|
271
288
|
- test/slock_test.rb
|
data/test/cron_test_2.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Testing OpenWFE
|
4
|
-
#
|
5
|
-
# John Mettraux at openwfe.org
|
6
|
-
#
|
7
|
-
# Sun Oct 29 16:18:25 JST 2006
|
8
|
-
#
|
9
|
-
|
10
|
-
require 'test/unit'
|
11
|
-
|
12
|
-
require 'openwfe/util/otime'
|
13
|
-
require 'openwfe/util/scheduler'
|
14
|
-
|
15
|
-
|
16
|
-
#
|
17
|
-
# testing otime and the scheduler (its cron aspect)
|
18
|
-
#
|
19
|
-
class CronTest2 < Test::Unit::TestCase
|
20
|
-
|
21
|
-
#def setup
|
22
|
-
#end
|
23
|
-
|
24
|
-
#def teardown
|
25
|
-
#end
|
26
|
-
|
27
|
-
def t_0
|
28
|
-
|
29
|
-
$var = 0
|
30
|
-
|
31
|
-
scheduler = OpenWFE::Scheduler.new
|
32
|
-
scheduler.start
|
33
|
-
|
34
|
-
scheduler.schedule '* * * * *' do
|
35
|
-
$var += 1
|
36
|
-
end
|
37
|
-
|
38
|
-
sleep 1
|
39
|
-
scheduler.stop
|
40
|
-
|
41
|
-
puts Time.now
|
42
|
-
puts "XXX #{$var}" if $var != 0
|
43
|
-
end
|
44
|
-
|
45
|
-
def test_0
|
46
|
-
300.times do
|
47
|
-
t_0
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|