5107: -- now check if we need to derive the item key from db seq
5108: if(p_item_key is null)then
5109: begin
5110: -- Get the next item key from the sequence
5111: select hr_workflow_item_key_s.nextval
5112: into p_item_key
5113: from sys.dual;
5114: exception
5115: when no_data_found then