DBA Data[Home] [Help]

APPS.IEX_STRATEGY_WF SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 27

 select a.workflow_item_type itemtype,
        b.work_item_id
 from iex_stry_temp_work_items_vl a,
      iex_strategy_work_items b
 where a.work_item_temp_id =b.WORK_ITEM_TEMPLATE_ID
 and   b.strategy_id     =p_strategy_id
  and a.workflow_item_type IS NOT NULL;
Line: 36

 select a.work_item_id
 from  iex_strategy_work_items  a,
       iex_stry_temp_work_items_vl b
 where a.strategy_id = p_strategy_id
 and a.work_item_template_id  =b.work_item_temp_id
 and (b.fulfil_temp_id IS NOT NULL or b.xdo_template_id IS NOT NULL)
 -- Added for bug 8996459 PNAVEENK 27-OCT-2009
 and exists ( select 1 from wf_items
              where item_type='IEXSTFFM'
              and item_key = a.work_item_id );
Line: 58

       select distinct item_key from wf_item_attr_values_ondemand
         where name = 'WRITEOFF_ID' and text_value = c_id and item_type = 'IEXWRREQ';
Line: 62

      select jtf_object_type,jtf_object_id from iex_strategies
        where strategy_id = c_strategy_id;
Line: 186

			update iex_xml_request_histories
	  		set status='CANCELLED'
			where object_type='IEX_STRATEGY'
			and status = 'XMLDATA'
			and xml_request_id in (select xml_request_id
	                                from iex_dunnings
					where object_type='IEX_STRATEGY'
					and object_id=c_rec.work_item_id);
Line: 226

 * this is because custom and fulfillment work flows updates
 * the work item and if the strategy is changed back from ONHOLD to OPEN,
 * we need to resume the process.
 **/

FUNCTION  CHECK_WORK_ITEM_OPEN(p_strategy_id  IN NUMBER)
                                RETURN NUMBER IS
v_result NUMBER;
Line: 239

   select  count(*)
   INTO v_result
   from iex_strategies a,
        ieX_strategy_work_items b
   where a.strategy_id =p_strategy_id
   and a.strategy_id =b.strategy_id
   and a.next_work_item_id =b.work_item_id
   and b.status_code ='OPEN'
   and a.status_code ='OPEN';
Line: 270

       select  count(*) INTO v_result from iex_strategies
       where strategy_id =p_strategy_id
       and next_work_item_id =p_work_item_id
       and status_code ='OPEN';
Line: 282

* update work item status
*/
PROCEDURE update_workitem_Status(p_work_item_id IN NUMBER,
                                 p_status        IN VARCHAR2 )IS

l_api_version   NUMBER       := 1.0;
Line: 295

         iex_debug_pub.logmessage ('**** BEGIN update_workitem_Status ************');
Line: 297

      IEX_STRY_UTL_PUB.UPDATE_WORK_ITEM (p_api_version => l_api_version,
                                         p_init_msg_list => FND_API.G_TRUE,
                                         p_commit        => FND_API.G_FALSE,
                                         x_msg_count     => l_msg_count,
                                         x_msg_data      => l_msg_data,
                                         x_return_status => l_return_status,
                                         p_work_item_id   => p_work_item_id,
                                         p_status        => p_status);
Line: 308

       iex_debug_pub.logmessage ('**** END update_workitem_Status ************');
Line: 310

END update_workitem_Status;
Line: 324

Select user_name,source_name  -- bug 6717880/7170165 by Ehuh
from jtf_rs_resource_extns
where resource_id =p_resource_id;
Line: 355

      SELECT b.user_id, b.user_name , b.resource_id
      FROM JTF_RS_RESOURCE_EXTNS a
      ,    JTF_RS_RESOURCE_EXTNS b
      WHERE b.source_id = a.source_mgr_id
      AND a.resource_id = p_resource_id;
Line: 363

        select source_name from JTF_RS_RESOURCE_EXTNS
          where resource_id = p_resource_id;
Line: 518

select closure_time_limit, closure_time_uom,
       schedule_wait, schedule_uom,
       optional_yn,escalate_yn,
        option_wait_time, option_wait_time_uom
from iex_stry_temp_work_items_vl
where work_item_temp_id =p_work_item_temp_id;
Line: 657

