Last I found how to do this.
In fact the ProcessIntance.end() method really terminate the process but not
all the running process tasks in it (this has confused me).
The process tasks have to be terminated separately.
At last, I have made all my ActionHandlers extends a custom base one :
public
Is it possible to programatically terminate a process instance ?
I tried the ProcessIntance.end() method but it doesn't work.
After this method was called the token continue to the next task node and
the process status in not equal to "terminated".
The method ProcessInstance.hasEnded() return fals