Can we delete Operator record when people leaving organization.
There is no option for me to disable the operator ID from accessing the system when people leave organization. I can reset the password, but ideally if I can delete the record, it would be good. However, I am not sure of the impact of deleting operator id... e.g. there might be existing work assignment etc.
The helps says "Deletion of an Operator ID instance is allowed when there are open assignments on that operator's worklist, or when that Operator ID is referenced in another data instance (such as an organization unit or workbasket)."
I did not understand what it is trying to say. Sorry for my ignorance but can you please explain in detail.
I think this is documentation bug, ideally it should be:
"Deletion of an Operator ID instance is NOT allowed when there are open assignments on that operator's worklist, or when that Operator ID is referenced in another data instance (such as an organization unit or workbasket)."
Arvind shared link will be really useful. If your intention is to stop the user from accessing the system you can simply remove all the AG records from his operator id, then he won't be able to log into any of the portals.
If you do not wish to have the operator in the application then you may choose to do the below steps :
1.As you are not supposed to delete an operator with open assignments , it is better to check if he has open assignment.
Execute the following SQL in your Data schema.Substitute the pc_work with the work table that your application uses and you may choose worklist or workbasket depending on
select a.pzinskey,b.pxtasklabel,b.pxtaskname from pc_work a ,pc_assign_worklist b where a.pzinskey=b.pxrefobjectkey
Sample O/P :
You will now get an idea about the open assignment the operator has.If there are no rows as o/p the go ahead and delete the operatorid instance.If there are open assignments (as above) , go to step no. 2
2)Write an adhoc activity to delete the open assignments.
1.Obj-Browse with the same query that i had mentioned in step 1.It will give you a pxResults page with pzinskey,pxtasklabel and pxtaskname.
2.Using the pzinskey open the work object instance using obj-open-by-handle for all the instance in the page list , set the status as Resolved-completed and do an obj-save.