Hi John,

Thanks for the reply. But your code test_1 didn't work for me ( with
openwfe gem 0.9.13)
  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.

How can I download gem openwfe 0.9.14?

Thanks.

Liwen


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to