On Wed, Nov 28, 2012 at 11:50:53AM -0800, Tobi wrote:
>
> i am trying to implement some workflow control patterns with ruote (2.3.0).
> I followed the quickstart
> at https://github.com/jmettraux/ruote/tree/master/quickstart and had no
> problems to get it started so far.
>
> But when trying to implement some control patterns, they seem to be ignored
> and i don“t know why.

Hello Tobi,

thanks for your feedback.

To answer the question in your email subject, no the workflow control
patterns are not ignored.

> For example i tried to use the jump :to command like described
> at http://ruote.rubyforge.org/exp/cursor.html
>
> My process definition looks like that:
>
> pdef = Ruote.define do
>
> cursor do
>   participant 'aa'
>   participant 'bb'
>   participant 'cc'
>   echo '${f:go_to_e}'
>   jump :to => 'ee', :if => '${f:go_to_e}'
>   participant 'dd'
>   participant 'ee'
>   jump :to => 'cc', :if => '${f:back_to_c}'
>   echo '${f:back_to_c}'
> end
>
> (...)

If you follow the example in http://ruote.rubyforge.org/exp/cursor.html your
flow should look like:

---8<---
cursor do
  aa
  bb
  cc
  echo '${f:go_to_e}'
  jump :to => 'ee', :if => '${f:go_to_e}'
  dd
  ee
  jump :to => 'cc', :if => '${f:back_to_c}'
  echo '${f:back_to_c}'
end
--->8---

and it works [on my machine].

---8<---
cursor do
  participant :ref => 'aa'
  participant :ref => 'bb'
  participant :ref => 'cc'
  echo '${f:go_to_e}'
  jump :to => 'ee', :if => '${f:go_to_e}'
  participant :ref => 'dd'
  participant :ref => 'ee'
  jump :to => 'cc', :if => '${f:back_to_c}'
  echo '${f:back_to_c}'
end
--->8---

works too.

So I investigated "participant 'aa'" and it doesn't work: it cannot be
targetted by the "jump" command, the jump command simply doesn't find its
target and gives up. I have added an issue for that and I hope to fix it soon:

  https://github.com/jmettraux/ruote/issues/69

Many thanks for reporting that issue, if you find any other irregularities,
please tell the list.


Have a good night, vielen Dank,

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

Reply via email to