What is the syntax to access the content (number of tokens) of a process flow zone? I do not need partitions or subset level detail. Just the number of tokens in the zone to make specific decisions.
I wasn't able to get what @Sam Stubbs suggested to work. Attached is a sample model using a Process Flow variable called "InZone". In the PF, I reference the same variable two different ways in the "Decide" blocks. I'm sure there is a better way, so please make suggestions of maybe how to do this more easily.
Thanks,
I believe you can use the "getstat" command, followed by the "getactivity" command to get a reference to the Zone inside your process flow. It's a little long but it should be something like this:
getstat(getactivity(processFlow, "Zone"), "Content", STAT_CURRENT, current)
Obviously "Zone" will be whatever the name of your Zone is.
What Sam Said but I'd grab it in a Label like this:
Assign Label activity > Get Activity Stat and reference your Zone with the Sampler. Your token will then have a label on it that shows the Zone content at the time your token did this activity.
8 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved