create_bpmn {bpmnR} | R Documentation |
This creates a BPMN object by specifying a set of tasks, sequence flows, gateways, and a start and end event.
create_bpmn(nodes, flows, events)
nodes |
A data.frame of all nodes, with minimal columns id, name, objectType, gatewayDirection |
flows |
A data.frame of all flows, with minimal columns id, sourceRef, targetRef and objectType |
events |
A data.frame of all events, with minimal columns id, name, objectType |
A BPMN object as a list of data.frames for the BPMN elements and an XML document for the XML-based interchange format for the BPMN process.
Alessio Nigro
library(dplyr)
nodes <- tibble(id = "task", name = "Task name",
objectType = "task", gatewayDirection = NA)
events <- tibble(id = c("start","end"), name = c("Start event","End event"),
objectType = c("startEvent","endEvent"))
flows <- tibble(id = c("flow1","flow2"), name = c("flow1","flow2"),
sourceRef = c("start","task"), targetRef = c("task","end"),
objectType = c("sequenceFlow","sequenceFlow"))
create_bpmn(nodes, flows, events)