Hi,
Are you customizing any out of the box workflow. You can make change in the workflowModel.xml . Instead of bpm:assignee , change it to groupAssignee. NOTE : This will affect workflows which are using below type.
<type name="wf:submitAdhocTask">
<parent>bpm:startTask</parent>
<properties>
<property name="wf:notifyMe">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
<mandatory-aspects>
<aspect>bpm:groupAssignee</aspect>
</mandatory-aspects>
</type>
Second step : you can now hard code group in the process definition , for e.g. Use the below code for that specific task.
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{candidategroups}</actor>
</assignment>
OR
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
executionContext.setVariable("bpm_groupAssignee",candidategroups);
</script>
</action>
I would suggest to see parallelreview_group_processdefinition.xml and review_pooled_processdefinition.xml for reference. The files are located in <install-app>|tomcat|webapps|alfresco|WEB-INF|classes|alfresco|workflow.
Thanks,