DBA Data[Home] [Help]

APPS.WF_XML SQL Statements

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

Line: 40

      select WMA.TYPE, WMA.DISPLAY_NAME, WNA.TEXT_VALUE, WNA.NAME
      from WF_NOTIFICATION_ATTRIBUTES WNA, WF_NOTIFICATIONS WN,
           WF_MESSAGE_ATTRIBUTES_VL WMA
      where WNA.NOTIFICATION_ID = p_nid
      and WN.NOTIFICATION_ID = WNA.NOTIFICATION_ID
      and WN.MESSAGE_TYPE = WMA.MESSAGE_TYPE
      and WN.MESSAGE_NAME = WMA.MESSAGE_NAME
      and WMA.TYPE = 'URL'
      and WMA.ATTACH = 'N'
      and WMA.NAME = WNA.NAME;
Line: 143

     select name
     from wf_users
     where (name, orig_system, orig_system_id) in
        (select user_name, user_orig_system, user_orig_system_id
           from wf_user_roles
              where role_name = urc1.role
                and role_orig_system = substr(urc1.role, 1, urc1.colon-1)
                and role_orig_system_id = substr(urc1.role, urc1.colon+1)
                and user_name <> role_name
                and user_orig_system <> role_orig_system
                and user_orig_system_id <> role_orig_system_id)
        and notification_preference not in ('SUMMARY','QUERY')
         order by notification_preference, language;
Line: 159

     select name
     from wf_users
     where (name, orig_system, orig_system_id) in
        (select user_name, user_orig_system, user_orig_system_id
           from wf_user_roles
              where role_name = urc2.role
              and user_name <> role_name)
        and notification_preference not in ('SUMMARY','QUERY')
       order by notification_preference, language;
Line: 956

         l_sublist.DELETE;
Line: 966

         l_sublist.DELETE;
Line: 1031

      select WMA.TYPE, WMA.DISPLAY_NAME,
             decode(WMA.TYPE, 'URL', WF_NOTIFICATION.GetUrlText(WNA.TEXT_VALUE,
                    p_nid), WNA.TEXT_VALUE) URL, WNA.NAME
      from WF_NOTIFICATION_ATTRIBUTES WNA, WF_NOTIFICATIONS WN,
           WF_MESSAGE_ATTRIBUTES_VL WMA
      where WNA.NOTIFICATION_ID = p_nid
      and WN.NOTIFICATION_ID = WNA.NOTIFICATION_ID
      and WN.MESSAGE_TYPE = WMA.MESSAGE_TYPE
      and WN.MESSAGE_NAME = WMA.MESSAGE_NAME
      and (WMA.TYPE = 'URL' or WMA.TYPE = 'DOCUMENT')
      and WMA.ATTACH = 'Y'
      and WMA.NAME = WNA.NAME;
Line: 1097

               l_attrlist.DELETE;
Line: 1166

                  l_attrlist.DELETE;
Line: 1205

                  l_attrlist.DELETE;
Line: 1268

               l_attrlist.DELETE;
Line: 1283

         l_attrlist.DELETE;
Line: 1317

         l_attrlist.DELETE;
Line: 1378

      select WMA.NAME, WMA.DISPLAY_NAME, WMA.DESCRIPTION, WMA.TYPE, WMA.FORMAT,
             decode(WMA.TYPE,
               'VARCHAR2', decode(WMA.FORMAT,
                             '', WNA.TEXT_VALUE,
                             substr(WNA.TEXT_VALUE, 1, to_number(WMA.FORMAT))),
               'NUMBER', decode(WMA.FORMAT,
                           '', to_char(WNA.NUMBER_VALUE),
                           to_char(WNA.NUMBER_VALUE, WMA.FORMAT)),
               'DATE', decode(WMA.FORMAT,
                         '', to_char(WNA.DATE_VALUE),
                         to_char(WNA.DATE_VALUE, WMA.FORMAT)),
               'LOOKUP', WNA.TEXT_VALUE,
               WNA.TEXT_VALUE) VALUE
      from   WF_NOTIFICATION_ATTRIBUTES WNA,
             WF_NOTIFICATIONS WN,
             WF_MESSAGE_ATTRIBUTES_VL WMA
      where  WNA.NOTIFICATION_ID = p_nid
        and    WN.NOTIFICATION_ID = WNA.NOTIFICATION_ID
        and    WN.MESSAGE_TYPE = WMA.MESSAGE_TYPE
        and    WN.MESSAGE_NAME = WMA.MESSAGE_NAME
        and    WMA.NAME = WNA.NAME
        and    WMA.SUBTYPE = 'RESPOND'
        and    WMA.TYPE not in ('FORM', 'URL')
       order  by WMA.SEQUENCE;
