The following lines contain the word 'select', 'insert', 'update' or 'delete':
INSERT INTO EGO_PUB_WS_CONFIG ( session_id,
odi_session_id,
Parameter_Name,
Data_Type,
NUMERIC_value,
creation_date,
created_by,
web_service_name)
VALUES (p_session_id,
p_session_id,
'ODI_SESSION_ID',
1,
l_odi_session_id,
sysdate,
0,
l_odi_entscename);
--and insert in parametes table
-- Get Entity Scenario Name
l_batch_search_str := EGO_PUB_WS_UTIL.Get_Batch_Search_Str(l_odi_entscename);
/*insert into EGO.tr_temp values('wrapper p_session_id :', p_session_id);
insert into tr_temp values('wrapper l_batch_search_str :', l_batch_search_str);
/*insert into EGO.tr_temp values('wrapper l_mode :', l_mode);
insert into EGO.tr_temp values('wrapper l_batch_id :', l_batch_id);
/*INSERT INTO tr_temp (Session_id, message)
values (p_session_id, 'invokation mode:' || l_mode);*/
--inserting invocation mode as config parameter
INSERT INTO EGO_PUB_WS_CONFIG ( session_id,
odi_session_id,
Parameter_Name,
Data_Type,
Char_value,
creation_date,
created_by,
web_service_name)
VALUES (p_session_id,
p_session_id,
'MODE',
2,
l_mode,
sysdate,
0,
l_odi_entscename);
--inserting batch id as config parameter
INSERT INTO EGO_PUB_WS_CONFIG ( session_id,
odi_session_id,
Parameter_Name,
Data_Type,
Numeric_value,
creation_date,
created_by,
web_service_name)
VALUES (p_session_id,
p_session_id,
'BATCH_ID',
1,
l_batch_id,
sysdate,
0,
l_odi_entscename);
-- call to ego_pub_fwk_pk - update_pub_status - api in batch mode equal to zero
-- which will update status for all entities for all systems of the batch
bat_ent_stat_rec(1).batch_id := l_batch_id;
EGO_PUB_FWK_PK.Update_Pub_Status(l_batch_id, 0, bat_ent_stat_rec,x_bat_status_out,x_return_status,x_msg_count,x_msg_data);
PROCEDURE Update_Batch_System_Status(p_session_id IN NUMBER,
p_system_code IN VARCHAR2)
IS
l_mode VARCHAR2(10) := NULL;
-- for all input entities of the batch, and the only selected, batch system,
-- the process status would be - Failed with relevant error message.
-- call to ego_pub_fwk_pk - update_pub_status - api in batch mode equal to one
-- which will update status for all entities for the provided systems of the batch
BEGIN
SELECT CHAR_VALUE
INTO l_mode
FROM EGO_PUB_WS_CONFIG
WHERE SESSION_ID = p_session_id
AND PARAMETER_NAME = 'MODE';
SELECT NUMERIC_VALUE
INTO l_batch_id
FROM EGO_PUB_WS_CONFIG
WHERE SESSION_ID = p_session_id
AND PARAMETER_NAME = 'BATCH_ID';
EGO_PUB_FWK_PK.Update_Pub_Status(l_batch_id, 1, bat_ent_stat_rec,x_bat_status_out,x_return_status,x_msg_count,x_msg_data);
END Update_Batch_System_Status;