Hi!
Can anybody help me with that?
I have this sample e4x variable: "e4xList = <list><item>First</item><item>Second</item><item>Third</item><item>Fourth</item></list>;".
I need to extract the list of nodes corresponding to this filter expression: "e4xList.item.(childIndex() < 3)"
The filter is built according to ECMA-357 standard, but it doesn't work. Workflow fails with the message: "ReferenceError: "childIndex" is not defined."
If I call "childIndex()" function directly on some node like "e4xList.item[1].childIndex()" it works properly, so the function childIndex() is defined.
After some googling I found the information that this is known issue with Rhino engine and the workaround is to use this syntax for filter expression: e4xList.item.(function::childIndex() < 3)
However this doesn't work either - workflow doesn't pass script syntax validation.
Is there a way to construct such kind of filters at all?
Thank you.