Class: Temporalio::Workflow::Definition::Update
- Inherits:
-
Object
- Object
- Temporalio::Workflow::Definition::Update
- Defined in:
- lib/temporalio/workflow/definition.rb
Overview
An update definition. This is usually built as a result of a workflow_update method, but can be manually created to set at runtime on Temporalio::Workflow.update_handlers.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#raw_args ⇒ Object
readonly
Returns the value of attribute raw_args.
-
#to_invoke ⇒ Object
readonly
Returns the value of attribute to_invoke.
-
#unfinished_policy ⇒ Object
readonly
Returns the value of attribute unfinished_policy.
-
#validator_to_invoke ⇒ Object
readonly
Returns the value of attribute validator_to_invoke.
Instance Method Summary collapse
-
#initialize(name:, to_invoke:, description: nil, raw_args: false, unfinished_policy: HandlerUnfinishedPolicy::WARN_AND_ABANDON, validator_to_invoke: nil) ⇒ Update
constructor
Create an update definition manually.
Constructor Details
#initialize(name:, to_invoke:, description: nil, raw_args: false, unfinished_policy: HandlerUnfinishedPolicy::WARN_AND_ABANDON, validator_to_invoke: nil) ⇒ Update
Create an update definition manually. See Temporalio::Workflow::Definition.workflow_update for more details on some of the parameters.
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 |
# File 'lib/temporalio/workflow/definition.rb', line 624 def initialize( name:, to_invoke:, description: nil, raw_args: false, unfinished_policy: HandlerUnfinishedPolicy::WARN_AND_ABANDON, validator_to_invoke: nil ) @name = name @to_invoke = to_invoke @description = description @raw_args = raw_args @unfinished_policy = unfinished_policy @validator_to_invoke = validator_to_invoke Internal::ProtoUtils.assert_non_reserved_name(name) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
599 600 601 |
# File 'lib/temporalio/workflow/definition.rb', line 599 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
599 600 601 |
# File 'lib/temporalio/workflow/definition.rb', line 599 def name @name end |
#raw_args ⇒ Object (readonly)
Returns the value of attribute raw_args.
599 600 601 |
# File 'lib/temporalio/workflow/definition.rb', line 599 def raw_args @raw_args end |
#to_invoke ⇒ Object (readonly)
Returns the value of attribute to_invoke.
599 600 601 |
# File 'lib/temporalio/workflow/definition.rb', line 599 def to_invoke @to_invoke end |
#unfinished_policy ⇒ Object (readonly)
Returns the value of attribute unfinished_policy.
599 600 601 |
# File 'lib/temporalio/workflow/definition.rb', line 599 def unfinished_policy @unfinished_policy end |
#validator_to_invoke ⇒ Object (readonly)
Returns the value of attribute validator_to_invoke.
599 600 601 |
# File 'lib/temporalio/workflow/definition.rb', line 599 def validator_to_invoke @validator_to_invoke end |