org.wso2.carbon.rule.kernel.engine
Class RuleSession
java.lang.Object
org.wso2.carbon.rule.kernel.engine.RuleSession
public class RuleSession
- extends Object
This abstract the Back end rule session with OM processing layer. This class basically converts the OMElement messages
to real pojo objects and send to backend. Then converts back.
|
Method Summary |
org.apache.axiom.om.OMElement |
execute(org.apache.axiom.om.OMElement inputElement,
org.wso2.carbon.rule.common.Input input,
org.wso2.carbon.rule.common.Output output)
This method converts the OMElement messages received to POJO format using Axis2 BeanUtil class and converts
the results back to OMElement form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleSession
public RuleSession(Session session)
execute
public org.apache.axiom.om.OMElement execute(org.apache.axiom.om.OMElement inputElement,
org.wso2.carbon.rule.common.Input input,
org.wso2.carbon.rule.common.Output output)
throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
- This method converts the OMElement messages received to POJO format using Axis2 BeanUtil class and converts
the results back to OMElement form. In order to do these conversions it uses the input and output configurations
given by the user.
- Parameters:
inputElement - - in comming message OMElementinput - - input configuration which specify which classes to be used with which Elements.output - - output configuration to be used to convert the results back to OMElements
- Returns:
- - Result OMElement after applying the rules
- Throws:
org.wso2.carbon.rule.common.exception.RuleRuntimeException - - if there are problems with the configuration
Copyright © 2015 WSO2. All rights reserved.