Deploy Checkstyle Ruleset
Software Prerequisites
Deploy ruleset to IBM Operational Decision Manager Decision Server
If you want to execute the ruleset through the Decision Server, you should deploy your ruleset to the Decision Server like IBM Cloud or an on-premise Rule Execution Server.
-
Set up the Decision Server.
-
Deploy your ruleset.
-
Open the deployment Operation in the rule project CheckstyleRules. On the Deployment Target Servers tab, add a target server using the Connection Settings found in the Decision Server.
-
Deploy the Checkstyle rules to your IBM Business Rules Service on IBM Cloud. Open the deploymentOperation in the rule project CheckstyleRules. On the Deployment Overview tab, make sure Deploy the XOM is selected as Yes and click Proceed to RuleApp deployment.
-
After the deployment is completed, a report will be generated as follows. You can also check your IBM Cloud Business Rules service to verify that the ruleset is successfully deployed.
-
-
Change configurations in Administration > Settings.
-
Go to the Settings section under Administration.
-
Make sure that the Checkstyle Engine is set to ODM and configure the values of Rest Url, Decision Server Username, and Decision Server Password.
-
Click the Test Connection button to test the connection between IDA and the ODM Server. If successful, click Save to save the changes.
-
Deploy ruleset locally
If you want to execute the ruleset in the local file system, you need to replace the ruleset file following these steps below.
-
Deploy your ruleset
- There is no need to define or choose a target server when deploying your ruleset locally.
- After the successful deployment, the ruleset has been generated in the output folder of the CheckstyleRules Project as the file CheckstyleRules.dsar. Replace the ruleset in IDA.war(IDA-web/WEB-INF/classes/data/CheckstyleRules.dsar) with the new one.
-
Change configurations in ida.properties
- Make sure the value of ruleExecutionMode in ida.properties is 0.