Rule providers are implemented as UNICOM® Digital Transformation Toolkit (UDTT™) services, which provides the common interfaces to visit rule engines, including ILog and Java Code rule engine.
Rule provider services must implement the IBTTRuleProvider interface, and extend the UDTT Service class. checkRule method in IBTTRuleProvider connects to the rule engine, and check the policy. ILogRuleProviderService and JavaCodeRuleProviderService are both extended from IBTTRuleProvider. ILogRuleProviderService provides a default implementation to access local ILog Rule Engine. To access remote ILog or Java local rule engine, you need to extend JavaCodeRuleProviderService yourself The following codes give an example to use these services: