AnsweredAssumed Answered

swimlane assignee on advanced workflow

Question asked by siti20 on Nov 10, 2010
Latest reply on Nov 29, 2010 by matjazmuhic
Dear all,

Introduce I'm a new developer on alfresco…
Currently i'm in a project which has many things to do related to advanced workflow…

First of all, I'm sorry if this topic has been discussed before..

I need to create an advance workflow with 5 swimlane include 1 initiator…
As far I know, I just use bpm:assignee on workflow model

 <mandatory-aspects>
          <aspect>bpm:assignee</aspect>
</mandatory-aspects>

on each task need to assign a user

and in workflow process definition:

   <swimlane name="initiator"></swimlane>

   <swimlane name="assignee">
       <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{bpm_assignee}</actor>
       </assignment>
   </swimlane>

   <swimlane name="assignee2">
       <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{bpm_assignee}</actor>
       </assignment>
   </swimlane>
   
   <swimlane name="assignee3">
       <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{bpm_assignee}</actor>
       </assignment>
   </swimlane>
   
   <swimlane name="assignee4">
       <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{bpm_assignee}</actor>
       </assignment>
   </swimlane>

But, the minus is, I have default assignee on each workflow task… the default is same as the first assignee which has delegated by initiator..
the question is:
can i use another class besides bpm:assignee
how to make it work..
I've create a simple experiment, I just change bpm:assignee on workflow model with another terms which is qb1:assignee
But it generated error:

Mandatory aspect qb2:assignee of class qb2:askForNextApproval3 is not found

Please help me soon.
thank you  :)

Outcomes