|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrSessionResponse
IlrSessionResponse
encapsulates the response to a stateless
rule session invocation or to an execute of a stateful rule session
invocation.
The following code example shows how to execute rules and handle results:
String rulesetID= "/loanvalidation/loanvalidationrules"; IlrSessionRequest sessionRequest = new IlrSessionRequest(rulesetID); IlrSessionParameters parameters = sessionRequest.getExecutionSettings() .getInputParameters(); parameters.setParameter("borrower", controller.getBorrower()); parameters.setParameter("loan", controller.getLoan()); try { // execute rules and handle results IlrSessionResponse sessionResponse = ruleSession.executeRules (sessionRequest); Report report = (Report) sessionResponse.getOutputParameters().get("report"); }
Method Summary | |
---|---|
IlrPath |
getCanonicalRulesetPath()
Returns the canonical ruleset path used for ruleset execution. |
Serializable |
getConnectionId()
Returns the connection ID. |
String |
getExecutionId()
Returns the execution ID for this response. |
String |
getInterceptorClassNameUsed()
Returns the name of the interceptor class used. |
Map<String,Object> |
getOutputParameters()
Return a Map object containing the output parameters
for this ruleset. |
String |
getRulesetExecutionOutput()
Returns the output string. |
IlrExecutionTrace |
getRulesetExecutionTrace()
Returns detailed information about the ruleset execution. |
Properties |
getRulesetProperties()
Returns the ruleset properties. |
Serializable |
getUserData()
Returns the user data. |
List<IlrWarning> |
getWarnings()
Returns the warning messages. |
Method Detail |
---|
IlrPath getCanonicalRulesetPath()
null
. If it does,
a problem has occurred with the execution unit (XU), which was not able
to provide the canonical ruleset path to the session.Map<String,Object> getOutputParameters()
Map
object containing the output parameters
for this ruleset.
Serializable getConnectionId()
Serializable getUserData()
List<IlrWarning> getWarnings()
String getInterceptorClassNameUsed()
String getRulesetExecutionOutput()
Properties getRulesetProperties()
IlrExecutionTrace getRulesetExecutionTrace()
IlrExecutionTrace
for this response object.String getExecutionId()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |