<policy oid="bd15d77e-f31d-47ac-a294-cb309cc09103"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
    <name>Approval by application owner</name>
    <description>Owner(s) of applications included in request must approve the request.</description>
    <assignment>
        <identifier>org-approval-policies</identifier>
        <targetRef oid="e7a48bb0-5361-4862-bf44-cd970c7ad021" type="OrgType"/>
    </assignment>
    <inducement>
        <policyRule>
            <name>approval-by-application-owner</name>
            <policyConstraints>
                <assignment/>
            </policyConstraints>
            <policyActions>
                <approval>
                    <compositionStrategy>
                        <order>70</order>
                    </compositionStrategy>
                    <approvalSchema>
                        <stage>
                            <name>Application owners (all)</name>
                            <approverExpression>
                                <trace>true</trace>
                                <script>
                                    <code>midpoint.getTODO(object)</code>
                                </script>
                            </approverExpression>
                            <evaluationStrategy>allMustApprove</evaluationStrategy>
                            <outcomeIfNoApprovers>reject</outcomeIfNoApprovers>
                        </stage>
                    </approvalSchema>
                </approval>
            </policyActions>
        </policyRule>
    </inducement>
</policy>
