module Temporal::Activity::WorkflowConvenienceMethods
Public Instance Methods
execute(*input, **args)
click to toggle source
# File lib/temporal/activity/workflow_convenience_methods.rb, line 19 def execute(*input, **args) context = Temporal::ThreadLocalContext.get raise 'Called Activity#execute outside of a Workflow context' unless context context.execute_activity(self, *input, **args) end
execute!(*input, **args)
click to toggle source
# File lib/temporal/activity/workflow_convenience_methods.rb, line 26 def execute!(*input, **args) context = Temporal::ThreadLocalContext.get raise 'Called Activity#execute! outside of a Workflow context' unless context context.execute_activity!(self, *input, **args) end
execute_locally(*input, **args)
click to toggle source
# File lib/temporal/activity/workflow_convenience_methods.rb, line 33 def execute_locally(*input, **args) context = Temporal::ThreadLocalContext.get raise 'Called Activity#execute_locally outside of a Workflow context' unless context context.execute_local_activity(self, *input, **args) end