---Decision Table----

Can we use Constants or Rules under decision Table?

Currently I believe either we have to hard code conditions or we have to execute a logic outside of the decision table and Pass into decision table as boolean in order to display Error message. Also  to display error message we have to hardcode it . can we create a constant and use it inside decision Table? can we execute the logics using expression rule inside a table?

  Discussion posts and replies are publicly visible

Parents Reply
  • karthik no need to take another rule (rule!checkValue),decision table is enough.

    in your take input as number Integer,output as Text

    if input < 100           output 1
    if input > 255            output 2



    pass your input which is entered from UI,to that decision table


    a!integerField(
    label: "Number",
    value: ri!enteredValue,
    saveInto: ri!enteredValue,
    validations: rule!Test_Decision(input:ri!enteredValue)
    )

Children