Hi, John

  Thank you very much for your advices.
  First, I will have a try to implement it.

  After that, let's talking with the problems below ;)

best regards,
sunhao.


On 2009/09/01, at 10:00, John Mettraux wrote:

>
> 2009/9/1 孫 皓 <[email protected]>:
>>
>>
>> Hi, John
>>
>>  Yes, your right.
>>  I have a process that needs to set "participant :ref => '$
>> {f:worker}'" on-the-fly.
>>
>>  So, which part should i modify ?
>>  Any suggestion ?
>
> Hello,
>
> the code that invokes ruote-fluo from ruote-web2 is at :
>
>  
> http://github.com/jmettraux/ruote-web2/blob/93dffd25cd61dd3f97f40fb224c783fadc948eef/app/helpers/application_helper.rb#L123-188
>
> You have to pass a modified version of the process definition, in
> JSON, for ruote-fluo to display it.
>
> My suggestion would be to modify the process tree passed to this  
> method.
>
> For instance
>
>  [ 'sequence', {}, [ [ 'participant', { 'ref': '${f:user0}' }, [] ],
> [ 'participant', { 'ref': '${f:user1}' }, [] ] ] ]
>
> could be transformed into
>
>  [ 'sequence', {}, [ [ 'participant', { 'ref': 'alice' }, [] ], [
> 'participant', { 'ref': bob' }, [] ] ] ]
>
> The problem with that is that if you are at the second step "user1"
> and that the value of the field "user0" changed meanwhile, what value
> should get displayed ?
>
>
> It's an advanced modification, a bit difficult I think. There are 2 or
> 3 ways to do it right, but it depends on your specifications.
>
>
> Best regards,
>
> -- 
> 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