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.

Add Comment
2 Answer(s)

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
Agile Angel Answered on May 24, 2021.

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”);

on May 24, 2021.

Hmm. I assume you checked if the user (that is triggering the PX) has access to Add acknowledgers manually, right? Your code seems fine

on May 24, 2021.
Add Comment

Yes. The user does have access

Agile User Answered on May 26, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.