question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Patrick Zweekhorst commented

Wrong amount of tokens created in instanced processFlow

Hi,

Something small goes wrong if you have a ProcessFlow instance objects that has a source that makes use of a ProcessFlow variable. Attached is an example model for this bug. There is a source that should create NrTokens number of tokens, where NrTokens is a ProcessFlow variable. This variable has value 2, but only one token is created. The create token activity also creates only 1 token. Something important to note is that this NrTokens variable is defined per instance, if you define it globally it all seems to work fine. It even works if you have defined it globally and then switch back to per instance, only not when you create it as per instance.

Thank you for fixing this bug.

Patrick

ProcessFlowVariableSource.fsm

FlexSim 21.0.1
sourceflexsim 21.0.1instanced process flowprocessflow variable
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Patrick Zweekhorst commented

The two tokens were created when I ran it in 21.0.1.


1610447998680.png (5.1 KiB)
· 6
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Wait - did you upload another version where the quantity is set to 1 and not the processFlow Variable?

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Jason Lightfoot ♦♦ commented ·

@jason.lightfoot

I changed the post and accidently unloaded a wrong different file. I will update it.

ProcessFlowVariableSource.fsm


0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Patrick Zweekhorst commented ·

It still looks okay to me as in that model the variable is set to one for the BasicFR instance.

0 Likes 0 ·
Show more comments