Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
5.1.1.FINAL
-
None
Description
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:
Is this the same problem? Are there any workarounds for this?