[midPoint] strange crach in groovy
Pascal Perichon
pascal.perichon at parisdescartes.fr
Fri Apr 17 12:35:59 CEST 2020
Hello,
the following groovy script in the condition statement crash:
/<attribute id="20">//
// <c:ref
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">ri:supannEntiteAffectation</c:ref>//
// <displayName>Affectation Fonctionnelle</displayName>//
// <limitations>//
// <minOccurs>0</minOccurs>//
// <maxOccurs>-1</maxOccurs>//
// </limitations>//
// <outbound>//
// <strength>strong</strength>//
// <source>//
//<c:path>$focus/extension/listeAffectations</c:path>//
// <set>//
// <condition>//
// <script
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xsi:type="c:ScriptExpressionEvaluatorType">//
// <code>//
///listeAffectations?.startsWith("HIE") //
// ||
listeAffectations?.startsWith("FUN")//
// ||
listeAffectations?.startsWith("HOP")//
// ||
listeAffectations?.startsWith("ETU")//
/// </code>//
// </script>//
// </condition>//
// </set>//
// </source>/
/ ...//
/
/ </outbound>/
/</attribute>/
with the follwing error:
/2020-04-17 11:45:09,219 [MODEL] [pool-3-thread-16] ERROR
(com.evolveum.midpoint.model.common.expression.script.ScriptExpression):
Expression error: Compilation error in (old) domain of listeAffectations
in mapping in outbound mapping for
{.../resource/instance-3}supannEntiteAffectation in
resource:u75-connecteur-LDAP-UP(LDAP UP): startup failed://
//(old) domain of listeAffectations in mapping in outbound mapping for
{.../resource/instance-3}supannEntiteAffectation in
resource:u75-connecteur-LDAP-UP(LDAP UP): 3: unexpected token: || @ line
3, column 45.//
// || listeAf//
// ^//
//
//1 error//
/
and this one works without problem (the same except that the '||' are at
the end of lines):
/<attribute id="20">//
// <c:ref
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">ri:supannEntiteAffectation</c:ref>//
// <displayName>Affectation Fonctionnelle</displayName>//
// <limitations>//
// <minOccurs>0</minOccurs>//
// <maxOccurs>-1</maxOccurs>//
// </limitations>//
// <outbound>//
// <strength>strong</strength>//
// <source>//
//<c:path>$focus/extension/listeAffectations</c:path>//
// <set>//
// <condition>//
// <script
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xsi:type="c:ScriptExpressionEvaluatorType">//
// <code>//
/////listeAffectations?.startsWith("HIE") ||//
//listeAffectations?.startsWith("FUN") ||//
//listeAffectations?.startsWith("HOP") ||//
//listeAffectations?.startsWith("ETU")//
/// </code>//
// </script>//
// </condition>//
// </set>//
// </source>/
//
/ ...//
/
//
/ </outbound>/
/</attribute>/
Did I missed something ?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200417/1e68f77c/attachment.htm>
More information about the midPoint
mailing list