Numaric-type cells expressing a date or a time in spreadsheet decision tables sometimes cause build error.

Solution Unverified - Updated -

Issue

When I build spreadsheet decision tables containing numaric-type (not string-type) cells of value 00:00:00 in hh:mm:ss format like below, the build fails.

Example spreadsheet decision table

The error message in non-executable model is like (*e1), while the one in executable model is like (*e2).

(*e1) Error in non-executable model

[ERROR] Unable to build KieBaseModel:DecisionTableKB
Unable to Analyse Expression $fact.value = ""31-Dec-1899"";
drools.update($fact);
;:
[Error: unexpected token: 31]
[Near : {... $fact.value = ""31-Dec-1899""; ....}]
                             ^
[Line: 5, Column: 0] : [Rule name='example_10']

(*e2) Error in executable model

[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00019:generateModel (default-generateModel) on project reproducer_decisiontable_1a: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00019:generateModel failed: (line 0,col 0) Parse error. Found  "31" <INTEGER_LITERAL>, expected one of  "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" <EOF>

Environment

  • Red Hat Decision Manager (RHDM)
    • 7.13.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