org.wso2.carbon.rule.kernel.backend
Interface Session


public interface Session

This interface abstracts the rule session concept. Backend can create a session according to the type requested. Then session can execute the different fact sets.


Method Summary
 void destroy()
           
 List execute(List facts)
          apply the rules to the given sent of facts and send the result facts back.
 

Method Detail

execute

List execute(List facts)
             throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
apply the rules to the given sent of facts and send the result facts back.

Parameters:
facts - - list of facts given as POJOs to be executed against backend runtime
Returns:
- list of facts after applying the rules
Throws:
org.wso2.carbon.rule.common.exception.RuleRuntimeException - - if there is a problem occurs

destroy

void destroy()
             throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
Throws:
org.wso2.carbon.rule.common.exception.RuleRuntimeException - - if there is a problem occurs


Copyright © 2015 WSO2. All rights reserved.