I am just trying to learn DSL and have immediately run into issues.<br><br>I have a simple DSL in the file named XEasyApp.dsl : <br> <i>[condition][]{value} is an invalid Boolean={value} not in("T","t","1","F","f","0")</i><br>
<br>and then a simple DSLR in the file named Test.dslr:<br><i> package com.onfs.easyapp.rules<br> import com.onfs.easyapp.EasyApp<br> expander XEasyApp.dsl<br><br> rule "EasyApp Insured is Citizen Validation"<br>
when<br> $ea : EasyApp(priIns_eaInsuredIsCitizenInd is an invalid Boolean) <br> then<br> $ea.addError(drools.getRule().getName());<br> end</i><br><br>I get the expected expansion in the DRL Viewer:<br>
package com.onfs.easyapp.rules<br> import com.onfs.easyapp.EasyApp<br><br> rule "EasyApp Insured is Citizen Validation"<br> when<br> $ea : EasyApp(priIns_eaInsuredIsCitizenInd not in("T","t","1","F","f","0")) <br>
then<br><br> $ea.addError(drools.getRule().getName());<br> end<br><br>There are no Red X's when I view Test.dslr in the editor, however a problem shows up in the Problems area below:<br><i>Description Resource Path Location Type<br>
[13] Unable to expand: $ea.addError(drools.getRule().getName());<br> Test.dslr /TermXpressRules/src/main/rules Unknown Drools Error</i><br><br><br><br>