Line: 1407

         l_attrlist.DELETE;
Line: 1414

         l_attrlist.DELETE;
Line: 1491

         select installed_flag
         into l_installed_lang
         from wf_languages
         where nls_language = p_nlang
           and nls_territory = p_nterr
           and installed_flag = 'Y';
Line: 1541

      l_attrlist.DELETE;
Line: 1549

         select priority, access_key, status
            into l_priority, l_access_key, l_status
         from wf_notifications_view
         where notification_id = p_nid;
Line: 1609

      l_attrlist.DELETE;
Line: 1624

        select 1 into l_response
        from dual
        where exists (select NULL
                  from WF_MESSAGE_ATTRIBUTES MA,
                       WF_NOTIFICATIONS N
                  where N.NOTIFICATION_ID = p_nid
                  and   MA.MESSAGE_TYPE = N.MESSAGE_TYPE
                  and   MA.MESSAGE_NAME = N.MESSAGE_NAME
                  and   MA.SUBTYPE = 'RESPOND');
Line: 1719

      l_attrlist.DELETE;
Line: 1728

         select recipient_role, priority, status, more_info_role
            into l_recipient, l_priority, l_status, l_more_info_role
         from wf_notifications
         where notification_id = p_nid;
Line: 1824

      l_attrlist.DELETE;
Line: 1831

         select recipient_role, priority, status, more_info_role
            into l_recipient, l_priority, l_status, l_more_info_role
         from wf_notifications
         where notification_id = p_nid;
Line: 1900

         select recipient_role
            into l_recipient_role
         from wf_notifications
         where notification_id = p_nid
           and ((MAIL_STATUS = 'MAIL' and STATUS <> 'CLOSED')
            or (MAIL_STATUS = 'INVALID'));
Line: 1915

         l_recipient_list.DELETE;
Line: 1933

         l_recipient_lang.DELETE;
Line: 1977

              l_recipient_lang.DELETE;
Line: 2018

         select recipient_role
            into l_recipient_role
         from wf_notifications
         where notification_id = p_nid
           and MAIL_STATUS in ('MAIL', 'INVALID');
Line: 2082

         select recipient_role, more_info_role
            into l_recipient_role, l_more_info_role
         from wf_notifications
         where notification_id = p_nid
           and MAIL_STATUS in ('MAIL', 'INVALID')
           and STATUS <> 'CLOSED';
Line: 2436

               select status into l_currstatus
               from wf_notifications
               where notification_id = l_nid
                  and status in ('OPEN','CANCELED', 'CLOSED')
                  and mail_status in ('MAIL','INVALID','FAILED');
Line: 2531

      select protocol, inbound_outbound, queue_count
         into l_protocol, l_iobound, l_queue_count
      from wf_queues
         where protocol = 'SMTP'
           and INBOUND_OUTBOUND = 'OUTBOUND'
           and DISABLE_FLAG = 'N';
Line: 2629

      select userenv('LANGUAGE')
      into nls_base
      from sys.dual;
Line: 2669

         select installed_flag
         into l_installed_flag
         from wf_languages
         where nls_language = language
           and installed_flag = 'Y';
Line: 2730

      resourceList.DELETE;
Line: 2832

      attrlist.DELETE;
Line: 2845

         attrlist.DELETE;
Line: 2882

      attrlist.DELETE;
Line: 2927

         select UR.USER_NAME, UR.USER_ORIG_SYSTEM, UR.USER_ORIG_SYSTEM_ID
                from   WF_USER_ROLES UR
                where  UR.ROLE_NAME = rname
                  and    UR.ROLE_ORIG_SYSTEM = rorig
                  and    UR.ROLE_ORIG_SYSTEM_ID = rorigid
                  and    ((UR.USER_NAME <> UR.ROLE_NAME) or
                          (UR.USER_ORIG_SYSTEM <> UR.ROLE_ORIG_SYSTEM  and
                           UR.USER_ORIG_SYSTEM_ID <> UR.ROLE_ORIG_SYSTEM_ID));
Line: 2940

      copy_recipient_list.DELETE;
Line: 3199

         select ACCESS_KEY, PRIORITY, STATUS, MESSAGE_TYPE,
                MESSAGE_NAME, MORE_INFO_ROLE
         into access_key, priority, status, messageType,
              messageName, moreInfoRole
         from WF_NOTIFICATIONS
         where  NOTIFICATION_ID = nid;
Line: 3226

            attrlist.DELETE;
Line: 3279

         attrlist.DELETE;
Line: 3587

      attrlist.DELETE;
Line: 3688

         attrlist.DELETE;
