Skip to content

Instantly share code, notes, and snippets.

@davidpelaez
Created October 30, 2013 02:38
Show Gist options
  • Save davidpelaez/7226417 to your computer and use it in GitHub Desktop.
Save davidpelaez/7226417 to your computer and use it in GitHub Desktop.
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