130: );
131:
132: d_position := 30;
133:
134: WF_ENGINE.createProcess
135: ( ItemType => g_ITEMTYPE,
136: ItemKey => l_ItemKey,
137: process => 'PO_DS_BUYER_ACCEPTANCE_PROCESS'
138: );
219:
220: d_position := 80;
221:
222: -- Start the workflow process
223: WF_ENGINE.startProcess
224: ( ItemType => g_ITEMTYPE,
225: ItemKey => l_ItemKey
226: );
227:
459: aname => 'BUYER_ACCEPTANCE_REQUIRED'
460: );
461:
462: IF (l_accept_required = FND_API.G_TRUE) THEN
463: resultout := WF_ENGINE.eng_completed || ':Y';
464: ELSE
465: resultout := WF_ENGINE.eng_completed || ':N';
466: END IF;
467:
461:
462: IF (l_accept_required = FND_API.G_TRUE) THEN
463: resultout := WF_ENGINE.eng_completed || ':Y';
464: ELSE
465: resultout := WF_ENGINE.eng_completed || ':N';
466: END IF;
467:
468: IF (PO_LOG.d_proc) THEN
469: PO_LOG.proc_end (d_module);
502: aname => 'TRANSFER_IF_AUTOACCEPT_ALL'
503: );
504:
505: IF (l_transfer_flag = FND_API.G_TRUE) THEN
506: resultout := WF_ENGINE.eng_completed || ':Y';
507: ELSE
508: resultout := WF_ENGINE.eng_completed || ':N';
509: END IF;
510:
504:
505: IF (l_transfer_flag = FND_API.G_TRUE) THEN
506: resultout := WF_ENGINE.eng_completed || ':Y';
507: ELSE
508: resultout := WF_ENGINE.eng_completed || ':N';
509: END IF;
510:
511: IF (PO_LOG.d_proc) THEN
512: PO_LOG.proc_end (d_module);
601: x_wf_role_name => l_lock_owner_wf_role,
602: x_wf_role_name_dsp => l_lock_owner_wf_role_dsp
603: );
604:
605: WF_ENGINE.SetItemAttrText
606: ( itemtype => itemType,
607: itemkey => itemKey,
608: aname => 'DRAFT_OWNER_WF_ROLE',
609: avalue => l_lock_owner_wf_role
608: aname => 'DRAFT_OWNER_WF_ROLE',
609: avalue => l_lock_owner_wf_role
610: );
611:
612: WF_ENGINE.SetItemAttrText
613: ( itemtype => itemType,
614: itemkey => itemKey,
615: aname => 'DRAFT_OWNER_NAME_DSP',
616: avalue => l_lock_owner_wf_role_dsp
926: PO_LOG.stmt (d_module, d_position, 'l_any_lines_get_rejected', l_any_lines_get_rejected);
927: END IF;
928:
929: IF (l_any_lines_get_rejected = 'Y') THEN
930: resultout := WF_ENGINE.eng_completed || ':Y';
931: ELSE
932: resultout := WF_ENGINE.eng_completed || ':N';
933: END IF;
934:
928:
929: IF (l_any_lines_get_rejected = 'Y') THEN
930: resultout := WF_ENGINE.eng_completed || ':Y';
931: ELSE
932: resultout := WF_ENGINE.eng_completed || ':N';
933: END IF;
934:
935: IF (PO_LOG.d_proc) THEN
936: PO_LOG.proc_end (d_module);
1415: aname => 'NOTE_TO_APPROVER',
1416: avalue => SUBSTRB(p_note_to_approver, 1, 480)
1417: );
1418:
1419: WF_ENGINE.CompleteActivity
1420: ( itemType => g_ITEMTYPE,
1421: itemKey => l_itemKey,
1422: activity => l_activity,
1423: result => l_activity_result