AnsweredAssumed Answered

problem about Activiti extensions for task assignment

Question asked by chnxan on Dec 3, 2011
Latest reply on Dec 5, 2011 by trademak
Hi
sorry, my english is very poor.
I hope you understand these words.
thanks!

What can i do if i don't use Activiti  extensions .


like this:

<userTask id="Multi" name="Multi" activiti:assignee="a">
      <extensionElements>
        <activiti:taskListener event="create" class="com.test.bpm.listener.MultiConfirmListener"></activiti:taskListener>
      </extensionElements>
</userTask>
I will

public class MultiConfirmListener extends BaseListener implements TaskListener {

   public void notify(DelegateTask delegateTask) {
      Collection multiList = (Collection) delegateTask.getVariable("multiList");
      delegateTask.addCandidateUsers(multiList);
   }
}
I don't use Activiti  extensions.
But, if there is no  "activiti:assignee="a", the designer will report a error and can't save to BPMN 2.0 format correctly.
The BPMN20.xml dose not have the user_task I defined just now.

thanks!

Outcomes