This content has been marked as final. Show 8 replies
you can use the assignment tab on process task for approval
below step may helps
1. assign the approver using Assignment tab of Disable user process task
2. write a scheduled task to identify those id which has to be inactive/disable (calculate the inactive period based on last lonon attribute)
3. call disable user task using scheduled task for those ids using API
you can schedule this scheduler on 30 minute basis(or sync with target recon frequency and timing)
I have a few more doubts regarding this. I require 2 level approval for this. But in the assignment tab, OIM does not let you add more than one assignee. How do I assign multiple approvers in the task?
And how do i call the disable user task in the scheduler? Should I write the disable User task in the Provisioning process of Flatfile recon?
I have managed to write a schedular for the above requirement. I am not using flatfile recon anymore for this. i have written a custom scheduler which fetches user ID directly from the flatfile and validates the expiry date from UD_ADUSER. Now I know at this point which user needs to be disabled and which not.
But since I need an approval process before disabling the users, i would need to call the approval process for the dormant users from this schedular. I am not able to figure out how can an approval task be called from a Scheduler. Or is there a different way to call approval task after the approval task completes.
Since, scheduler method Execute() is a void method, I cannot return anything to set a status of the scheduler in the end. Please suggest ways of achieving this.
use tcProvisioningOperationsIntf API.
public void addProcessTaskInstance(long plTaskKey,long plOrcKey)
plTaskKey - The key of the process task defined in process definition(nothing but MIL_KEY)
plOrcKey - The key of the process order instance
Use belo query to get MIL_KEY/plTaskKey before executing above method
String sqlquery="select mil.mil_key from mil,pkg,tos,obj " +
"where mil.mil_name = '<TASK_NAME>' " +
"and obj.obj_name='<RO NAME>' " +
"and obj.obj_key = pkg.obj_key " +
"and tos.pkg_key = pkg.pkg_key " +
"and mil.tos_key = tos.tos_key" ;
use below for db connection in oim 11g
similarly you can get the ORC_KEY and call this method for running process task using code. Make sure 'manual insert' and 'Allow Multiple' property is enabled for this task. if not do it using design console.