0% found this document useful (0 votes)
197 views

Rejection Reason Mandatory in Oracle Workflow

This document discusses requiring a rejection reason in Oracle Workflow. It checks the workflow notification for the result, and if it is rejected, it validates that a response reason was entered. If no reason is provided, it returns an error message stating a rejection reason is mandatory. Otherwise, it allows the workflow to continue processing.

Uploaded by

kumar_amit_99
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
197 views

Rejection Reason Mandatory in Oracle Workflow

This document discusses requiring a rejection reason in Oracle Workflow. It checks the workflow notification for the result, and if it is rejected, it validates that a response reason was entered. If no reason is provided, it returns an error message stating a rejection reason is mandatory. Otherwise, it allows the workflow to continue processing.

Uploaded by

kumar_amit_99
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Rejection reason mandatory in oracle workflow

l_nid := wf_engine.context_nid;
v_response_reason := wf_notification.getattrtext(l_nid,'XXWF_NOTE'); -- my response
attribute
v_result := WF_NOTIFICATION.GETATTRTEXT(L_NID, 'RESULT'); -- my result lookup
(approve / reject)
IF v_result = 'REJECTED' THEN
IF v_response_reason IS NULL THEN
RESULT := 'ERROR: You must enter Rejection Reason.';
RETURN;
END IF;
END IF;

You might also like