AnsweredAssumed Answered

Failed to find association definition 'bpm:assignee'

Question asked by vilaskokate on Jan 27, 2009
Latest reply on Jan 28, 2009 by maas101
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.

Outcomes