Examples of deleteProcessInstance()


Examples of org.jbpm.pvm.internal.session.DbSession.deleteProcessInstance()

      String processDefinitionId = processDefinition.getId();
      List<String> processInstanceIds = dbSession.findProcessInstanceIds(processDefinitionId);
     
      if (cascade) {
        for (String processInstanceId: processInstanceIds) {
          dbSession.deleteProcessInstance(processInstanceId, true);
        }

        dbSession.deleteProcessDefinitionHistory(processDefinitionId);
       
      } else {
View Full Code Here

Examples of org.jbpm.pvm.internal.session.DbSession.deleteProcessInstance()

    this.cascade = cascade;
  }

  public Void execute(Environment environment) throws Exception {
    DbSession dbSession = EnvironmentImpl.getFromCurrent(DbSession.class);
    dbSession.deleteProcessInstance(processInstanceId, cascade);
    return null;
  }

}
View Full Code Here

Examples of org.jbpm.pvm.internal.session.DbSession.deleteProcessInstance()

      if (superProcessExecution!=null) {
        log.trace(toString()+" signals super process execution");
        superProcessExecution.signal();

      } else if (dbSession!=null) {
        dbSession.deleteProcessInstance(id, false);
      }
    }
  }
 
  public void end(OpenExecution executionToEnd) {
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.