Custom group assignment

cancel
Showing results for 
Search instead for 
Did you mean: 
mrk_rams
Active Member

Custom group assignment

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
jayesh_prajapat
Established Member

Re: Custom group assignment

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.