question

Idoia A avatar image
0 Likes"
Idoia A asked tannerp commented

Stop Task Sequence

Hello,

I would like to know if there is any possibility to stop a task sequence in Process Flow, for example, using a Custom Code.

Thank you in advance,

Idoia

FlexSim 19.0.2
process flow task sequence
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

tannerp avatar image
0 Likes"
tannerp answered tannerp commented

I'm not sure if this is what you're looking for, but you can use Stop Object in a Custom Code PF activity to stop an object mid-task sequence. Let me know if this helps. If not, maybe you could provide more details about what you'd like to do in order to get a more detailed answer.

Example model: stop-object.fsm


stop-object.png (21.3 KiB)
stop-object.fsm (22.7 KiB)
· 3
5 |100000

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

Idoia A avatar image Idoia A commented ·

Thanks for your answer. Unfortunately, I have already explored that option and it doesn't work for me. I have two task sequences for the same transporter. Once an activity is fired, I would like to stop one task sequence and start doing the other one. I attach a model, hoping you will get a better understanding of what I'm trying to do. In the model, I have tried to stop one of the task sequences by referencing it in the Custom Code, which is not working. Maybe there is a different way of doing this. stopts.fsm

0 Likes 0 ·
stopts.fsm (37.0 KiB)
Joerg Vogel avatar image Joerg Vogel Idoia A commented ·

@Idoia A, You want to preempt an active tasksequence. The tasksequence, that interrupts the active tasksequence, is set to a different preempt Parameter than default.

Please look in the manual Tasksequences: Priorities and Preempt.

0 Likes 0 ·
Idoia A avatar image Idoia A Joerg Vogel commented ·

I will take a look at the manual, thanks for your quick response.

0 Likes 0 ·