Runtime tools : Service components : Rule provider services : Configure the service
  
Configure the service
If you want to use a Rule Provider Service, you need to configure the service firstly.
ILog Rule Provider Service definition:
Use ILog Rule Provider Service, you can access the ILog rule engine in local and remote. The following are format to define local and remote ILog Rule Provider Service.
Local ILog Rule Provider Service definition:
< ILogRuleProviderService id=“ILogConnectService" ruleID=“/miniloanruleapp/1.0/miniloanrules/1.0” mode=“j2ee” />
ILogLocalRuleProviderService: Define in file btt.xml, and point to the implementation class of the service. ILogLocalRuleProviderService is the implementation class provided by UDTT, and you can point to your implementation also;
id: the ID of the service
ruleID: rule ID in ILog project
mode:
j2ee: default value, and application connects to ILog rule engine in same JVM in j2ee mode by ILog connector service;
j2se: application connects to ILog rule engine in same JVM in J2SE mode by ILog connector service;
Remote ILog Rule Provider Service definition:
<ILogRemoteRuleProviderService id=“TransferRuleService"/>
ILogRemoteRuleProviderService: Define in file btt.xml, and point to the implementation class of the service. The class should extend the abstract class: JavaCodeRuleProviderService. Take calling ILog by Web Service as example, ILog provides a tool to generate the client stub, and you can call the stub in checkRule() method to access ILog engine.
id: the ID of the service
Java Local Rule Provider Service definition:
<JavaLocalRuleProviderService id=“TransferRuleService" ruleID=“checkLimit” />
JavaLocalRuleProviderService: Define in file btt.xml, and point to the implementation class of the service. The class should extend the abstract class: JavaCodeRuleProviderService;
id: the ID of the service
ruleID: rule ID in the specified rule service
Go up to
Rule provider services