How to get RuleIds of the Decision Table rules that were triggered by VRF invoke call.

How to get RuleIds of the Decision Table rules that were triggered by VRF invoke call.

book

Article ID: KB0083748

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.2.1 and above

Description

If you want to keep track of RuleIds that were triggered by a specific InvokeVRF* call to a DT or list of DTs , the rule Ids will help with book keeping purposes on specific rules that are affected by an Invoke. This helps fine tune the DT and eliminate any redundant rules .
 

Issue/Introduction

How to get RuleIds of the Decision Table rules that were triggered by VRF invoke call.

Environment

All Supported Platforms

Resolution

We started returning a list of RuleIds that were triggered for all the VRF invoke functions starting with BE 5.2.1.

1). For invoking a single DT:

invokeVRFImplByName
invokeVRFImpl

The return type is an int[] - Integer array containing the matched rule Ids.

2). For invoking multiple DT's,

invokeVRFImpls
invokeAllVRFImpls

The return type is an Object - Result Map containing the matched rules associated to the executed Decision Table. Key-Value pair structure, with Key being the Decision Table name and value being the integer array containing the matched rule Ids.