Getting "Unable to load a selector [/NonDraft.drl]" when try to build package using custom selector in Guvnor
Issue
- When we try to use Custom Selector with provided
jboss-brms.war/WEB-INF/classes/selectors.propertiesfile in guvnor I don’t get the defined value in the drop down. - Exception in the serve log file:
org.drools.guvnor.server.selector.RuleBasedSelector <init>
SEVERE: Unable to load rule base.
org.drools.CheckedDroolsException: There were errors in the rule source: Unable to Analyse Expression statusDescription != "Draft":
[Error: unable to resolve method using strict-mode: org.drools.repository.AssetItem.statusDescription()]
[Near : {... statusDescription != "Draft" ....}]
^
[Line: 10, Column: 18] : [Rule name='rule1']
at org.drools.compiler.RuleBaseLoader.makeRuleBase(RuleBaseLoader.java:60)
at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:37)
at org.drools.guvnor.server.selector.RuleBasedSelector.<init>(RuleBasedSelector.java:48)
at org.drools.guvnor.server.selector.SelectorManager.loadRuleSelector(SelectorManager.java:110)
at org.drools.guvnor.server.selector.SelectorManager.detemineSelector(SelectorManager.java:61)
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
Environment
- Red Hat JBoss BRMS
- 5.3.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
