question

christian.n avatar image
1 Like"
christian.n asked Jordan Johnson answered

If tokens are created directly in a batching process, the resulting batched tokens are not selectable.

In the attached model, there are two flows. Each flow creates a token with a Quantity label. Based on this quantity, the token creates a number of new tokens for a batching process.

In the left flow on the left side, there is a 0-delay (Breathe) process before the Batching Process. In the right side flow, the tokens are created directly into the batching process.

Both versions work, but for some reason, the resulting tokens from the right hand batching process are not selectable. Is this caused by the creation of tokens directly into the batching process? Can this be fixed at some point, or is it just good practice to have a breathe process there?

Best regards

Christian, FlexSim Nordic

Choose One
processflowbatching
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

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

It looks like there is a bug with hit testing, but I don't think it has to do with the Breathe. I think it has to do with the Batch being at the top of the block.

On the right, I separated the Breathe from the bottom stacked block. Then I connected it to the block using a connector. This put the Batch activity at the top of the block. In this state, I could not select the batched tokens.

On the left, I separated the Batch from the bottom block. Then I connected to the bottom block using a connector. The bottom block then had a delay as the top activity, and I could select the batched tokens.

In conclusion, this is a draw bug, which (thanks to you) is now on the dev list. To work around the bug, make sure the batch is not the top activity of a stacked block.

5 |100000

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