AnsweredAssumed Answered

Event subprocess with error start event

Question asked by alemser on Jul 18, 2012
Latest reply on Jul 25, 2012 by alemser
Hi,

Please, see attachment and XML below…

When the Review task ends with error, the respective error start event of the event subprocess is not activated.

This message appears in the log:
18/07/2012 14:26:56 org.activiti.engine.impl.bpmn.helper.ErrorPropagation propagateError
INFO: errorEnd throws error event with errorCode '123', but no catching boundary event was defined. Execution will simply be ended (none end event semantics).

Did I miss something?

BPMN
===================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<definitions id="definitions"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:activiti="http://activiti.org/bpmn"
  targetNamespace="Examples"
  xmlns:tns="Examples"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
   <error id="err01" errorCode="123" />
   
   <process id="process01" isExecutable="true">
   
      <startEvent id="startEvent01">
         <outgoing>toReview</outgoing>
      </startEvent>
      
      <userTask completionQuantity="1" id="reviewUserTask" implementation="webService"
         isForCompensation="false" name="Review" startQuantity="1">
         <incoming>toReview</incoming>
         <outgoing>toOkGtw</outgoing>
      </userTask>
      
      <exclusiveGateway gatewayDirection="Diverging" id="okGtw" name="ok?">
         <incoming>toOkGtw</incoming>
         <outgoing>toEmptyEnd</outgoing>
         <outgoing>toErrorEnd</outgoing>
      </exclusiveGateway>
      
      <endEvent id="emptyEnd" name="emptyEnd">
         <incoming>toEmptyEnd</incoming>
      </endEvent>
      
      <endEvent id="errorEnd" name="err">
         <incoming>toErrorEnd</incoming>
         <errorEventDefinition errorRef="err01" id="errId" />
      </endEvent>
      
      <sequenceFlow id="toReview"
         name="" sourceRef="startEvent01"
         targetRef="reviewUserTask" />
         
      <sequenceFlow id="toOkGtw"
         name="" sourceRef="reviewUserTask"
         targetRef="okGtw" />
         
      <sequenceFlow id="toEmptyEnd"
         name="ok" sourceRef="okGtw"
         targetRef="emptyEnd">
         
         <conditionExpression id="sid-eff7d8a1-fd2a-4f8f-85a7-d5a694d6c10f"
            xsi:type="tFormalExpression">${condition=='A'}</conditionExpression>
            
      </sequenceFlow>
      
      <sequenceFlow id="toErrorEnd"
         name="not ok" sourceRef="okGtw"
         targetRef="errorEnd">
         
         <conditionExpression id="condExp"
            xsi:type="tFormalExpression">${condition=='R'}</conditionExpression>
            
      </sequenceFlow>
   </process>
   
   <process id="process02" isExecutable="false">
   
      <subProcess completionQuantity="1" id="eventSubProcess" isForCompensation="false"
         name="" startQuantity="1" triggeredByEvent="true">
         
         <startEvent id="errStartEvent" name="err">
            <outgoing>toReport</outgoing>
            <errorEventDefinition errorRef="err01" id="sid-fc567882-11a0-4da4-9787-8a185d893f66" />
         </startEvent>
         
         <userTask completionQuantity="1" id="reportUserTask"
            implementation="webService" isForCompensation="false" name="Report" startQuantity="1">
            <incoming>toReport</incoming>
            <outgoing>toSubEmptyEnd</outgoing>
         </userTask>
         
         <endEvent id="subEmptyEnd" name="">
            <incoming>toSubEmptyEnd</incoming>
         </endEvent>
         
         <sequenceFlow id="toReport"
            name="" sourceRef="errStartEvent"
            targetRef="reportUserTask" />
            
         <sequenceFlow id="toSubEmptyEnd"
            name="" sourceRef="reportUserTask"
            targetRef="subEmptyEnd" />
      </subProcess>
   </process>
</definitions>
============================================================

Attachments

Outcomes