[midPoint] Re. Referring to resource variable inside expression.
Deepak Natarajan
dnataraj at trilobytesystems.com
Thu Jan 2 14:56:46 CET 2014
OK, I got this to work with
tokenize($c:input, "/")[last()]
which is fine. I wonder why referring to the ref directly did not work....
> Deepak Natarajan <mailto:dnataraj at trilobytesystems.com>
> January 2, 2014 at 3:50 PM
>
> Hi -
>
> I'm struggling with a simple evaluation (I've removed namespace
> declarations for readability) :
>
> <attribute>
> <ref>ri:orgdesc</ref>
> <inbound>
> <expression>
> <script>
>
> <language>http://www.w3.org/TR/xpath/</language>
> <code ...>
>
> tokenize($account/attributes/ri:orgdesc,"/")[last()]
> </code>
> </script>
> </expression>
> <target>
>
> <path>$user/extension/apos:aposUnitAttributes</path>
> </target>
> </inbound>
> </attribute>
>
> I've tried everything, but the variable passed to the XPath tokenize
> function is always nil (I know the function works correctly, since I
> use it elsewhere, and using a literal string above produces the
> correct results)
>
> I've tried including a <source> before the expression with an explicit
> <name> but that doesn't seem to work either.
>
> Thanks for any input! - I'm using build Version: 2.3-SNAPSHOT,
> describe: git-v2.3devel-383-g6ef8f72
>
> BR/Deepak
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20140102/7e1dd142/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20140102/7e1dd142/attachment.jpg>
More information about the midPoint
mailing list