将EBS设为首页worklist删除误报

简介:
参考:How To Remove Error Notifications From The Worklist (Doc ID 357904.1)

1. 1. Use one of the error notifications to get an item_type from the following select:


select message_type from wf_notifications where notification_id = <NID>;

select message_type from applsys.wf_notifications where notification_id=93885;
--WFERROR

2. Use the following script to abort all error workflows that has currently notifications with status OPEN:
Declare
         cursor c_item_keys is
         select act.item_type , act.item_key
              from wf_item_activity_statuses act
             ,wf_notifications n
             ,wf_items itm
             where act.notification_id = n.notification_id
             and act.item_type = itm.item_type
             and act.item_key = itm.item_key
             and itm.end_date is null
             and act.item_type = '<message_type>' -- value returned in step 1
             and act.activity_status in ('ERROR','NOTIFIED')
             and n.status = 'OPEN' 
             and act.assigned_user = 'SYSADMIN';

             counter number;  

  Begin
    counter := 1 ;
    for item in c_item_keys loop 
         wf_engine.abortprocess(item.item_type,item.item_key); 
         counter := counter + 1 ; 
         if counter > 1000 then 
                counter := 1 ;
                commit; 
         end if;
     end loop;
     commit;
End;

NOTE:
  - Replace the <message_type> by the message_type value returned in step 1.
  - This script will remove error notifications from sysadmin.  Replace sysadmin by the end user needed or comment the line to run the script for all end users.

3. Run the concurrent request:   "Purge Obsolete Workflow Runtime Data".
NOTE:
 - In some cases the error workflow may have a child workflow, for example, POERROR workflow may fail to send a notification to a certain user, so that it will generate a WFERROR notification to sysadmin.  In that case one has to run the script in step 2 first for WFERROR workflow.

An item_key is not required to run the Purge Obsolete Workflow Runtime Data request.  Running it without use of an item_key, all eligible data will be purged.

版权声明:本文博主原创文章,博客,未经同意不得转载。








本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/4776713.html,如需转载请自行联系原作者


相关文章
|
SQL 安全 算法
阿里云OpenAPI 云安全中心-检查项-检查项详情-子项-通过与未通过判断依据是什么呢?好多都看不出来明显的差别?
阿里云OpenAPI 云安全中心-检查项-检查项详情-子项-通过与未通过判断依据是什么呢?好多都看不出来明显的差别?
94 1
帐户权限影响HijackThis对O6项的扫描结果
帐户权限影响HijackThis对O6项的扫描结果
|
8月前
|
缓存 网络安全
discuz门户分类列表页出现重定向过多
discuz门户分类列表页出现重定向过多
67 0
删除一段时间内的记录,关键在于删除时筛选条件确定删除范围
删除一段时间内的记录,关键在于删除时筛选条件确定删除范围
105 0
蓝色主机删除临时页面教程
对于大多数新手站长而言,购买主机后,在使用的过程中或多或少会遇到一些技术上的问题,例如不知如何删除临时页面,关于此问题,接下来BueHost主机指南为大家详细介绍BueHost主机如何删除临时页面,具体操作步骤如下:
Confluence 6 如何配置快速导航的同时查找数量
进入后台后查看快速导航的启用和可以同时查找的数量。 然后进行通过单击右上角的编辑(Edit)按钮进行编辑。   对配置进行配置,启用快速查询和可以同时使用的最大查询数量。
834 0
|
缓存 Java
Confluence 6 升级自定义的站点和空间关闭缓存
Velocity 被配置在内存中使用缓存模板。当你在 Confluence 中编辑了页面的模板文件,Confluence 知道文件进行了编辑,将会重新从磁盘中载入模板文件。
1019 0