public class RuleSession extends Object
| Constructor and Description |
|---|
RuleSession(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
This method dispose the wrapped knowledge session
|
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.
|
public RuleSession(Session session)
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
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 OMElementsorg.wso2.carbon.rule.common.exception.RuleRuntimeException - - if there are problems with the configurationpublic void destroy()
throws org.wso2.carbon.rule.common.exception.RuleRuntimeException
org.wso2.carbon.rule.common.exception.RuleRuntimeException - - if error occurred when disposing underlying drools knowledge sessionCopyright © 2019 WSO2. All rights reserved.