question

Erick C2 avatar image
0 Likes"
Erick C2 asked Matthew Gillespie answered

how can I deactivate a process flow?

Hello, someone knows how I can deactivate a process flow, I would like to have 2 versions of process flows within the same model. Thanks,

FlexSim 19.1.0
process flow
5 |100000

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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

There is not currently a way to "deactivate" a process flow. The only thing you can do is stop tokens moving from the Token Creation activities (Sources, Create Tokens, etc.) into the other activities in the flow. Here are some ways you could do that:

  1. Manually disconnect Token Creation activities in your flow. This way the source activities still create tokens, but the tokens never leave the activity and thus never do anything.
  2. Put a decide activity right after the source activities that can route tokens to a sink under certain conditions. Here is an example model that lets you effectively turn off one or both of the process flows by setting values in a table. deactivateprocessflows.fsm
  3. Change the Token Creation activities to not create any tokens. For example, if you have a Scheduled Source activity change the Quantity field to be a 0 for all arrivals. You could do this in code or have the Quantity field read from some other value in the model.

5 |100000

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

Joerg Vogel avatar image
2 Likes"
Joerg Vogel answered

A process flow is a logic structure. If you have a condition of your structure to be inactive then you prevent the creation of tokens in this structure.

5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

I didn’t test this, but you can create another process flow that creates tokens whenever a group of activities creates by itself tokens in your several processes. Then you check if the process flow is in active state. If it isn’t you destroy the token of group activities.
But as I said, I didn’t test this. It is a crude approach.

5 |100000

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