I have encountered a quite strange issue around the Save Context activity when preempting tokens. I cannot share the model due to confidentiality reasons but basically the problem is that it looks like the Save Context activity is not saving the token's context at the time it is triggered but the context corresponding to the next activity the preempted token would enter instead. (I can tell by the changes in the labels when the token is stored).
At the moment of releasing the token, it is sitting in a Wait for Event activity actually far from progressing down its path so it is not due to it leaving Wait for Event right before it is released.
I figured out a temporary fix by adding a breath (Delay activity with a minimal time) so the Save Context would save the token's unaltered information in that Delay activity, but I'd like to know what is the real issue there.
Has anybody come across anything like this?
Thank you.