The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT end_date
FROM wf_items
WHERE item_type = 'JTFTASK'
AND item_key = l_itemkey;
SELECT display_name INTO l_display_name
FROM WF_RUNNABLE_PROCESSES_V
WHERE item_type = p_item_type
AND process_name = p_process_name;
SELECT jtf_task_workflow_process_s.nextval
FROM dual;
SELECT task_name, description, owner_type_code owner_code, owner_id, task_number
FROM jtf_tasks_v
WHERE task_id = p_task_id;*/
SELECT a.task_name, a.description, a.owner_type_code owner_code, a.owner_id, a.task_number
FROM jtf_tasks_vl a
WHERE a.task_id = p_task_id
AND (a.deleted_flag <> 'Y' OR a.deleted_flag is null)
AND a.task_type_id <> 22;
'DELETE_ASSIGNEE',
'CHANGE_OWNER',
'CHANGE_TASK_DETAILS'
)
THEN
null;
/*select task_status, task_priority , task_type
into l_task_status_name, l_task_priority_name , l_task_type_name
from jtf_tasks_v where task_id = p_task_id ;*/
select b.name task_status, c.name task_priority , d.name task_type
into l_task_status_name, l_task_priority_name , l_task_type_name
from jtf_tasks_b a,
jtf_task_statuses_tl b,
jtf_task_priorities_tl c,
jtf_task_types_tl d
where a.task_id = p_task_id
and (a.deleted_flag <> 'Y' OR a.deleted_flag is null)
and d.task_type_id <> 22
and b.task_status_id=a.task_status_id
and c.task_priority_id=a.task_priority_id
and d.task_type_id=a.task_type_id
and b.language=userenv('lang')
and c.language=userenv('lang')
and d.language=userenv('lang');
IF p_event = 'DELETE_ASSIGNEE'
THEN
IF ( p_old_assignee_code IS NULL
OR p_old_assignee_id IS NULL)
THEN
fnd_message.set_name ('JTF', 'JTF_TASK_INVALID_ASSIGNEE_DETAILS');
SELECT task_name, description, owner_type_code owner_code, owner_id
FROM jtf_tasks_vl
WHERE task_id = p_task_id;