John,

I did read the example... in the case of ruote_fluo...If you take that 
definition and put it in a file,,, I pretty much described what happens, I 
thought.

The point was to show that you may want to expose more of what is happening at 
the workflow level rather than hide it in a participant (which would not be 
obvious to the casual reader).  This is why you want to use workflows after all.

Why couldn't I use a workflow to design an algorithm and the many processing 
steps?
This would be really cool.... soooo close!.

Great work as always!
V/R,
Pat.


On May 17, 2010, at 10:37 PM, John Mettraux wrote:

> 
> On Mon, May 17, 2010 at 10:28:31PM -0400, Cappelaere Patrice wrote:
>> John,
>> 
>> Well... parser.rb takes a definition (from a file, string...) creates a new 
>> instance of a  Ruote::Parser, calls parse...
>> calls ruby_eval... which eventually calls the ruby_dsl.
>> Coming from ruote_fluo, it is a JSON string parsed to a tree back to ruby...
>> 
>> So there is quite a bit of transformation involving strings here....
> 
> Please re-read the example I passed in
> 
>  http://groups.google.com/group/openwferu-users/msg/c4befb96480e71bb
> 
> And tell me when parse is called.
> 
> 
>> I would love to be able to use more ruby code within a pdef like...
>> and pass it to ruote_fluo to display as a workflow
>> 
>> pdef = Ruote.process_definition do
>>    sequence do
>>      x = some_function(3 + ${f:v})
>>      y = 1 + 5 / 6       
>>      alpha x, y
>>      bravo
>>    end
>> end
>> 
>> actually in my case it would be more like:
>> pdef = Ruote.algorithm_definition do
>>    sequence do
>>      x = some_function(3 + ${f:v})
>>      y = 1 + 5 / 6       
>>      alpha x, y
>>    end
>> end
>> 
>> and then use those algos as subprocess....
>> 
>> Does this make sense?
> 
> It makes sense for you, in your project.
> 
> For me, it makes for crowded process definitions. Such calculations are 
> better when placed in a participant that may be re-used by multiple process 
> definitions.
> 
> 
> 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

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