Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2011 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1135845 to your computer and use it in GitHub Desktop.
Save anonymous/1135845 to your computer and use it in GitHub Desktop.
# where
# timeout_time is a Time instance
# exp is the [root] expression to cancel
#exp = engine.ps(wfid).expressions.first
# or
#exp = engine.ps(wfid).root_expressions.first
engine.storage.put_schedule(
'at',
exp.h.fei,
Ruote.time_to_utc_s(timeout_time),
'action' => 'cancel',
'fei' => exp.h.fei,
'flavour' => 'timeout')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment