Rules Engine Configuration Guide
Rules Engine Configuration Guide
Rules Engine
No part of this document may be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without the express written permission of TEMENOS Holdings NV.
Table of Contents
Overview.................................................................................................................................................. 3
Setup ....................................................................................................................................................... 4
Installation Prerequisites ...................................................................................................................... 4
T24 Release ..................................................................................................................................... 4
Rules Engine JAR (Java Archive) .................................................................................................... 4
Java .................................................................................................................................................. 4
T24 Toolbox ..................................................................................................................................... 4
Profile settings ..................................................................................................................................... 5
JAVA_HOME.................................................................................................................................... 5
PATH ................................................................................................................................................ 5
LIBPATH .......................................................................................................................................... 5
CLASSPATH .................................................................................................................................... 5
Temenos Connector Settings ........................................................................................................... 6
Known Issues .......................................................................................................................................... 7
Java Versioning ................................................................................................................................... 7
Java JVM Errors .................................................................................................................................. 7
Temenos Connector issues ................................................................................................................. 8
Overview
This document explains Pre-requisites and setup details for configuring ARC Rules-engine
components. The Java Rules-Engine components can be obtained from Temenos distribution.
([email protected] )
For a detailed guide on how to use the T24 Rules Engine and Rule Designer, Refer to the main user
guide.
Setup
Installation Prerequisites
T24 Release
The T24 release that includes support for the Rules Engine is R08 (from build 200706 onwards).
Ensure any EB.API records with SOURCE.TYPE equal to “Java” have authorised.
bnk.run (directory)
|_____ RulesEngine (directory)
| rules-engine.jar
| xml-apis.jar
| xercesImpl.jar
| jaxb-api.jar
| jaxb-impl.jar
| jaxb-xjc.jar
| jsr173_1.0_api.jar
| antlr-2.7.6.jar
| commons.jar
| commons-codec-1.3.jar
These jar files including the rules-engine.jar will be released in the form of a zip file. These entire jar
files will need to be copied into the run directory of the T24 account under a new directory called
RulesEngine.
Java
Recommended version - Java 1.5 or above.
T24 Toolbox
The Rule Designer graphical user-interface is part of the T24 ToolBox suite of applications In order to
use the Rule Designer graphical user-interface, Temenos Toolbox ( version 1.2007.10.4 or above)
must be installed. . For information on how to install the T24 Toolbox product refer to the ‘ToolBox’
user guide available under the ‘Presentation>ToolBox’ section I the T24 User Guides.
Profile settings
Following environment variables needs to be changed in .profile file. (For Win NT below changes must
be done in remote.cmd file).
Note :
- path separator in UNIX is ‘:’ and in Windows should be ‘;
- Below specified directories are for example only
JAVA_HOME
Environment variable must point to the java runtime installation directory.
For Unix [ export JAVA_HOME=/usr/bin/java15 ]
For Win NT [ set JAVA_HOME= C:\Java\jre1.5 ]
PATH
The shell searches for executables in order of path elements appearing in PATH, Hence ensure that
the Java bin directory appears in PATH, and earlier than any other versions. The recommended
approach is to insert $JAVA_HOME/bin at the front of the PATH environment variable.
LIBPATH
For Unix [ export LIBPATH=$LIBPATH:$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/j9vm ]
For Win NT [ set JBCJVMLIB=C:\Java\jre1.5\bin\client\jvm.dll ]
CLASSPATH
For Unix
export RELIB=$HOME/RulesEngine
export CLASSPATH=$CLASSPATH:$RELIB/rules-engine.jar
export CLASSPATH=$CLASSPATH:$RELIB/xml-apis.jar
export CLASSPATH=$CLASSPATH:$RELIB/ xercesImpl.jar
export CLASSPATH=$CLASSPATH:$RELIB/ xalan.jar
export CLASSPATH=$CLASSPATH:$RELIB/ jaxb-api.jar
export CLASSPATH=$CLASSPATH:$RELIB/ jaxb-impl.jar
export CLASSPATH=$CLASSPATH:$RELIB/ jsr173_1.0_api.jar
export CLASSPATH=$CLASSPATH:$RELIB/antlr-2.7.6.jar
export CLASSPATH=$CLASSPATH:$RELIB/commons.jar
export CLASSPATH=$CLASSPATH:$RELIB/commons-codec-1.3.jar
set RELIB=%HOME%\RulesEngine
set CLASSPATH=%CLASSPATH%;%RELIB%\rules-engine.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\xml-apis.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\xercesImpl.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\xalan.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\jaxb-api.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\jaxb-impl.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\jsr173_1.0_api.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\antlr-2.7.6.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\commons.jar
set CLASSPATH=%CLASSPATH%;%RELIB%\commons-codec-1.3.jar
Known Issues
Java Versioning
It is essential that jBase and Java are using compatible bit architecture (i.e). If running on NT, 64 bit
jBase with 64 bit NT etc. Following command can be used to determine java version
java -version
If a message such as 'command not found', is observed or an older version of Java being reported,
check the PATH environment variable.
Windows : JBCJVMLIB
Linux : LD_LIBRARY_PATH
HP-UX : SHLIB_PATH
AIX : LIBPATH
Solaris : LD_LIBRARY_PATH
$ BASIC . testcallj.b
$ CATALOG . testcallj.b
If this fails to compile, it must be ensured that the routine testcallj.b has the correct line endings
for the environment. This is achieved using either:
$ dos2ux testcallj.b > testcall2.b2
$ tr -d '\r' < testcallj.b > testcallj.b2
Once testcallj compiles, check if CALLJ is correctly configured.
$ testcallj
received from Java
Input: param
java.version: 1.5.0
java.vendor: IBM Corporation
If CALLJ is working, a message something similar to the lines above should be observed, depending
on the T24 server platform. If not, retry same after checking environment variables
If CALLJ is not configured correctly, the Rules Designer should report an error when attempting to
validate, save, or test a rule.
If Tag is being used instead of TCServer please consult the TAG consultant for configuration
information.