Well, you can't write conditions in this way, and compile error which you see, it is actually parsing error for such condition
How you can change it, You should define some function which may do all this check or partially, just return some value for check.
To define such function, you should have your child for Ens.Rule.FunctionSet class, something like this
Class Test.Utils Extends Ens.Rule.FunctionSet
{
ClassMethod GetAt(value As %String = "", index As %String) As %String
{
if $isobject(value) {
quit value.GetAt(index)
}
quit ""
}
}
<rule name=""> <constraint name="msgClass" value="Test.TestMessage"></constraint> <when condition="GetAt(Document.myList,1)="AA""> <send transform="" target="DummyOperation"></send> <return></return> </when> </rule>
But your function should return final value for checking, and you can't use write so,
GetAt(Document.myList,1).property1="AA"
- Log in to post comments