select count(person_id)
from per_competence_elements
where competence_id = l_competence_id
and   person_id     = l_person_id
and   trunc(NVL(effective_date_to,SYSDATE)) >= trunc(sysdate)
and   trunc(effective_date_from) <=  trunc(sysdate) ;
Line: 842

/*select sxref.strategy_temp_id TEMPLATE_ID,
       sxref.work_item_temp_id WORK_ITEM_TEMPLATE_ID,
       sxref.work_item_order ORDER_BY
       ,nvl(swit.status_code,'NOTCREATED') STATUS
       ,swit.work_item_id     WORK_ITEM_ID
       ,swit.strategy_id      STRATEGY_ID
from iex_strategy_work_temp_xref sxref
     ,iex_strategy_work_items swit
where sxref.strategy_temp_id =p_template_id
and   swit.work_item_template_id(+)  =sxref.work_item_temp_id
and   swit.strategy_id(+) =p_strategy_id
union all
select susit.strategy_template_id TEMPLATE_ID,
       susit.work_item_temp_id WORK_ITEM_TEMPLATE_ID,
       susit.work_item_order ORDER_BY
       ,nvl(swit.status_code,'NOTCREATED') STATUS
       ,swit.work_item_id     WORK_ITEM_ID
       ,susit.strategy_id      STRATEGY_ID
  from iex_strategy_user_items susit
     ,iex_strategy_work_items swit
where susit.strategy_id =p_strategy_id
and   swit.work_item_template_id(+)  =susit.work_item_temp_id
and   swit.strategy_id(+) =p_strategy_id
order by order_by;
Line: 869

SELECT wkitem.strategy_id     STRATEGY_ID,
wkitem.strategy_temp_id       TEMPLATE_ID,
wkitem.work_item_order        ORDER_BY,
wkitem.work_item_id           WORK_ITEM_ID,
wkitem.work_item_template_id  WORK_ITEM_TEMPLATE_ID,
wkitem.status_code            STATUS,
wkitem.pre_execution_wait  pre_execution_wait,
wkitem.pre_execution_time_uom pre_execution_time_uom,
wkitem.post_execution_wait post_execution_wait,
wkitem.execution_time_uom post_execution_time_uom,
wkitem.xdo_temp_id xdo_template_id,
wkitem.OPTIONAL_YN OPTIONAL_YN,
wkitem.OPTIONAL_WAIT_TIME OPTIONAL_WAIT_TIME,
wkitem.OPTIONAL_WAIT_TIME_UOM OPTIONAL_WAIT_TIME_UOM,
wkitem.ESCALATED_YN ESCALATED_YN,
wkitem.escalate_yn escalate_yn,
wkitem.escalate_wait_time escalate_wait_time,
wkitem.escalate_wait_time_uom escalate_wait_time_uom,
wkitem.NOTIFY_YN NOTIFY_YN,
wkitem.resource_id resource_id,
wkitem.custom_workflow_type custom_workflow_type
from iex_strategy_work_items wkitem,
iex_stry_temp_work_items_vl stry_temp_wkitem
WHERE
wkitem.work_item_template_id = stry_temp_wkitem.work_item_temp_id
and wkitem.strategy_id =p_strategy_id
--to be created work items
union all
SELECT stry.STRATEGY_ID       STRATEGY_ID
, xref.STRATEGY_TEMP_ID       TEMPLATE_ID
, xref.WORK_ITEM_ORDER        ORDER_BY
, TO_NUMBER(NULL)             WORK_ITEM_ID
, xref.WORK_ITEM_TEMP_ID      WORK_ITEM_TEMPLATE_ID
, 'NOTCREATED'                STATUS
, stry_temp_wkitem.pre_execution_wait pre_execution_wait
,stry_temp_wkitem.schedule_uom pre_execution_time_uom
, stry_temp_wkitem.post_execution_wait post_execution_wait
, stry_temp_wkitem.execution_time_uom post_execution_time_uom
,stry_temp_wkitem.xdo_template_id xdo_template_id
,stry_temp_wkitem.optional_yn OPTIONAL_YN
,stry_temp_wkitem.option_wait_time OPTIONAL_WAIT_TIME
,stry_temp_wkitem.option_wait_time_uom OPTIONAL_WAIT_TIME_UOM
,NULL escalated_yn
,stry_temp_wkitem.escalate_yn ESCALATE_YN
,stry_temp_wkitem.closure_time_limit escalate_wait_time
,stry_temp_wkitem.closure_time_uom escalate_wait_time_uom
,stry_temp_wkitem.notify_yn NOTIFY_YN
,NULL resource_id
,workflow_item_type custom_workflow_type
FROM IEX_STRATEGIES stry
, IEX_STRATEGY_WORK_TEMP_XREF xref
, IEX_STRY_TEMP_WORK_ITEMS_VL stry_temp_wkitem
WHERE stry.STRATEGY_TEMPLATE_ID = xref.STRATEGY_TEMP_ID
and xref.WORK_ITEM_TEMP_ID = stry_temp_wkitem.WORK_ITEM_TEMP_ID
AND stry_temp_wkitem.enabled_flag ='Y' -- added for bug 7299555 pnaveenk
and stry.strategy_id =p_strategy_id
--not in workitems table
AND not exists ( select 'x' from iex_strategy_work_items wkitem where
wkitem.strategy_id = stry.strategy_id
and wkitem.work_item_template_id = xref.work_item_temp_id
and wkitem.work_item_order = xref.work_item_order
and  wkitem.strategy_id =p_strategy_id
)
----skip workitems which is status-ed SKIP
and not exists ( select 'x' from iex_strategy_user_items uitems where
uitems.strategy_id = stry.strategy_id  and
uitems.work_item_temp_id = xref.work_item_temp_id and
uitems.work_item_order = xref.work_item_order and
uitems.operation in ('SKIP','NOTCREATED')
and  uitems.strategy_id =p_strategy_id
)
and (xref.work_item_order > (select max(wkitem_order) from iex_work_item_bali_v
     where strategy_id = p_strategy_id and start_time is not null)
   or (select count(*) from iex_work_item_bali_v where strategy_id = p_strategy_id ) = 0
    )      -- later on assignment of  prior work items, and case of initial creation of wkitem
-- get all user items
union all
SELECT stry.STRATEGY_ID          STRATEGY_ID
, uitem.STRATEGY_TEMPLATE_ID     TEMPLATE_ID
, uitem.WORK_ITEM_ORDER          ORDER_BY
, TO_NUMBER(NULL)                WORK_ITEM_ID
, uitem.WORK_ITEM_TEMP_ID        WORK_ITEM_TEMPLATE_ID
, uitem.operation                   STATUS
, uitem.pre_execution_wait pre_execution_wait
, uitem.pre_execution_time_uom pre_execution_time_uom
, uitem.post_execution_wait post_execution_wait
, uitem.execution_time_uom post_execution_time_uom
, uitem.xdo_temp_id xdo_template_id
, uitem.OPTIONAL_YN OPTIONAL_YN
, uitem.OPTIONAL_WAIT_TIME OPTIONAL_WAIT_TIME
, uitem.OPTIONAL_WAIT_TIME_UOM OPTIONAL_WAIT_TIME_UOM
, NULL escalated_yn
, uitem.escalate_yn escalate_yn
, uitem.escalate_wait_time escalate_wait_time
, uitem.escalate_wait_time_uom escalate_wait_time_uom
, uitem.NOTIFY_YN NOTIFY_YN
, uitem.resourcE_id resource_id
, uitem.custom_workflow_type custom_workflow_type
FROM IEX_STRATEGIES stry
, IEX_STRATEGY_user_items uitem
, IEX_STRY_TEMP_WORK_ITEMS_VL stry_temp_wkitem
WHERE stry.STRATEGY_ID = uitem.STRATEGY_ID
and uitem.WORK_ITEM_TEMP_ID = stry_temp_wkitem.WORK_ITEM_TEMP_ID
AND stry_temp_wkitem.enabled_flag = 'Y' -- added for bug 7299555
and stry.strategy_id =p_strategy_id
AND not exists
-- exclude useritem whoch is already a workitem
( select 'x' from iex_strategy_work_items wkitem
where wkitem.strategy_id = stry.strategy_id
and wkitem.work_item_template_id = uitem.work_item_temp_id
and uitem.work_item_order = wkitem.work_item_order
and wkitem.strategy_id =p_strategy_id)
order by ORDER_BY;
Line: 984

SELECT competence_id from iex_stry_temp_work_items_vl
where work_item_temp_id =p_work_item_temp_id;
Line: 990

    select account_number,location from iex_strategies_bali_v
      where strategy_id = p_str_id;
Line: 999

SELECT competence_id from iex_strategy_work_skills
where work_item_temp_id =p_work_item_temp_id;
Line: 1003

SELECT callback_wait, callback_uom,optional_yn,option_wait_time,
option_wait_time_uom,escalate_yn, notify_yn,workflow_item_type,work_type,
category_type,fulfil_temp_id
from iex_stry_temp_work_items_vl
where work_item_temp_id =p_work_item_temp_id;
Line: 1028

SELECT temp_resource_id FROM iex_stry_temp_work_items_b
WHERE work_item_temp_id = p_work_item_temp_id;
Line: 1047

   SELECT count(*) into l_str_level_count
   FROM IEX_LOOKUPS_V
   WHERE LOOKUP_TYPE='IEX_RUNNING_LEVEL'
   AND iex_utilities.validate_running_level(LOOKUP_CODE)='Y';
Line: 1098

		      select jtf_object_type, jtf_object_id, cust_account_id,customer_site_use_id
		      into l_object_code, l_object_id, l_cust_account_id,l_siteuse_id
		      from iex_strategies
		      where strategy_id = p_strategy_id;
Line: 1104

                 iex_debug_pub.logmessage ('populate_schedule_times: More than one row for this Strategy. Exception on selecting strategy!!!!!');
Line: 1220

             iex_debug_pub.logMessage ('populate_schedule_times: ' || 'ready to insert work items');
Line: 1331

               IEX_STRY_UTL_PUB.UPDATE_NEXT_WORK_ITEM
                                         (p_api_version => l_api_version,
                                          p_init_msg_list => FND_API.G_TRUE,
                                          p_commit        => FND_API.G_FALSE,
                                          x_msg_count     => l_msg_count,
                                          x_msg_data      => l_msg_data,
                                          x_return_status => l_return_status,
                                          p_strategy_id   => p_strategy_id,
                                          p_work_item_id  => x_work_item_id);
Line: 1349

                select a.name,b.status_code into l_workitem_name , l_wkitem_status   ----bug#5874874 gnramasa
                from  IEX_STRY_TEMP_WORK_ITEMS_VL a, IEX_STRATEGY_WORK_ITEMS b
                where b.work_item_template_id = a.work_item_temp_id
                and b.work_item_id = x_work_item_id;
Line: 1363

	       --Update the UWQ summary table after creating workitem in OPEN status.
               if l_wkitem_status='OPEN' then
	           IEX_STRY_UTL_PUB.refresh_uwq_str_summ(x_work_item_id);
Line: 1604

        SELECT  application_id
        FROM    fnd_application_vl
        WHERE   application_short_name = x_short_name;
Line: 1609

        SELECT  msg.message_number
        FROM    fnd_new_messages msg, fnd_languages_vl lng
        WHERE   msg.message_name = x_msg
          and   msg.application_id = x_id
          and   lng.LANGUAGE_CODE = msg.language_code
          and   lng.language_id = x_lang_id;
Line: 1690

select strategy_template_id from iex_strategies
where  strategy_id =p_strategy_id;
Line: 1697

/*select sxref.strategy_temp_id TEMPLATE_ID,
       sxref.work_item_temp_id WORK_ITEM_TEMPLATE_ID,
       sxref.work_item_order ORDER_BY
       ,nvl(swit.status_code,'NOTCREATED') STATUS
       ,swit.work_item_id     WORK_ITEM_ID
       ,swit.strategy_id      STRATEGY_ID
from iex_strategy_work_temp_xref sxref
     ,iex_strategy_work_items swit
where sxref.strategy_temp_id =p_template_id
and   swit.work_item_template_id(+)  =sxref.work_item_temp_id
and   swit.strategy_id(+) =p_strategy_id
union all
select susit.strategy_template_id TEMPLATE_ID,
       susit.work_item_temp_id WORK_ITEM_TEMPLATE_ID,
       susit.work_item_order ORDER_BY
       ,nvl(swit.status_code,'NOTCREATED') STATUS
       ,swit.work_item_id     WORK_ITEM_ID
       ,susit.strategy_id      STRATEGY_ID
  from iex_strategy_user_items susit
     ,iex_strategy_work_items swit
where susit.strategy_id =p_strategy_id
and   swit.work_item_template_id(+)  =susit.work_item_temp_id
and   swit.strategy_id(+) =p_strategy_id
order by order_by;
Line: 1724

SELECT wkitem.strategy_id     STRATEGY_ID,
wkitem.strategy_temp_id       TEMPLATE_ID,
wkitem.work_item_order        ORDER_BY,
wkitem.work_item_id           WORK_ITEM_ID,
wkitem.work_item_template_id  WORK_ITEM_TEMPLATE_ID,
wkitem.status_code            STATUS
from iex_strategy_work_items wkitem,
iex_stry_temp_work_items_vl stry_temp_wkitem
WHERE
wkitem.work_item_template_id = stry_temp_wkitem.work_item_temp_id
and wkitem.strategy_id =p_strategy_id
--to be created work items
union all
SELECT stry.STRATEGY_ID       STRATEGY_ID
, xref.STRATEGY_TEMP_ID       TEMPLATE_ID
, xref.WORK_ITEM_ORDER        ORDER_BY
, TO_NUMBER(NULL)             WORK_ITEM_ID
, xref.WORK_ITEM_TEMP_ID      WORK_ITEM_TEMPLATE_ID
, 'NOTCREATED'                STATUS
FROM IEX_STRATEGIES stry
, IEX_STRATEGY_WORK_TEMP_XREF xref
, IEX_STRY_TEMP_WORK_ITEMS_VL stry_temp_wkitem
WHERE stry.STRATEGY_TEMPLATE_ID = xref.STRATEGY_TEMP_ID
and xref.WORK_ITEM_TEMP_ID = stry_temp_wkitem.WORK_ITEM_TEMP_ID
and stry.strategy_id =p_strategy_id
--not in workitems table
AND not exists ( select 'x' from iex_strategy_work_items wkitem where
wkitem.strategy_id = stry.strategy_id
and wkitem.work_item_template_id = xref.work_item_temp_id
and wkitem.work_item_order = xref.work_item_order
and  wkitem.strategy_id =p_strategy_id
)
----skip workitems which is status-ed SKIP
and not exists ( select 'x' from iex_strategy_user_items uitems where
uitems.strategy_id = stry.strategy_id  and
uitems.work_item_temp_id = xref.work_item_temp_id and
uitems.work_item_order = xref.work_item_order and
uitems.operation = 'SKIP'
and  uitems.strategy_id =p_strategy_id
)
and (xref.work_item_order > (select max(wkitem_order) from iex_work_item_bali_v
     where strategy_id = p_strategy_id and start_time is not null)
   or (select count(*) from iex_work_item_bali_v where strategy_id = p_strategy_id ) = 0
    )      -- later on assignment of  prior work items, and case of initial creation of wkitem
-- get all user items
union all
SELECT stry.STRATEGY_ID          STRATEGY_ID
, uitem.STRATEGY_TEMPLATE_ID     TEMPLATE_ID
, uitem.WORK_ITEM_ORDER          ORDER_BY
, TO_NUMBER(NULL)                WORK_ITEM_ID
, uitem.WORK_ITEM_TEMP_ID        WORK_ITEM_TEMPLATE_ID
, uitem.operation                   STATUS
FROM IEX_STRATEGIES stry
, IEX_STRATEGY_user_items uitem
, IEX_STRY_TEMP_WORK_ITEMS_VL stry_temp_wkitem
WHERE stry.STRATEGY_ID = uitem.STRATEGY_ID
and uitem.WORK_ITEM_TEMP_ID = stry_temp_wkitem.WORK_ITEM_TEMP_ID
and stry.strategy_id =p_strategy_id
AND not exists
-- exclude useritem whoch is already a workitem
( select 'x' from iex_strategy_work_items wkitem
where wkitem.strategy_id = stry.strategy_id
and wkitem.work_item_template_id = uitem.work_item_temp_id
and uitem.work_item_order = wkitem.work_item_order
and wkitem.strategy_id =p_strategy_id)
order by ORDER_BY;
Line: 1934

 * if the update fails , go and wait
 * for the signal again
 **/

