On Tue, Dec 13, 2011 at 08:36:48AM -0800, R Law wrote:
>
> concurrent_iterator :on => '${f:coauthor_emails}', :tag =>
> 'coauthor_forms', :to_var => 'v' do
> concurrence do
> participant 'coauthor-${v:v}', :task =>
> 'complete_information', :unless => '${v:v}_info_present'
> participant 'coauthor-${v:v}', :task => 'submit_copyright'
> participant 'coauthor-${v:v}', :task => 'submit_disclosure'
> end
> end
>
> (...)
>
> With this code, both [email protected] and [email protected] skip over the
> "complete_information" task. I need the :unless to check if this
> particular user's information is present.
Hello,
you can nest dollar expressions:
---8<---
concurrent_iterator :on => '${f:coauthor_emails}', :tag => 'coauthor_forms',
:to_var => 'v' do
concurrence do
participant 'coauthor-${v:v}', :task => 'complete_information', :unless =>
'${${v:v}_info_present}'
participant 'coauthor-${v:v}', :task => 'submit_copyright'
participant 'coauthor-${v:v}', :task => 'submit_disclosure'
end
end
--->8---
Your version always resolved to something like:
participant '[email protected]', :unless => '[email protected]_info_present'
which got skipped since an non-empty string is considered true.
The nested version should resolve (second to last resolution) to:
participant '[email protected]', :unless => '${[email protected]_info_present}'
Which will get skipped if the workitem field '[email protected]_info_present' holds
a trueish value.
Best regards,
--
John Mettraux - http://lambda.io/processi
--
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