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 checkout http://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

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