How can I assign a trigger for an itemtype.
What I have to write in the circled box for example to generate a trigger for the item Type 3.
Thank you in advance
How can I assign a trigger for an itemtype.
What I have to write in the circled box for example to generate a trigger for the item Type 3.
Thank you in advance
Hello @Eric C2,
I can't see your image well. But you can add conditions for that: Open the code, and write if(....) else (...) , using a decide in ProcessFlow.
You can see something similar in the following image
I hope I have been helpfull .
Hi Jose Antonio,
Thank you for your answer, but I want to know if I can indicate in the box called object, when you are setting a trigger, the item label type to indicate a trigger just for this elements.
Normally in this box is writed Item, but I want to know which is the code to indicate a specific item depending on its label called Type with the value 3.
Thank you.
In Jose's answer, he added an "IF" statement that allows you to specify the item Types for which the code should run. In other words, the setloc function will only run on an item if that item's Type label is equal to 3. Any items with different item Type labels will be passed over by the IF statement.
I assume you have many items with a Type label of 3. If that's the case, ALL of the items with a Type label of 3 will be affected by the setloc function.
If you only have one specific item that you'd like to manipulate, you need to create a pointer that is unique to that item. Otherwise, the function will be applied to any item with a Type label of 3.
Hope this explanation makes sense. Jose's answer should be exactly what you need. If you'd like help implementing his solution, please attach a model and we'd be happy to help.
12 People are following this question.
how to get arrival rate for flow items that arrive an object or node within a time interval ?
Experimenter Triggers - Order of Execution
Why Global Table is cleared after each replication even when "clear on Reset" box is unchecked ?
What is the best way to make an OnResourceAvailable trigger fire only once?
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