<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Exception Handler not working in Drools flow(bpmn) but working fine in .rf
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/rahul.krishnan">Rahul Krishnan</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/632741#632741">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi, </p><p>&#160;&#160;&#160;&#160;&#160; I have tried the fault node in drools flow file and it has worked fine in .rf. Whenever a faultnode is triggered it will search for the fault name and will be caught at the apropriate Exception Handlers. But When am implementing the same in .bpmn the fault node is triggered but the flow is not reaching Exception Handlers ie The flow will exit upon reaching the fault node. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>How can i resolve this problem?&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I will give the xml format of bpmn here </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt; </p><p>&lt;definitions id="Definition"</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; targetNamespace="</span><a class="jive-link-external-small" href="http://www.jboss.org/drools" target="_blank">http://www.jboss.org/drools</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; typeLanguage="</span><a class="jive-link-external-small" href="http://www.java.com/javaTypes" target="_blank">http://www.java.com/javaTypes</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; expressionLanguage="</span><a class="jive-link-external-small" href="http://www.mvel.org/2.0" target="_blank">http://www.mvel.org/2.0</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a><span> BPMN20.xsd"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:g="</span><a class="jive-link-external-small" href="http://www.jboss.org/drools/flow/gpd" target="_blank">http://www.jboss.org/drools/flow/gpd</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:bpmndi="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/DI" target="_blank">http://www.omg.org/spec/BPMN/20100524/DI</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:dc="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DC" target="_blank">http://www.omg.org/spec/DD/20100524/DC</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:di="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DI" target="_blank">http://www.omg.org/spec/DD/20100524/DI</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:tns="</span><a class="jive-link-external-small" href="http://www.jboss.org/drools" target="_blank">http://www.jboss.org/drools</a><span>"&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;escalation id="error" escalationCode="error" /&gt;</p><p>&#160; &lt;process processType="Private" isExecutable="true" id="checkExce" name="CheckException.b" &gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;!-- nodes --&gt;</p><p>&#160;&#160;&#160; &lt;startEvent id="_1" name="Start" /&gt;</p><p>&#160;&#160;&#160; &lt;scriptTask id="_2" name="Script" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;script&gt;System.out.println("here in script node");&lt;/script&gt;</p><p>&#160;&#160;&#160; &lt;/scriptTask&gt;</p><p>&#160;&#160;&#160; &lt;scriptTask id="_4" name="Script" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;script&gt;System.out.println("Error Event");&lt;/script&gt;</p><p>&#160;&#160;&#160; &lt;/scriptTask&gt;</p><p>&#160;&#160;&#160; &lt;endEvent id="_6" name="Error" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;escalationEventDefinition escalationRef="error" /&gt;</p><p>&#160;&#160;&#160; &lt;/endEvent&gt;</p><p>&#160;&#160;&#160; &lt;intermediateCatchEvent id="_7" name="Error" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;signalEventDefinition signalRef="error"/&gt;</p><p>&#160;&#160;&#160; &lt;/intermediateCatchEvent&gt;</p><p>&#160;&#160;&#160; &lt;endEvent id="_8" name="End" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;terminateEventDefinition/&gt;</p><p>&#160;&#160;&#160; &lt;/endEvent&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;!-- connections --&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_7-_4" sourceRef="_7" targetRef="_4" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-_6" sourceRef="_2" targetRef="_6" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_4-_8" sourceRef="_4" targetRef="_8" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;/process&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;bpmndi:BPMNDiagram&gt;</p><p>&#160;&#160;&#160; &lt;bpmndi:BPMNPlane bpmnElement="checkExce" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNShape bpmnElement="_1" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="100" y="100" width="48" height="48" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNShape&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNShape bpmnElement="_2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="194" y="100" width="80" height="48" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNShape&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNShape bpmnElement="_4" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="138" y="284" width="80" height="48" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNShape&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNShape bpmnElement="_6" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="434" y="212" width="48" height="48" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNShape&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNShape bpmnElement="_7" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="73" y="283" width="48" height="48" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNShape&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNShape bpmnElement="_8" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="326" y="292" width="48" height="48" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNShape&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_1-_2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="124" y="124" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="234" y="124" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_7-_4" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="97" y="307" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="178" y="308" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-_6" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="234" y="124" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="458" y="236" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_4-_8" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="178" y="308" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="350" y="316" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160; &lt;/bpmndi:BPMNPlane&gt;</p><p>&#160; &lt;/bpmndi:BPMNDiagram&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;/definitions&gt;</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/632741#632741">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>