AnsweredAssumed Answered

How to trigger the error boundary event in the task?

Question asked by kafeitu on Sep 27, 2012
Latest reply on Sep 28, 2012 by kafeitu
I know how to trigger a error boundary event in subprocess(class in project activiti-engine-examples), but how to trigger it in the task ? :?:

For example……


<serviceTask id="servicetask1" name="User Task" activiti:class="me.kafeitu.activiti.ErrorBoundaryEventAttachToTaskService"></serviceTask>
    <boundaryEvent id="boundaryerror1" name="" cancelActivity="false" attachedToRef="servicetask1">
      <errorEventDefinition errorRef="errorOne"></errorEventDefinition>


public class ErrorBoundaryEventAttachToTaskService implements JavaDelegate {

   public void execute(DelegateExecution execution) throws Exception {
      // TODO throw error for error boundary event