How to get the approver name from a Promotion Request and update a document IBA value with it?
Hello Everyone.
I am trying to get the approver's name from a promotion request and assign it to an IBA inside a wt.doc.WTDocument. Does anyone know a straight forward way to accomplish that? I am not really versed in JAVA so I'd appreciate if you also could provide a code snippet.
I've tried the following inside the "complete" transition from an OOTB promotion request:
1- created a variable called "documenApprover" that matches the IBA internal name.
wt.doc.WTDocument qop = (wt.doc.WTDocument)primaryBusinessObject;
com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(qop,null,null,null);
obj.load("documentApprover");
Object approverValue = obj.get("documentApprover");
documentApprover = approverValue.toString();
I'm getting a message saying that wt.maturity... cannot be cast to wt.doc.....
Anyone can help me here please?
Thank you very much!!

