simulate_log
Replay a discovered process model to generate a synthetic event log for analysis, testing, or comparison. Accepts Petri net or process tree models with configurable trace count.
Instructions
Simulate an event log by replaying a discovered model.
Accepts Petri net (tuple) or process tree handles. BPMN and POWL are NOT
supported by pm4py.play_out directly — convert them first via
convert_model(bpmn_id, target_kind="petri_net").
The returned log_id is a regular "log" kind, so the simulated log
composes with every Phase 1 tool. source_handle points at the source
model for lineage.
num_traces is capped at 10_000 to protect against runaway generation
on cyclic models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ||
| num_traces | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||