This section provides an example of how to develop validation and transformation scripts to synchronize from a source.
The example will based on a simple source table shown below.
Synchronization Configuration
Validation Script
Transformation Script
As described in earlier sections, the transformation script is responsible for "transforming" data from a source system to objects that can be processed by OpenIAM. Its also the place where we can apply business rules.
The synchronization framework passes in the following variable:
Variable Name | Data Type | Description |
|---|---|---|
isNewUser | Boolean | Indicates if this is a new user |
user | User | If this is an existing user, then this object will be populated |
principalList | List<Login> | List of identities for an existing user |
userRoleList | List<Role> | List of Roles that this user belongs to |
The transformation script must extend AbstractTransformScript and implement the following method:
public int execute(LineObject rowObj, ProvisionUser pUser)
rowObj represents a single row of data from the source system
pUser is that object that we need to populate. Once this object has been populated it will be passed along to the provisioning service.
