1: PACKAGE BODY FUN_INITIATOR_WF_PKG AS
2: /* $Header: funwintb.pls 120.41 2011/05/16 20:16:38 jmary ship $ */
3:
4:
5: -- Set workflow item attributes for the process
245: elsif (INSTR(l_event_name, 'oracle.apps.fun.manualtrx.approval.receive')<>0) then
246: l_status_code :='APPROVED';
247:
248: -- set the event key for the AR/GL transfer event
249: l_event_key :=FUN_INITIATOR_WF_PKG.generate_key(p_batch_id =>l_batch_id,
250: p_trx_id => l_trx_id);
251:
252: wf_engine.setitemattrtext(itemtype,
253: itemkey,
299:
300: -- Rcords this function call in the error system
301: -- in the case of an exception.
302:
303: wf_core.context('FUN_INITIATOR_WF_PKG', 'SET_ATTRIBUTES',
304: itemtype, itemkey, to_char(actid), funcmode);
305:
306: END SET_ATTRIBUTES;
307:
410: END IF;
411:
412: EXCEPTION
413: WHEN OTHERS THEN
414: WF_CORE.Context('FUN_INITIATOR_WF_PKG', 'UPDATE_STATUS',
415: itemtype, itemkey, actid, funcmode);
416: RAISE;
417:
418:
994:
995: WHEN OTHERS THEN
996: -- Rcords this function call in the error system
997: -- in the case of an exception.
998: wf_core.context('FUN_INITIATOR_WF_PKG', 'TRANSFER_AR',
999: itemtype, itemkey, to_char(actid), funcmode);
1000:
1001: END TRANSFER_AR;
1002:
1117:
1118: -- Rcords this function call in the error system
1119: -- in the case of an exception.
1120:
1121: wf_core.context('FUN_INITIATOR_WF_PKG', 'CHECK_AR_SETUP',
1122: itemtype, itemkey, to_char(actid), funcmode);
1123:
1124: RAISE;
1125:
1224: p_parameterlist=>l_parameter_list_out);
1225:
1226: -- generate the event key
1227:
1228: l_event_key := FUN_INITIATOR_WF_PKG.GENERATE_KEY
1229: (p_batch_id=>l_trans.batch_id,
1230: p_trx_id=>l_trans.trx_id);
1231:
1232:
1253:
1254: -- Rcords this function call in the error system
1255: -- in the case of an exception.
1256:
1257: wf_core.context('FUN_INITIATOR_WF_PKG', 'GET_INVOICE',
1258: p_event.getEventName(), p_subscription_guid);
1259: WF_EVENT.setErrorInfo(p_event, 'ERROR');
1260: return 'ERROR';
1261:
1404: RETURN;
1405:
1406: EXCEPTION
1407: WHEN OTHERS THEN
1408: wf_core.context('FUN_INITIATOR_WF_PKG', 'post_ar_invoice',
1409: itemtype, itemkey, TO_CHAR(actid), funcmode);
1410:
1411: RAISE;
1412: END post_ar_invoice;
1411: RAISE;
1412: END post_ar_invoice;
1413:
1414:
1415: END FUN_INITIATOR_WF_PKG;
1416: