Module: SpotFlow
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/spot_flow.rb,
lib/spot_flow/bpmn.rb,
lib/spot_flow/context.rb,
lib/spot_flow/version.rb,
lib/spot_flow/bpmn/flow.rb,
lib/spot_flow/bpmn/step.rb,
lib/spot_flow/bpmn/task.rb,
lib/spot_flow/execution.rb,
lib/spot_flow/bpmn/event.rb,
lib/spot_flow/bpmn/element.rb,
lib/spot_flow/bpmn/gateway.rb,
lib/spot_flow/bpmn/process.rb,
lib/spot_flow/bpmn/extensions.rb,
lib/spot_flow/bpmn/definitions.rb,
lib/spot_flow/bpmn/event_definition.rb,
lib/spot_flow/bpmn/extension_elements.rb
Defined Under Namespace
Modules: Bpmn, Zeebe Classes: Context, Execution, ExecutionError, ExecutionPrinter
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
-
.decisions_from_xml(xml) ⇒ Object
Extract decisions from a DMN XML file.
-
.new(sources = []) ⇒ Object
Entry point for starting a process execution.
-
.processes_from_xml(xml) ⇒ Object
Extract processes from a BMPN XML file.
-
.restore(sources = [], execution_state:) ⇒ Object
Entry point for continuing a process execution.
Class Method Details
.decisions_from_xml(xml) ⇒ Object
Extract decisions from a DMN XML file.
45 46 47 48 |
# File 'lib/spot_flow.rb', line 45 def self.decisions_from_xml(xml) definitions = SpotFeel.definitions_from_xml(xml) definitions.decisions end |
.new(sources = []) ⇒ Object
Entry point for starting a process execution.
24 25 26 |
# File 'lib/spot_flow.rb', line 24 def self.new(sources = []) Context.new(sources) end |
.processes_from_xml(xml) ⇒ Object
Extract processes from a BMPN XML file.
38 39 40 |
# File 'lib/spot_flow.rb', line 38 def self.processes_from_xml(xml) Bpmn::Definitions.from_xml(xml)&.processes || [] end |