petri_net_nn.xes¶
xes ¶
IEEE XES (eXtensible Event Stream) log loader.
XES is the standard format for process execution logs and is mentioned
explicitly in §10 Step 3 of the architecture spec as the data source for
training. This scaffold implements a minimal reader covering the subset
sufficient to drive train_on_traces in petri_net_nn.traces:
- one
<log>containing zero or more<trace>elements - each
<trace>carrying zero or more<event>elements - typed attributes (
<string>,<int>,<float>,<boolean>,<date>) at the log, trace, or event level — all surfaced as string-valued entries in the correspondingattributesdict
Each event's name is the value of its concept:name attribute, which
is the XES convention for the activity (task) that fired. That string
is what matches against the transition labels produced by
parse_bpmn.
Out of scope: extensions, classifiers, globals, nested attributes (lists / containers). They parse without error but are ignored.
parse_xes ¶
Parse an IEEE XES log into a list of XESTrace objects.
The XES namespace is optional; both namespaced and non-namespaced documents parse identically.