[midPoint] order=2 with condition

Yakov Revyakin yrevyakin at gmail.com
Thu Mar 17 11:19:44 CET 2022


I moved the condition to Role 2 - this solves the problem.

On Wed, 16 Mar 2022 at 15:00, Yakov Revyakin <yrevyakin at gmail.com> wrote:

> Hi,
> Is it possible to have inducement with order=2 and condition based on
> order 2 focus attribute in a role?
> For example, Org 2 has Org 1 among its assignments. Role 1 has inducement
> of order 2 which assigns Role 2. Role 1 is assigned to Org 1.
> Can the definition of the inducement have a condition which is based on
> attributes of order=2 focus - org2 in my case?
>
> My version of condition says that costCenter is an attribute of order=1
> focus. I'd like to have a condition based on order=2 focus which is
> costCenter==link in my case.
>
>     <inducement>
>         <targetRef oid="efa447f8-8f45-4421-a463-5f2fd6a44580"
> relation="org:default" type="c:RoleType"/>
>         <order>2</order>
>         <focusType>c:OrgType</focusType>
>         <condition>
>             <source>
>                 <path>costCenter</path>
>             </source>
>             <expression>
>                 <script>
>                     <code>
>                         log.info(focus.costCenter);
>                         return focus.costCenter == "link";
>                     </code>
>                 </script>
>             </expression>
>         </condition>
>     </inducement>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20220317/a2368f3f/attachment.htm>


More information about the midPoint mailing list