prasad paluru
prasad paluru

Reputation: 101

Camunda task process delete

AM working on camunda bpm 7.3 with eclipse plugin camunda modeler 3.0.0 am clearing the all war files in webapps but still in processes it showing the processes how to remove the old task process from cockpit please help me

and my env is : os:ubuntu 14.0.4 eclipse:Luna tomacat:7.x camunda:7.3 camunda modeler:3.0.0

Upvotes: 0

Views: 5838

Answers (2)

B. Can BASCI
B. Can BASCI

Reputation: 61

Embedded;

if you know which taskId is active, you can get list of them; then delete with cascade true.

    taskService.deleteTask(task.getId, true)

or you can give your task DueDate and you can delete with cascade after get your active TaskList

    List<Task> taskList = taskService.createTaskQuery().dueBefore(new Date()).active().list();
    for (Task task : taskList) {
        taskService.deleteTask(task.getId, true);
    }

Upvotes: 0

Hawky4s
Hawky4s

Reputation: 806

See the reference[1] for the processes.xml file. Setting the property 'isDeleteUponUndeploy' to true will delete everything from that deployment when you undeploy the WAR. It that what you are looking for?

[1]: https://docs.camunda.org/manual/latest/reference/deployment-descriptors/tags/process-archive/#syntax-reference

Upvotes: 2

Related Questions