2009/8/2 孫 顥 <[email protected]>:
>
> Hi, John
>
>  some additional information about my question.
>
>  i have a google spreadsheet as below
>  ----------------------------------
>  step, timeout
>  decide_jobdetails, 3d
>  decide_worker, 1d
>  ----------------------------------
>  so, my participant or listener will get the timeout property from the
> spreadsheet,
>  and set it dynamically to the workitem.

Hello,

I have the impression that it's a bit tedious to have the timeout
information outside of the process definition. You are linking a
"step" name like "decide_worker" with a timeout, but this 'phrase'
"decide_worker" seems to firmly belong to a process definition.

  sequence do
    decide_jobdetails :timeout => '3d'
    decide_worker :timeout => '1d'
  end

This makes for a very readable process definition.

Now I understand that you want to make it highly configurable and that
your way of dividing what belongs to the process definition and what
belongs to configuration is different from mine.

As a workaround, I'd suggest to put those timeout information into the
workitem or in the variables of the process instance.

  user1 :timeout => '${f:steps.decide_worker.timeout}'

would work with a workitem looking like :

  { 'steps' => { 'decide_worker' => { 'timeout' => '3d' } } }

For ruote 2.0, I will make sure that participants may decide about
their timeout by themselves.


Best regards, not sure if I could help,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

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

Reply via email to