question

Matheus A5 avatar image
0 Likes"
Matheus A5 asked Matheus A5 commented

Using Message as a Parameter to Conditional Decide

Hello, I need help with a logic that I am trying to execute, When the model goes to "Create tokens", a child token is created to execute a delay time and then send a message, I would like that after this message, my Condic. Sub/Pul received a "true" command to proceed to the next step. And consequently, until the delay is not fulfilled, the function is looped as "false".

Model.Forum.fsm

FlexSim 22.0.0
processflowFloWorksconditional decidesend message
modelforum.fsm (185.6 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.

Yumi Nishijima avatar image
0 Likes"
Yumi Nishijima answered Matheus A5 commented

hi @Matheus A5, i was trying to help you too. So maybe you can create two assign label, the token need to stay with like "token.parent" and new label will sinalize when your delay finish by giving a value for the label.

· 2
5 |100000

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

Matheus A5 avatar image Matheus A5 commented ·
Hello, can you give me more details about how to do that?
0 Likes 0 ·
Matheus A5 avatar image Matheus A5 commented ·

Thanks! your suggestion worked.

0 Likes 0 ·
Ryan Clark avatar image
0 Likes"
Ryan Clark answered Matheus A5 commented

Hi @Matheus A5,

After the Create Tokens activity creates child tokens to execute the delay time, I would recommend using a Variable shared asset to check if the delay has been executed instead of using the "Send Message" function. See Variable (flexsim.com) for more information.

I hope this helps! Let us know if you have further questions!

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

Matheus A5 avatar image Matheus A5 commented ·

maybe you can give me details about how it's going to work? I still don´t get it how variables truely works. Until a Flowchart will help me in this case

0 Likes 0 ·