Hi all,
Is there any limitation about the length of attribute's name when declare type in drl file?
<br />
<br />
I encountered a problem these days, I declared a new type in rule file, when fire rules, it always throw <strong>java.lang.ClassCaseException: test.obj cannot be cast to test.obj</strong>. As I inspected, this is caused by the length of an attribute's name is too long, it's 35 characters, if I remove this attribute, there's no exception.
<br />
<br />
Following is snippet of my rule file:
<br />
<pre><code>
package test
declare obj
@propertyReactive
type : String
name : String
attribute_name_too_long_reach_limitation: Boolean
end
rule "a"
dialect "mvel"
salience 0
no-loop
when
$obj:obj(type == "a")
then
modify ($obj) {name = "abc"};
end
</code>
</pre>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/Is-there-any-limitation-about-the-length-of-attribute-s-name-when-declare-type-in-drl-file-tp4026171.html">Is there any limitation about the length of attribute's name when declare type in drl file</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>