Skip to content

Instantly share code, notes, and snippets.

@jmettraux
Created November 20, 2008 00:45
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 jmettraux/26859 to your computer and use it in GitHub Desktop.
Save jmettraux/26859 to your computer and use it in GitHub Desktop.
# verbose
#
class NotifyThibaut0 < OpenWFE::ProcessDefinition
concurrence :count => 1 # terminate as soon as 1 branch replies
participant :ref => 'notify_thibaut'
cron :every => '1h' do
participant :ref => 'remind_thibaut'
end
end
end
# less
#
class NotifyThibaut1 < OpenWFE::ProcessDefinition
concurrence :count => 1
notify_thibaut
cron :every => '1h' do
remind_thibaut
end
end
end
# directly as JSON
#
[ "concurrence", { "count": 1 }, [
[ "notify_thibaut", {}, [] ],
[ "cron", { "every": "1h" }, [
[ "remind_thibaut", {}, [] ] ] ] ] ]
# bare notification, no reminder
#
class NotifyThibaut2 < OpenWFE::ProcessDefinition
notify_thibaut
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment