Mac, Snow Leopard with JRuby 1.4, Everything works find with Ruby.
I create participants like this:
$engine =
Ruote::Engine.new(Ruote::Worker.new(Ruote::FsStorage.new('work')))
$engine.register_participant :alpha do |workitem|
workitem.fields['message'] = { 'text' => 'hello !', 'author' =>
'Alice' }
end
and create processes like this:
$engine.variables['sync_process'] = Ruote.process_definition :name =>
'sync_process' do
define :sync_http do
sequence do
alpha
end
end
end
and execute:
wfid = $engine.launch($engine.variables[process], options)
puts "done: #{wfid}"
outcome = $engine.wait_for(wfid)
With JRuby I'm getting the following errors in the work directory, I
tried looking for other logs that might tell me more but this was all
I found.
{"type":"errors","_id":"err_0_8_0_2!187994958!20100209-
bomamugodu","message":"#\u003CArgumentError: wrong # of arguments(0
for 1)\u003E","trace":"/Users/francisco/realtravel/rtsite/
realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/ruote/exp/
fe_participant.rb:204:in `schedule_timeout'\n/Users/francisco/
realtravel/rtsite/realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/
ruote/exp/fe_participant.rb:145:in `apply'\n/Users/francisco/
realtravel/rtsite/realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/
ruote/exp/flowexpression.rb:197:in `do_apply'\n/Users/francisco/
realtravel/rtsite/realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/
ruote/worker.rb:329:in `launch'\n/Users/francisco/realtravel/rtsite/
realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/ruote/worker.rb:
227:in `process'\n/Users/francisco/realtravel/rtsite/realtravel.com/
gems/jruby/1.8/gems/ruote-2.1.5/lib/ruote/worker.rb:172:in `step'\n/
Users/francisco/realtravel/rtsite/realtravel.com/gems/jruby/1.8/gems/
ruote-2.1.5/lib/ruote/worker.rb:65:in `run'\n/Users/francisco/
realtravel/rtsite/realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/
ruote/worker.rb:76:in `run_in_thread'\n/Users/francisco/realtravel/
rtsite/realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/ruote/
worker.rb:76:in `initialize'\n/Users/francisco/realtravel/rtsite/
realtravel.com/gems/jruby/1.8/gems/ruote-2.1.5/lib/ruote/worker.rb:
76:in `new'\n/Users/francisco/realtravel/rtsite/realtravel.com/gems/
jruby/1.8/gems/ruote-2.1.5/lib/ruote/worker.rb:76:in `run_in_thread'\n/
Users/francisco/realtravel/rtsite/realtravel.com/gems/jruby/1.8/gems/
ruote-2.1.5/lib/ruote/engine.rb:58:in `initialize'\n/Users/francisco/
realtravel/rtsite/realtravel.com/lib/ruote/participants.rb:13:in
`new'\n/Users/francisco/realtravel/rtsite/realtravel.com/lib/ruote/
participants.rb:13\n/Users/francisco/realtravel/rtsite/realtravel.com/
lib/ruote/participants.rb:31:in `require'\n/Users/francisco/
Applications/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'\n/Users/francisco/realtravel/rtsite/realtravel.com/
gems/jruby/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:156:in `require'\n/Users/francisco/realtravel/rtsite/
realtravel.com/gems/jruby/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:521:in `new_constants_in'\n/Users/
francisco/realtravel/rtsite/realtravel.com/gems/jruby/1.8/gems/
activesupport-2.3.5/lib/active_support/dependencies.rb:156:in
`require'\n/Users/francisco/realtravel/rtsite/realtravel.com/lib/tasks/
ruote.rake:23\n/Users/francisco/Applications/jruby-1.4.0/lib/ruby/gems/
1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'\n/Users/francisco/
Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
636:in `execute'\n/Users/francisco/Applications/jruby-1.4.0/lib/ruby/
gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'\n/Users/francisco/
Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
631:in `execute'\n/Users/francisco/Applications/jruby-1.4.0/lib/ruby/
gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'\n/
Users/francisco/Applications/jruby/lib/ruby/1.8/monitor.rb:242:in
`mon_synchronize'\n/Users/francisco/Applications/jruby-1.4.0/lib/ruby/
gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'\n/
Users/francisco/Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/
rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'\n/Users/francisco/
Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
604:in `each'\n/Users/francisco/Applications/jruby-1.4.0/lib/ruby/gems/
1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'\n/Users/
francisco/Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/
lib/rake.rb:596:in `invoke_with_call_chain'\n/Users/francisco/
Applications/jruby/lib/ruby/1.8/monitor.rb:242:in `mon_synchronize'\n/
Users/francisco/Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/
rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'\n/Users/
francisco/Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/
lib/rake.rb:583:in `invoke'\n/Users/francisco/Applications/jruby-1.4.0/
lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'\n/
Users/francisco/Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/
rake-0.8.7/lib/rake.rb:2029:in `top_level'\n/Users/francisco/
Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2029:in `each'\n/Users/francisco/Applications/jruby-1.4.0/lib/ruby/
gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'\n/Users/
francisco/Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/
lib/rake.rb:2068:in `standard_exception_handling'\n/Users/francisco/
Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
2023:in `top_level'\n/Users/francisco/Applications/jruby-1.4.0/lib/
ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'\n/Users/
francisco/Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/
lib/rake.rb:2068:in `standard_exception_handling'\n/Users/francisco/
Applications/jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:
1998:in `run'\n/Users/francisco/Applications/jruby-1.4.0/lib/ruby/gems/
1.8/gems/rake-0.8.7/bin/rake:31\n/Users/francisco/Applications/
jruby-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:19:in `load'\n/
Users/francisco/Applications/jruby/bin/rake:19","fei":
{"engine_id":"engine","wfid":"20100209-
bomamugodu","sub_wfid":"187994958","expid":"0_8_0_2"},"msg":{"fei":
{"engine_id":"engine","wfid":"20100209-
bomamugodu","sub_wfid":"187994958","expid":"0_8_0_2"},"tree":
["exalead_instance",{"ref":"exalead_instance"},[]],"parent_id":
{"engine_id":"engine","wfid":"20100209-
bomamugodu","sub_wfid":"187994958","expid":"0_8_0"},"variables":null,"workitem":
{"fields":
{"restore":"production","rsync":"true","remote_profile":"production","remote_branch":"trunk","restore_indexes":"reviews-12000","console":"true","sync_direction":"down","archive_tmp":"","archive":"production","sync_indexes":"reviews-12000","remote":"vegas","env":"trunk","user":"rt.remote.vegas.user","dir":"/
repository/data/archive/production/
production","index":"reviews-12000","instance":"reviews-12000"},"fei":
{"engine_id":"engine","wfid":"20100209-
bomamugodu","sub_wfid":"187994958","expid":"0_8_0_2"}},"type":"msgs","_id":"26802-988-1265707440.466000","action":"apply","put_at":"2010-02-09
09:24:00.466000 UTC","_rev":0},"put_at":"2010-02-09 09:24:00.512000
UTC","_rev":0}
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en