Hi All, With an old copy of Imperius (from last month) the following policy used to work but it does not with the current version.
Please let me know if there is something wrong with the syntax Import Class org.starmx.TestBean : tb ; Strategy Execute_All_Applicable; Policy { Condition { tb.seq < 5 } Decision { tb.setData("abc") } }:1; Policy { Declaration { var = tb.data; } Condition { //StringLength(ToString(var)) > 0 1 == 1 } Decision { tb.print(var) } }:1; Field "data" is of type Object in class TestBean and is accessed by getData and setData methods. The type of "data" used to be String and it worked fine, when I changed it to Object the decision part of the second sub-policy is not executed and the executePolicy returns null without any exception or log message. Actually, tb.print is not called. Also, in the condition part of the second sub-policy I am interested to check if "data" is not null, but I don't know how. I tried StringLength(ToString(var)) > 0 but it results in parsing error. Thanks, Reza