Command Line Utility for Rule Execution

You can execute RRF Rule definitions through command line utility.

To execute Rule definitions, do the following:

1.      Navigate to $FIC_HOME/utility/RuleExecution/bin of OFSAAI APP tier.

2.     Execute RuleExecution.sh (UNIX) along with the required arguments such as <BatchRunExeID> <ComponentID> <TaskID> <MisDate> <DataStoreType> <INFODOM> <IPaddress> <RuleID> <BuildFlag> <OptionalParameters> in the same order.

 

Arguments

Description

BatchRunExeID

Refers to the Execution ID of the Batch being executed.

ComponentID

Refers to The Type of component to be executed.

TaskID

Refers to the Task ID.

MisDate

Refers to the date with which the data for the execution would be filtered.

DataStoreType

Refers to the type of data store such as Enterprise Data Warehouse (EDW) which refers to the Multi-dimensional Database/Cubes.

INFODOM

Refers to the Information Domain mapped.

IPaddress

Refers to the IP Address of the machine on which Infrastructure Database Components have been installed.

RuleID

Refers to the Rule definition to be executed.

BuildFlag

Build Flag refers to the pre-compiled rules, which are executed with the query stored in database.

Built Flag status set to "No" indicates that the query statement is formed dynamically retrieving the technical metadata details.

If the Build Flag status is set to "Yes" then the relevant metadata details required to form the rule query is re-compiled in database.

OptionalParameters

Refers to the set of parameters which would behave as filter criteria for the merge query.

 

For example,

ksh RuleExecution.sh RRFATOM_exec_rule_20120904_1 RULE_EXECUTION Task1 20120906 EDW RRFATOM A.B.C.D 1344397138549 N '$RUNID=,$PHID=,$EXEID=,$RUNSK='

3.     You can access the location $FIC_HOME/utility/RuleExecution/logs to view the related log files. Also the component specific logs can be accessed in the location fic_home/ftpshare/logs.