The amazing world of IBM ODM and more

The amazing world of IBM ODM blog - Angello Manrique Vigil
  • HOME
  • ABOUT ME
  • CONTACT ME

Automating deployments with Ant tasks

by Angello Manrique Vigil / Monday, 12 June 2017 / Published in Ant Tasks, Rule Authoring, Rule Designer, Rule Execution Server (RES)

To deploy RuleApps to Rule Execution Server, automate managerial tasks within Decision Center, and run many of the samples, you must have Ant installed on your computer. IBM ODM comes with Ant in the <InstallDir>/shared/tools/ant path. In this tutorial I will show how to use Ant tasks to automate RuleApp management tasks, including reading a specified RuleApp archive from the RES console, create a well-formed RuleApp archive with all its mandatory execution resources and deploy a RuleApp archive to a running Rule Execution Server instance.


Steps:

First of all we need to set up our environment to automate processes, please follow the steps in this link.

  1. Downloading RuleApp instances from RES
    • Create an Ant Build file, you can this directly in your Rule project in Eclipse:build file eclipse sample
    • Define your project and property variables values.
    • Tip: You can define properties for your common values like hostname, destfile, userid and password.
    • Please find the next sample as a demonstration of a working Ant build file:res fetch all build ant sample odm res
    • The target res-fetch command extracts a specific Ruleapp value, the res-fetch-all will generate a .war file with all the Ruleapps present in the RES
  2. Deploying into RES with Ant Tasks
    • Now that we have our jar file ready, we can automate the deployments with Ant Tasks by using the res-deploy command.
    • You will need to add a new target to your build ant file or create a new one, this command requires the login credentials, jar path and hostname.
    • Please refer to the following example:res deploy ant task command sample

Results:

After running our deploy command we see our Ruleapp deployed in the RES:

res ruleapp sample

There are many more automation and integration to be done with Ant Tasks, please let me know what you wish to see next, and as always feel free to comment or contact me with any feedback or support! Thank you!

Tagged under: AntTasks, RuleApp, RuleDesigner

About Angello Manrique Vigil

IBM Certified ODM Consultant with 6+ years of experience in designing and developing end to end BRMS and BPM enterprise applications systems. LinkedIn: https://www.linkedin.com/in/angello90/

What you can read next

Decision Composer, integration with Rule Designer
Deploying Rule projects into IBM Bluemix
Monitoring ruleset execution with ODM RES Decision Warehouse

2 Comments to “Automating deployments with Ant tasks”

  1. Mastan says :Reply
    February 2, 2018 at 11:53 am

    Hi Angello,
    First of all thank you so much for sharing your knowledge.And,I did the same process as you but when i try to run the build.xml file through ant then i got the following error.

    Buildfile: C:\Program Files\IBM\ODM88\studio\tutorials\decisionservice\answer\Loan Validation Service\resources\ant\build.xml

    BUILD FAILED
    C:\Program Files\IBM\ODM88\studio\tutorials\decisionservice\answer\Loan Validation Service\resources\ant\build.xml:3: Cannot find C:\Program Files\IBM\ODM88\studio\tutorials\decisionservice\answer\Loan Validation Service\resources\ant\${executionserver.home}\lib\classpath-executionserver.xml imported from C:\Program Files\IBM\ODM88\studio\tutorials\decisionservice\answer\Loan Validation Service\resources\ant\build.xml

    Total time: 480 milliseconds

    Can you please dig in to that and let me know if you get any root-cause.

    Thank You,
    Mastan

    1. Angello Manrique Vigil says :Reply
      March 25, 2018 at 4:11 pm

      Hi Mastan, looks like there is a problem with your IBM ODM installation. Did you have any errors after starting the sample server?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ant Tasks
  • Bluemix
  • Cloud
  • Database
  • Debug
  • Decision Center
  • Decision Operation
  • Decision Table
  • Decision Warehouse
  • Docker
  • Domains
  • Java
  • ODM API
  • RPA
  • Rule Authoring
  • Rule Designer
  • Rule Execution Server (RES)
  • Rule Solutions for Office
  • Ruleflow
  • UiPath

Archives

  • August 2018
  • July 2018
  • June 2018
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017

Subscribe

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Tags

AntTasks Bluemix BOM BOM2XOM Cloud Database Debug DecisionCenter DecisionComposer DecisionOperation DecisionService DecisionTable DecisionWarehouse Deployment Docker Domains DynamicDomains Java Lists ODMAPI RES RPA RuleApp RuleDesigner RuleFlow Ruleset RuleSolutionsForOffice SOAP SoapUI UiPath XOM

Recent Posts

  • RPA – UiPath: Working with Excel

    In this blog post we will talk about working wi...
  • ODM on Docker!

    If you are a DevOps enthusiast like me you prob...

Angello Manrique Vigil

IBM Certified ODM Consultant with 6+ years of experience in designing and developing end to end BRMS and BPM enterprise applications systems.
LinkedIn: https://www.linkedin.com/in/angello90/

All rights reserved. Made by Angello Manrique Vigil.

TOP