06-11-2010 09:38 AM
06-11-2010 10:09 AM
when a custom advanced workflow is used, is it possible to have a preselected assignee in every task?Yes, you can define assignees with <swimlane> in workflow definitions.
I mean, instead of having to choose the user the task is assigned to in the task page, finding a predefined user (editable or not) in that page. If all workflow steps have to be taken always by the same users in the same sequencial order, it would be very suitable.You can define multiple swimlanes for that workflow, then assign a swimlane for each task-node you have.
As an alternative, could assignees be selected among a restricted list of users, i.e. the ones who take part into the workflow and not all Alfresco users? For example, from a drop-down list.Not sure how, but I'm pretty sure it can be done.
06-11-2010 10:21 AM
<swimlane name="assignee2">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{bpm_assignee2}</actor>
</assignment>
</swimlane>
<task-node name="Task name">
<task name="proced:anytask" swimlane="assignee2" />
<transition to="Next Node">
…
</transition>
</task>
06-11-2010 10:38 AM
<actor>#{people.getPerson(bpm_package.children[0].assocs["someco:DocumentOwner"][0].properties.userName)}</actor>
or pick it from some configuration node or similar.
06-14-2010 04:03 AM
<aspect name="bpm:assignee2">
<associations>
<association name="bpm:assignee2">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
<type name="proced:revisarDir">
<parent>proced:base</parent>
<overrides>
<property name="proced:nombre"></property>
…
</overrides>
<mandatory-aspects>
<aspect>bpm:assignee2</aspect>
</mandatory-aspects>
</type>
<config evaluator="node-type" condition="proced:revisarDir" replace="true">
<property-sheet>
<show-property name="proced:nombre" display-label="Nombre" read-only="true" show-in-edit-mode="true"/>
…
<separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator"/>
<show-association name="bpm:assignee2" display-label="Task assigned to:" />
</property-sheet>
</config>
06-18-2010 04:00 AM
As an alternative, could assignees be selected among a restricted list of users, i.e. the ones who take part into the workflow and not all Alfresco users? For example, from a drop-down list.
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.