How do I control the movement of flowitems along network nodes from queue1 to queue2 using ProcessFlow? I want the model logic to remain in ProcessFlow as much as possible; using the 3D view just for the graphics and animation.
Things I have tried -
- Create Object in process flow to drop the flowitems into queue1.
- Selecting Use Transport, Customized Logic, ProcessFlow: Use Task Sequence Subflow in the Output parameters of queue1.
- Including a Travel activity in the Subflow so that the network nodes are used.
- Including a Zone restriction in the subflow, set to one token, so that the transporter just picks up one flowitem and doesn't get interrupted.
With the above, its mostly working, but I have no control over when the flowitem leaves. The queue1 wants to pass the flowitem out as soon as it arrives.
So I tried this -
- Setting Do Not Release Item in the Output parameters of queue1.
- Sending a message from ProcessFlow to queue1 at the desired time. Including a reference to the flowitem I want in the message parameters.
- The OnMessage Trigger in queue1 uses releaseitem to release only the requested flowitem.
This still doesn't work. It runs without error but the flowitems refuse to leave queue1.
Where am I going wrong? Is there a better or easier way to control the movement of flowitems in 3D using ProcessFlow?