<!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;">
    Guvnor cannot convert my decision table into web- guided editor
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/jjsaguit">John Joel Boss</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/799770#799770">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 All,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I successfully uploaded the decision table (xls file) to guvnor and my package and jbpm workflow runs well with it, however if I try to convert the uploaded xls file into a web - guided editor in guvnor, it doesnt show the correct output and my package cannot compile as well.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Attached is the decision table I made.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table border="0" cellpadding="0" cellspacing="0" width="985"><tbody><tr><td class="xl66" height="18" style="border:0px solid black;" width="113"> </td><td class="xl73" style="border:0px solid black;" width="180">RuleSet</td><td class="xl74" style="border:0px solid black;border-left: none;" width="166">com.softskills.rule</td><td class="xl75" style="border:0px solid black;" width="130"> </td><td class="xl76" colspan="3" style="border:0px solid black;" width="396"><span style="text-decoration: underline;"> </span></td></tr><tr><td class="xl66" height="17" style="border:0px solid black;"> </td><td class="xl77" style="border:0px solid black;">RULEFLOW-GROUP</td><td class="xl77" style="border:0px solid black;">verifyrule</td><td class="xl75" style="border:0px solid black;"> </td><td class="xl76" style="border:0px solid black;"><span style="text-decoration: underline;"> </span></td><td class="xl76" style="border:0px solid black;"><span style="text-decoration: underline;"> </span></td><td class="xl76" style="border:0px solid black;"><span style="text-decoration: underline;"> </span></td></tr><tr><td class="xl66" height="17" style="border:0px solid black;"> </td><td class="xl77" style="border:0px solid black;">Import</td><td class="xl77" style="border:0px solid black;">java.lang.Boolean, org.drools.runtime.process.WorkflowProcessInstance, java.math.BigDecimal</td><td class="xl75" style="border:0px solid black;"> </td><td class="xl76" style="border:0px solid black;"><span style="text-decoration: underline;"> </span></td><td class="xl76" style="border:0px solid black;"><span style="text-decoration: underline;"> </span></td><td class="xl76" style="border:0px solid black;"><span style="text-decoration: underline;"> </span></td></tr><tr><td class="xl66" height="18" style="border:0px solid black;"> </td><td class="xl77" style="border:0px solid black;">Notes</td><td class="xl77" style="border:0px solid black;">This decision table is for working out some basic prices and pretending actuaries don't exist</td><td class="xl75" style="border:0px solid black;"> </td><td class="xl78" style="border:0px solid black;"> </td><td class="xl76" style="border:0px solid black;"><span style="text-decoration: underline;"> </span></td><td class="xl79" style="border:0px solid black;"> </td></tr><tr><td class="xl67" height="17" style="border:0px solid black;"> </td><td class="xl68" style="border:0px solid black;">RuleTable Account Rules</td><td class="xl69" style="border:0px solid black;"> </td><td class="xl69" style="border:0px solid black;"> </td><td class="xl69" style="border:0px solid black;"> </td></tr><tr><td class="xl67" height="17" style="border:0px solid black;border-top: none;"> </td><td class="xl68" style="border:0px solid black;">CONDITION</td><td class="xl68" style="border:0px solid black;">CONDITION</td><td class="xl68" style="border:0px solid black;">ACTION</td><td class="xl68" style="border:0px solid black;">ACTION</td></tr><tr><td class="xl82" height="38" style="border:0px solid black;border-top: none;"> </td><td class="xl88" colspan="2" style="border:0px solid black;border-right: .5pt solid black;" width="346">$pr: WorkflowProcessInstance()<br/> $bd: BigDecimal() from (BigDecimal)$pr.getVariable("ccrisExposure");</td><td class="xl83" style="border:0px solid black;border-left: none;border-top: none;"> </td><td class="xl83" style="border:0px solid black;border-left: none;border-top: none;"> </td></tr><tr><td class="xl70" height="53" style="border:0px solid black;" width="113"> </td><td class="xl85" style="border:0px solid black;border-left: none;border-top: none;" width="180">$bd.compareTo(new BigDecimal($1)) &gt;= 0</td><td class="xl85" style="border:0px solid black;border-left: none;border-top: none;" width="166">$bd.compareTo(new BigDecimal($1)) &lt;= 0</td><td class="xl81" style="border:0px solid black;border-left: none;" width="130">$pr.setVariable("isRisky",$param);</td><td class="xl81" style="border:0px solid black;border-left: none;" width="141">System.out.println("$param");</td></tr><tr><td class="xl71" height="12" style="border:0px solid black;">Base pricing rules</td><td class="xl86" style="border:0px solid black;border-left: none;">Lower ccrisExposure Bracket</td><td class="xl86" style="border:0px solid black;border-left: none;">Upper ccrisExposure Bracket</td><td class="xl72" style="border:0px solid black;border-left: none;" width="130">print</td><td class="xl72" style="border:0px solid black;border-left: none;" width="141">print</td></tr><tr><td class="xl80" height="20" style="border:0px solid black;">Young risky package</td><td class="xl87" style="border:0px solid black;border-left: none;">0</td><td class="xl87" style="border:0px solid black;border-left: none;">10000</td><td class="xl84" style="border:0px solid black;border-left: none;">TRUE</td><td class="xl84" style="border:0px solid black;border-left: none;">risky true</td></tr><tr><td class="xl80" height="20" style="border:0px solid black;border-top: none;">Young risky</td><td class="xl84" style="border:0px solid black;border-left: none;border-top: none;">10001</td><td class="xl84" style="border:0px solid black;border-left: none;border-top: none;">999999</td><td class="xl84" style="border:0px solid black;border-left: none;border-top: none;">FALSE</td><td class="xl84" style="border:0px solid black;border-left: none;border-top: none;"> risky false</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Using jBPM 5.4 with drools 5.5.0</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks,</p><p>John</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/799770#799770">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>