hi, John some question about render_fluo (opts) funciton I can see the process image(picture) from my browser, but opts[:tree] is nil.
How should i know where is the process tree(json), in this situation ? 2009/9/1 John Mettraux <[email protected]> > > 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 -~----------~----~----~----~------~----~------~--~---
