On Wed, Jul 29, 2009 at 12:47 AM, 孫 皓<[email protected]> wrote:
>
> in the expression as below:
>
> cursor :rewind_if => "${f:restart}"
>
> if i set workitem.fields['restart'] to boolean value true,
> it works well. but when i set a string value to restart field,
> it not works for me. In ruby string is evaluated to true,
> so i would it acts as ruby do ....

Hello 孫 皓,

you could do

  cursor :rewind_if => '${f:restart} is set'

It would work (warning, it will work even if 'restart' is set to 'false').

or

  cursor :rewind_if => "${f:restart} != ''"


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