Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

This mechanism is used to notify users about relevant changes in midPoint and/or connected resources. For example, a user (or user's boss, or the person who requested the operation, the security manager, etc) may be notified when one of user's accounts is created, modified, or removed. Or, when the midPoint user record is created, when the password is changed, or when he has a new work item to process. There are many such situations imaginable.

Currently there are three basic kinds of notifications:

  1. User notifications. These are related to midPoint user record, e.g. its creation, modification or removal.
  2. Account notifications. These are related to accounts on resources, e.g. creation, modification, or removal of such an account.
  3. Workflow notifications. These are generated e.g. when a work item is created or completed, or when a workflow process instance is started or finished.

Configuration

Configuration of notifications is currently done within SystemConfiguration object (see the schema in SVN trunk). Some examples are show below:

<notificationConfiguration>

    <!-- this event handler sends accounts passwords (when created or changed) via SMS to the account owner telephone number, if known -->
    <accountPasswordNotifier>
        <recipientExpression>
            <value>requestee.getTelephoneNumber()</value>
        </recipientExpression>
        <transport>sms</transport>
    </accountPasswordNotifier>



        <mail>
            <redirectToFile>mail-notifications.log</redirectToFile>
        </mail>
        <sms name="file">
            <gateway name="file">
                <url>
                    <script>
                        <code>https://int-esb1.uniba.sk:3005/sendMessage?applicationKey=" + readFile("key.txt") + "&amp;phoneNumber=" + to + "&amp;messageText=" + encodedMessageText + "&amp;testMode=true"</code>
                    </script>
                </url>
                <redirectToFile>sms-notifications.log</redirectToFile>
            </gateway>
        </sms>
    </notificationConfiguration>




<notificationConfiguration>
    <eventHandlingChain>
        <statusFilter>
            <status>success</status>
        </statusFilter>
        <simpleAccountNotifier>
            <subjectPrefix>[midPoint] </subjectPrefix>
            <levelOfDetail>1</levelOfDetails>
            <channel>mail</channel>
        </simpleAccountNotifier>
    </eventHandlingChain>
    <eventHandlingChain>
        <statusFilter>
            <status>success</status>
        </statusFilter>
        <operationFilter>
            <operation>add</operation>
        </operationFilter>
        <simpleAccountNotifier>
            <levelOfDetail>0</levelOfDetails>
            <channel>sms</channel>
        </simpleAccountNotifier>
    </eventHandlingChain>
    <eventHandlingChain>
        <userInitialPasswordNotifier>
            <channel>sms</channel>
        </userInitialPasswordNotifier>
    </eventHandlingChain>
    <c:mail>
        <c:server>
            <c:host>localhost</c:host>
        </c:server>
        <c:defaultFrom>admin@evolveum.org</c:defaultFrom>
    </c:mail>
</notificationConfiguration>

  • No labels