cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to delete a process definition?

iravanchi
Champ in-the-making
Champ in-the-making
Hi,

I couldn't find a way to remove a single process definition from the server. I'm not sure if I'm right.
Is there a way to do so, given a singe processDefinitionId?

When I didnt find that, I tried removing the whole deployment, where to my surprise there wasn't a way to get the deploymentId from ProcessDefinition.
I needed to cast it to ProcessDefinitionEntity to get the deploymentId.
I don't know if this is by-design, but since other IDs in the server are exposed already, I thought this can be called a bug.
I registered it here:
http://jira.codehaus.org/browse/ACT-239

-Hamed
1 REPLY 1

davidcognite
Star Contributor
Star Contributor
Hi,

Since Beta2, the REST API call for a processDefinition returns the deploymentId:
E.g.:
http://localhost:8080/activiti-rest/service/process-definition/financialReport:1
returns:

{
    id: "financialReport:1"
    key: "financialReport"
    version: 1
    name: "Monthly financial report"
    resourceName: "org/activiti/examples/bpmn/usertask/FinancialReportProcess.bpmn20.xml"
    deploymentId: "10"
    startFormResourceKey: null
}