261:
262: begin
263:
264: --we fetch the item_name from the ouput attr
265: l_publisher_item_name := wf_engine.getItemAttrText(
266: p_item_type,
267: pItemKey,
268: 'P.ITEM_NAME' );
269: l_publisher_site_name := wf_engine.getItemAttrText(
265: l_publisher_item_name := wf_engine.getItemAttrText(
266: p_item_type,
267: pItemKey,
268: 'P.ITEM_NAME' );
269: l_publisher_site_name := wf_engine.getItemAttrText(
270: p_item_type,
271: pItemKey,
272: 'P.PUBLISHER_SITE_NAME' );
273:
401:
402: begin
403:
404: --get the supplier_name , supplier_site_name, and org.
405: l_sup_name := wf_engine.getItemAttrText(
406: p_item_type,
407: pItemKey,
408: 'P.SUPPLIER_NAME' );
409: l_sup_site_name := wf_engine.getItemAttrText(
405: l_sup_name := wf_engine.getItemAttrText(
406: p_item_type,
407: pItemKey,
408: 'P.SUPPLIER_NAME' );
409: l_sup_site_name := wf_engine.getItemAttrText(
410: p_item_type,
411: pItemKey,
412: 'P.SUPPLIER_SITE_NAME' );
413:
410: p_item_type,
411: pItemKey,
412: 'P.SUPPLIER_SITE_NAME' );
413:
414: l_publisher_site_name := wf_engine.getItemAttrText(
415: p_item_type,
416: pItemKey,
417: 'P.PUBLISHER_SITE_NAME' );
418:
1940: columnNtfTableHeader := null;
1941: columnNtfRowValue := null;
1942: vNtfBodyText := null;
1943:
1944: saveThreshold := WF_ENGINE.threshold;
1945:
1946: If v_NumRows <> 0 Then
1947:
1948: For rowCounter in 1..v_NumRows
1958: l_item_key := to_char( v_EXCEPTION_DETAIL_ID(rowCounter));
1959: v_notificationTitle := v_notification_text;
1960:
1961:
1962: --WF_ENGINE.threshold := -1;
1963:
1964: if v_debug and
1965: vFirstRow then
1966: log_message('Before creating workflow = '||v_item_type);
1966: log_message('Before creating workflow = '||v_item_type);
1967: log_message('Workflow item_key = '||l_item_key);
1968: end if;
1969:
1970: wf_engine.CreateProcess( itemtype => v_item_type,
1971: itemkey => l_item_key,
1972: process => v_wf_process );
1973:
1974: if v_debug and
1976: log_message('After creating workflow = '||v_item_type);
1977: end if;
1978: -- Set the process owner to user who defined this exception
1979:
1980: wf_engine.SetItemOwner( itemtype => v_item_type,
1981: itemkey => l_item_key,
1982: owner => v_created_by_name );
1983:
1984:
2049: '