Package org.camunda.bpm.engine

Examples of org.camunda.bpm.engine.RepositoryService.deleteDeployment()


    runtimeService2.startProcessInstanceById(processDefinitionId);
    Task task = taskService2.createTaskQuery().singleResult();
    assertEquals("original task", task.getName());
   
    // Delete the deployment on second process engine
    repositoryService2.deleteDeployment(deploymentId, true);
    assertEquals(0, repositoryService2.createDeploymentQuery().count());
    assertEquals(0, runtimeService2.createProcessInstanceQuery().count());
   
    // deploy a revised version of the process: start->revisedTask->end on first process engine
    //
View Full Code Here


    RepositoryService repositoryService = engine.getRepositoryService();
    List<Deployment> deployments = repositoryService
      .createDeploymentQuery()
      .list();
    for (Deployment deployment : deployments) {
      repositoryService.deleteDeployment(deployment.getId(), true);
    }
   
    // drop DB
    ((ProcessEngineImpl)engine).getProcessEngineConfiguration()
      .getCommandExecutorTxRequired()
View Full Code Here

    }
    assertTrue(containsProcessApplication);


    // manually delete process definition here (to clean up)
    repositoryService.deleteDeployment(deployment.getId(), true);
  }

}
View Full Code Here

    List<Deployment> deployments = repositoryService
      .createDeploymentQuery()
      .list();
    for (Deployment deployment : deployments) {
      LOGG.info("deleting deployment "+deployment.getId());
      repositoryService.deleteDeployment(deployment.getId(), true);
    }

    try {
      ((ProcessEngineImpl)processEngine).getProcessEngineConfiguration()
        .getCommandExecutorTxRequired()
View Full Code Here

    if (uriInfo.getQueryParameters().containsKey(CASCADE)
        && (uriInfo.getQueryParameters().get(CASCADE).size() > 0)
        && "true".equals(uriInfo.getQueryParameters().get(CASCADE).get(0))) {
      cascade = true;
    }
    repositoryService.deleteDeployment(deploymentId, cascade)
  }
}
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.