tok_export: Export every file of a model

View source: R/tok.R

tok_exportR Documentation

Export every file of a model

Description

Writes what ⁠tok export⁠ writes: NAME.bpmn, NAME.svg, one .dmn file per decision table and one .form file per form, ready to deploy to Camunda 8.

Usage

tok_export(x, dir = ".", name = NULL, lang = getOption("tok.lang", "en"))

Arguments

x

A model: a tok_model, the path of a .tok file, or the text of a model.

dir

Output directory, created when missing.

name

Base name of the BPMN and SVG files; by default the name of the .tok file.

lang

Language of the messages, "en" or "pl". The default comes from the option tok.lang.

Value

The paths of the written files, invisibly.

Examples

out <- file.path(tempdir(), "tok-export")
files <- tok_export(system.file("examples", "propozycja-zakupu.tok", package = "tokr"),
                    dir = out)
basename(files)
unlink(out, recursive = TRUE)

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