question

XP Li avatar image
0 Likes"
XP Li asked XP Li commented

Statistics in sub process flow won't show on dashboard

Display Stats from Sub Process Flow.fsm

I started a barebone process flow in which I call a sub flow:


1655259881691.png

In the sub flow, it just has a delay.

1655259908499.png


While I tried to pin the stats of the delay to the dash,

1655259949056.png


but nothing shows up.

1655260005095.png


I did set the sub flow as a global instance. Any help is appreciated.


FlexSim 22.1.2
sub flowstats
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 XP Li commented

The statistics collector that is created internally when pinning a stat to a dashboard uses the 'enumerate()' method to create a row for all instances of the chosen activity/activities on model reset. However, in the case of the subflow, the instances are created 'on demand', so it doesn't have an instance when the model is reset and thus no row is created.

You could either install the components of the dashboard table to get access to the statistics collector and change the event to listen to a token actually entering the activity (at which point the subflow instance will exits). The time until the first token enters will be missing from the 'average' calculation though.

1655276980737.png

Alternatively, you could simply place the subflow into a general process flow and connect the run subflow activity with the sampling tool.

1655277076537.png

display-stats-from-sub-process-flow_1.fsm


· 1
5 |100000

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

XP Li avatar image XP Li commented ·
Thank you, Filex. I know the second method will work. // I noticed though through your sample code, one had to change the "columns" of the stat collectors.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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