question

Kari Payton avatar image
0 Likes"
Kari Payton asked Jordan Johnson answered

Statistics collector for task executors created in process flow.

I want to make a state pie for TE's that are pushed and pulled from lists. The TE's are created at the start of the model with a create object in process flow. I don't know how to setup the statistics collector to listen for the event. Any help is appreciated.

FlexSim 18.1.2
statistics 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

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

In your case, you can use start with the State Pie template, and work from there.

In 18.1, you can drag out the State Pie template. You might consider dragging out a dummy Operator, and adding it to the chart. That will make it easy to configure the Utilization value. You can then install that template. If you used a dummy operator, you can delete that operator now.

Once you have installed the template, you can make these changes to the Statistics Collector:

  • Listen to the OnExit of the Create Object activity
  • On that event, add a label with the value data.token.Person (where Person is the Assign To label in the Create Object activity)
  • Change the Row Mode to Unique Row Values. Your label should automatically be used
  • Change the data format of the Object column to raw

That will create the chart you need.

createobjectpie2018update1.fsm

In 18.2, the State Pie was overhauled (behind the scenes). If you are using 18.2, you will still install the template, but you will edit the Process Flow rather that the Statistics Collector. As before, you can use a dummy operator to set utilization options. Once you install the template, you can delete the operator.

Once you have installed the template, you can make these changes to the Process Flow:

  • Delete the Scheduled Source
  • Add an Event Triggered Source, listening to the OnExit of the Create Object activity
  • Be sure to assign the token to a label
  • Add an Assign Labels beneath the Event Triggered Source
  • Add an Object label: token.Token.Person
  • Add a Profile label: 0 (assuming you want the default state profile)
  • Add a Rank label: 0 (the rank label is used to sort the rows of the table; 0 works in your case)
  • Connect the ETS/Assign activities where the Scheduled Source was

On the Statistics Collector, change the data format of the Object column to Raw.

createobjectpie2018update2.fsm

In either version of the software, starting with the template will save a lot of work.


5 |100000

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

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.