1

I am using Alfresco community edition-5.1.x. I'm creating a custom workflow by using kickstart. But my start task does not have the assign part.

How can i do assignation to group or individual ?

Akah
  • 1,890
  • 20
  • 28
Paul
  • 141
  • 1
  • 11

1 Answers1

3

I will answer specifically to the individual part.

In your workflow-model.xml, you need to add in the part you want the assignee aspect. For example :

     <type name="namespace:myId">
        <parent>bpm:startTask</parent>
        .........
        <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
        </mandatory-aspects>
    </type>

Then, reference it in your share-config-custom.xml form part :

<form>
   <field-visibility>
      .....
      <show id="bpm:assignee" />
      .....
   </field-visibility>
 .........

Finally, in your workflow.bpmn you could assign the next task to the chosen assignee :

He is an example with the Eclipse Activiti tool :

Assignee configuration

Or just the same thing in the xml view :

<userTask id="alfrescoUsertask2" name="Validation Step" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="namespace:myId"></userTask>

For the "assign to a GROUP" part, it should be something similar with the bpm:groupAssignee model.

Akah
  • 1,890
  • 20
  • 28
  • I have added my bpmn20.xml file And i added my model file also bpm:assignee But its not help me i am getting workflow not started error – Paul Jun 21 '16 at 10:28
  • You are mixing group and user. If you want to select group (${bpm_groupAssignee.properties.authorityName}), use the bpm:groupAssignee aspect. – Akah Jun 21 '16 at 10:52
  • whatever your mentioned above i did it everything i am getting now : "org.activiti.engine.ActivitiException: Unknown property used in expression: ${bpm_groupAssignee.properties.authorityName}" please help me i am stuck – Paul Jun 21 '16 at 11:51
  • So you added in the model this part ? bpm:groupAssignee – Akah Jun 21 '16 at 11:52
  • already i have some i added at last like this – Paul Jun 21 '16 at 11:56
  • Ah you have put in your share***.xml instead of . Have you tried to start from something clean ? – Akah Jun 21 '16 at 11:57
  • Yes cleared everything still am getting same error workflow not start – Paul Jun 21 '16 at 12:10
  • Ok, the activiti:candidateGroups="${bpm_groupAssignee.properties.authorityName" should be set to the next step, not the start task, because it represent the person/group the task is assigned to. This is why you have the error : when you start a workflow, the "bpm_groupAssignee" param is not set. When you chose in your form a new assignee (person/group), then the "bpm_groupAssignee" param is set, and in the next step you can set the assignee to the group/person you have chosen with the activiti:candidateGroups element. – Akah Jun 21 '16 at 12:43
  • Yes modified 3 file now able to assign groups but inside group people not get any notification their alfresco dashboard page – Paul Jun 22 '16 at 04:48