Validation for spreadsheet fails because it cannot find functions in the same package of Business Central

Solution Verified - Updated -

Issue

  • A spreadsheet based Decision Table has been uploaded in a package of Business Central where the rules defined inside it uses an external function defined in a DRL on the same package. In such a scenario users can successfully Build & Deploy on the project containing those Decision Table and DRL in Business Central but while clicking on Validate button after opening the Decision Table, it fails because it cannot find functions. The following exception gets logged.
16:10:14,490 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (http-/127.0.0.1:8080-3) Unable to build KieBaseModel:defaultKieBase
Unable to Analyse Expression myfunc() == 0:
[Error: unable to resolve method using strict-mode: java.lang.String.myfunc()]
[Near : {... myfunc() == 0 ....}]
             ^
[Line: 6, Column: 2] : [Rule name='HelloWorld_11']

Unable to Analyse Expression myfunc() == 1:
[Error: unable to resolve method using strict-mode: java.lang.String.myfunc()]
[Near : {... myfunc() == 1 ....}]
             ^
[Line: 14, Column: 2] : [Rule name='HelloWorld_12']

How to fix this issue?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 6.0.x

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