149: begin
150: select name
151: into i_to_system_name
152: from wf_systems
153: where guid = wf_core.translate('WF_SYSTEM_GUID');
154: i_to_agent := wf_agent_t(i_to_agent_name, i_to_system_name);
155: i_event.setToAgent(i_to_agent);
156: exception
157: when others then
191: p_party_id, p_party_site_id, p_party_type,
192: document_id, ret_code, errbuf
193: );
194:
195: Wf_Core.Context('GR_WF_UTIL_PVT',
196: 'getXMLTP',
197: itemtype,
198: itemkey,
199: to_char(actid),
507: itemkey => l_itemkey);
508:
509: EXCEPTION
510: WHEN OTHERS THEN
511: wf_core.context ('GR_REG_DOC_RBLD_WF',
512: 'INIT_WF',
513: l_itemtype,
514: l_itemkey,
515: p_item_no);
512: 'INIT_WF',
513: l_itemtype,
514: l_itemkey,
515: p_item_no);
516: wf_core.get_error (l_errname,
517: l_errmsg,
518: l_errstack);
519: if ((l_errname is null) and (sqlcode <> 0))
520: then
1168: WF_ENGINE.STARTPROCESS (itemtype => l_itemtype,itemkey => l_itemkey);
1169: delete from gr_prop_chng_temp where message_icn = p_message_icn;
1170: EXCEPTION
1171: WHEN OTHERS THEN
1172: wf_core.context ('GR_TRD_PRTY_WF',
1173: 'INIT_WF',
1174: l_itemtype,
1175: l_itemkey,
1176: l_item_code);
1173: 'INIT_WF',
1174: l_itemtype,
1175: l_itemkey,
1176: l_item_code);
1177: wf_core.get_error (l_errname,
1178: l_errmsg,
1179: l_errstack);
1180: if ((l_errname is null) and (sqlcode <> 0))
1181: then
1385: delete from gr_items_requested where message_icn = p_message_icn;
1386:
1387: EXCEPTION
1388: WHEN OTHERS THEN
1389: wf_core.context ('GR_REG_ITEM_REQ_WF',
1390: 'INIT_WF',
1391: l_itemtype,
1392: l_itemkey,
1393: l_from_item);
1390: 'INIT_WF',
1391: l_itemtype,
1392: l_itemkey,
1393: l_from_item);
1394: wf_core.get_error (l_errname,
1395: l_errmsg,
1396: l_errstack);
1397: if ((l_errname is null) and (sqlcode <> 0))
1398: then