module Temporal::Workflow::ConvenienceMethods
Public Instance Methods
execute(*input, **args)
click to toggle source
# File lib/temporal/workflow/convenience_methods.rb, line 19 def execute(*input, **args) context = Temporal::ThreadLocalContext.get raise 'Called Workflow#execute outside of a Workflow context' unless context context.execute_workflow(self, *input, **args) end
execute!(*input, **args)
click to toggle source
# File lib/temporal/workflow/convenience_methods.rb, line 26 def execute!(*input, **args) context = Temporal::ThreadLocalContext.get raise 'Called Workflow#execute! outside of a Workflow context' unless context context.execute_workflow!(self, *input, **args) end