Method call with parameters in conditions using decision table

Solution Verified - Updated -

Issue

In the condition column of the excel decision true, i am trying to call a function, not a bean property, which take takes a parameter.

I am running into the following error:

[10,35]: [ERR 101] Line 10:35 no viable alternative at input '"language"' in rule "Agent Skills Rule_12" in pattern TaskSkillInfo
[10,47]: [ERR 102] Line 10:47 mismatched input '==' expecting ')' in rule "Agent Skills Rule_12" in pattern TaskSkillInfo

My condition is as follows:

task:TaskSkillInfo(getSkillValue("Language")=="e")

Is there a specific syntax that needs to be specified when using function calls in the condition column?

Here is the desired condition in DRL:

global AssigneeList resTO;
#From row number: 12
rule "Agent Skills Rule_12"
   
    when
        task:TaskSkillInfo(getSkillValue("Language")=="e")
    then
        resTO.add("test");
end

Environment

Business Rules Management System (BRMS) 5.0.2

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