Flexscript on flowItems

Flexscript on flowItems

othmane_l
Not applicable
17 Views
1 Reply
Message 1 of 2

Flexscript on flowItems

othmane_l
Not applicable

[ FlexSim 19.0.2 ]

Hello,
I just want to know if we could write specific codes directly on flowItems to take actions (Exemple : go to precessor1 as long as the processor2 is broke)

0 Likes
Accepted solutions (1)
18 Views
1 Reply
Reply (1)
Message 2 of 2

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

No, not that’s not really how models work. Flow items don’t control the model logic. The logic is controlled mostly by Fixed Resource objects (processors, queues, etc) or Process Flow.

Fixed Resources decide where to send items when they’re done with one or they can be set up to pull items from upstream object. They also have triggers where you can put code and make decisions when for example an item enters or exits.

Process Flows can either directly control logic in the model or they can be set up to listen to certain model events and then execute some logic.

So you don’t really put logic on flow items, but you do often put labels on the flow items that Fixed Resources and Process Flows read off the items and then use that data in making decisions. For example, it’s very common to put a ”Type” label on flow items and then route the items based on their Type.



Matthew Gillespie
FlexSim Software Developer