question

Kari Payton avatar image
0 Likes"
Kari Payton asked Matt Long answered

Wait for Event between Custom Fixed Resources Process Flow

I have two custom fixed resources. I want to wait to start the process on the second fixed resource until after a certain action in the first fixed resource is finished. I tried using "wait for event". I get the error that the trigger is invalid. Is there a way to do this?

FlexSim 16.1.1
wait for eventfixed resource process flow
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

Could you share your model with us so I can see it and understand why it might be giving the error? (If the model has sensitive information, you can post it via a private question so only support and developers can see it.)

0 Likes 0 ·
Kari Payton avatar image Kari Payton Sam Stubbs ♦ commented ·
@Sam Stubbs

I created a tracked variable to change state whenever the token exited the process, and then had the second processor read that variable to start. I was just wondering if this was possible to read other events between custom fixed resources.

0 Likes 0 ·

1 Answer

Matt Long avatar image
1 Like"
Matt Long answered

Since the Fixed Resource and Task Executer (as well as the Sub Flow) Process Flows have any number of instances associated with the Process Flow object, you can't listen to events on those activities from outside of same Process Flow. Instead, you could listen to an event on a General Process Flow that is kicked off by one of the Fixed Resource Process Flows.

An easy way to do this would be to use a Run Sub Flow activity in the FR Process Flow that creates a token in the General Process Flow. You can then wait for the On Entry or On Exit of the Start activity tied to the Run Sub Flow.

Another way to accomplish this would be to have List in your FR Process Flow that is tied to a Global List. You can then push a value to the list and use a Wait For Event to wait for that value to be pushed, or have a Pull From List that is trying to pull the value.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.