Learn R Programming

bpmnR (version 0.1.1)

create_xml: Create XML document from BPMN object.

Description

This creates an XML document based on a BPMN object.

Usage

create_xml(bpmn, ...)

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

Value

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

Arguments

bpmn

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

...

Additional arguments passed to methods.

Methods (by class)

  • create_xml(bpmn): Create xml

Author

Alessio Nigro

Examples

Run this code

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)

Run the code above in your browser using DataLab