[midPoint] High-Order inducement with custom relation

Martin Hoffmann Martin.Hoffmann at rohde-schwarz.com
Wed Nov 13 16:49:17 CET 2019


Hi there,

I am trying to do an high-order inducement:

User ---assignment (relation: “extension:myRelation”) ---> Role A ---assignment---> Archetype B

In my Archetype there is the following inducement:
    <inducement id="14">
        <focusMappings>
            <mapping id="15">
                <name>Testmapping</name>
                <authoritative>true</authoritative>
                <strength>strong</strength>
                <source>
                    <c:path>$immediateRole/name</c:path>
                </source>
                <expression>
                    <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>
                              return "HELLO"
                        </code>
                    </script>
                </expression>
                <target>
                    <c:path>$focus/extension/rsJobFunction</c:path>
                </target>
            </mapping>
        </focusMappings>
        <order>2</order>
        <focusType>c:UserType</focusType>
    </inducement>

This does work when Role A is assigned to the User with default relation but does not work when the relation is my custom one.
Adding an orderConstraint on relation=extension:myRelation causes it to stop working for the default relation, but it does not work for the extension relation either.
Am I missing something there or is this a bug? Maybe someone can give me a hint ☺

Best regards,
Martin Hoffmann





Content provided within this e-mail including any attachments, is for the use of the intended recipients and may contain Rohde & Schwarz company restricted information. Any unauthorized use, disclosure, or distribution of this communication in whole or in part is strictly prohibited. If you are not the intended recipient, please notify the sender by reply email or by telephone and delete the communication in its entirety.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20191113/867e145c/attachment.htm>


More information about the midPoint mailing list