Forum Discussion

FICO's avatar
FICO
Community Manager
8 years ago

Insert "Return value" in the Generic Template (Decision Table) for the "Action Cell Groups" in Dynamic Binding.

Objective: Insert "return value" in the Generic Template (Decision Table) for "Action Cell Groups" in Dynamic Binding.

Situation: In a given decision table, there are two rules that are triggered in execution, the value received in the second rule is overwriting the value received in the first rule.

Difficulty: Add a return value, rule to rule, where upon receipt of the "return value" of the first rule, execution is terminated without reading the others rules.

Generic Template Setting:

pastedimage_4

Rule 6:

pastedimage_7

Rule 157:

pastedimage_9

Thanks a lot!!!

7 Replies

  • FICO's avatar
    FICO
    Community Manager

    By default, when you first create a decision table template, it creates an Action Cell Group with a Display Name of Result and a binding of return, as long as your table has a return type.  I am assuming then that your return type was set to void.  You can still add an additional Action Cell Group, choose a Static Action Cell Group, add a Cell Format to it, and create a template in the table that displays whatever you choose, and in the SRL Content area just says return.  If you create it as an Optional Action Cell Group, you can just add this column in tables where you want it to return and not use it on other tables.

  • FICO's avatar
    FICO
    Community Manager

    The goal would be to create the return using the "Dynamic Binding", so that the business user can have flexibility when creating their decision tables.

    In this way, we could not use "Static Binding". Is it possible to create the return through "Dynamic Binding"?

    Thanks a lot!!!

  • FICO's avatar
    FICO
    Community Manager

    Since the statement is just "return" there is nothing dynamic about it.  It is creating it as its own column in the table, and it doesn't interfere with the rest of the columns using Dynamic Binding.  I don't see any way to edit the Dynamic Binding so that it builds the return statement into it.

  • FICO's avatar
    FICO
    Community Manager

    Unfortunately this feature would be of great help, offering flexibility to the "end user" in the RMA.

    Using "Static Bilding", how can we proceed to create a simple "return value" through it?

    Thnaks a lot !!!

  • FICO's avatar
    FICO
    Community Manager

    Can you send me screens with the implementation of this return?

  • FICO's avatar
    FICO
    Community Manager

    First you add a code template within the Decision Table template:

    pastedimage_0

    Then you create the static action and add this template to the Cell Formats:

    pastedimage_1

    Leading to rules looking the way you were trying to get:

    pastedimage_2

    Making your table look more like this:

    pastedimage_3

  • FICO's avatar
    FICO
    Community Manager

    Thomas, thanks a lot !!!

    You are the man ....