<!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="https://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;">
    Re: JBPM 5: Workflow not leaving embedded sub process
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/r_delorimier">Robert de Lorimier</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/784538#784538">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I looked at all of the gateways, and other than the first divergent gateway, all the others were set to XOR. Here is the bpmn:</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>&#160; &lt;itemDefinition id="_2-ruleStateItem" structureRef="String" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;process processType="Private" isExecutable="true" id="workflow" name="Rule Workflow Process" tns:packageName="defaultPackage" &gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;laneSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;lane name="ruleState" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/lane&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;lane name="ruleId" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/lane&gt;</p><p>&#160;&#160;&#160; &lt;/laneSet&gt;</p><p>&#160;&#160;&#160; &lt;!-- nodes --&gt;</p><p>&#160;&#160;&#160; &lt;startEvent id="_1" name="Start Process" /&gt;</p><p>&#160;&#160;&#160; &lt;subProcess id="_2" name="Approval Process"&#160; &gt;</p><p>&#160;&#160;&#160; &lt;!-- variables --&gt;</p><p>&#160;&#160;&#160; &lt;property id="ruleState" itemSubjectRef="_2-ruleStateItem"/&gt;</p><p>&#160;&#160;&#160; &lt;!-- nodes --&gt;</p><p>&#160;&#160;&#160; &lt;startEvent id="_2-1" name="Start" /&gt;</p><p>&#160;&#160;&#160; &lt;exclusiveGateway id="_2-2" name="Gateway" gatewayDirection="Converging" /&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_2-3" name="Submit for Approval" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-3_CommentInput" name="Comment" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-3_SkippableInput" name="Skippable" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-3_TaskNameInput" name="TaskName" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-3_CommentInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-3_SkippableInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-3_TaskNameInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-3_CommentInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Task to submit the draft rule&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-3_CommentInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-3_SkippableInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;true&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-3_SkippableInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-3_TaskNameInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Submit for Approval&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-3_TaskNameInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;submitter&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</p><p>&#160;&#160;&#160; &lt;parallelGateway id="_2-4" name="Gateway" gatewayDirection="Diverging" /&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_2-5" name="Approve Rule" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;extensionElements&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;tns:onExit-script scriptFormat="</span><a class="jive-link-external-small" href="http://www.java.com/java" target="_blank">http://www.java.com/java</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;script&gt;org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>process.setVariable("ruleState", "LIVE");&lt;/script&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/tns:onExit-script&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/extensionElements&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-5_CommentInput" name="Comment" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-5_SkippableInput" name="Skippable" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-5_TaskNameInput" name="TaskName" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-5_CommentInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-5_SkippableInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-5_TaskNameInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-5_CommentInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Approve the rule&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-5_CommentInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-5_SkippableInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;true&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-5_SkippableInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-5_TaskNameInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Approve Rule&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-5_TaskNameInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;approver&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;appUser&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_2-6" name="Reject Rule" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;extensionElements&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;tns:onExit-script&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;script&gt;org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>process.setVariable("ruleState", "DRAFT");&lt;/script&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/tns:onExit-script&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/extensionElements&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-6_CommentInput" name="Comment" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-6_SkippableInput" name="Skippable" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_2-6_TaskNameInput" name="TaskName" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-6_CommentInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-6_SkippableInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_2-6_TaskNameInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-6_CommentInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Reject the rule&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-6_CommentInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-6_SkippableInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;true&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-6_SkippableInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_2-6_TaskNameInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Reject Rule&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_2-6_TaskNameInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;approver&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;appUser&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</p><p>&#160;&#160;&#160; &lt;exclusiveGateway id="_2-7" name="Gateway" gatewayDirection="Converging" /&gt;</p><p>&#160;&#160;&#160; &lt;exclusiveGateway id="_2-8" name="approveDecision" gatewayDirection="Diverging" /&gt;</p><p>&#160;&#160;&#160; &lt;endEvent id="_2-9" name="FinishSubProcess" /&gt;</p><p>&#160;&#160;&#160; &lt;!-- connections --&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-1-_2-2" sourceRef="_2-1" targetRef="_2-2" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-8-_2-2" sourceRef="_2-8" targetRef="_2-2" name="Rejected" tns:priority="1" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;conditionExpression xsi:type="tFormalExpression" &gt;org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if (((String)process.getVariable("ruleState")).equals("DRAFT"))</p><p>{</p><p>&#160;&#160;&#160; System.out.println("Rule rejected and staying DRAFT. Back to the beginning");</p><p>&#160;&#160;&#160; return true;</p><p>}</p><p>else</p><p>{</p><p>&#160;&#160;&#160; return false;</p><p>}&lt;/conditionExpression&gt;</p><p>&#160;&#160;&#160; &lt;/sequenceFlow&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-2-_2-3" sourceRef="_2-2" targetRef="_2-3" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-3-_2-4" sourceRef="_2-3" targetRef="_2-4" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-4-_2-5" sourceRef="_2-4" targetRef="_2-5" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-4-_2-6" sourceRef="_2-4" targetRef="_2-6" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-6-_2-7" sourceRef="_2-6" targetRef="_2-7" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-5-_2-7" sourceRef="_2-5" targetRef="_2-7" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-7-_2-8" sourceRef="_2-7" targetRef="_2-8" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-8-_2-9" sourceRef="_2-8" targetRef="_2-9" name="Go live" tns:priority="1" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;conditionExpression xsi:type="tFormalExpression" &gt;org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if (((String)process.getVariable("ruleState")).equals("LIVE"))</p><p>{</p><p>&#160;&#160;&#160; System.out.println("Rule approved and going LIVE");</p><p>&#160;&#160;&#160; return true;</p><p>}</p><p>else</p><p>{</p><p>&#160;&#160;&#160; return false;</p><p>}&lt;/conditionExpression&gt;</p><p>&#160;&#160;&#160; &lt;/sequenceFlow&gt;</p><p>&#160;&#160;&#160; &lt;/subProcess&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_3" name="Modify Rule" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;extensionElements&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;tns:onExit-script scriptFormat="</span><a class="jive-link-external-small" href="http://www.java.com/java" target="_blank">http://www.java.com/java</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;script&gt;org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>process.setVariable("ruleState", "DRAFT");&lt;/script&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/tns:onExit-script&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/extensionElements&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_3_CommentInput" name="Comment" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_3_SkippableInput" name="Skippable" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_3_TaskNameInput" name="TaskName" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_3_CommentInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_3_SkippableInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_3_TaskNameInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_3_CommentInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Modify the rule&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_3_CommentInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_3_SkippableInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;true&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_3_SkippableInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_3_TaskNameInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Modify Rule&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_3_TaskNameInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;submitter&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;editor&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</p><p>&#160;&#160;&#160; &lt;endEvent id="_4" 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>&#160;&#160;&#160; &lt;exclusiveGateway id="_5" name="Gateway" gatewayDirection="Converging" /&gt;</p><p>&#160;&#160;&#160; &lt;parallelGateway id="_6" name="Gateway" gatewayDirection="Diverging" /&gt;</p><p>&#160;&#160;&#160; &lt;exclusiveGateway id="_7" name="Gateway" gatewayDirection="Converging" /&gt;</p><p>&#160;&#160;&#160; &lt;exclusiveGateway id="_8" name="Gateway" gatewayDirection="Diverging" /&gt;</p><p>&#160;&#160;&#160; &lt;userTask id="_9" name="Start Workflow" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;extensionElements&gt;</p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;tns:onExit-script scriptFormat="</span><a class="jive-link-external-small" href="http://www.java.com/java" target="_blank">http://www.java.com/java</a><span>"&gt;</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;script&gt;System.out.println("Start Workflow triggered");&lt;/script&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/tns:onExit-script&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/extensionElements&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_9_CommentInput" name="Comment" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_9_SkippableInput" name="Skippable" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_9_TaskNameInput" name="TaskName" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInput id="_9_GroupIdInput" name="GroupId" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_9_CommentInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_9_SkippableInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_9_TaskNameInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dataInputRefs&gt;_9_GroupIdInput&lt;/dataInputRefs&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/inputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/outputSet&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/ioSpecification&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_9_CommentInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Starts the workflow&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_9_CommentInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_9_SkippableInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;false&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_9_SkippableInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_9_TaskNameInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;Start Workflow&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_9_TaskNameInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;targetRef&gt;_9_GroupIdInput&lt;/targetRef&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;from xsi:type="tFormalExpression"&gt;&lt;/from&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;to xsi:type="tFormalExpression"&gt;_9_GroupIdInput&lt;/to&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/assignment&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/dataInputAssociation&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;potentialOwner&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;formalExpression&gt;appUser&lt;/formalExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/resourceAssignmentExpression&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/potentialOwner&gt;</p><p>&#160;&#160;&#160; &lt;/userTask&gt;</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="_6-_2" sourceRef="_6" targetRef="_2" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_6-_3" sourceRef="_6" targetRef="_3" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_8-_4" sourceRef="_8" targetRef="_4" name="Finish workflow" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;conditionExpression xsi:type="tFormalExpression" &gt;org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();</p><p>System.out.println("Rule state is now " + ((String)process.getVariable("ruleState")));</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if (((String)process.getVariable("ruleState")).equals("LIVE"))</p><p>{</p><p>&#160;&#160;&#160; System.out.println("Finish workflow");</p><p>&#160;&#160;&#160; return true;</p><p>}</p><p>else</p><p>{</p><p>&#160;&#160;&#160; return false;</p><p>}&lt;/conditionExpression&gt;</p><p>&#160;&#160;&#160; &lt;/sequenceFlow&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_3-_5" sourceRef="_3" targetRef="_5" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_2-_5" sourceRef="_2" targetRef="_5" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_7-_6" sourceRef="_7" targetRef="_6" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_8-_7" sourceRef="_8" targetRef="_7" name="Return to start" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;conditionExpression xsi:type="tFormalExpression" &gt;org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();</p><p>System.out.println("Rule state is now " + ((String)process.getVariable("ruleState")));</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>if (((String)process.getVariable("ruleState")).equals("DRAFT"))</p><p>{</p><p>&#160;&#160;&#160; System.out.println("Go back to start");</p><p>&#160;&#160;&#160; return true;</p><p>}</p><p>else</p><p>{</p><p>&#160;&#160;&#160; return false;</p><p>}&lt;/conditionExpression&gt;</p><p>&#160;&#160;&#160; &lt;/sequenceFlow&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_9-_7" sourceRef="_9" targetRef="_7" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_5-_8" sourceRef="_5" targetRef="_8" /&gt;</p><p>&#160;&#160;&#160; &lt;sequenceFlow id="_1-_9" sourceRef="_1" targetRef="_9" /&gt;</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>&#160; &lt;bpmndi:BPMNDiagram&gt;</p><p>&#160;&#160;&#160; &lt;bpmndi:BPMNPlane bpmnElement="workflow" &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="236" y="12" 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="360" y="191" width="607" height="502" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNShape&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNShape bpmnElement="_2-1" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="456" y="220" 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-2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="458" y="315" 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-3" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="406" y="400" width="153" 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-4" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="458" y="488" 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-5" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="435" y="609" width="100" 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-6" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="573" y="490" width="100" 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-7" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="737" y="611" 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-8" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="732" y="319" 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-9" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="895" y="318" 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="_3" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="90" y="326" width="100" 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="40" y="726" 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="_5" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="118" y="640" 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="_6" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="236" y="181" 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="41" y="187" 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="40" y="640" 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="_9" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;dc:Bounds x="210" y="102" width="100" 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="_2-1-_2-2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="120" y="53" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="148" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-8-_2-2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="396" y="152" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="148" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-2-_2-3" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="148" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="233" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-3-_2-4" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="233" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="321" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-4-_2-5" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="321" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="125" y="442" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-4-_2-6" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="122" y="321" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="263" y="323" /&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-_2-7" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="263" y="323" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="401" y="444" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-5-_2-7" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="125" y="442" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="401" y="444" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-7-_2-8" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="401" y="444" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="396" y="152" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-8-_2-9" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="396" y="152" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="559" y="151" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_6-_2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="260" y="205" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="663" y="442" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_6-_3" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="260" y="205" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="140" y="350" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_8-_4" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="64" y="664" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="64" y="750" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_3-_5" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="140" y="350" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="142" y="664" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_2-_5" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="663" y="442" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="142" y="664" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_7-_6" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="65" y="211" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="260" y="205" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_8-_7" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="64" y="664" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="65" y="211" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_9-_7" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="260" y="126" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="65" y="211" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_5-_8" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="142" y="664" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="64" y="664" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/bpmndi:BPMNEdge&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;bpmndi:BPMNEdge bpmnElement="_1-_9" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="260" y="36" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;di:waypoint x="260" y="126" /&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>&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="https://community.jboss.org/message/784538#784538">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://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>