State transitioning via code doesn't update Cockpit's view token

As a new Camunda user, I’m trying to get to the bottom of issues I described in detail here.

Could someone please give me a hand?

TIA.
Simeon