434:
435: /* make sure that process runs with background engine */
436: WF_ENGINE.THRESHOLD := l_run_wf_in_background ;
437:
438: /*Call the GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE to populate the ORGN_NAME */
439: GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE(p_orgn_id, l_orgn_name);
440:
441: /* set the item attributes */
442: WF_ENGINE.SETITEMATTRTEXT(itemtype => l_itemtype,
435: /* make sure that process runs with background engine */
436: WF_ENGINE.THRESHOLD := l_run_wf_in_background ;
437:
438: /*Call the GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE to populate the ORGN_NAME */
439: GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE(p_orgn_id, l_orgn_name);
440:
441: /* set the item attributes */
442: WF_ENGINE.SETITEMATTRTEXT(itemtype => l_itemtype,
443: itemkey => l_itemkey,
1330:
1331: /* make sure that process runs with background engine */
1332: WF_ENGINE.THRESHOLD := l_run_wf_in_background ;
1333:
1334: /*Call the GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE to populate the ORGN_NAME */
1335: GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE(l_orgn_id, l_orgn_name);
1336:
1337: /* set the item attributes */
1338: WF_ENGINE.SETITEMATTRTEXT(itemtype => l_itemtype,
1331: /* make sure that process runs with background engine */
1332: WF_ENGINE.THRESHOLD := l_run_wf_in_background ;
1333:
1334: /*Call the GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE to populate the ORGN_NAME */
1335: GR_DISPATCH_HISTORY_PVT.GET_ORGANIZATION_CODE(l_orgn_id, l_orgn_name);
1336:
1337: /* set the item attributes */
1338: WF_ENGINE.SETITEMATTRTEXT(itemtype => l_itemtype,
1339: itemkey => l_itemkey,