Examples of endProcessInstance()


Examples of org.jbpm.api.ExecutionService.endProcessInstance()

      Execution exec = execService.findExecutionById(instanceId);
      if(null==exec)
        throw new IllegalArgumentException("No such execution with id "+ instanceId);

      ProcessInstanceRef.RESULT actualResult = result!=null ? result : ProcessInstanceRef.RESULT.COMPLETED;
      execService.endProcessInstance(instanceId, actualResult.toString());
    }
    finally
    {
      env.close();
    }
View Full Code Here

Examples of org.jbpm.api.ExecutionService.endProcessInstance()

public class AbortMigrationHandler implements MigrationHandler {

  public void migrateInstance(ProcessDefinition newProcessDefinition, ProcessInstance processInstance, MigrationDescriptor migrationDescriptor) {
    ExecutionService executionService = EnvironmentImpl.getFromCurrent(ExecutionService.class);
    if (executionService == null) return;
    executionService.endProcessInstance(processInstance.getId(), "aborted");
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.