Hi, John

  maybe timeline is good for me this time.
  Thank you very much !!

best regards,
sunhao


On 2009/09/03, at 13:02, John Mettraux wrote:

>
> 2009/9/3 孫 皓 <[email protected]>:
>>
>>
>> Hi, John
>>
>> I have a process definition which using concurrent-iterator here,
>> it is not so simple like the below example:
>>
>> --------- Definition ---------
>> concurrent_iterator :on => "${f:workers}", :to_field => 'worker',
>>   :merge_type => 'isolate', :timeout => '${f:timeout}' do
>> participant :ref => '${f:worker}', :step => 'send_job'
>> ---------------------------------
>>
>> ------- Example ------------
>> [ 'sequence', {}, [ [ 'participant', { 'ref': '${f:user0}' }, [] ],
>> [ 'participant', { 'ref': '${f:user1}' }, [] ] ] ]
>> --------------------------------
>>
>> ------ My Problem --------
>> [ 'concurrent_iterator', ....  [ [ 'participant', { 'ref': '$
>> {f:worker}' }, [] ], [ 'participant', { 'ref': '${f:worker}' },  
>> [] ] ] ]
>> --------------------------------
>>
>> I can not distinct one worker from the other easily, any  
>> suggestions ?
>
> Hello,
>
> this is a hard problem, I guess you could translate the
> "concurrent_iterator" to a concurrence :
>
> if the workers are "alice, bob, charly" then
>
> --------- Definition ---------
> concurrent_iterator :on => "${f:workers}", :to_field => 'worker',
> :merge_type => 'isolate', :timeout => '${f:timeout}' do
>  participant :ref => '${f:worker}', :step => 'send_job'
> end
> ---------------------------------
>
> becomes
>
> --------- Result ---------
> concurrence :merge_type => 'isolate', :timeout => '${f:timeout}' do
>  participant :ref => 'alice', :step => 'send_job'
>  participant :ref => 'bob', :step => 'send_job'
>  participant :ref => 'charly', :step => 'send_job'
> end
> ---------------------------------
>
> but that's maybe "tricky", and it will not necessarily play will with
> "displaying the workitem" in the diagram.
>
>
> Another totally different approach would be to look only at the
> "trace" of the workflow from a history point of view. But that's not
> ruote-fluo orientend at all, it would require a timeline library (like
> http://www.simile-widgets.org/timeline/ )
>
>
> Cheers,
>
> -- 
> 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