public void launchWorkFlowFromOAF(OAPageContext pageContext)
{
String wfItemType = "XXSR";
String wfProcess = "SR_MAIN_PROCESS";
OADBTransaction transaction = getOADBTransaction();
String Sr_No ;
String wfItemKey = " ";
Sr_No = pageContext.getParameter("sr_no");
wfItemKey = Sr_No+ transaction.getSequenceValue("xxsr_key_s.NEXTVAL").toString();
OANavigation wfClass = new OANavigation();
// Create Workflow Process
wfClass.createProcess(pageContext, wfItemType, wfProcess, wfItemKey);
// Set Number Attribute: SR_NO
wfClass.setItemAttrNumber(pageContext,
wfItemType,
wfItemKey,
"SR_NO",
Sr_No);
// Start Workflow Process
wfClass.startProcess(pageContext, wfItemType, wfProcess, wfItemKey);
}
{
String wfItemType = "XXSR";
String wfProcess = "SR_MAIN_PROCESS";
OADBTransaction transaction = getOADBTransaction();
String Sr_No ;
String wfItemKey = " ";
Sr_No = pageContext.getParameter("sr_no");
wfItemKey = Sr_No+ transaction.getSequenceValue("xxsr_key_s.NEXTVAL").toString();
OANavigation wfClass = new OANavigation();
// Create Workflow Process
wfClass.createProcess(pageContext, wfItemType, wfProcess, wfItemKey);
// Set Number Attribute: SR_NO
wfClass.setItemAttrNumber(pageContext,
wfItemType,
wfItemKey,
"SR_NO",
Sr_No);
// Start Workflow Process
wfClass.startProcess(pageContext, wfItemType, wfProcess, wfItemKey);
}
Hi ,
ReplyDeleteI am getting
OADBTransaction transaction = getOADBTransaction(); Method not found, even though I had add below import command
import oracle.apps.fnd.framework.server.OADBTransaction;