Getting "Unable to load a selector [/NonDraft.drl]" when try to build package using custom selector in Guvnor

Solution Unverified - Updated -

Issue

  • When we try to use Custom Selector with provided jboss-brms.war/WEB-INF/classes/selectors.properties file 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content