09-09-2008 10:58 PM
01-09-2009 05:13 AM
01-13-2009 11:09 AM
<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>
01-14-2009 03:41 AM
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
04-30-2009 08:59 AM
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
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.