AnsweredAssumed Answered

Workflow custom props update

Question asked by vincent-kali on Aug 2, 2018
Latest reply on Sep 26, 2018 by vincent-kali

Hi all,

I'm setting custom properties (defined on startTask model) when starting workflows.

I want to update some of these properties after the workflow starts.

When trying to update startTask properties:

 

this.services.getWorkflowService().updateTask(startTask.getId(), customProps, null, null);

 

It fails with exception: "Unable to update task because it does not exists"

 

Caused by: org.alfresco.service.cmr.workflow.WorkflowException: 07020004 Impossible de mettre à jour la tâche de workflow activiti$start424424 car cette tâche n'existe pas. at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.updateTask(ActivitiWorkflowEngine.java:2365) at org.alfresco.repo.workflow.WorkflowServiceImpl.updateTask(WorkflowServiceImpl.java:981)

 

 

Any idea ?

Thanks,

Vincent

Outcomes