[jboss-jira] [JBoss JIRA] (DROOLS-1461) In operator doesn't work with variable

Anton Giertli (JIRA) issues at jboss.org
Fri Mar 3 03:46:00 EST 2017


Anton Giertli created DROOLS-1461:
-------------------------------------

             Summary: In operator doesn't work with variable
                 Key: DROOLS-1461
                 URL: https://issues.jboss.org/browse/DROOLS-1461
             Project: Drools
          Issue Type: Bug
            Reporter: Anton Giertli
            Assignee: Edson Tirelli
         Attachments: operators.zip

This works just fine:


{code:java}
rule "checkFirstName"
    dialect "mvel"
    when
        Message( message in ( "anton","giertli") )
    then
        System.out.println("LHS OK");
end
{code}

But rule like this, won't fire:

global java.util.List $myGlobal;
 

{code:java}
rule "checkFirstName"
    dialect "mvel"
    when
        Message( message in ( $myGlobal) )
    then
        System.out.println("LHS OK");
end
{code}




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list