Skip to Content

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

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply