AnsweredAssumed Answered

Problem with category defined for user task

Question asked by prasanthnath.g@gmail.com on Sep 27, 2014
Here is how I defined an user task with category and deployed it.

<userTask id="audit1" name="Audit Phase 1" activiti:resultVariable="status" activiti:category="AUDIT TASK"/>


I am trying to make some modifications to the deployed BpmnModel and redeploy it. Now I tried to read the the BPM model using this call:

BpmnModel model = repositoryService.getBpmnModel(processDefinitionId);
String xml = new String(bpmnXMLConverter.convertToXML(bpmnModel));


On printing the xml, I see that the user task is modified as follows:

<userTask id="audit1" name="Audit Phase 1" activiti:category="AUDIT TASK" xmlns:activiti="http://activiti.org/bpmn" activiti:resultVariable="status" activiti:category="AUDIT TASK"></userTask>


Please note that the category is present twice in the user task XML. Because of this, the workflow can not be redeployed. Is there any workaround for this? Please suggest!

Outcomes