Created
October 30, 2013 02:38
-
-
Save davidpelaez/7226417 to your computer and use it in GitHub Desktop.
sample boot script using https://github.com/Vlipco/simpler_workflow/blob/parent-process/lib/simpler_workflow/parent_process.rb
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 SimpleWorkflowAPI | |
extend SimplerWorkflow::ParentProcess | |
log_level Logger::DEBUG | |
workers 1 | |
domain = SimplerWorkflow::Domain.domains "my_ops" | |
test_activity = domain.register_activity :test, "1.0.0" do | |
perform_activity do |task| | |
task.complete! :result => "approved" | |
end | |
end | |
on_boot do | |
test_activity.start_activity_loop | |
# more activities initializations go here | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment