As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<type name="swf:taskname"> … <mandatory-aspects> <aspect>bpm:assignee</aspect> <aspect>bpm:groupAssignee</aspect> </mandatory-aspects> … </type>
<swimlane name="person"> <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment"> <actor>#{bpm_assignee}</actor> </assignment> </swimlane> <swimlane name="group" > <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment"> <pooledactors>#{bpm_groupAssignee}</pooledactors> </assignment> </swimlane>
<alfresco-config> … <config evaluator="node-type" condition="swf:taskname" replace="true"> <property-sheet> <show-association name="bpm:groupAssignee" /> <show-association name="bpm:assignee" /> </property-sheet> </config> … </alfresco-config>
projects\repository\source\java\org\alfresco\repos\workflow\jbpm\AlfrescoAssignment.java
projects\repository\config\alfresco\model\bmpModel.xml
projects\repository\config\alfresco\workflow\ntis_workflowModel.xml
projects\repository\source\java\org\alfresco\repos\jscript\People.java
Hey vinaxwater,To assign both a group and a person you have to edit three files: your workflowmodel.xml, your processdefinition.xml and web-client-config-custom.xml. Firstly, you have add the aspects to your model.your workflowmodel.xml <type name="swf:taskname"> … <mandatory-aspects> <aspect>bpm:assignee</aspect> <aspect>bpm:groupAssignee</aspect> </mandatory-aspects> … </type> Secondly, you have to setup your processdefinition.xml to use the bpm_assignee (one person) and bpm_groupAssignee (one group). Sidenote: There are also other assignments.your processdefinition.xml <swimlane name="person"> <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment"> <actor>#{bpm_assignee}</actor> </assignment> </swimlane> <swimlane name="group" > <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment"> <pooledactors>#{bpm_groupAssignee}</pooledactors> </assignment> </swimlane> Finally, you have to expose the elements in the Alfresco Web UI.web-client-config-custom.xml <alfresco-config> … <config evaluator="node-type" condition="swf:taskname" replace="true"> <property-sheet> <show-association name="bpm:groupAssignee" /> <show-association name="bpm:assignee" /> </property-sheet> </config> … </alfresco-config> -Justin