cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to find association definition 'bpm:assignee'

vilaskokate
Champ in-the-making
Champ in-the-making
hi,
     I have created one custom workflow it is deployed on alfresco. But it does not show the users for assigning to  the workflow.
     it showing this error " Failed to find association definition for association 'bpm:assignee'"
     my processdefinition.xml file is as follows
                 
<?xml version="1.0" encoding="UTF-8"?>

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="custom_review">

    <swimlane name="initiator" />

    <start-state name="start">
        <task name="wf:CustomsubmitReviewTask" swimlane="initiator" />
        <transition name="" to="review" />
    </start-state>

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

    <task-node name="review">
        <task name="wf:CustomreviewTask" swimlane="reviewer">
            <event type="task-create">
                <script>
                    if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
                    if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;
                </script>
            </event>
        </task>
        <transition name="approve" to="approved" />
        <transition name="reject" to="rejected" />
    </task-node>

    <task-node name="rejected">
        <task name="wf:CustomrejectedTask" swimlane="initiator" />
        <transition name="" to="end" />
    </task-node>

    <task-node name="approved">
        <task name="wf:CustomapprovedTask" swimlane="initiator" />
        <transition name="" to="end" />
    </task-node>

    <end-state name="end" />

</process-definition>
       I have added this line into the WorkflowModel.xml file
 
 <type name="wf:CustomsubmitReviewTask">
         <parent>bpm:startTask</parent>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
      </type>

   Can anybody tell me how to solve this error.
3 REPLIES 3

maas101
Champ in-the-making
Champ in-the-making
Have you included a property sheet in web-client-config-custom.xml for the task?

i.e.

<config evaluator="node-type" condition="wf:CustomsubmitReviewTask" replace="true">
  <property-sheet>
    <separator name="sep1" display-label-id="reviewer" component-generator="HeaderSeparatorGenerator"/>
    <show-association name="bpm:assignee"/>
  </property-sheet>
</config>

This will allow the select user mechanism to be displayed.

vilaskokate
Champ in-the-making
Champ in-the-making
Thanks,
           Now it showing the alfresco users.
problem is Showing the label as $$reiewer$$  and in the console " Failed to find I18N message key: reviewer" this error.

Can you help me how to add lable.

maas101
Champ in-the-making
Champ in-the-making
You need to externalise the string.

in the webclient.properties file add a line:
reviewer=your-text