Class: Statecraft::Pipeline::Frame

Inherits:
Struct
  • Object
show all
Defined in:
lib/statecraft/pipeline.rb

Overview

One frame per pipeline currently running in this execution context. The key identifies the record across instances — (base_class name, id, machine) — so re-entering the same record's pipeline between its start and the completion of CAS (guards, before_transition) is caught even through a freshly loaded instance. cas_done flips right after the CAS statement: chains launched from after_transition are legal by construction.

Instance Attribute Summary collapse

Instance Attribute Details

#cas_doneObject

Returns the value of attribute cas_done

Returns:

  • (Object)

    the current value of cas_done



26
27
28
# File 'lib/statecraft/pipeline.rb', line 26

def cas_done
  @cas_done
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



26
27
28
# File 'lib/statecraft/pipeline.rb', line 26

def key
  @key
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



26
27
28
# File 'lib/statecraft/pipeline.rb', line 26

def label
  @label
end