You can identify the results of a ruleset execution by
adding a decision identifier to the transparent decision service request.
Procedure
Use the DecisionID element to identify
the transparent decision service that your request defines.
- Add the appropriate code to the transparent decision service
request.
Here is an example for an Axis
client:
public DecisionServiceRequest(
java.lang.String decisionID,
decisionservice.axisclient.proxy.param.OrderParameter orderParameter,
decisionservice.axisclient.proxy.param.CustomerParameter customerParameter) {
this.decisionID = decisionID;
this.orderParameter = orderParameter;
this.customerParameter = customerParameter;
}
Attention: When you provide the decision ID, make sure that it is unique. Otherwise, the
client receives a response but that response is not registered in Decision Warehouse. A warning is
issued in the output string.
- Write the client call as follows:
DecisionServiceRequest dsr = new DecisionServiceRequest ("mydecision",orderParam,customerParam);
Results
From the response element, the client of the service can identify the value of the decision ID.
The element stores the decision ID and sends the results of this execution to Decision Warehouse. A
mandatory element keeps track of the decision ID request. This element indicates the execution
identifier.