I want to log the name of rule, the problem :

How to get the rule name in XOM?

OR

Can I inject a code before execute the rule?

有帮助吗?

解决方案 3

But i don't know, if the rule will use this BOM. The solution is in this link: http://pic.dhe.ibm.com/infocenter/dmanager/v8r0m1/index.jsp?topic=%2Fcom.ibm.wodm.dserver.rules.ref.res%2Fhtml%2Fapi%2Fhtml%2Filog%2Frules%2Fengine%2FIlrToolAdapter.html

Associate a ToolAdaptar and you can get a notification if a rule has been excuted. There are some functions that will be implemented. (an existing sample here)

其他提示

Il you use Z/OS you will have more option in Log, associate an Observer Class, you can Logger if there are an exception in the close IF or the close Then...

You can use BOM (add a virtual method: non existant in XOM -> ensure access to execution variables) in which you can get the name of the rule with the instance variable (an IlrRuleInstance runtime variable containing the current executing rule): instance.getRuleName()

After that inject it to your XOM ensuring that you have a method accepting the ruleName: XOMMethodLogRule(instance.getRuleName())

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top