Created
August 14, 2009 18:21
-
-
Save kennethkalmer/167998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CrazyIdea < OpenWFE::ProcessDefinition | |
sequence do | |
_loop :break_if => "${f:completed}" do | |
# This is the queue, getting popped by a REST call. The person who did the pop | |
# will have the workitem field 'winner_of_the_lock' set to their details, so the | |
# next participant is dynamic based on that field value. | |
queue_participant | |
# | |
participant "${f:winner_of_the_lock}", :timeout => '1d' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment