Closed akthammomani closed 2 years ago
Dear akthammomani,
The results of token-based replay do not include the case identifier. But, since the positions in the log and in the results of token-based replay are equivalent, it is possible to access the case ID in the log and the corresponding replay result like in the following example:
import pm4py
log = pm4py.read_xes("tests/input_data/running-example.xes") net, im, fm = pm4py.read_pnml("tests/input_data/running-example.pnml") tbr_results = pm4py.conformance_diagnostics_token_based_replay(log, net, im, fm) for i in range(len(log)): print("\ntrace", i, "with case ID",log[i].attributes["concept:name"]) print("result of the replay:", tbr_results[i])
Thanks @fit-alessandro-berti
Hi Everyone, I'm trying to add the case_id to be part of the replayed_traces output. so when using below case:concept:name, I still don't see the case_id from the output:
Please any help is appreciated.
Thank you