Decision Management (ODM,ADS)

 View Only
  • 1.  Can we have more than one if statement

    Posted Thu April 25, 2024 08:10 PM

    I am in the rule designer. I created an action rule with a single if statement. It looks like it does not accept another if statement inside the same action rule? Do I have to create another action rule?

    Thanks!



    ------------------------------
    Ajay Chowdhury
    ------------------------------


  • 2.  RE: Can we have more than one if statement

    Posted Fri April 26, 2024 03:42 AM
    Edited by Peter Warde Fri April 26, 2024 03:47 AM

    No, you cannot. ODM does not support nested business rules.

    It looks like your approach to ODM is wrong i.e. you are trying to program in ODM . Business rules are declaratory statements that tells the business how the business must run. They are not code, even low code, which is a procedural sequence of instructions created by a programmer using an IDE such as Rule Designer. The concerns of coding and authoring rules are very different. Business rules are concerned only with the business and are declaratory, stand-alone i.e. both you and the rule do not need to know the context or order in which rule runs. By contrast Programming is concerned with creating sets of ordered instructions called algorithms and removing bugs. It is a common mistake to confuse the two in ODM.

    If you want to write code, use code created by programmer in an IDE. If you want to write rules then they should be authored by the business people  who understand the rule in Decision Center as declaratory business statements.



    ------------------------------
    Peter Warde
    peterwarde@rulearchitect.com
    ------------------------------



  • 3.  RE: Can we have more than one if statement

    Posted Fri April 26, 2024 07:39 AM

    Just to add that sometimes you have a number of rules that follow a pattern in that case you can use a decision table instead of creating many rules, you use a table to conveniently write your business logic.



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