Module: BPMN

Includes:
ActiveSupport::Configurable
Defined in:
lib/bpmn.rb,
lib/bpmn/flow.rb,
lib/bpmn/step.rb,
lib/bpmn/task.rb,
lib/bpmn/event.rb,
lib/bpmn/context.rb,
lib/bpmn/element.rb,
lib/bpmn/gateway.rb,
lib/bpmn/process.rb,
lib/bpmn/version.rb,
lib/bpmn/execution.rb,
lib/bpmn/extensions.rb,
lib/bpmn/definitions.rb,
lib/bpmn/event_definition.rb,
lib/bpmn/extension_elements.rb

Defined Under Namespace

Classes: Activity, AdHocSubProcess, Association, BoundaryEvent, BusinessRuleTask, CallActivity, Collaboration, ConditionalEventDefinition, Context, Definitions, Element, EndEvent, Error, ErrorEventDefinition, EscalationEventDefinition, Event, EventBasedGateway, EventDefinition, ExclusiveGateway, Execution, ExecutionError, ExecutionPrinter, Extension, ExtensionElements, Flow, Gateway, InclusiveGateway, IntermediateCatchEvent, IntermediateThrowEvent, LaneSet, Message, MessageEventDefinition, ParallelGateway, Participant, Process, ScriptTask, SequenceFlow, ServiceTask, Signal, SignalEventDefinition, StartEvent, Step, SubProcess, Task, TerminateEventDefinition, TextAnnotation, TimerEventDefinition, UserTask

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.decisions_from_xml(xml) ⇒ Object

Extract decisions from a DMN XML file.



58
59
60
61
# File 'lib/bpmn.rb', line 58

def self.decisions_from_xml(xml)
  definitions = DMN.definitions_from_xml(xml)
  definitions.decisions
end

.new(sources = []) ⇒ Object

Entry point for starting a process execution.



37
38
39
# File 'lib/bpmn.rb', line 37

def self.new(sources = [])
  Context.new(sources)
end

.processes_from_xml(xml) ⇒ Object

Extract processes from a BMPN XML file.



51
52
53
# File 'lib/bpmn.rb', line 51

def self.processes_from_xml(xml)
  Definitions.from_xml(xml)&.processes || []
end

.restore(sources = [], execution_state:) ⇒ Object

Entry point for continuing a process execution.



44
45
46
# File 'lib/bpmn.rb', line 44

def self.restore(sources = [], execution_state:)
  Context.new(sources).restore(execution_state)
end