Invoking Workflow From OAF Page
Use the below method in the processFormRequest , on based on the button event.
if(pageContext.getParameter("submit")!=null)
{
String PItemType = "XXHRWF";
String PProcess = "XXPROC";
oracle.jbo.domain.Number pitekKeyNo =
pageContext.getApplicationModule(webBean).getSequenceValue("XX_TEST_SEQ");
String PItemKey = pitekKeyNo.toString(); // This can be a random item key generated
OANavigation wf = new OANavigation();
// Now create Workflow Process
wf.createProcess(pageContext, PItemType, PProcess, PItemKey);
// Set Sales Order Number
wf.setItemAttrText(pageContext, PItemType, PItemKey,"XXATTRIB", "OPERATIONS");
// Start Workflow Process
wf.startProcess(pageContext, PItemType, PProcess, PItemKey);
}
Use the below method in the processFormRequest , on based on the button event.
if(pageContext.getParameter("submit")!=null)
{
String PItemType = "XXHRWF";
String PProcess = "XXPROC";
oracle.jbo.domain.Number pitekKeyNo =
pageContext.getApplicationModule(webBean).getSequenceValue("XX_TEST_SEQ");
String PItemKey = pitekKeyNo.toString(); // This can be a random item key generated
OANavigation wf = new OANavigation();
// Now create Workflow Process
wf.createProcess(pageContext, PItemType, PProcess, PItemKey);
// Set Sales Order Number
wf.setItemAttrText(pageContext, PItemType, PItemKey,"XXATTRIB", "OPERATIONS");
// Start Workflow Process
wf.startProcess(pageContext, PItemType, PProcess, PItemKey);
}
No comments:
Post a Comment