<!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;">
    Business Rules using Fluent API - JBPM 5
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/jovijesc">Jhonatas Vicente de Jesus</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/628668#628668">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p style="padding-left: 30px;"><span style="background-color: #ffffff;" title="Regras de Neg&#243;cio usando Fluent API - JBPM 5">Business Rules using Fluent API - JBPM 5 <br/><br/></span><span title="Ol&#225; galera.">Hello people. <br/><br/></span><span style="background-color: #ffffff;" title="Gostaria de saber como criar regras de neg&#243;cio ou regras de navega&#231;&atilde;o usando a Fluent API.">I wonder how to create business rules or rules of navigation using the Fluent API. <br/></span><span style="background-color: #ffffff;" title="Encontrei esse c&#243;digo abaixo:">I found this code below: <br/><br/></span><span style="background-color: #ffffff;" title="Split split = new Split();">Split split = new Split (); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="split.setName(&amp;quot;split&amp;quot;);">split.setName ("split"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="split.setMetaData(&amp;quot;x&amp;quot;, 1);">split.setMetaData ("x", 1); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="split.setMetaData(&amp;quot;y&amp;quot;, 2);">split.setMetaData ("y", 2); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="split.setMetaData(&amp;quot;width&amp;quot;, 3);">split.setMetaData ("width", 3); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="split.setMetaData(&amp;quot;height&amp;quot;, 4);">split.setMetaData ("height", 4); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="split.setType(Split.TYPE_XOR);">split.setType (Split.TYPE_XOR); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="Connection connection = new ConnectionImpl(split, Node.CONNECTION_DEFAULT_TYPE, actionNode, Node.CONNECTION_DEFAULT_TYPE);">Connection connection = new ConnectionImpl (split, Node.CONNECTION_DEFAULT_TYPE, actionNode, Node.CONNECTION_DEFAULT_TYPE); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="Constraint constraint = new ConstraintImpl();">ConstraintImpl Constraint constraint = new (); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint.setName(&amp;quot;constraint1 &gt;&lt;&amp;&amp;&amp;quot;);">constraint.setName ("constraint1 &gt;&lt;&amp;&amp;"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint.setPriority(1);">constraint.setPriority (1); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="constraint.setDialect(&amp;quot;dialect1&amp;quot;);">constraint.setDialect ("dialect1"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="constraint.setType(&amp;quot;type1&amp;quot;);">constraint.setType ("type1"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="constraint.setConstraint(&amp;quot;constraint-text1&amp;quot;);">constraint.setConstraint ("constraint-text1"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="split.setConstraint(connection, constraint);">split.setConstraint (connection, constraint); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="background-color: #ffffff;" title="connection = new ConnectionImpl(split, Node.CONNECTION_DEFAULT_TYPE, ruleSetNode, Node.CONNECTION_DEFAULT_TYPE);">connection = new ConnectionImpl (split, Node.CONNECTION_DEFAULT_TYPE, ruleSetNode, Node.CONNECTION_DEFAULT_TYPE); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint = new ConstraintImpl();">ConstraintImpl constraint = new (); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint.setName(&amp;quot;constraint2&amp;quot;);">constraint.setName ("constraint2"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint.setPriority(2);">constraint.setPriority (2); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint.setDialect(&amp;quot;dialect2&amp;quot;);">constraint.setDialect ("dialect2"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint.setType(&amp;quot;type2&amp;quot;);">constraint.setType ("type2"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="constraint.setConstraint(&amp;quot;constraint-text2&amp;quot;);">constraint.setConstraint ("constraint-text2"); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="split.setConstraint(connection, constraint);">split.setConstraint (connection, constraint); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="process.addNode(split);">process.addNode (split); <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span title="new ConnectionImpl(startNode, Node.CONNECTION_DEFAULT_TYPE, split, Node.CONNECTION_DEFAULT_TYPE);">new ConnectionImpl (startNode, Node.CONNECTION_DEFAULT_TYPE, split, Node.CONNECTION_DEFAULT_TYPE); <br/><br/></span><span title="Como eu poderia definir uma express&atilde;o?">How could I set an expression? </span><span title="Se idade &gt; 18 vai para atividade XXXX, se n&atilde;o vai para outra atividade.!">If age&gt; 18 go to XXXX activity, if it goes to another activity.! <br/><br/></span><span style="background-color: #ffffff;" title="N&atilde;o encontrei como posso definir as express&otilde;es de navega&#231;&atilde;o.">I can not find how to set the terms of navigation. <br/><br/></span><span style="background-color: #ffffff;" title="Desculpe pelo ingl&#234;s, eu usei o google translate!!">Sorry for English, I used google translate! </span></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/628668#628668">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>