Class: SolidFlow::Workflow::StepDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/solid_flow/workflow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



11
12
13
# File 'lib/solid_flow/workflow.rb', line 11

def block
  @block
end

#idempotency_keyObject

Returns the value of attribute idempotency_key

Returns:

  • (Object)

    the current value of idempotency_key



11
12
13
# File 'lib/solid_flow/workflow.rb', line 11

def idempotency_key
  @idempotency_key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



11
12
13
# File 'lib/solid_flow/workflow.rb', line 11

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



11
12
13
# File 'lib/solid_flow/workflow.rb', line 11

def options
  @options
end

#retry_policyObject

Returns the value of attribute retry_policy

Returns:

  • (Object)

    the current value of retry_policy



11
12
13
# File 'lib/solid_flow/workflow.rb', line 11

def retry_policy
  @retry_policy
end

#taskObject

Returns the value of attribute task

Returns:

  • (Object)

    the current value of task



11
12
13
# File 'lib/solid_flow/workflow.rb', line 11

def task
  @task
end

#timeoutsObject

Returns the value of attribute timeouts

Returns:

  • (Object)

    the current value of timeouts



11
12
13
# File 'lib/solid_flow/workflow.rb', line 11

def timeouts
  @timeouts
end

Instance Method Details

#block?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/solid_flow/workflow.rb', line 25

def block?
  !block.nil?
end

#dupObject



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/solid_flow/workflow.rb', line 29

def dup
  self.class.new(
    name:,
    task:,
    block:,
    retry_policy: retry_policy.deep_dup,
    timeouts: timeouts.deep_dup,
    idempotency_key:,
    options: options.deep_dup
  )
end

#task?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/solid_flow/workflow.rb', line 21

def task?
  task.present?
end