Class: Cadence::Metadata::Decision

Inherits:
Base
  • Object
show all
Defined in:
lib/cadence/metadata/decision.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#activity?, #workflow?

Constructor Details

#initialize(domain:, id:, task_token:, attempt:, workflow_run_id:, workflow_id:, workflow_name:) ⇒ Decision

Returns a new instance of Decision.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/cadence/metadata/decision.rb', line 8

def initialize(domain:, id:, task_token:, attempt:, workflow_run_id:, workflow_id:, workflow_name:)
  @domain = domain
  @id = id
  @task_token = task_token
  @attempt = attempt
  @workflow_run_id = workflow_run_id
  @workflow_id = workflow_id
  @workflow_name = workflow_name

  freeze
end

Instance Attribute Details

#attemptObject (readonly)

Returns the value of attribute attempt.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def attempt
  @attempt
end

#domainObject (readonly)

Returns the value of attribute domain.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def domain
  @domain
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def id
  @id
end

#task_tokenObject (readonly)

Returns the value of attribute task_token.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def task_token
  @task_token
end

#timeoutsObject (readonly)

Returns the value of attribute timeouts.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def timeouts
  @timeouts
end

#workflow_idObject (readonly)

Returns the value of attribute workflow_id.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def workflow_id
  @workflow_id
end

#workflow_nameObject (readonly)

Returns the value of attribute workflow_name.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def workflow_name
  @workflow_name
end

#workflow_run_idObject (readonly)

Returns the value of attribute workflow_run_id.



6
7
8
# File 'lib/cadence/metadata/decision.rb', line 6

def workflow_run_id
  @workflow_run_id
end

Instance Method Details

#decision?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/cadence/metadata/decision.rb', line 20

def decision?
  true
end