IBM Support

Removing the DecisionID from a decision service signature

Troubleshooting


Problem

How to remove the DecisionID from the transparent decision service input and output messages?

Cause

Starting in JRules V7.1, the transparent decision services input and output include by default a DecisionID field. The decision ID, also named executionId, is used to identify a decision or execution.

This can be a problem for web service clients that are designed to execute rules on JRules V7.0 which did not use the decision id. It would require modifying those client code to comply with the input or output of the new decision service.

Resolving The Problem

For Hosted Transparent Decision Service (HTDS):

Refer to section WebSphere ILOG JRules BRMS V7.1 > Migrating > Migrating from JRules V7.0.x > Migrating decision services of the JRules documentation to see how to remove the decision ID from the web service signature.

An additional solution can also be found in the JRules V7.1 readme under section "Documentation supplement > Setting the compatibility parameter for a hosted transparent decision service using the WSDL query URL".



For Monitored Transparent Decision Service (MTDS):

As explained in section WebSphere ILOG JRules BRMS V7.1 > Rule Execution Server > Introducing Rule Execution Server > Creating a client for Rule Execution Server > Creating a Web service or monitored transparent decision service project for RuleApps of the documentation, Rule Studio allows to generate a web service component to call rules that are deployed on Rule Execution Server.

The WSDL for this component is based on its Java code generated by Rule Studio. Modifying the Java code permits to alter the web service and remove the decision id from its input and output.

To do so, follow the below steps.

In this example the rule project or ruleset name is MyRules, the RuleApp project is named MyRuleApp and the web service project named MyMTDS:

  1. In the src directory of the MyMTDS project, find the files MyRulesRequest.java and MyRulesResult.java under the MyRuleApp package.
  2. In both classes, remove or comment the attribute executionId, as well as the corresponding getter and setter, setExecutionId and getExecutionId. Also remove or comment the references to that attribute executionId in MyMTDSRunnerImpl.java, as indicated by the errors you might get if the project is rebuilt.
  3. Compile the project, generate and redeploy the web service component.

In either case, the deployed decision service now has the same signature and behavior that it had in JRules V7.0.

[{"Product":{"code":"SS6MTS","label":"WebSphere ILOG JRules"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modules:Execution Server (BRES \/ RES)","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modules:Execution Server","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0;7.5","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 July 2021

UID

swg21592934