<br> Yes, but what is the preview of your DSL rule in DRL form? There is a tab in the bottom of the code editor in the IDE...<br><br><br><div><span class="gmail_quote">2007/9/25, Brian Enderle <<a href="mailto:brianke@gmail.com">
brianke@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Best way to know is preview your DRL rule in IDE and check what is wrong
<br>(or paste it here). []s Edson<br><br><br>Here is the working rule:<br><br>rule "LevelTwo: MEPS Processing cannot be blank if Projection exists"<br> agenda-group "LevelTwo"<br> when
<br>> $i : MepsProcessing(eval(mepsProjTypCd != null) && eval<br>(mepsProjTypCd != ' '), eval(StringUtils.isBlank(mepsId)))<br> then<br>> System.out.println("Meps Id cannot be blank");
<br>end<br><br>When I replace the two conditions with a DSL entry, the rule works with the<br>DSL conditions individually as in:<br><br> There is a MepsProcessing<br> - mepsProjTypCd is not a blank Character
<br><br>or<br><br> There is a MepsProcessing<br> - mepsId is a blank String<br><br><br>But as soon as I put the two conditions together I get the error.<br><br>rule "LevelTwo: MEPS Processing cannot be blank if Projection exists"
<br> agenda-group "LevelTwo"<br> when<br> There is a MepsProcessing<br> - mepsProjTypCd is not a blank Character<br> - mepsId is a blank String
<br> then<br>> System.out.println("Meps Id cannot be blank");<br>end<br><br>Error:<br>Caused by: org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule<br>name=LevelTwo: MEPS Processing cannot be blank if Projection exists,
<br>agendaGroup=LevelTwo, salience=0, no-loop=false]<br> mil/army/usaac/ariss/dca/bp/Rule_LevelTwo__MEPS_Processing_cannot_be_bl<br>ank_if_Projection_exists_0.java (33:1686) : Syntax error on token ",", .
<br>expected<br> mil/army/usaac/ariss/dca/bp/Rule_LevelTwo__MEPS_Processing_cannot_be_bl<br>ank_if_Projection_exists_0.java (33:1713) : mepsId cannot be resolved<br><br><br>Any ideas,<br>Brian Enderle<br><br><br>>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>><br><br><br><br><br>_______________________________________________<br>rules-users mailing list
<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div>
<br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>