cancel
Showing results for 
Search instead for 
Did you mean: 

Custom group assignment

mrk_rams
Champ on-the-rise
Champ on-the-rise

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.

1 REPLY 1

jayesh_prajapat
Star Contributor
Star Contributor

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.