Is it possible to add an Acknowledger to a workflow from a PX?
From a Java PX, I know it is possible to add approvers and observers but is it possible to add acknowledgers? If so, please provide code to do so.
Hello
I haven’t tried this personally. but i see the following methods available for IRoutable
addReviewers(IStatus status, Collection approvers, Collection observers, Collection acknowledgers, boolean urgent, String comment)
changeStatus(IStatus newStatus, boolean auditRelease, String comment, boolean notifyOriginator, boolean notifyCCB, Collection notifyList, Collection approvers, Collection observers, Collection acknowledgers, boolean urgent)
So, you should be able to do this
- Raj
Thank you for you answer.
I used the following code. It executed without errors but it did not add the Acknowledgers. Do you see anything wrong with the code?
IUser user = (IUser)session.getObject(IUser.OBJECT_TYPE, “testuser”);
Collection userCollection=new ArrayList();
userCollection.add(user);
MCC_Object.addReviewers(MCC_Object.getStatus(), null, null, userCollection, true, “Adding acknowledger”);