List - OnPartitionContentChange Event

List - OnPartitionContentChange Event

MBJEBZSRG
Advocate Advocate
47 Views
3 Replies
Message 1 of 4

List - OnPartitionContentChange Event

MBJEBZSRG
Advocate
Advocate

[ FlexSim 20.1.2 ]

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?

28263-1589149671617.pngAs 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.

Accepted solutions (1)
48 Views
3 Replies
Replies (3)
Message 2 of 4

tanner_p
Not applicable

@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
Message 3 of 4

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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


.


Jordan Johnson
Principal Software Engineer
>

Message 4 of 4

zbarachki
Enthusiast
Enthusiast

Hi @Jordan Johnson , I think this still seems to be a problem in FlexSim v24.1. Your provided list of steps fixed the issue.

0 Likes