Check if BpmExecution is currently traversing / moving to the next Task

Environment
Java EE, camunda-engine:7.10.0

Problem
When moving items via UI to the next Task, sometimes items are still visible for some seconds in the “wrong” / “old” state. The current task is taken from the ACT_ID_ of the ACT_RU_EXECUTION table.

Solutions?
Is it possible to determine if an execution is currently trying to traverse to the next task? With such a solution it would be possible to mark the item on the UI, while it hasn’t finished moving. That way, users wouldn’t get confused.

Are you using the API or querying the tables directly?

Generally, I’m using the API but for some cases I already query the tables directly. A solution via API would be nice but one via the tables would also be acceptable.