cancel
Showing results for 
Search instead for 
Did you mean: 

swimlane assignee on advanced workflow

siti20
Champ in-the-making
Champ in-the-making
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  Smiley Happy
1 REPLY 1

matjazmuhic
Champ on-the-rise
Champ on-the-rise

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


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

   <swimlane name="assignee2">
       <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{bpm_assignees[1]}</actor>
       </assignment>
   </swimlane>

But in this case all of the assignees must be defined before starting workflow/task.