19: --Description: This procedure is used to start a Budget Approval workflow.
20: --
21: --
22: --Called subprograms: PA_CLIENT_EXTN_BUDGET_WF.Start_Budget_Wf
23: -- , PA_WORKFLOW_UTILS.Insert_WF_Processes
24: --
25: --Notes:
26: -- This wrapper is called DIRECTLY from the Budgets form and the public
27: -- Baseline_Budget API.
158: IF (l_err_code = 0)
159: THEN
160: -- Succesful! Log pa_wf_processes table for new workflow.
161:
162: PA_WORKFLOW_UTILS.Insert_WF_Processes
163: (p_wf_type_code => 'BUDGET'
164: ,p_item_type => l_item_type
165: ,p_item_key => l_item_key
166: ,p_entity_key1 => to_char(p_draft_version_id)
399: /*Commented for bug 5233870
400: -- SET GLOBALS ------------------------------------------------------------------
401:
402: -- Based on the Responsibility, Intialize the Application
403: PA_WORKFLOW_UTILS.Set_Global_Attr
404: (p_item_type => itemtype
405: , p_item_key => itemkey
406: , p_err_code => l_err_code);
407: */
596: /*Commented for bug 5233870
597: -- SET GLOBALS ------------------------------------------------------------------
598:
599: -- Based on the Responsibility, Intialize the Application
600: PA_WORKFLOW_UTILS.Set_Global_Attr
601: (p_item_type => itemtype
602: , p_item_key => itemkey
603: , p_err_code => l_err_code
604: );
877: -- SET GLOBALS -----------------------------------------------------------------
878:
879: -- Based on the Responsibility, Intialize the Application
880: /*Commented for bug 5233870
881: PA_WORKFLOW_UTILS.Set_Global_Attr
882: (p_item_type => itemtype
883: , p_item_key => itemkey
884: , p_err_code => l_err_code);
885: */
940: );
941:
942: IF (l_err_msg_count > 0 )
943: THEN
944: PA_WORKFLOW_UTILS.Set_Notification_Messages
945: (p_item_type => itemtype
946: , p_item_key => itemkey
947: );
948: IF (l_warnings_only_flag = 'N') THEN
975:
976:
977: IF (l_err_msg_count > 0 )
978: THEN
979: PA_WORKFLOW_UTILS.Set_Notification_Messages
980: (p_item_type => itemtype
981: , p_item_key => itemkey
982: );
983: IF (l_warnings_only_flag = 'N') THEN
1005:
1006:
1007: IF (l_err_msg_count > 0 )
1008: THEN
1009: PA_WORKFLOW_UTILS.Set_Notification_Messages
1010: (p_item_type => itemtype
1011: , p_item_key => itemkey
1012: );
1013: IF (l_warnings_only_flag = 'N') THEN
1030:
1031:
1032: IF (l_err_msg_count > 0 )
1033: THEN
1034: PA_WORKFLOW_UTILS.Set_Notification_Messages
1035: (p_item_type => itemtype
1036: , p_item_key => itemkey
1037: );
1038: IF (l_warnings_only_flag = 'N') THEN
1080: --
1081: --Called subprograms: PA_BUDGET_UTILS.Verify_Budget_Rules
1082: -- , PA_CLIENT_EXTN_BUDGET_WF.Verify_Budget_Rules
1083: -- , PA_BUDGET_UTILS.Baseline_Budget
1084: -- , PA_WORKFLOW_UTILS.Insert_WF_Processes
1085: --
1086: --
1087: --Notes:
1088: --
1293:
1294: -- SET GLOBALS -----------------------------------------------------------------
1295: /*Commented for bug 5233870
1296: -- Based on the Responsibility, Intialize the Application
1297: PA_WORKFLOW_UTILS.Set_Global_Attr
1298: (p_item_type => itemtype
1299: , p_item_key => itemkey
1300: , p_err_code => l_err_code);
1301: */
1354:
1355:
1356: IF (l_err_msg_count > 0 )
1357: THEN
1358: PA_WORKFLOW_UTILS.Set_Notification_Messages
1359: (p_item_type => itemtype
1360: , p_item_key => itemkey
1361: );
1362: IF (l_warnings_only_flag = 'N') THEN
1385:
1386:
1387: IF (l_err_msg_count > 0 )
1388: THEN
1389: PA_WORKFLOW_UTILS.Set_Notification_Messages
1390: (p_item_type => itemtype
1391: , p_item_key => itemkey
1392: );
1393: IF (l_warnings_only_flag = 'N') THEN
1451: OR (l_msg_count > 0)
1452: )
1453: THEN
1454:
1455: PA_WORKFLOW_UTILS.Set_Notification_Messages
1456: (p_item_type => itemtype
1457: , p_item_key => itemkey
1458: );
1459:
1501: AND ( l_fck_req_flag = 'Y') )
1502: THEN
1503: -- Budget Integration must have been successful
1504: -- Following call will display success message for Budget Integration
1505: PA_WORKFLOW_UTILS.Set_Notification_Messages
1506: (p_item_type => itemtype
1507: , p_item_key => itemkey
1508: );
1509:
1516: THEN
1517: -- Error! Baseline Failed. ------------------
1518:
1519: --Populate Notification Message Text
1520: PA_WORKFLOW_UTILS.Set_Notification_Messages
1521: (p_item_type => itemtype
1522: , p_item_key => itemkey
1523: );
1524:
1570: END IF;
1571:
1572:
1573:
1574: PA_WORKFLOW_UTILS.Insert_WF_Processes
1575: (p_wf_type_code => 'BUDGET'
1576: ,p_item_type => itemtype
1577: ,p_item_key => itemkey
1578: ,p_entity_key1 => to_char(l_draft_version_id)