6 Replies Latest reply on Jan 28, 2015 6:14 AM by Antonio Giambanco

    clarification about process execution

    Antonio Giambanco Novice

      Hi all,

      I have a question about the way process are executed . . .

      Making some tests I found out that:

      1. if I call a process ( start-->[HumanTask]-->[HumanTask]-->end ) through an external java client, bpm engine starts an instance, it goes to the first human task and it releases the client.
      2. if I call a process ( start-->[ScriptTask]-->[ScriptTask]-->end ) through an external java client, bpm engine starts an instance, it goes to the end and then it releases the client.

       

      I noticed behavior (2) because I was not handling correctly errors on the second ScriptTask so on a problem I received the exception on my client.

      Is it normal? I thought in any case my client was creating an instance of the process, having and instanceID and after that released at the start.