First published on MSDN on Jan 15, 2016
In this Workflow Example we will demonstrate how to use the MIM WAL to build a Workflow that can be used to generate an Employee ID for a newly created user within the FIM Portal. This Workflow uses the following "WAL" Workflow Activities.
Prerequisites for this Posting
- read The MIMWAL (Custom Workflow Activity Library)
- Create a New Resource called Employee, you can use the following post for guidance
- Schema Management - Creating a New Resource
- Generate Unique Value Activity
- In the FIM Portal navigate to the Workflows Page
- Enter the name for your Workflow (I start all my workflows with an "_" which makes it easy to identify all non custom workflows.

- Select WAL: Update Resources

- Configure the 1st Workflow Activity
- Type in the name for the Activity that will be used as part of the Workflow
- In the Queries section add the following
- For Request Actor select Service Account
- In the Updates Section type the following
- First([//Queries/Employee])
- [//WorkflowData/Employee]


- For the 2nd Activity select WAL: Generate Unique Value

- Configure 2nd Workflow Activity
- Type in the name for the Activity that will be used as part of the Workflow
- Target for Generated Value type
- [//WorkflowData/EmployeeID]
- /Person[EmployeeID='[//Value]']
- Add(ConvertToNumber([//WorkflowData/Employee/EmployeeID]),ConvertToNumber([//UniquenessKey]))

- Select WAL: Update Resources
- For the 3rd Activity select WAL: Update Resources

- Configure 3rd Workflow Activity
- Type in the name for the Activity that will be used as part of the Workflow
- [//WorkflowData/EmployeeID]
- [//WorkflowData/EmployeeID]
- [//WorkflowData/Employee/EmployeeID]
