focus.assignment.map(a, a.isTargetRole(), a.targetRef.oid)
MidPoint Expression Language Examples
|
MidPoint Expression Language feature
This page describes configuration of MidPoint Expression Language midPoint feature.
Please see the feature page for more details.
|
MidPoint Expression Language (MEL) is an expression language, designed to support customization of midPoint functionality in an easy-to-use and secure way. This page lists examples of MEL usage in practical scenarios.
Assignments
Role OIDs
focus.assignment.map(a, a.isTarget('RoleType'), a.targetRef.oid)
focus.assignment.map(a, a.targetType() == 'RoleType', a.targetRef.oid)
Returns list of OIDs of all role assignments of the focus.
Relations
focus.assignment.map(a, a.hasOwnerRelation(), a.targetRef.oid)
focus.assignment.map(a, a.hasRelation('owner'), a.targetRef.oid)
focus.assignment.map(a, a.targetRelation() == 'owner', a.targetRef.oid)
Returns list of OIDs of all assignments of the focus that have owner relation.
See Also
Was this page helpful?
YES
NO
Thanks for your feedback