tok_import: Convert BPMN 2.0 to tok

View source: R/tok.R

tok_importR Documentation

Convert BPMN 2.0 to tok

Description

Reads a BPMN 2.0 file (for example drawn in Camunda Modeler) and returns the model as tok text, as ⁠tok import⁠ does.

Usage

tok_import(file, keep_ids = TRUE)

Arguments

file

Path of a .bpmn file.

keep_ids

Keep the identifiers of the BPMN file; FALSE derives readable ones from the labels.

Value

A tok_model; warnings about elements tok does not keep are in its element warnings and are also signalled.

Examples

bpmn <- tempfile(fileext = ".bpmn")
tok_bpmn(system.file("examples", "wypozyczenie.tok", package = "tokr"), file = bpmn)
m <- tok_import(bpmn)
m
unlink(bpmn)

tokr documentation built on Nov. 26, 2026, 5:08 p.m.