Examples of deleteDeployment()


Examples of com.founder.fix.fixflow.core.impl.persistence.definition.DeploymentPersistence.deleteDeployment()

  public void delete(String deleteStatement, Object parameter) {
    if (deleteStatement.equals("deleteDeployment")) {

      DeploymentPersistence deploymentPersistence = ProcessObjectFactory.FACTORYINSTANCE.createDeploymentPersistence(connection);
      deploymentPersistence.deleteDeployment(StringUtil.getString(parameter.toString()));
    }

    if (deleteStatement.equals("deleteEventSubscriptionEntity")) {
      EventSubscriptionPersistence eventSubscriptionPersistence = new EventSubscriptionPersistence(connection);
      try {
View Full Code Here

Examples of org.activiti.engine.RepositoryService.deleteDeployment()

                bpmConfBaseManager.remove(bpmConfBase);
            }
        }

        repositoryService.deleteDeployment(deploymentId, true);

        return "redirect:/bpm/console-listDeployments.do";
    }

    /**
 
View Full Code Here

Examples of org.activiti.engine.RepositoryService.deleteDeployment()

        RepositoryService repo = engine.getRepositoryService();

        if (this.deploymentIDs != null && this.deploymentIDs.length > 0) {
            for (String deploymentID : this.deploymentIDs) {
                repo.deleteDeployment(deploymentID, this.cascade);
                out().printf("Undeployed %s \n", deploymentID);
            }
            return null;
        }
View Full Code Here

Examples of org.activiti.engine.RepositoryService.deleteDeployment()

        } else {
            out().println("Undeploying all Activiti deployments...");
            List<Deployment> depList = repo.createDeploymentQuery().orderByDeploymenTime().asc().list();
            for (Deployment dep : depList) {
                String deploymentID = dep.getId();
                repo.deleteDeployment(deploymentID, this.cascade);
                out().printf("Undeployed %s \n", deploymentID);
            }
        }

        return null;
View Full Code Here

Examples of org.activiti.engine.RepositoryService.deleteDeployment()

    @Override
    public void afterTestClass(TestContext testContext) throws Exception {
        RepositoryService repositoryService = testContext.getApplicationContext().getBean(RepositoryService.class);
        for (Deployment deployment : repositoryService.createDeploymentQuery().list()) {
            repositoryService.deleteDeployment(deployment.getId(), true);
        }
    }

}
View Full Code Here

Examples of org.activiti.engine.RepositoryService.deleteDeployment()

    @After
    public void after() {
        RepositoryService repositoryService = this.processEngine.getRepositoryService();
        for (Deployment deployment : repositoryService.createDeploymentQuery().list()) {
            repositoryService.deleteDeployment(deployment.getId(), true);
        }
    }

    @Test
    public void testScopedProxyCreation() throws Throwable {
View Full Code Here

Examples of org.activiti.engine.RepositoryService.deleteDeployment()

    Object result = runtimeService.getVariable(processInstance.getProcessInstanceId(), "theVariable");
    Assert.assertEquals(30, result);
    runtimeService.deleteProcessInstance(processInstance.getId(), "test");
   
    processEngine.getHistoryService().deleteHistoricProcessInstance(processInstance.getId());
    repositoryService.deleteDeployment(deployment.getId());
    assertAndEnsureCleanDb(processEngine);
    ProcessEngines.destroy();
  }

  @Override
View Full Code Here

Examples of org.activiti.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

Examples of org.activiti.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

Examples of org.activiti.engine.RepositoryService.deleteDeployment()

        RepositoryService repo = engine.getRepositoryService();

        if (this.deploymentIDs != null && this.deploymentIDs.length > 0) {
            for (String deploymentID : this.deploymentIDs) {
                repo.deleteDeployment(deploymentID, this.cascade);
                out().printf("Undeployed %s \n", deploymentID);
            }
            return null;
        }
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.