Email Notification handling
Workflow running Consistency Rules to handle Email accounts.
Email Notification handling is a mail-specific real-time workflow that runs consistency processing for email accounts inside DirX Identity. You use it when mail consistency rules, tag evaluation, and privilege resolution should handle entries from the configured user subtree instead of provisioning directly to an external target system.
The sample is generic because tscluster and tsresource are *. Its join activity applies consistency logic below rulesroot and provisionrulesroot and works on users below usersubtree.
The workflows in this reference are delivered as factory data and are loaded into the Connectivity configuration database during the initial configuration. They are samples: use the Identity Manager to copy a workflow into your own scenario and adapt the copy. Do not change the delivered objects, because a product update can replace them.
At a Glance
Name |
|
Category |
Target Realtime / MAIL |
Technology |
Java-based real-time workflow |
LDAP object class |
|
Workflow type |
|
Connected system / controller type |
- |
Configuration wizard |
|
Active in the factory data |
FALSE |
Factory data version |
7.0 |
Factory data path |
|
Prerequisites
-
You need mail consistency rules below
cn=Mail,cn=Consistency,cn=Default,cn=Rules,cn=Policies,cn=My-Company. -
You need provisioning rules below
cn=domain_name,cn=Rules,cn=Policies,cn=domain_nameand the affected users belowcn=subtree,cn=Users,cn=domain_name. -
The Java-based Server (IdS-J) must be able to access the Identity Store content that the workflow evaluates.
Workflow and Activities
| Activity | Type | Component description | Description | Ports |
|---|---|---|---|---|
|
|
|
Error Activity |
|
|
|
|
Activity for user resolution and account update. |
- |
Ports
| Activity | Port | Component description | Connector | Connected directory | Bind profile | SSL |
|---|---|---|---|---|---|---|
|
|
|
|
- |
- |
not set |
Configuration Parameters
| Parameter | Default value |
|---|---|
|
FALSE |
|
P0Y0M0DT0H0M0S |
|
* |
|
* |
| Parameter | Default value |
|---|---|
|
LDAP |
|
3 |
|
P0Y0M1DT0H0M0S |
|
P0Y0M0DT2H0M0S |
| Parameter | Default value |
|---|---|
|
dxmPassword |
| Parameter | Default value |
|---|---|
|
TRUE |
|
FALSE |
|
FALSE |
|
FALSE |
|
TRUE |
|
FALSE |
|
cn=domain_name,cn=Rules,cn=Policies,cn=domain_name |
|
ConsistencyCheck |
|
3 |
|
500 |
|
300 |
|
cn=Mail,cn=Consistency,cn=Default,cn=Rules,cn=Policies,cn=My-Company |
|
cn |
|
P0Y0M0DT0H15M0S |
|
500 |
|
10000 |
|
50 |
|
50 |
|
cn=subtree,cn=Users,cn=domain_name |
|
P0Y0M0DT0H30M0S |
A Java-based real-time workflow runs as a permanently loaded configuration in the Java-based Server (IdS-J). It is triggered by a request or an event rather than by a schedule. Each workflow consists of activities; an activity opens one port per system it talks to, and each port uses a connector to reach that system.
Most provisioning workflows contain a join activity that performs the actual work and an error
activity that receives requests which still fail after all retries and sends a notification about
them. The retrylimit, waitbeforeretry and timeout parameters of an activity control how often
and how long a failed request is retried before it is handed to the error activity.
The event port publishes change events over JMS, and the notify port sends e-mail notifications.
Neither port is bound to a connected directory.
The join activity is a PrivilegeResolutionController. It runs entirely inside IdS-J and therefore has no external workflow ports. With applyconsistencyrules and evaluatetags set to TRUE, the activity focuses on rule-driven mail handling instead of connector-based provisioning.
Because checkusers, checkrolespermissions, and checktsaccountsgroups are FALSE, the sample concentrates on consistency processing for the affected mail objects. If processing still fails after three retries with a 30-minute wait, the workflow routes the request to error, which sends the error notification through Message.
Operation
-
A request for mail consistency processing enters
Email Notification handling. -
The Java-based Server (IdS-J) starts the
joinactivity. -
joinevaluates tags and consistency rules fromrulesrootfor entries inusersubtree, sorted bysortattribute. -
When rule processing needs provisioning rule context,
joinusesprovisionrulesroot. -
After rule evaluation completes, the workflow returns control to normal DirX Identity processing of the affected mail objects.
-
Requests that fail permanently are handed to
error, which reports them by e-mail.
The workflow is delivered inactive (dxmActive is FALSE). Copy it into your own scenario, adapt the rule roots and activate the copy.