cancel
Showing results for 
Search instead for 
Did you mean: 

ActivityExecution execution.end() finish the process?

rodolfobarbeiro
Champ in-the-making
Champ in-the-making
Hi,

I have a task of type Java Service and depending on the outcome of the operation performed by it, I have to terminate the process.

The following command shutdown the process?


My Java Task:


public class JavaService implements org.activiti.engine.impl.pvm.delegate.ActivityBehavior {



   public void execute(ActivityExecution execution) throws Exception {

      …

      execution.end();

   }
}
2 REPLIES 2

trademak
Star Contributor
Star Contributor
No it doesn't shutdown the process instance.
It would be better to have two outgoing sequence flows and couple one to an end event.
Then in the Java service task you can choice between the two outgoing sequence flows.
Another way would be to use an exclusive gateway.

Best regards,

rodolfobarbeiro
Champ in-the-making
Champ in-the-making
Thank you for your response.

I'm using exclusive gateway…

Regards,
Rodolfo Barbeiro
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.