create_xml {bpmnR}R Documentation

Create XML document from BPMN object.

Description

This creates an XML document based on a BPMN object.

Usage

create_xml(bpmn, ...)

## S3 method for class 'bpmn'
create_xml(bpmn, ...)

Arguments

bpmn

A BPMN object as a list of data.frames for the BPMN elements.

...

Additional arguments passed to methods.

Value

An XML document for the XML-based interchange format for the BPMN process.

Methods (by class)

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"))
model <- create_bpmn(nodes, flows, events)
create_xml(model)


[Package bpmnR version 0.1.1 Index]