Deploy Checkstyle Ruleset


Software Prerequisites

Deploy ruleset to IBM Operational Decision Manager Decision Server

If you want to execute ruleset through Decision Server, you should deploy your ruleset to Decision Server like IBM Cloud or on-premise Rule Execution Server.

  1. Set up the Decision Server.

  2. Deploy your ruleset.

    • Open deployment Operation in rule project CheckstyleRules. On the Deployment Target Servers tab, add a target server using the Connection Settings found in Decision Server.

    • Deploy the Checkstyle rules to your IBM Business Rules Service on IBM Cloud. Open deploymentOperation in 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.

  3. 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, Decision Server Username.

    • Click the Test Connection button to test the connection between IDA and ODM Server. If successful, click Save to save the changes.

Deploy ruleset in local

If you want to execute ruleset in local file system, you need to replace the ruleset file following steps below.

  1. Deploy your ruleset

    • There is no need to define or choose a target server when deploy your ruleset in local.

    • After the successful deployment, the ruleset has been generated in the output folder of 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.
  2. Change configurations in ida.properties

    • Make sure the value of ruleExecutionMode in ida.properties is 0.