I am using the Process Flow Batch activity to pull in multiple tokens and produce 4 outgoing tokens representing pallets, each one with a different density. I have custom code to figure out what the density should be for each batch. Any excess quantity on the last token of a batch is carried over and it becomes the first token of the new batch:
The Batch Quantity for the first batch is calculated correctly, and the excess 200 units are carried forward to the second batch, but the second batch uses the same density as the first batch. I have breakpoints in the code, and they are never triggered, which means the Batch Quantity calculation is not being re-evaluated.
I could do the calculation earlier and put the density I want on a label of the incoming tokens, but if the quantity is not re-evaluated, then that will not work either.
Any suggestions?
The model is confidential, but I can send it to the Dev team if needed.
Thanks