Versions Compared

Key

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

...

Code Block
languagexml
titleApproval by manager
<role oid="834bf178-30fc-11e8-addd-1fc1464266f5">
        <name>meta-role-policy-assignment-approval-manager</name>
        <subType>policy<<subtype>policy</subType>subtype>
        <displayName>Assignment approval by user's manager</displayName>
        <!-- assignment of this metarole to the appropriate org would probably be here -->
        <inducement>
            <policyRule>
                <policyConstraints>
                    <assignment>
                        <operation>add</operation>
                    </assignment>
                </policyConstraints>
                <policyActions>
                    <approval>
                        <compositionStrategy>
                            <order>100</order>
                        </compositionStrategy>
                        <approvalSchema>
                            <level>
                                <name>User's manager</name>
                                <approverExpression>
                                    <script>
                                        <code>midpoint.getManagersOidsExceptUser(object)</code>
                                    </script>
                                </approverExpression>
                                <evaluationStrategy>firstDecides</evaluationStrategy>
                                <outcomeIfNoApprovers>reject</outcomeIfNoApprovers>
                            </level>
                        </approvalSchema>
                    </approval>
                </policyActions>
            </policyRule>
        </inducement>
</role>

...

Code Block
languagexml
titleApproval by approver
<role oid="0851dd7a-30fc-11e8-88fe-3796232f0574">
        <name>meta-role-policy-assignment-approval-role-approver</name>
        <subType>policy<<subtype>policy</subType>subtype>
        <displayName>Assignment approval by any role approver</displayName>
        <!-- assignment of this metarole to the appropriate org would probably be here -->
        <inducement>
            <policyRule>
                <policyConstraints>
                    <assignment>
                        <operation>add</operation>
                    </assignment>
                </policyConstraints>
                <policyActions>
                    <approval>
                        <compositionStrategy>
                            <order>200</order>
                        </compositionStrategy>
                        <approvalSchema>
                            <level>
                                <name>Role approver</name>
                                <approverRelation>approver</approverRelation>
                                <evaluationStrategy>firstDecides</evaluationStrategy>
                                <outcomeIfNoApprovers>reject</outcomeIfNoApprovers>
                            </level>
                        </approvalSchema>
                    </approval>
                </policyActions>
            </policyRule>
        </inducement>
</role>

...