XAOATEST Code and Details ALL ORACLE APPS
XAOATEST Code and Details ALL ORACLE APPS
WF_ENGINE.CREATEPROCESS( itemtype,
itemkey ,
process
);
WF_ENGINE.STARTPROCESS ( itemtype,
itemkey
);
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.PUT_LINE('Error at LAUNCH_WORKFLOW: '||SQLERRM);
END LAUNCH_WORKFLOW;
END XXAOA_TEST_WF_PKG;
/
DECLARE
lvItemType VARCHAR2(80) := 'XAOATEST';
lvUserId NUMBER := -1;
lvItemKey VARCHAR2(10);
vErrorMsg VARCHAR2(2000);
vErrorCode NUMBER;
BEGIN
lvItemKey := 'XAOA-01'; -- This should be unique value
xxaoa_test_wf_pkg.launch_workflow( itemtype => lvItemType,
itemkey => lvItemKey,
process => 'AOAMAIN_PROCESS' -- Main Runnable process name
);
COMMIT; -- Use commit if we need to see the WF Status from Front End from workflow Admin
Resp
EXCEPTION
WHEN OTHERS
THEN
vErrorCode := SQLCODE;
vErrorMsg := SQLERRM(SQLCODE);
RAISE_APPLICATION_ERROR(20001, vErrorMsg);
END;
/
SELECT *
FROM wf_items
WHERE item_type = 'XAOATEST';
Result:
Result:
If you are running this Script outside of Oracle Applications like Running from any Oracle IDE then
run the Workflow Background Process for your Item type to save time to Kickoff the workflow.