[jboss-jira] [JBoss JIRA] Created: (JBRULES-3151) jaxb generated fact loaded into Guvnor throws errors when using the ' is contained in the comma separated list' operator

sreeram vadlamudi (JIRA) jira-events at lists.jboss.org
Fri Jul 22 20:00:23 EDT 2011


jaxb generated fact loaded into Guvnor throws errors when using the ' is contained in the comma separated list' operator
------------------------------------------------------------------------------------------------------------------------

                 Key: JBRULES-3151
                 URL: https://issues.jboss.org/browse/JBRULES-3151
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 5.2.0.CR1
         Environment: weblogic 10.3.3 and windows XP
            Reporter: sreeram vadlamudi
            Assignee: Mark Proctor


I have a jaxb generated class loaded through the model jar into Guvnor to be used as a fact in the Guided Decision Table editor.
 
When I use a field ACTIVITYCODE  of type String from the JAXB generated class  with 'is contained in the comma separated list'  operator, I get compilation errors. 
 
Unable to Analyse Expression ACTIVITYCODE == "A" || ACTIVITYCODE == "B": [Error: no such identifier: ACTIVITYCODE] [Near : {... ACTIVITYCODE == "A" || ACTIVI ....}] ^ [Line: 1, Column: 1]
 
But when I use equal to operator to compare value to just a string value, it compiles fine. 


3.      |       rule "Row 1 dds"
4.      |           ruleflow-group "None"
5.      |           dialect "mvel"
6.      |           when
7.      |               factClass : FACTCLASS( ACTIVITYCODE in ("A", "B"))
8.      |           then
9.      |               factClass.setRATE( "5.25" );
10.     |       end
 
The below rule compiles fine.
 
 
3.      |       rule "Row 1 dds"
4.      |           ruleflow-group "None"
5.      |           dialect "mvel"
6.      |           when
7.      |               factClass : FACTCLASS ( ACTIVITYCODE =="A") 
8.      |           then
9.      |               factClass.setRATE( "5.25" );
10.     |       end




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list