595:
596: IF l_itemkey IS NULL
597: THEN
598: hr_utility.TRACE ('l_itemkey is null');
599: fnd_message.set_name ('BEN', 'BEN_93399_CWB_NTF_ITEM_KEY_ERR');
600: fnd_message.raise_error;
601: END IF;
602:
603: IF p_rcvr_person_id IS NULL
596: IF l_itemkey IS NULL
597: THEN
598: hr_utility.TRACE ('l_itemkey is null');
599: fnd_message.set_name ('BEN', 'BEN_93399_CWB_NTF_ITEM_KEY_ERR');
600: fnd_message.raise_error;
601: END IF;
602:
603: IF p_rcvr_person_id IS NULL
604: THEN
602:
603: IF p_rcvr_person_id IS NULL
604: THEN
605: hr_utility.TRACE ('p_rcvr_person_id is null');
606: fnd_message.set_name ('BEN', 'BEN_93400_CWB_NTF_NO_PERSON_ID');
607: fnd_message.raise_error;
608: END IF;
609:
610: hr_utility.TRACE ('p_rcvr_person_id : ' || p_rcvr_person_id);
603: IF p_rcvr_person_id IS NULL
604: THEN
605: hr_utility.TRACE ('p_rcvr_person_id is null');
606: fnd_message.set_name ('BEN', 'BEN_93400_CWB_NTF_NO_PERSON_ID');
607: fnd_message.raise_error;
608: END IF;
609:
610: hr_utility.TRACE ('p_rcvr_person_id : ' || p_rcvr_person_id);
611:
633: || l_err_msg
634: || 'Error stack for this is '
635: || l_err_stack
636: );
637: fnd_message.set_name ('BEN', 'BEN_93401_CWB_NTF_WF_ERR');
638: fnd_message.set_token ('ERR_NAME', l_err_name, FALSE);
639: fnd_message.set_token ('ERR_STACK',
640: SUBSTRB (l_err_stack, 25000),
641: FALSE
634: || 'Error stack for this is '
635: || l_err_stack
636: );
637: fnd_message.set_name ('BEN', 'BEN_93401_CWB_NTF_WF_ERR');
638: fnd_message.set_token ('ERR_NAME', l_err_name, FALSE);
639: fnd_message.set_token ('ERR_STACK',
640: SUBSTRB (l_err_stack, 25000),
641: FALSE
642: );
635: || l_err_stack
636: );
637: fnd_message.set_name ('BEN', 'BEN_93401_CWB_NTF_WF_ERR');
638: fnd_message.set_token ('ERR_NAME', l_err_name, FALSE);
639: fnd_message.set_token ('ERR_STACK',
640: SUBSTRB (l_err_stack, 25000),
641: FALSE
642: );
643: wf_core.CLEAR;
640: SUBSTRB (l_err_stack, 25000),
641: FALSE
642: );
643: wf_core.CLEAR;
644: fnd_message.raise_error;
645: ELSE
646: hr_utility.TRACE
647: ( 'A general error has occured while creating the workflow process '
648: || 'and it is not a worflow error'
646: hr_utility.TRACE
647: ( 'A general error has occured while creating the workflow process '
648: || 'and it is not a worflow error'
649: );
650: fnd_message.set_name ('BEN', 'BEN_93402_CWB_NTF_CRE_PROC_ERR');
651: fnd_message.raise_error;
652: END IF;
653: END;
654:
647: ( 'A general error has occured while creating the workflow process '
648: || 'and it is not a worflow error'
649: );
650: fnd_message.set_name ('BEN', 'BEN_93402_CWB_NTF_CRE_PROC_ERR');
651: fnd_message.raise_error;
652: END IF;
653: END;
654:
655: --
734: || l_err_msg
735: || 'Follwing is the error stack '
736: || l_err_stack
737: );
738: fnd_message.set_name ('BEN', 'BEN_93401_CWB_NTF_WF_ERR');
739: fnd_message.set_token ('ERR_NAME', l_err_name, FALSE);
740: fnd_message.set_token ('ERR_STACK',
741: SUBSTRB (l_err_stack, 25000),
742: FALSE
735: || 'Follwing is the error stack '
736: || l_err_stack
737: );
738: fnd_message.set_name ('BEN', 'BEN_93401_CWB_NTF_WF_ERR');
739: fnd_message.set_token ('ERR_NAME', l_err_name, FALSE);
740: fnd_message.set_token ('ERR_STACK',
741: SUBSTRB (l_err_stack, 25000),
742: FALSE
743: );
736: || l_err_stack
737: );
738: fnd_message.set_name ('BEN', 'BEN_93401_CWB_NTF_WF_ERR');
739: fnd_message.set_token ('ERR_NAME', l_err_name, FALSE);
740: fnd_message.set_token ('ERR_STACK',
741: SUBSTRB (l_err_stack, 25000),
742: FALSE
743: );
744: wf_core.CLEAR;
741: SUBSTRB (l_err_stack, 25000),
742: FALSE
743: );
744: wf_core.CLEAR;
745: fnd_message.raise_error;
746: ELSE
747: hr_utility.TRACE
748: ( 'A general error has occured while starting the workflow process '
749: || 'and it is not a worflow error'
747: hr_utility.TRACE
748: ( 'A general error has occured while starting the workflow process '
749: || 'and it is not a worflow error'
750: );
751: fnd_message.set_name ('BEN', 'BEN_93404_CWB_NTF_STRT_PRC_ERR');
752: fnd_message.set_token ('ITEM_KEY', l_itemkey);
753: fnd_message.raise_error;
754: END IF;
755: END;
748: ( 'A general error has occured while starting the workflow process '
749: || 'and it is not a worflow error'
750: );
751: fnd_message.set_name ('BEN', 'BEN_93404_CWB_NTF_STRT_PRC_ERR');
752: fnd_message.set_token ('ITEM_KEY', l_itemkey);
753: fnd_message.raise_error;
754: END IF;
755: END;
756:
749: || 'and it is not a worflow error'
750: );
751: fnd_message.set_name ('BEN', 'BEN_93404_CWB_NTF_STRT_PRC_ERR');
752: fnd_message.set_token ('ITEM_KEY', l_itemkey);
753: fnd_message.raise_error;
754: END IF;
755: END;
756:
757: hr_utility.set_location ('Exiting ' || g_package || ':' || l_proc, 10);