Get uset tasks after messageeventreceived

We need to get user tasks after the “messageEventReceived” method call. In a jUnit test, we get the new task created after receiveTask. But when we do it in real, the query to get tasks does not get new task. It’s as if they’re still in receiveTask. It works if we mark the following task as asyncAfter=true. But we would like the behavior to be like “completeTask”, without having to touch the process. Is there any way to do it?