/**
* delete
* Only process deployment can be deleted directly
* without providing an API to delete process definitions
*/
@Test
public void testDeleteDeployment(){
processEngine.getRepositoryService ()
.deleteDeploymentCascade("10001");
}
want to delete the process definition
/**
* Get all process definitions according to the key, then traverse each process definition, get the process deployment, and delete them in turn
*/
2. * Query tasks according to taskid taskService.getTask(String taskId); different from other queries
3. After completing the task setting parameters, the following method can be compiled, but an error is reported when running
org.jbpm.api.JbpmException: No unnamed transitions were found for the task '申请请假'
@Test
public void testWhenFinishTash(){
Map<String, String> variables = new HashMap<String, String>();
variables.put("leave days", "2 days");
variables.put("Reason for leave", "Look at 1942");
processEngine.getTaskService()
.completeTask("70002", variables);
}
4. API of jbpm: Anyone can perform the task, not limited to candidates