Hi John, Sorry, I didn't state it clearly about "test_1" don't work for me. I think you guessed it right. It didn't run the two jobs concurrently. I donwloaded the openwfe source code as you said and ran the following commands cd openwfe-ruby rake --trace
I got the error below. I guess I can wait for the 0.9.14 release. (in /home/admin/development/openwfe-ruby) rake aborted! no such file to load -- rote /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /home/admin/development/openwfe-ruby/Rakefile:14 /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1855:in `load' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1855:in `load_rakefile' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1929:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/bin/rake:7 /usr/local/bin/rake:16:in `load' /usr/local/bin/rake:16 On Sep 7, 10:15 pm, "John Mettraux" <[EMAIL PROTECTED]> wrote: > Hi Liwen, > > On 9/7/07, Liwen <[EMAIL PROTECTED]> wrote: > > > > > Hi John, > > > Thanks for the reply. But your code test_1 didn't work for me ( with > > openwfe gem 0.9.13) > > I know, I guessed what "did no work for me" meant for you, you were > not explaining it very clearly. With the latest revisions, it works as > you expect. > > > > > > > def test_1 > > @engine.register_participant :alice do |workitem| > > puts "alice in" > > sleep 0.500 > > puts "alice out" > > end > > @engine.register_participant :bob do |workitem| > > puts "bob in" > > sleep 0.500 > > puts "bob out" > > end > > > @engine.launch Hpc0 > > sleep 2 > > end > > > And BTW, what is 'sleep 2' doing there? Why not ' > > engine.wait_for ....' > > In my real situation. I don't know how long each job will run, may be > > several hours or > > a few minutes - all depends on how much data in the database. > > You are right, but this is just a test (hence the name "test_1"), it > is not a full blow BPM-driven application / whatever, so "sleep 2" was > OK. Next time I'll use wait_for(), I promise. > > > How can I download gem openwfe 0.9.14? > > OpenWFEru 0.9.14 should be out next week. > > If you really want it now, you can do : > > svn checkouthttp://openwferu.rubyforge.org/svn/trunk/openwfe-ruby > cd openwfe-ruby > rake > > and after a few seconds, you'll end up with a openwferu-0.9.14.gem > file in your openwfe-ruby/pkg/ directory. > But of course, things may change before the final 0.9.14 release. > > Best regards, > > -- > John Mettraux -///- http://jmettraux.openwfe.org- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/openwferu-dev?hl=en -~----------~----~----~----~------~----~------~--~---
