Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<expression>
    <script>
        <language>http://midpoint.evolveum.com/xml/ns/public/expression/language#Groovy</language>
        <code>
            'Mr. ' + user.getFamilyName();
        </code>
    </script>
</expression>

Meaning of individual script expression fields is as follows:

Field

 

Description

language

optional

Language URL. Specifies the language in which the expression is written. If not specified it defaults to Groovy language.

returnType

optional

TODO

relativityMode

optional

TODO See below for more details. If not specified and allowed by the expression usage it defaults to relative mode.

code

Expression code. Depends on the script language used for the expression. This is usually a string, but it also may be an XML. Please note that the code is embedded in the XML therefore proper XML escaping is required

...

See Expression page for more generic information about the use of variables in expressions.

Functions

Absolute and Relative Script Expressions

...