Friday 14 October 2011

Launch a Workflow from OAF

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

}

1 comment:

  1. Hi Santhosh,

    I'm new to OAF customization and i have a requirment to integrate oracle workflow with customer creation OAF page, could you please help me in providing some input for displaying the workflow status in OAF page.

    Regards,
    Mark

    ReplyDelete