question

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar asked Felix Möhlmann answered

entry & exit log of Process Flow using statistics collector

Hi Flexsim Users,
I have a use case where I need to get the log of entry and exit of each process of the process flow, I tried using an event triggered source to monitor the process, I am getting some error while doing so, can someone help me out in fixing this.

Thanks in advance for your time.

Below I am attaching my example model

processFlow_statisticsCollector.fsm

FlexSim 24.0.3
processs flowstatistic collector
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You get an error because the "item" label does not exist on the token from the Event-Triggered Source. That source isn't actually needed. You can just make the Statistics Collector listen to tokens exiting the "Assign Labels" activities that update the token labels.

There were also some format issues. The "ActivityName" column contains string data and if you want to store the datetime then write that to the token (Model.dateTime), not the model time.

processflow-statisticscollector_1.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.