question

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar asked Jason Lightfoot commented

Priority Logic in Process Flow

Hi Flexsim community,
I have a use case where I need to do priority logic in process flow, I have two processes D1 and D2 running in parallel & finishing the process on a same time, I need give priority to D1 over D2 to pull token. I am looking for any answers here.

Thanks in advance for your time and interest.

Below I am attaching my example model.

Priority Logic in process flow.fsm

processs flowpriority
5 |100000

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

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jason Lightfoot commented

You can let each process pull data of a list by parameter required set to null. Then each process can work with the same data. When you actually take a step, which place an item in a process and you aren’t able to redirect it anymore, then you pull this value by requiring it from the list finally. BUT any process doing this first has the priority over this item. You can only delay, preempt or hold a token in a process of lower priority, until the other process reached a final milestone.

· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

You may want to consider the alternative of having your token pull D1 or D2 giving priority to D1 and with a timeout to pull D2.

1 Like 1 ·