| tok_xes | R Documentation |
Writes the event log of tok_sim() as an XES document (IEEE 1849-2016, eXtensible
Event Stream), the exchange format of process-mining tools such as ProM, pm4py,
bupaR, Disco and Celonis; it is the file of tok sim --xes.
tok_xes(
x,
file = NULL,
cases = NULL,
seed = NULL,
lang = getOption("tok.lang", "en")
)
x |
A result of |
file |
Optional path to write to. |
cases, seed |
As in |
lang |
Language of the messages, |
The log has one trace per case and up to three events per activity instance, with the
transitions of the standard lifecycle model: schedule when the case reached the
activity, start when a performer started the work and complete when it completed;
an instance interrupted by a boundary timer ends with ati_abort when it was running
and with withdraw when it was still waiting for a performer. Events carry
concept:name (the label of the activity), concept:instance, org:resource,
time:timestamp (with milliseconds and the UTC offset of start= of simulate) and
activity (the identifier). Traces carry the case number, start, end,
end_event, cycle_time_s and the case variables as typed attributes. See
docs/simulation.md in the repository for the details.
The XES text; invisibly when written to file.
f <- system.file("examples", "kwerenda-symulacja.tok", package = "tokr")
s <- tok_sim(f, cases = 20)
xes <- tempfile(fileext = ".xes")
tok_xes(s, xes)
substr(tok_xes(f, cases = 2, seed = 7), 1, 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.