2012/10/11 Donald French <[email protected]>:
> Thank you for the information, I tried it both ways and I am sure I am
> missing something.
>
> git://gist.github.com/3868609.git
Hello Don,
sorry, the link points to some blank page.
> I also had the define of the avail1 process un the initial pdef string and it
> still did not work.
>
> It just skips it.
>
> I do need the process definition to be a string or something storable as I
> have to get it from a library of processes that are available.
Here is a solution to your initial requirement:
---8<---
$ruote = Ruote::Dashboard.new(...)
pdef = Ruote.define
launcher
end
class Launcher < Ruote::Participant
def on_workitem
flow = Somewhere.select_flow_to_launch
@context.dashboard.launch(flow)
reply
end
end
$ruote.launch(pdef)
--->8---
It assumes you have a Somewhere library with a select_flow_to_launch
method. The participant immediately replies to its flow, and since
it's the only thing in there, that flow immediately terminates.
Best regards,
--
John Mettraux - http://lambda.io/jmettraux
--
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