博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
将EBS设为首页worklist删除误报
阅读量:7200 次
发布时间:2019-06-29

本文共 1877 字,大约阅读时间需要 6 分钟。

参考: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.

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

你可能感兴趣的文章
SQLPrompt_7.2.2.273〖含注册机〗(支持低版本和最高版本SQL2016+VS2015)
查看>>
匿名方法,Lambda表达式,高阶函数
查看>>
Android(Xamarin)之旅(二)
查看>>
【dotnet跨平台】微软昨天宣布正式发布.NET Core RC2和.NET Core SDK Preview 1,还有Entity Framework Core RC2...
查看>>
介绍一个好用的软件--多个WIN远程连接
查看>>
探索不一样的ERP 在云端的企业管理平台
查看>>
也聊老朋友:诺基亚的归来
查看>>
频频发力 5G,英特尔在下一代技术上都做了什么?
查看>>
DOM
查看>>
Nginx学习笔记(一) Nginx架构
查看>>
【数据结构之旅】稀疏矩阵的快速转置
查看>>
LLDB使用以及技巧
查看>>
C语言指针传递详解
查看>>
[翻译] JTNumberScrollAnimatedView
查看>>
Groovy语法介绍
查看>>
玩转2048,不如搞定2048
查看>>
第一米店Diyimi.net 域名交易
查看>>
IOS中表视图(UITableView)使用详解
查看>>
Lua talbe's pairs & ipairs & traverse loop, table.pack and table.unpack
查看>>
主机使用wifi时,虚拟机的网络配置
查看>>