10-29-2012 07:28 AM
I have a workflow which has been initiated. Is it possible to change the name of the person assigned in a particular task or node? What is the best way to do it?
10-29-2012 11:04 AM
Actually the best way is to modify the workflow definition and to use the "Compute additional assignees" field when defining the task assignees on the General task tab. This allows you to dynamically compute the task assignees from a MVEL expression when the workflow is run. For example, you could have a global workflow variable, "assignees" that can be set from a automation chain at any point during the workflow. In this case, the expression to use on the workflow definition for the additional assignees would be :"@{WorkflowVariables["assignees"]}". Of course, this solution doesn't work for a workflow already started.
10-29-2012 11:40 AM
Actually, we have already a global workflow variable called "collationneur-chef". We created an automation chain and associated it to a button. In this operation chain, we assigned a new value for the variable "collationneur-chef". However, the original value was not modified after the user clicked on the button "Change collationneur-chef".
10-29-2012 11:49 AM
Just to verify my comment, we have a global variable that is used in "Compute additional assignees". However, we could not change the value using the automation chain.
10-30-2012 06:49 AM
Are you using the SetWorkflowVariable operation ( available under the WorkflowContext category )?
02-18-2013 10:53 AM
Hello,
We have also this problem.
We need to change a task affectation during workflow running.
And got "org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Executing unexpected SUSPENDED state" when trying to reaffect to an other person.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.