I have the following expression in my process:

<wait runtil="Time.now >= workitem.start_time - (2 * 3600)"/>

which fails because somehow the start_time attribute is converted from
Time to String during the process, probably while the workitem is
restored from the database by ActiveParticipant.

As a workaround I want to use the following expression:

<wait runtil="Time.now >= Time.parse(workitem.start_time.to_s) - (2 *
3600)"/>

However this one fails because I can't load the Time (standard)
library properly. I tried including "require 'time'" in various source
files, but it keeps failing with the following exception:

exception : undefined method `parse' for Time:Class
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
openwferu-0.9.17/lib/openwfe/expressions/condition.rb:239:in `do_eval'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
rufus-eval-0.1/lib/rufus/eval.rb:105:in `join'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
rufus-eval-0.1/lib/rufus/eval.rb:105:in `eval_safely'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
openwferu-0.9.17/lib/openwfe/expressions/condition.rb:239:in `do_eval'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
openwferu-0.9.17/lib/openwfe/expressions/condition.rb:113:in
`do_eval_condition'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
openwferu-0.9.17/lib/openwfe/expressions/condition.rb:71:in
`eval_condition'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
openwferu-0.9.17/lib/openwfe/expressions/time.rb:258:in
`evaluate_condition'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
openwferu-0.9.17/lib/openwfe/expressions/time.rb:217:in `trigger'
/Users/maarten/Documents/Projects/ejai/journeys/config/../vendor/gems/
openwferu-0.9.17/lib/openwfe/expressions/time.rb:178:in `apply'

Any ideas?

Thanks in advance,

Maarten

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to