question

Nelson C avatar image
0 Likes"
Nelson C asked Nelson C commented

Conditional Preemption

conditional-preemption.fsm

In the attached model, there is a simple process flow where I have a core process (Source – Enter zone – Delay1 – Delay2 – Exit zone – Sink) and a preemption process. The model is working, but I would like to use a conditional preemption based on how long a token has spent within the core process. Therefore, I would only get those tokens that spent more than 1000 seconds within the core process. In addition, if I restore the token to the core process and it passes more than 1000 seconds again, I should have to able to get it again in preemption activity.

Any idea how to implement that?

FlexSim 19.1.1
preemptionconditionalprocess flow preemption
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

Regan Blackett avatar image
0 Likes"
Regan Blackett answered Nelson C commented

Assign a Label to your tokens that captures the time they entered the Zone:

then you can use this condition on the preempt process assign labels activity:

conditinal-tokens.fsm


· 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.

Nelson C avatar image Nelson C commented ·

Hi @Regan Blackett

Your solution was exaclty what I was looking for, the model now is doing what I needed.

Thanks!

0 Likes 0 ·