Skip to Content

how to change OnHold status of agreement within the master agreement to Inprocess by default

How to change OnHold status of Agreement within the Master Agreement to Inprocess by default using script during creation in sourcing.

Kindly look into this script this works for master agreement where default status is set as “Inprogress” but for agreement it will not set to “Inprogress”

statusObjRef = doc.getStatusRef();
printLogMessage(MAMSG+”MA Status Ref – “+statusObjRef,”1”);
statusHome = IBeanHomeLocator.lookup(session,statusObjRef);
status = statusHome.findUniqueByNameType(“In Process”, 10);
if(hasValue(status))
{
doc.setStatusRef(status.getObjectReference());
}

Be the first to leave a comment
You must be Logged on to comment or reply to a post.