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());
}