create_bpmn {bpmnR}R Documentation

Create BPMN object.

Description

This creates a BPMN object by specifying a set of tasks, sequence flows, gateways, and a start and end event.

Usage

create_bpmn(nodes, flows, events)

Arguments

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

Value

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.

Author(s)

Alessio Nigro

Examples


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)




[Package bpmnR version 0.1.1 Index]