Line: 3730

            attrlist.DELETE;
Line: 3735

         attrlist.DELETE;
Line: 3756

         resourceList.DELETE;
Line: 3817

            attrlist.DELETE;
Line: 3831

            attrlist.DELETE;
Line: 3866

         attrlist.DELETE;
Line: 3906

            attrlist.DELETE;
Line: 3916

         attrlist.DELETE;
Line: 3936

         attrlist.DELETE;
Line: 4082

         select UR.USER_NAME, UR.USER_ORIG_SYSTEM, UR.USER_ORIG_SYSTEM_ID
                from   WF_USER_ROLES UR
                where  UR.ROLE_NAME = rname
                  and    UR.ROLE_ORIG_SYSTEM = rorig
                  and    UR.ROLE_ORIG_SYSTEM_ID = rorigid
                  and    ((UR.USER_NAME <> UR.ROLE_NAME) or
                          (UR.USER_ORIG_SYSTEM <> UR.ROLE_ORIG_SYSTEM  and
                           UR.USER_ORIG_SYSTEM_ID <> UR.ROLE_ORIG_SYSTEM_ID));
Line: 4134

         attrlist.DELETE;
Line: 4151

         attrlist.DELETE;
Line: 4169

         attrlist.DELETE;
Line: 4236

         select NVL(MORE_INFO_ROLE, RECIPIENT_ROLE), STATUS, MAIL_STATUS,
                MESSAGE_TYPE, MESSAGE_NAME
         into recipient_role, status, mail_status, messageType, messageName
         from WF_NOTIFICATIONS
         where  NOTIFICATION_ID = nid;
Line: 4253

           attrlist.DELETE;
Line: 4271

           attrlist.DELETE;
Line: 4298

           attrlist.DELETE;
Line: 4317

           attrlist.DELETE;
Line: 4355

           attrlist.DELETE;
Line: 4373

           attrlist.DELETE;
Line: 4392

           attrlist.DELETE;
Line: 4556

         attrlist.DELETE;
Line: 4589

         select nls_codeset
         into l_nlsCodeset
         from wf_languages
         where nls_language = l_nlsLanguage;
Line: 4684

      attrlist.DELETE;
Line: 4734

      attrlist.DELETE;
Line: 4747

      attrlist.DELETE;
Line: 4795

         attrList.DELETE;
Line: 4798

      attrlist.DELETE;
Line: 4846

         select UR.USER_NAME, UR.USER_ORIG_SYSTEM, UR.USER_ORIG_SYSTEM_ID
                from   WF_USER_ROLES UR
                where  UR.ROLE_NAME = rname
                  and    UR.ROLE_ORIG_SYSTEM = rorig
                  and    UR.ROLE_ORIG_SYSTEM_ID = rorigid
                  and    ((UR.USER_NAME <> UR.ROLE_NAME) or
                          (UR.USER_ORIG_SYSTEM <> UR.ROLE_ORIG_SYSTEM  and
                           UR.USER_ORIG_SYSTEM_ID <> UR.ROLE_ORIG_SYSTEM_ID));
Line: 4889

         attrlist.DELETE;
Line: 4908

         attrlist.DELETE;
Line: 4913

         attrlist.DELETE;
Line: 4995

         attrlist.DELETE;
Line: 5133

         select 1
         into l_open
         from wf_notifications
         where notification_id = nid
           and status = 'OPEN';
Line: 5215

   responses.delete;
Line: 5676

                  wf_notification.UpdateInfo2(l_nid, l_user, l_fromAddr,
                                                l_comment);
Line: 5685

                 wf_notification.UpdateInfo2(l_nid, l_user, l_fromAddr,
                                               l_comment);
Line: 5822

      SELECT recipient from
       (SELECT distinct nvl(more_info_role,recipient_role) recipient
      FROM   wf_notifications
      WHERE  mail_status is null
      AND    status = 'OPEN'
      AND    rownum > 0)
      WHERE  Wf_Directory.GetRoleNtfPref(recipient) in ('SUMMARY', 'SUMHTML');
Line: 6066

         select MESSAGE_TYPE, CALLBACK, CONTEXT, STATUS
         into   itemType, cb, ctx, status
         from   WF_NOTIFICATIONS
         where  NOTIFICATION_ID = nid;
Line: 6077

         update wf_notifications
         set mail_status = 'ERROR'
         where notification_id = nid;
Line: 6109

            select ACTIVITY_STATUS
            into status
            from wf_item_activity_statuses ias
                 , wf_process_activities pa
           where ias.item_type = itemType
             and ias.item_key = itemKey
             and ias.process_activity    = pa.instance_id
             and pa.process_name = 'ROOT';