On Thu, Apr 24, 2008 at 4:38 AM, Maarten <[EMAIL PROTECTED]> wrote:
>
>  <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


Hi Maarten,

I managed to fix the "flattened time in db" issue :

http://github.com/jmettraux/ruote/commit/3340464c366bb91293f07f5b79a9c54581d570f9

I have also made sure Date is handled correctly as well, see tests 6 and 6b :

http://github.com/jmettraux/ruote/commit/3340464c366bb91293f07f5b79a9c54581d570f9#diff-3


About the missing parse method, I discovered that by putting "require
'date'" at the top of the rufus/eval.rb file, I was able to use
Time.parse(). Maybe by putting that require before the first mention
to "require 'openwfe/...'" would do the trick.


I hope this will help, thanks for the feedback,

-- 
John Mettraux - http://jmettraux.wordpress.com

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