AnsweredAssumed Answered

Custom workflow upgrades

Question asked by muralidharand on Jun 13, 2017
Latest reply on Jun 13, 2017 by cjose

Initally we built a custom review & approval workflow with bpm_assignee as the mandatory field and deployed into production, everything is fine. Consider workflow version as v1.

 

After few months later, now we wanted to assign the workflow task to multiple users and I changed workflow model from bpm_assignee to bpm_assignees. To support this change, I updated the bpmn file, share_custom_config and our delegates also.  Consider workflow version as v2.

 

When I start and complete the workflow version v2 everything is working fine.

In the system there are some v1 workflows are running , when I try to complete the task, I'm getting the following error.

 

org.activiti.engine.ActivitiException: Exception while invoking TaskListener: 05130008 Mandatory task properties have not been provided! {http://www.alfresco.org/model/bpm/1.0}assignees

 

I understood the rootcause, the underlying workflow model expects bpm_assigness but task does not have bpm_assignees.

 

Please suggest me, how I can fix this issue or any other work arounds?

 

I'm using Alfresco 5.0.2 enterprise edition.

Outcomes