Using either a decision point or a conveyor station, how do I resume item on message trigger without process flow?
Using either a decision point or a conveyor station, how do I resume item on message trigger without process flow?
I might pass in the item to resume as the sending object. The question then is which object is receiving the message, and from where is it sent?
Here's an example using the DP arrival (to stop and send a delayed message) and DP messagetrigger to resume.
In your example the decision point is sending the message to itself. So
conveyor.itemData[fromObject].resume();
resolves correctly. But if another object is sending the message then it does not. I get:
time: 4.958494 exception: FlexScript exception: MODEL:/Pos1>variables/Custom/onMessage
In another thread the reply used some kind of label on the object to point to the flow item. But I can't figure out how to do that. Here's that thread:
https://answers.flexsim.com/questions/40783/code-to-resume-conveyor.html
Why aren't there more pick list options for on message triggers? It seems like it would be incredibly useful.
Here's an example where the top conveyor's DP sends a message to the lower DP (centerObjects reference).
The lower DP ignores it if it doesn't have an item - which I set as a label on arrival and clear on message.remoteDPmessageResume.fsm
12 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