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.
▪ 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;
▪ 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.
▪ JavaLocalRuleProviderService: Define in file btt.xml, and point to the implementation class of the service. The class should extend the abstract class: JavaCodeRuleProviderService;