Class: Temporalio::Worker::Interceptor::Workflow::Outbound
- Inherits:
-
Object
- Object
- Temporalio::Worker::Interceptor::Workflow::Outbound
- Defined in:
- lib/temporalio/worker/interceptor.rb
Overview
Outbound interceptor for intercepting outbound workflow calls. This should be extended by users needing to intercept workflow calls.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next_interceptor ⇒ Outbound
readonly
Next interceptor in the chain.
Instance Method Summary collapse
-
#cancel_external_workflow(input) ⇒ Object
Cancel external workflow.
-
#execute_activity(input) ⇒ Object
Execute activity.
-
#execute_local_activity(input) ⇒ Object
Execute local activity.
-
#initialize(next_interceptor) ⇒ Outbound
constructor
Initialize outbound with the next interceptor in the chain.
-
#initialize_continue_as_new_error(input) ⇒ Object
Initialize continue as new error.
-
#signal_child_workflow(input) ⇒ Object
Signal child workflow.
-
#signal_external_workflow(input) ⇒ Object
Signal external workflow.
-
#sleep(input) ⇒ Object
Sleep.
-
#start_child_workflow(input) ⇒ Workflow::ChildWorkflowHandle
Start child workflow.
-
#start_nexus_operation(input) ⇒ Workflow::NexusOperationHandle
Start Nexus operation.
Constructor Details
#initialize(next_interceptor) ⇒ Outbound
Initialize outbound with the next interceptor in the chain.
340 341 342 |
# File 'lib/temporalio/worker/interceptor.rb', line 340 def initialize(next_interceptor) @next_interceptor = next_interceptor end |
Instance Attribute Details
#next_interceptor ⇒ Outbound (readonly)
Returns Next interceptor in the chain.
335 336 337 |
# File 'lib/temporalio/worker/interceptor.rb', line 335 def next_interceptor @next_interceptor end |
Instance Method Details
#cancel_external_workflow(input) ⇒ Object
Cancel external workflow.
347 348 349 |
# File 'lib/temporalio/worker/interceptor.rb', line 347 def cancel_external_workflow(input) @next_interceptor.cancel_external_workflow(input) end |
#execute_activity(input) ⇒ Object
Execute activity.
355 356 357 |
# File 'lib/temporalio/worker/interceptor.rb', line 355 def execute_activity(input) @next_interceptor.execute_activity(input) end |
#execute_local_activity(input) ⇒ Object
Execute local activity.
363 364 365 |
# File 'lib/temporalio/worker/interceptor.rb', line 363 def execute_local_activity(input) @next_interceptor.execute_local_activity(input) end |
#initialize_continue_as_new_error(input) ⇒ Object
Initialize continue as new error.
370 371 372 |
# File 'lib/temporalio/worker/interceptor.rb', line 370 def initialize_continue_as_new_error(input) @next_interceptor.initialize_continue_as_new_error(input) end |
#signal_child_workflow(input) ⇒ Object
Signal child workflow.
377 378 379 |
# File 'lib/temporalio/worker/interceptor.rb', line 377 def signal_child_workflow(input) @next_interceptor.signal_child_workflow(input) end |
#signal_external_workflow(input) ⇒ Object
Signal external workflow.
384 385 386 |
# File 'lib/temporalio/worker/interceptor.rb', line 384 def signal_external_workflow(input) @next_interceptor.signal_external_workflow(input) end |
#sleep(input) ⇒ Object
Sleep.
391 392 393 |
# File 'lib/temporalio/worker/interceptor.rb', line 391 def sleep(input) @next_interceptor.sleep(input) end |
#start_child_workflow(input) ⇒ Workflow::ChildWorkflowHandle
Start child workflow.
399 400 401 |
# File 'lib/temporalio/worker/interceptor.rb', line 399 def start_child_workflow(input) @next_interceptor.start_child_workflow(input) end |
#start_nexus_operation(input) ⇒ Workflow::NexusOperationHandle
Start Nexus operation.
WARNING: Nexus support is experimental.
409 410 411 |
# File 'lib/temporalio/worker/interceptor.rb', line 409 def start_nexus_operation(input) @next_interceptor.start_nexus_operation(input) end |