question

Kari Payton avatar image
0 Likes"
Kari Payton asked Jeanette F commented

Set state on "simple task executor" using process flow.

Can I set the state of a simple task executor using process flow? See model "setstateTE" for example.

- Kari

FlexSim 21.2.4
setstate
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Kari Payton, was Andrew O's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Andrew O avatar image
0 Likes"
Andrew O answered

Hi @Kari Payton,

Task executers will set their own state as they perform tasks, leading to an overwriting of your Set State code. To get around this issue, I was able to put a breathe delay before the first custom code in your process flow to ensure the task executer would be in the 'utilize' state during the next delay.

breathedelay.png

breathedelay2.png


breathedelay.png (13.9 KiB)
breathedelay2.png (8.9 KiB)
5 |100000

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