https://www.youtube.com/watch?v=wFItm6oitnQ&list=PL6B0E7rAu9t41_BdyFXg0CutDC2Q6wDtD&index=2
Our example provisioning process is such a long process. We
have new hire and re-hire process. The provisioning process has 3 sub-processes
inside:
§
Sub-process1: Calling web service from HR system
to get list of new employees.
§
Sub-process 2:
o
For new hire: Create new user and account.
o
For re-hire: setup attributes of user and
account.
§
Sub-process 3: Calling Ticket system and delay enabling
user/account until hire date.
The real implementation, we have
to test provisioning each employee first and then we will test the list of
employees. So this chapter will implement on step2: new-hire.
This chapter, you will learn how to:
§
Learn business logic task (BLTH) programming
§
Initial data on screen by BLTH
§
Validate input by BLTH
§
Capture input from screen by BLTH
§
Search user by API
§
Share session attributes between BLTH, workflow
and listener
§
Learn workflow agent script by java programming
§
Create routing path in workflow
§
Create user by API
§
Add provisioning role by API
§
Develop listener API capture events.
§
Add account by API
§
Generate event and attached workflow by API
§
Exception handling
3.1 Requirement
The requirements
of new hire can be written as steps:
§
Step1: Accept
new employee information:
o
Employee number
o
First Name
o
Last Name
o
Office
o
Hire Date, format is MM/dd/yyyy
§
Step2: Search employee number
o
If employee number is not found, start new hire
process.
§
Step 3: Start workflow and select routing path
to new hire process.
§
Step 4: Create User
o
Generate NT Login
o
Get OU
§
Step 5: Send email to inform IDM admin: there is
new user created.
§
Step 6: Add provisioning Role: BookPrj.Employee
§
Step 7: Create account
§
Step 8: Call workflow for Ticket System and
delay execution.
After step 8, we will implement in
next chapter, Workflow and Integration.
Exception
By technical term, for synchronous
phase if there are any errors occur we will show message on screen after submitted.
For asynchronous phase, we will send email to IDM administrator.
Error
|
Action
|
Search user
not found
|
Display
error message and stop process
|
Incorrect
format of hire date
|
Display
error message and stop process
|
Create
user fail
|
Send email
to IDM administrator and stop process
|
Add
provisioning fail
|
Send email
to IDM administrator and stop process
|
Create
account fail
|
Send email
to IDM administrator and stop process
|
Please
see details about synchronous and asynchronous phase from book volume I or the
official document.
END OF SAMPLE
END OF SAMPLE
No comments:
Post a Comment