question

martin.j avatar image
1 Like"
martin.j asked Jordan Johnson answered

List - OnPartitionContentChange Event

I have noticed that the list activity has an OnPartitionContentChange event, which sounds like just the thing to use in a statistic over content for each partition in the list. But I cant seem to get it to work. No matter what, it wont trigger. Am I doing something wrong or is this event not implemented yet?

As many before I am trying to create a dashboard chart with list content by partition, which always seems to have been a bit of a challenge in FlexSim. In my model I have multiple push and pull activities spread throughout the model which makes using a zone og tracked variables a bit cumbersome. It would be much smarter if the list had its own statistics on it for tracking partition content or even an event that could be used to control external stats in tracked variables.

FlexSim 20.1.2
listflexsim 20.1.2partitionseventsonpartitioncontentchange
1589149671617.png (16.4 KiB)
· 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.

tannerp avatar image tannerp commented ·

@martin.jensen,

I was able to get the event to create tokens, but only when I did not specify a Partition ID. When I did specify a Partition ID, no tokens were created. Then, when I deleted the Partition ID, the event seemed to remain broken. This may be something that the developers need to look at. @phil.bobo @Jordan Johnson @Matthew Gillespie

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

If the goal is to make a chart, you should listen to the OnPush event and the OnValuePulled event on the list. Those events both indicate which partition was involved, and how many things were pushed and pulled from the list. The problem with listening to a specific partition even is that you have to know all the partitions in advance. If you listen to OnPush and OnValuePulled, you don't have to worry about that.

It looks like there is a bug with listening to List events used by the List Shared Asset in process flow. I couldn't get that to work either. I will add that to the dev list. I did get it to work but only if:

  • The list in process flow refers to a list in the toolbox
  • You listen to the list in the toolbox
  • The Tools/GlobalLists node is higher in the tree than the Tools/ProcessFlow node


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.