On Fri, Jul 10, 2009 at 5:42 PM, raldo yeman<[email protected]> wrote:
>
> First of all, thanks for making our lives easier. :D  Keep up the good
> work!
>
> I know it's pretty simple but I can't figure out how to do it.  I have
> a payload that is updated everytime a participant proceeds a workitem.
> The payload is an array that is filled with the participant's name so
> that when a workitem comes to a participant that is already on that
> list, that participant is skipped. So my process definition would look
> something like
>
> class Test0 < OpenWFE::ProcessDefinition
>  sequence do
>    "alpha" :if => "${f:approvers} includes 'alpha'"
>    concurrence do
>      "bravo" :if => "${f:approvers} includes 'bravo'"
>      "charly" :if => "${f:approvers} includes 'charly'"
>    end
>  end
> end
>
> my initial payload includes approvers as an empty array.

Hi Raldo,

welcome on the list !

you could do something like

  alpha :rif => "wi.fields['approvers'].include?('bravo')"

The "r" prefix is for "Ruby".

You can also do something like

  concurrent-iterator :on_field_value => 'approvers', :to_field => 'approver' do
    participant "${f:approver}"
  end

for a bit more of documentation :

  http://openwferu.rubyforge.org/expressions.html#exp_iterator
  http://openwferu.rubyforge.org/expressions.html#exp_concurrent-iterator


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

Reply via email to