Decision Management & Intelligence (ODM, DI)

Decision Management & Intelligence (ODM, DI)

Connect with experts and peers to elevate technical expertise, solve problems and share insights


#Data
#Data
#Businessautomation
#DecisionManagement
 View Only
  • 1.  How to set timeout on rule execution.

    Posted 12/16/21 10:47 AM
    We are using ODM 8.10.3. In an ODM rule we are receiving a list of objects, and we implemented a iteration in rule flow. ( e.g if index < list.size(), self iteration, in else case move to next node in flow). I forget incrementing index variable and executed rule. this resulted in infinite loop, which resulted in full Rule Server down.
    In order to avoid above scenario, or any other infinite loop , Is there any way we can set time out on all rules?
    Thanks

    ------------------------------
    Atiq Rehman
    ------------------------------


  • 2.  RE: How to set timeout on rule execution.

    Posted 12/16/21 11:33 AM
    There is a new property in 8.10.5 you can set on the ruleset  for decisionengine:   ruleset.decisionEngine.maxRunningTime
    see https://www.ibm.com/docs/en/odm/8.10?topic=properties-built-in-ruleset


    ------------------------------
    Alain Robert
    ------------------------------



  • 3.  RE: How to set timeout on rule execution.

    Posted 12/20/21 12:03 AM
    Dear Alain Robert, thanks for your reply. Is there any solution in 8.10.3 ? Means without ODM server up gradation, how we can achieve?

    ------------------------------
    Atiq Rehman
    ------------------------------



  • 4.  RE: How to set timeout on rule execution.

    Posted 01/04/22 05:16 PM
      |   view attached
    You could use the code attached here to detect loops. The readme included explains how to install and use this execution unit plugin.
    Build the jar using maven and  the following projects https://github.com/ODMDev/odm-libs-in-maven

    Happy new year!

    ------------------------------
    Alain Robert
    ------------------------------

    Attachment(s)



  • 5.  RE: How to set timeout on rule execution.

    Posted 01/05/22 02:40 AM
    Thanks. I will look into it and will try.

    ------------------------------
    Atiq Rehman
    ------------------------------