[jboss-jira] [JBoss JIRA] Created: (JBRULES-2832) Save All Failed org.drools.ide.common.client.modeldriven.brl.CompositeFieldConstraint cannot be cast to org.drools.ide.common.client.modeldriven.brl.SingleFieldConstraint

Dirk Hermanns (JIRA) jira-events at lists.jboss.org
Wed Dec 15 12:18:18 EST 2010


Save All Failed org.drools.ide.common.client.modeldriven.brl.CompositeFieldConstraint cannot be cast to org.drools.ide.common.client.modeldriven.brl.SingleFieldConstraint
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: JBRULES-2832
                 URL: https://issues.jboss.org/browse/JBRULES-2832
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-eclipse
    Affects Versions: 5.1.1.FINAL
         Environment: Ubuntu Linux, Eclipse 3.5.2
            Reporter: Dirk Hermanns
            Assignee: Mark Proctor


When creating a guided rule with a composite constraint, the editor failes to paint the selection correctly.
The code created is as follows:

<rule>
  <name>TestRule</name>
  <modelVersion>1.0</modelVersion>
  <attributes/>
  <metadataList/>
  <lhs>
    <fact>
      <constraintList>
        <constraints>
          <compositeConstraint>
            <compositeJunctionType>||</compositeJunctionType>
            <constraints>
              <fieldConstraint>
                <constraintValueType>0</constraintValueType>
                <fieldName>myValue</fieldName>
                <fieldType></fieldType>
                <expression>
                  <parts/>
                </expression>
              </fieldConstraint>
              <compositeConstraint>
                <compositeJunctionType>All of (And)</compositeJunctionType>
              </compositeConstraint>
            </constraints>
          </compositeConstraint>
        </constraints>
      </constraintList>
      <factType>MyPojo</factType>
    </fact>
  </lhs>
  <rhs/>
</rule>

When trying to save afterwards, we get the following error message:

Save Failed
org.drools.ide.common.client.modeldriven.brl.CompositeFieldConstraint cannot be cast to org.drools.ide.common.client.modeldriven.brl.SingleFieldConstraint

When we have brls created in guvnor and try to open it in Eclipse IDE with Drools Plugin 5.1.1, we got the same
Error Message. I already found this message in Jira for 3.x Version of Drools:

https://issues.jboss.org/browse/JBIDE-6247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Is this the same problem? Are there any workarounds for this?

-- 
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