Skip to content

Scenario Generate EmployeeID

Anthony Marsiglia edited this page Dec 19, 2015 · 5 revisions

Employee ID Generator

Employee ID Generator: The Employee ID Generator uses a combination of Update Resource and Generate Unique Value Workflow Activities. This particular Workflow requires your FIM Environment to have a Resource in your FIM Environment called "Employee" as well as a custom Attribute Called "EmployeeID" If you need to assistance creating the "Employee" Resource or Creating and Binding Attributes within the FIM / MIM Portal, there are examples located on the Connector Space Blog

Prerequisites for this Employee ID Generator Workflow:

  1. Create the "Employee" Resource
  2. Create "Employee ID" attribute (Indexed String)
  3. Bind "Employee ID" attribute to the Employee Resource
  4. Bind "Employee ID" attribute to the User Resource
  5. Give Permissions to update new resource
  6. Give Permissions update Employee ID
  7. Create 1 Object within the Employee Resource
  • Set the Value of the Employee ID of the new Employee Resource Object with a value you wish to start the Employee ID Generator from.
  1. Create an All Employee Objects Set

Scenario Generate Employee ID 1

Scenario Generate Employee ID 2 Scenario Generate Employee ID 3

Scenario Generate Employee ID 4

Scenario Generate Employee ID 5

Employee ID Generator
1st Activity Action – FIMWAL2:Update Resources
Activity Display Name Employee ID Lookup
Advanced Features True
Query Resources True
Queries
Key Employee
XPath Filter /Employee
Activity Execution Condition
Iteration
Updates
Value Expression First([//Queries/Employee])
Target [//WorkflowData/Employee]
2nd Activity Action - FIMWAL2: Generate Unique Value
Activity Display Name Generate New Employee ID
Activity Execution Condition
Target for Generated Value [//WorkflowData/EmployeeID]
Conflict Filter /Person[EmployeeID='[//Value]']
Query LDAP for Conflicts False
Uniqueness Key Seed 1
Value Expressions Add(ConvertToNumber([//WorkflowData/Employee/EmployeeID]),ConvertToNumber([//UniquenessKey]))
3rd Activity Action – FIMWAL2:Update Resources
Activity Display Name Update Employee ID
Advanced Features False
Updates
Value Expression Target
[//WorkflowData/EmployeeID] [//Target/EmployeeID]
[//WorkflowData/EmployeeID] [//WorkflowData/Employee/EmployeeID]
Clone this wiki locally