Search in sources :

Example 16 with RepositoryService

use of org.activiti.engine.RepositoryService in project bamboobsc by billchen198318.

the class TestBPMN001 method deleteProcess.

@Test
public void deleteProcess() throws Exception {
    String deploymentId = "10001";
    RepositoryService repositoryService = (RepositoryService) AppContext.getBean("repositoryService");
    repositoryService.deleteDeployment(deploymentId);
//repositoryService.deleteDeployment(processId, true); no need it
}
Also used : RepositoryService(org.activiti.engine.RepositoryService) Test(org.junit.Test)

Aggregations

RepositoryService (org.activiti.engine.RepositoryService)16 Test (org.junit.Test)8 ProcessEngine (org.activiti.engine.ProcessEngine)7 ProcessDefinition (org.activiti.engine.repository.ProcessDefinition)5 RuntimeService (org.activiti.engine.RuntimeService)4 IOException (java.io.IOException)3 InputStream (java.io.InputStream)3 WorkflowDefinitionConversion (org.activiti.workflow.simple.converter.WorkflowDefinitionConversion)3 WorkflowDefinition (org.activiti.workflow.simple.definition.WorkflowDefinition)3 FileInputStream (java.io.FileInputStream)2 URL (java.net.URL)2 ProcessEngineConfiguration (org.activiti.engine.ProcessEngineConfiguration)2 TaskService (org.activiti.engine.TaskService)2 StandaloneProcessEngineConfiguration (org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration)2 Deployment (org.activiti.engine.repository.Deployment)2 ProcessInstance (org.activiti.engine.runtime.ProcessInstance)2 Task (org.activiti.engine.task.Task)2 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1