376:
377: ----------------------------------------------------
378: l_debug_info := 'Retrieve profile option AME Enabled?';
379: ----------------------------------------------------
380: l_AMEEnabled := WF_ENGINE.GetItemAttrText(p_item_type,
381: p_item_key,
382: 'AME_ENABLED');
383:
384: IF (l_AMEEnabled = 'Y') THEN
385:
386: ------------------------------------------------------
387: l_debug_info := 'Retrieve Approver_ID Item Attribute';
388: -------------------------------------------------------
389: l_approver_id := WF_ENGINE.GetItemAttrNumber(p_item_type,
390: p_item_key,
391: 'APPROVER_ID');
392:
393: /*Call AME UpdateApprovalStatus2 api to let AME know the
434:
435: ----------------------------------------------------
436: l_debug_info := 'Retrieve profile option AME Enabled?';
437: ----------------------------------------------------
438: l_AMEEnabled := WF_ENGINE.GetItemAttrText(p_item_type,
439: p_item_key,
440: 'AME_ENABLED');
441:
442: IF (l_AMEEnabled = 'Y') THEN
444: C_WF_VERSION := AP_WEB_EXPENSE_WF.GetFlowVersion(p_item_type, p_item_key);
445: -- l_itemkey is the itemkey of the parent, need parent item key
446: -- to update the approval status
447: IF (C_WF_Version >= AP_WEB_EXPENSE_WF.C_R120_Version) THEN
448: l_itemkey := WF_ENGINE.GetItemAttrText(p_item_type,
449: p_item_key,
450: 'AME_MASTER_ITEM_KEY');
451: ELSE
452: l_itemkey := p_item_key;
454:
455: ------------------------------------------------------
456: l_debug_info := 'Retrieve Approver_ID Item Attribute';
457: -------------------------------------------------------
458: l_approver_id := WF_ENGINE.GetItemAttrNumber(p_item_type,
459: p_item_key,
460: 'APPROVER_ID');
461:
462: ------------------------------------------------------
461:
462: ------------------------------------------------------
463: l_debug_info := 'Retrieve Approver_Name Item Attribute';
464: -------------------------------------------------------
465: l_approver_name := WF_ENGINE.GetItemAttrText(p_item_type,
466: p_item_key,
467: 'APPROVER_NAME');
468:
469: ------------------------------------------------------
468:
469: ------------------------------------------------------
470: l_debug_info := 'Retrieve Forward_from_ID Item Attribute';
471: -------------------------------------------------------
472: l_forward_from_id := WF_ENGINE.GetItemAttrNumber(p_item_type,
473: p_item_key,
474: 'FORWARD_FROM_ID');
475:
476: ------------------------------------------------------
475:
476: ------------------------------------------------------
477: l_debug_info := 'Retrieve Forward_from_Name Item Attribute';
478: -------------------------------------------------------
479: l_forward_from_name := WF_ENGINE.GetItemAttrText(p_item_type,
480: p_item_key,
481: 'FORWARD_FROM_NAME');
482:
483: /*Call AME UpdateApprovalStatus api to let AME know the