Start Process screen in Tasklist takes too much time

Hi everyone,

I do have a process that consists of only Service Tasks. These tasks call Java classes that implement the JavaDelegate-Interface. Here is a very basic example of this process:

longRunning1

The problem I am having with these tasks is, that the execution time of these tasks can take a few seconds. If I start this process from the Tasklist with the “Start process” button, the following screen appears in the Tasklist. I can start the process and the process runs just fine. But this screen that says “Start process” is displayed just until my process is finished.

If the execution of my process takes five seconds, that means, that I am seeing this screen for five seconds. Only after that I can continue using the Tasklist.

Is there any method or way that this screen can be closed right after starting the process? I do not want to wait till the process is finished for the window to disappear.

Regards
Michael

Sure, the issue that because there are no transaction boundaries in your process it will run in one transaction on the thread that started it.

If you add a transaction boundary on the start event, it will commit as soon as it starts and the UI will disappear. to do this just tick the asynchronous after tick box on the start event. That will create a transaction boundary.

1 Like

@Niall

Oh ok. Thanks for your quick reply.
That was just what I was looking for.

Thanks :smiley:

1 Like