Example: Using a Workflow to Schedule LDAP Synchronization

You can create a scheduled workflow to run LDAP connection synchronization at regular intervals.

For example, configure a workflow to synchronize a Trusted Agent LDAP connection at 24 hour intervals, and notify selected users if the synchronization is started or has failed.

Creating a Schedule Entry Workflow

1.Create a schedule for the synchronization, see Creating a Schedule.

2.From the Configuration console, click Build > Workflow > Workflows to open the Workflows workspace.

3.Click Add new.... The Add New Workflow page appears.

4.Enter the parameters.

ParameterDescription
Business ObjectThe business object. Choose one from the drop-down list. In this example, choose ScheduleEntry.
List NameA unique name for the workflow object, for example TaLdapSynch.
Display NameA name that appears on workspaces, for example TA LDAP Synch.
DescriptionA brief description of what the workflow does.

5.Click Save. The workflow is created.

6.Click Add Version. First version of the workflow is created and the Workflow Designer appears.

7.Click Configuration to open the Workflow Configuration dialog.

8.Select Trigger Definition, and then select the schedule you created from the Use Schedule Definition drop-down field.

9.Drag the following blocks onto the Workflow Designer:

Start

LDAP Sync

Notification x 2

Stop

workflow diagram for trusted agent LDAP automated synchronization

10.Link the blocks as shown.

11.Define the properties for each block and save them. Double-click the block to open the properties dialog.

LDAP Sync Block Parameters Value
Title Enter a title to appear on the block.
LDAP Configuration Name Select the LDAP configuration to apply the scheduled synchronization to.
Notification Block Parameters Value
Title Enter a title to appear on the block.
From Add the email address for the sender, for example "[email protected]".
To Add the email recipients email address. You can add a hard address, or you can use an expression. for example "$(GetGlobal("ServiceDeskMgrEmailAddress"))".
CC and BCC Add email addresses to these fields if required.

Subject

Add a subject line.

Body

Add the body message.

12.Select the Validate before saving checkbox to validate the workflow before it is saved.

13.Click Save. The workflow is saved and now appears on the workflow list.

If validation fails. see Validating Workflows for further information.