Class: Temporalio::Workflow::DefinitionOptions
- Inherits:
-
Struct
- Object
- Struct
- Temporalio::Workflow::DefinitionOptions
- Defined in:
- lib/temporalio/workflow/definition.rb,
lib/temporalio/workflow/definition.rb
Overview
Returns The versioning behavior.
Instance Attribute Summary collapse
-
#failure_exception_types ⇒ Array<Class<Exception>>?
Dynamic equivalent of Temporalio::Workflow::Definition.workflow_failure_exception_type.
-
#versioning_behavior ⇒ VersioningBehavior?
Dynamic equivalent of Temporalio::Workflow::Definition.workflow_versioning_behavior.
Instance Method Summary collapse
-
#initialize(failure_exception_types: nil, versioning_behavior: nil) ⇒ DefinitionOptions
constructor
A new instance of DefinitionOptions.
Constructor Details
#initialize(failure_exception_types: nil, versioning_behavior: nil) ⇒ DefinitionOptions
Returns a new instance of DefinitionOptions.
672 673 674 675 676 677 |
# File 'lib/temporalio/workflow/definition.rb', line 672 def initialize( failure_exception_types: nil, versioning_behavior: nil ) super end |
Instance Attribute Details
#failure_exception_types ⇒ Array<Class<Exception>>?
Dynamic equivalent of Temporalio::Workflow::Definition.workflow_failure_exception_type. Will override any types set there if set, including if set to an empty array.
671 672 673 |
# File 'lib/temporalio/workflow/definition.rb', line 671 def failure_exception_types @failure_exception_types end |
#versioning_behavior ⇒ VersioningBehavior?
Dynamic equivalent of Temporalio::Workflow::Definition.workflow_versioning_behavior. Will override any behavior set there if set. WARNING: Deployment-based versioning is experimental and APIs may change.
671 672 673 |
# File 'lib/temporalio/workflow/definition.rb', line 671 def versioning_behavior @versioning_behavior end |