Download Sun Java System Identity Manager 7.0 Workflows, Forms, and Views

Transcript
<cond>
<and>
<notnull><ref>accounts[Exchange].firstname</ref></notnull>
<notnull><ref>accounts[Exchange].lastname</ref></notnull>
</and>
<concat>
<substr>
<ref>accounts[Exchange].firstname</ref>
<i>0</i>
<i>1</i>
</substr>
<ref>accounts[Exchange].lastname</ref>
</concat>
</cond>
The preceding code is structured as an if-then statement in other programming languages.
This cond expression has two arguments:
•
conditional expression
•
then expression
First, the conditional expression is evaluated. If the result of this expression is logically
true, the value of cond will be the value of the then expression. If the result of the
conditional expression is false, the value of cond will be null.
In this example, the cond statement ensures that values exist for two account attributes
before using them to calculate accountID. The Default expression will continue to be
evaluated each time the form is refreshed or saved until the prerequisites are finally set or
until the user provides a value in the field. The Default expression will not be evaluated if
the associated field contains a non-null value.
Deriving Field Values
A <Derivation> expression is similar to a <Default> expression except that it always
calculates a value for the field, even if the field already has a non-null value. This is
typically used to display a field whose value is a permutation of another field’s value. This
is a valuable design feature if the resource attribute value is encoded and would not be
obvious to the user.
451