Module: BPMN
- 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/configuration.rb,
lib/bpmn/event_definition.rb,
lib/bpmn/extension_elements.rb
Defined Under Namespace
Classes: Activity, AdHocSubProcess, Association, BoundaryEvent, BusinessRuleTask, CallActivity, Collaboration, ConditionalEventDefinition, Configuration, Context, Definitions, Element, EndEvent, Error, ErrorEventDefinition, Escalation, 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.4.1"
Class Method Summary collapse
- .config ⇒ Object
- .configure {|config| ... } ⇒ Object
-
.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
.config ⇒ Object
32 33 34 |
# File 'lib/bpmn.rb', line 32 def self.config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
36 37 38 |
# File 'lib/bpmn.rb', line 36 def self.configure yield(config) end |
.decisions_from_xml(xml) ⇒ Object
Extract decisions from a DMN XML file.
64 65 66 67 |
# File 'lib/bpmn.rb', line 64 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.
43 44 45 |
# File 'lib/bpmn.rb', line 43 def self.new(sources = []) Context.new(sources) end |
.processes_from_xml(xml) ⇒ Object
Extract processes from a BMPN XML file.
57 58 59 |
# File 'lib/bpmn.rb', line 57 def self.processes_from_xml(xml) Definitions.from_xml(xml)&.processes || [] end |