Start form hangs until subsequent service task is done


#1

I have a generated start form which asks the user for some data. Immediately afterwards I have a service task which uses those data to make a backend call, running for maybe 10-20 sec.
I would expect that the start form closes before the service task starts executing, after all, the process has started and the first activity runs. However that is not the case, the start form stays open until the first task is done and blocks interactions.
What can I do to ensure that the start form closes once the service task begins?

Running on 7.10


#2

The default behavior is that start form would only disappear after the process reaches it’s next “Wait State” (e.g. User Task, Message Event, Timer etc.) so it would run the service task in the same thread that starts the process.

If you like you can create Wait States by ticking the “Asynchronous Before/After” tick box on a given element. If you tick Async After on the start event, it’ll return immediately.