Class: Smith::Workflow::CompositeBranchExecutionAuthorization

Inherits:
PreparedStepExecutionAuthorization show all
Defined in:
lib/smith/workflow/composite_branch_execution_authorization.rb

Instance Attribute Summary collapse

Attributes inherited from PreparedStepExecutionAuthorization

#dispatch_claim, #prepared_step

Instance Method Summary collapse

Methods inherited from PreparedStepExecutionAuthorization

#active_in_current_execution?, #each_agent_binding, #fetch_agent!, #issued_in_current_process?, #verify_workflow!

Constructor Details

#initialize(execution:, input:, **attributes) ⇒ CompositeBranchExecutionAuthorization

Returns a new instance of CompositeBranchExecutionAuthorization.



13
14
15
16
17
18
19
20
21
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 13

def initialize(execution:, input:, **attributes)
  validate_payloads!(execution, input)
  @execution_digest = execution.digest.dup.freeze
  @plan_digest = execution.plan_digest.dup.freeze
  @input_digest = input.digest.dup.freeze
  assign_branch_identity(execution.branch)
  @execution_namespace = execution.execution_namespace.dup.freeze
  super(**attributes)
end

Instance Attribute Details

#branch_digestObject (readonly)

Returns the value of attribute branch_digest.



10
11
12
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10

def branch_digest
  @branch_digest
end

#branch_ordinalObject (readonly)

Returns the value of attribute branch_ordinal.



10
11
12
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10

def branch_ordinal
  @branch_ordinal
end

#execution_digestObject (readonly)

Returns the value of attribute execution_digest.



10
11
12
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10

def execution_digest
  @execution_digest
end

#execution_namespaceObject (readonly)

Returns the value of attribute execution_namespace.



10
11
12
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10

def execution_namespace
  @execution_namespace
end

#input_digestObject (readonly)

Returns the value of attribute input_digest.



10
11
12
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10

def input_digest
  @input_digest
end

#plan_digestObject (readonly)

Returns the value of attribute plan_digest.



10
11
12
# File 'lib/smith/workflow/composite_branch_execution_authorization.rb', line 10

def plan_digest
  @plan_digest
end