Even with job-execution turned off, when we call runtimeService from separate consumer bean, receive task’s end listener gets executed immediately.
This causes problems with assertions, which might get executed before end listener’s work is completed.
Is there any way to stop automatic execution after correlation message, to have it under control?
Thanks,
Martin
Hi Martin,
I’m afraid that is not possible. The way to control execution are asynchronous continuations, however in this particular they do not help since you cannot declare an async continuation between correlation and end listener invocation. I recommend to look into ways to test this differently.
Cheers,
Thorben
Hello,
thank you, seems like we will have to write the test as you suggest and have this executed synchronously
Regards,
Martin