93:
94: l_debug_level := fnd_profile.value('CSI_DEBUG_LEVEL');
95:
96: IF (l_debug_level > 0) THEN
97: csi_gen_utility_pvt.put_line
98: ( 'CSI_HANDLE_EVENT_PKG' ||'-'||
99: p_api_version ||'-'||
100: nvl(p_commit,FND_API.G_FALSE) ||'-'||
101: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
129: p_event_key => p_event_key,
130: p_parameters => l_parameter_list);
131:
132: IF (l_debug_level > 1) THEN
133: csi_gen_utility_pvt.put_line('Raise Business Event');
134: csi_gen_utility_pvt.put_line(' Event Name : '||l_event);
135: csi_gen_utility_pvt.put_line(' Event Key : '||p_event_key);
136: csi_gen_utility_pvt.put_line(' Customer Product Id : '||p_instance_id);
137: csi_gen_utility_pvt.put_line(' Child Customer Product Id : '||p_subject_instance_id);
130: p_parameters => l_parameter_list);
131:
132: IF (l_debug_level > 1) THEN
133: csi_gen_utility_pvt.put_line('Raise Business Event');
134: csi_gen_utility_pvt.put_line(' Event Name : '||l_event);
135: csi_gen_utility_pvt.put_line(' Event Key : '||p_event_key);
136: csi_gen_utility_pvt.put_line(' Customer Product Id : '||p_instance_id);
137: csi_gen_utility_pvt.put_line(' Child Customer Product Id : '||p_subject_instance_id);
138: csi_gen_utility_pvt.put_line(' Q Correlation Id : '||p_correlation_value);
131:
132: IF (l_debug_level > 1) THEN
133: csi_gen_utility_pvt.put_line('Raise Business Event');
134: csi_gen_utility_pvt.put_line(' Event Name : '||l_event);
135: csi_gen_utility_pvt.put_line(' Event Key : '||p_event_key);
136: csi_gen_utility_pvt.put_line(' Customer Product Id : '||p_instance_id);
137: csi_gen_utility_pvt.put_line(' Child Customer Product Id : '||p_subject_instance_id);
138: csi_gen_utility_pvt.put_line(' Q Correlation Id : '||p_correlation_value);
139: END IF;
132: IF (l_debug_level > 1) THEN
133: csi_gen_utility_pvt.put_line('Raise Business Event');
134: csi_gen_utility_pvt.put_line(' Event Name : '||l_event);
135: csi_gen_utility_pvt.put_line(' Event Key : '||p_event_key);
136: csi_gen_utility_pvt.put_line(' Customer Product Id : '||p_instance_id);
137: csi_gen_utility_pvt.put_line(' Child Customer Product Id : '||p_subject_instance_id);
138: csi_gen_utility_pvt.put_line(' Q Correlation Id : '||p_correlation_value);
139: END IF;
140:
133: csi_gen_utility_pvt.put_line('Raise Business Event');
134: csi_gen_utility_pvt.put_line(' Event Name : '||l_event);
135: csi_gen_utility_pvt.put_line(' Event Key : '||p_event_key);
136: csi_gen_utility_pvt.put_line(' Customer Product Id : '||p_instance_id);
137: csi_gen_utility_pvt.put_line(' Child Customer Product Id : '||p_subject_instance_id);
138: csi_gen_utility_pvt.put_line(' Q Correlation Id : '||p_correlation_value);
139: END IF;
140:
141: EXCEPTION
134: csi_gen_utility_pvt.put_line(' Event Name : '||l_event);
135: csi_gen_utility_pvt.put_line(' Event Key : '||p_event_key);
136: csi_gen_utility_pvt.put_line(' Customer Product Id : '||p_instance_id);
137: csi_gen_utility_pvt.put_line(' Child Customer Product Id : '||p_subject_instance_id);
138: csi_gen_utility_pvt.put_line(' Q Correlation Id : '||p_correlation_value);
139: END IF;
140:
141: EXCEPTION
142: WHEN EventNotFound THEN
149: FND_MESSAGE.SET_TOKEN('EVENT',p_event_name);
150: FND_MSG_PUB.Add;
151: RAISE FND_API.G_EXC_ERROR;
152: WHEN NO_DATA_FOUND THEN
153: CSI_GEN_UTILITY_PVT.Put_Line('NO_DATA_FOUND ... Rollback to CSI_RAISE_EVENT');
154: ROLLBACK TO csi_raise_event;
155: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
156: WHEN OTHERS THEN
157: CSI_GEN_UTILITY_PVT.Put_Line('WHEN OTHERS ... Rollback to CSI_RAISE_EVENT');
153: CSI_GEN_UTILITY_PVT.Put_Line('NO_DATA_FOUND ... Rollback to CSI_RAISE_EVENT');
154: ROLLBACK TO csi_raise_event;
155: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
156: WHEN OTHERS THEN
157: CSI_GEN_UTILITY_PVT.Put_Line('WHEN OTHERS ... Rollback to CSI_RAISE_EVENT');
158: ROLLBACK TO csi_raise_event;
159: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
160: END raise_event;
161: END;