procedure close_strategy(
                         itemtype    in   varchar2,
                         itemkey     in   varchar2,
                         actid       in   number,
                         funcmode    in   varchar2,
                         result      out NOCOPY  varchar2) IS


l_strategy_id NUMBER ;
Line: 2085

 * update the attribute work_item_id in the workflow with the
 * create workitem_id.
 **/
procedure create_next_work_item(
                             itemtype    in   varchar2,
                             itemkey     in   varchar2,
                             actid       in   number,
                             funcmode    in   varchar2,
                             result      out NOCOPY  varchar2) IS

l_api_version   NUMBER       := 1.0;
Line: 2108

select strategy_template_id from iex_strategies
where  strategy_id =p_strategy_id;
Line: 2333

 *of custom or fulfillment wf's.then do nothing ,else update workitem and resume process
 * If the strategy is ON-HOLD' or 'OPEN' THEN do not resume process, the agent will update the
 *work item and update the strategy to 'OPEN' .
 *04/08/02
 * abort fulfilment and custom workflow when agent updates fulfilment or custom workitem
 *04/16/02
 *if the strategy status is 'OPEN' THEN resume process and it is ON-HOLD then do not resume,
 * remain suspended
 04/18/02
 -- if the strategy is changed from on hold to OPEN and if the current work item has
 -- aleady completed ( changed the status from 'OPEN to CCANCELLED, CLOSED, TIMEOUT),
 -- then resume the process, othere wise remain suspended.
 **/
--04/26/02  check if activity label is null before resuming process
-- agent is not going to do update, so send signal will do it.
--07/31/02 --abort the strategy workflow if the workflow is active or
--in error
procedure send_signal(
                         process     in   varchar2 ,
                         strategy_id in   varchar2,
                         status      in   VARCHAR2,
                         work_item_id in number ,
                         signal_source in varchar2 ) IS
l_result VARCHAR2(100);
Line: 2397

                  iex_debug_pub.logmessage('wait_signal: ' || 'agent has not updated the work item');
Line: 2406

                  iex_debug_pub.logmessage('wait_signal: ' || 'agent has updated the work item');
Line: 2621

SELECT a.custom_workflow_type
FROM iex_strategy_user_items a,
iex_strategy_work_items b
WHERE a.strategy_id = b.strategy_id
AND a.work_item_order = b.work_item_order
AND b.work_item_id = p_work_item_id;
Line: 2651

     SELECT STATUS_CODE INTO l_status_code FROM IEX_STRATEGY_WORK_ITEMS WHERE WORK_ITEM_ID = l_work_item_id;
Line: 2656

        UPDATE IEX_STRATEGY_WORK_ITEMS SET STATUS_CODE = 'OPEN' WHERE WORK_ITEM_ID = l_work_item_id;
Line: 2658

	--Update the UWQ summary table after workitem's status changes to OPEN from PRE-WAIT.
        IEX_STRY_UTL_PUB.refresh_uwq_str_summ(l_work_item_id);
Line: 2684

       select decode(workflow_item_type,null,'N','Y'),
       workflow_item_type INTO l_result,l_custom_itemtype
       from iex_stry_temp_work_items_vl
       where work_item_temp_id =l_work_item_temp_id;
Line: 2783

SELECT xdo_temp_id
FROM iex_strategy_work_items
WHERE work_item_id = p_work_item_id;
Line: 2824

         select decode(fulfil_temp_id,null,'N',wf_yes),fulfil_temp_id,work_type
         INTO l_result,l_fulfil_temp_id,l_work_type
         from iex_stry_temp_work_items_vl
         where work_item_temp_id =l_work_item_temp_id;
Line: 2829

         select decode(xdo_template_id,null,'N',wf_yes),xdo_template_id,work_type
         INTO l_result,l_fulfil_temp_id,l_work_type
         from iex_stry_temp_work_items_vl
         where work_item_temp_id =l_work_item_temp_id;
Line: 2929

SELECT post_execution_wait,execution_time_uom
FROM iex_strategy_work_items
WHERE work_item_id = p_work_item_id;
Line: 2982

           select decode(fulfil_temp_id,null,'N',wf_yes),fulfil_temp_id
           INTO l_result,l_fulfil_temp_id
           from iex_stry_temp_work_items_vl
           where work_item_temp_id =l_work_item_temp_id;
Line: 2987

           select decode(xdo_template_id,null,'N',wf_yes),xdo_template_id
           INTO l_result,l_fulfil_temp_id
           from iex_stry_temp_work_items_vl
           where work_item_temp_id =l_work_item_temp_id;
Line: 3006

          select sysdate into l_execution_time from dual;
Line: 3020

	   select a.post_execution_wait, a.execution_time_uom
           into l_post_execution_wait, l_execution_time_uom
           from  IEX_STRY_TEMP_WORK_ITEMS_VL a, IEX_STRATEGY_WORK_ITEMS b
           where b.work_item_template_id = a.work_item_temp_id
           and b.work_item_id = l_work_item_id;
Line: 3114

SELECT pre_execution_wait,pre_execution_time_uom
FROM iex_strategy_work_items
WHERE work_item_id = p_work_item_id;
Line: 3157

	 select a.pre_execution_wait, a.schedule_uom
         into l_pre_execution_wait, l_schedule_uom
         from  IEX_STRY_TEMP_WORK_ITEMS_VL a, IEX_STRATEGY_WORK_ITEMS b
         where b.work_item_template_id = a.work_item_temp_id
         and b.work_item_id = l_work_item_id;
Line: 3275

         select sysdate + 1
         into l_restart_create_wi_time
         from  dual;
Line: 3338

SELECT optional_yn
FROM iex_strategy_work_items
WHERE work_item_id = p_work_item_id;
Line: 3372

       select nvl(optional_yn,'N') INTO l_result
       from iex_stry_temp_work_items_vl
       where work_item_temp_id =l_work_item_temp_id;
Line: 3421

SELECT escalate_yn
FROM iex_strategy_work_items
WHERE work_item_id = p_work_item_id;
Line: 3451

       select nvl(escalate_yn,'N') INTO l_result
       from iex_stry_temp_work_items_vl
       where work_item_temp_id =l_work_item_temp_id;
Line: 3500

SELECT notify_yn
FROM iex_strategy_work_items
WHERE work_item_id = p_work_item_id;
Line: 3529

       select nvl(notify_yn,'N') INTO l_result
       from iex_stry_temp_work_items_vl
       where work_item_temp_id =l_work_item_temp_id;
Line: 3575

       select sysdate+(23/24)
         into l_execution_time
	 from dual;
Line: 3660

       select decode(count(*),0,'N','Y') into l_result
       from iex_Strategies
       where strategy_id =l_strategy_id
       and   status_code ='ONHOLD';
Line: 3678

	       select count(*)
	       into l_timeout_wi
	       from iex_strategy_work_items
	       where work_item_id=l_work_item_id
	       and status_code='TIMEOUT';
Line: 3722

procedure UPDATE_WORK_ITEM(
                         itemtype    in   varchar2,
                         itemkey     in   varchar2,
                         actid       in   number,
                         funcmode    in   varchar2,
                         result      out NOCOPY  varchar2) IS
l_api_version   NUMBER       := 1.0;
Line: 3738

        iex_debug_pub.logmessage ('**** START UPDATE_WORK_ITEM ************');
Line: 3751

         iex_debug_pub.logmessage('UPDATE_WORK_ITEM: ' || 'value of workitem id '||l_work_item_id);
Line: 3753

      IEX_STRY_UTL_PUB.UPDATE_WORK_ITEM (p_api_version => l_api_version,
                                        p_init_msg_list => FND_API.G_TRUE,
                                        p_commit        => FND_API.G_FALSE,
                                        x_msg_count     => l_msg_count,
                                        x_msg_data      => l_msg_data,
                                        x_return_status => l_return_status,
                                        p_work_item_id   => l_work_item_id,
                                        p_status        => 'TIMEOUT');
Line: 3768

       iex_debug_pub.logmessage ('**** END UPDATE_WORK_ITEM ************');
Line: 3779

         iex_debug_pub.logmessage('UPDATE_WORK_ITEM: ' || 'error message is ' || l_error);
Line: 3788

END UPDATE_WORK_ITEM;
Line: 4138

     select party_name into l_party_name from hz_parties where party_id = l_party_id;
Line: 4195

select count(person_id)
from per_competence_elements
where competence_id =l_competence_id
and   person_id     =l_person_id
and   trunc(NVL(effective_date_to,SYSDATE)) >= trunc(sysdate)
and   trunc(effective_date_from) <=  trunc(sysdate) ;
Line: 4390

select count(person_id)
from per_competence_elements
where competence_id =l_competence_id
and   person_id     =l_person_id
and   trunc(NVL(effective_date_to,SYSDATE)) >= trunc(sysdate)
and   trunc(effective_date_from) <=  trunc(sysdate) ;
Line: 4598

procedure update_work_item_to_open(
                         itemtype    in   varchar2,
                         itemkey     in   varchar2,
                         actid       in   number,
                         funcmode    in   varchar2,
                         result      out  NOCOPY varchar2) IS
    L_STATUS_CODE varchar2(30);
Line: 4613

       iex_debug_pub.logmessage ('**** START update_work_item_to_open ************');
Line: 4640

      SELECT STATUS_CODE INTO l_status_code FROM IEX_STRATEGY_WORK_ITEMS WHERE WORK_ITEM_ID = l_work_item_id;
Line: 4646

        UPDATE IEX_STRATEGY_WORK_ITEMS SET STATUS_CODE = 'OPEN' WHERE WORK_ITEM_ID = l_work_item_id;
Line: 4651

        iex_debug_pub.logmessage ('**** END  update_work_item_to_open ************');
Line: 4674

     iex_debug_pub.logmessage ('**** EXCEPTION  update_work_item_to_open ************');
Line: 4683

procedure UPDATE_ESC_FLAG(
                         itemtype    in   varchar2,
                         itemkey     in   varchar2,
                         actid       in   number,
                         funcmode    in   varchar2,
                         result      out NOCOPY  varchar2) IS
l_api_version_number   NUMBER       := 2.0;
Line: 4701

  SELECT status_code, object_version_number
  FROM   iex_strategy_work_items
  WHERE  work_item_id = p_work_item_id;
Line: 4708

        iex_debug_pub.logmessage ('**** START UPDATE_ESCALATION_FLAG ************');
Line: 4725

         iex_debug_pub.logmessage('UPDATE_ESC_FLAG: ' || 'value of workitem id '||l_work_item_id);
Line: 4728

       iex_debug_pub.logmessage ('UPDATE_ESC_FLAG: ' || 'Updating the work item..');
Line: 4736

      IEX_STRATEGY_WORK_ITEMS_PVT.Update_strategy_work_items(
              P_Api_Version_Number         =>l_api_version_number,
              P_strategy_work_item_Rec     =>l_strategy_work_item_Rec,
              P_Init_Msg_List             =>FND_API.G_TRUE,
              p_commit                    =>FND_API.G_TRUE,
              p_validation_level          => FND_API.G_VALID_LEVEL_FULL,
              x_msg_count                  => l_msg_count,
              x_msg_data                   => l_msg_data,
              x_return_status              => l_return_status,
              XO_OBJECT_VERSION_NUMBER     =>l_object_version_number );
Line: 4747

       iex_debug_pub.logmessage ('UPDATE_ESC_FLAG: Return status = ' || l_return_status);
Line: 4751

	iex_debug_pub.logmessage('UPDATE_ESC_FLAG: Refreshing UWQ Summary..');
Line: 4755

		iex_debug_pub.logmessage('UPDATE_ESC_FLAG:Exception when refreshing UWQ Summary: '||SQLERRM);
Line: 4764

       iex_debug_pub.logmessage ('**** END UPDATE_ESC_FLAG ************');
Line: 4771

        iex_debug_pub.logmessage ('**** START UPDATE_NOTIFICATION_RESOURCE ************');
Line: 4777

      SELECT resource_id INTO l_resource_id FROM IEX_STRATEGY_WORK_ITEMS WHERE WORK_ITEM_ID = l_work_item_id;
Line: 4787

       iex_debug_pub.logmessage ('**** END UPDATE_NOTIFICATION_RESOURCE ************');
Line: 4792

                iex_debug_pub.logmessage('UPDATE_ESC_FLAG:Exception UPDATE NOTIFICATION RESOURCE '||SQLERRM);
Line: 4805

         iex_debug_pub.logmessage('UPDATE_ESC_FLAG: ' || 'error message is ' || l_error);
Line: 4807

     wf_core.context('IEX_STRATEGY_WF','UPDATE_ESC_FLAG',itemtype,
                   itemkey,to_char(actid),funcmode,l_error);
Line: 4811

  wf_core.context('IEX_STRATEGY_WF','UPDATE_ESC_FLAG',itemtype,
                   itemkey,to_char(actid),funcmode);
Line: 4814

END UPDATE_ESC_FLAG;