On Mon, Oct 19, 2009 at 6:16 PM, Gonzalo <[email protected]> wrote:
>
> I launched this workflow definition within a clean install of ruote-
> rest:
>
> class Test0 < OpenWFE::ProcessDefinition
>  sequence :on_cancel => "exit" do
>    participant :ref => "alpha"
>    participant :ref => "bravo"
>  end
>  process_definition :name => "exit" do
>    participant :ref => "charly"
>    participant :ref => "zulu"
>  end
> end
>
> At alpha or bravo stage I just cancel the workflow. Then, a new
> subprocess called 'exit' is started
> and workitem is delivered to participant charly. As far as I see, the
> new subprocess is given a new
> id which is the old one (main process) plus ".0" so it looks similar
> to: 20091019-godepoyoyu.0
>
> Then I GET /processes and see that there is still a process with id
> '20091019-godepoyoyu', but the name
> has changed to 'exit'. I expected to see the new id '20091019-
> godepoyoyu.0'.

Hello Gonzalo,

this is right : the process is still the main "...poyoyu".

> Then I do a GET on that
> process (GET processes/20091019-godepoyoyu) and shows up the following
> error:
>
> undefined method `each' for nil:NilClass
> (erb):27:in `get_binding'

I have added a small test [1] for that case. But it doesn't fail. Am I
not doing it right ? Should I really try with an on_cancel subprocess
? Or maybe are we not using the same version of ruote / ruote-rest ?

[1] 
http://github.com/jmettraux/ruote-rest/blob/master/test/ft_subprocesses.rb#L42-45


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