01-10-2017 10:15 AM
Hi,
How do we assign workflow to custom group .
I have created group TestGroup under that I have added users like Ravi,Nanda,Tushar and Admin.
So when I assigned to group workflow gets assigned in Alphbetical order.
1st it assigned to Admin and it gets approved it went to Nanda and so on.
I want to assign based on how group gets created.
I have used below script.
var workflow = actions.create("start-workflow");
var node=people.getGroup("GROUP_TestGroup ");
workflow.parameters.workflowName = "activiti$<YOUR_WORKFLOW>";
var node= workflow.parameters["bpm:groupAssignee
"]=node;
Please assist on this.
01-12-2017 01:59 AM
Hi Ravi
Please check if your following statement returns you node, reason I am asking is, I see space after Group_TestGroup.
var node=people.getGroup("GROUP_TestGroup ");
Please share if you are getting any specific error.
Explore our Alfresco products with the links below. Use labels to filter content by product module.