Skip to Content

Function context issue

There are two decision tables:

Step1:

First Decision table say dec1

Table settings: Return all match found is checked

Input elements : ele1 & ele2

Output elements : result data object is of type table say tab1 ; tab1 contains ele3 and ele4

Step2:

Second Decision table say dec2

Table settings: Return all match found is checked

Input elements : ele5

Output elements : result data object is of type table say tab2 ; tab2 contains ele3

Step3:

Now in the function context ( function name say func )

context data objects: ele1, ele2 and ele5

result data object: structure say str with two elements ele3 and ele4

Step4:

Created a ruleset say Ruleset1

Created a rule inside the ruleset

Processing expression dec1

Processing expression dec2

After checking ( clicking on check )

  • ELE3 (Data Object) : Multiple use of identical objects (TAB1-STR1-ELE3 and STR-ELE3) in context/temporary ruleset variable not allowed Display Related Object (Detail) Display Help
  • ELE4 (Data Object) : Multiple use of identical objects (TAB1-STR1-ELE4 and STR-ELE4) in context/temporary ruleset variable not allowed Display Related Object (Detail) Display Help
  • ELE3 (Data Object) : Multiple use of identical objects (TAB2-STR2-ELE3 and STR-ELE3) in context/temporary ruleset variable not allowed Display Related Object (Detail) Display Help

untitled.png (81.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 19, 2016 at 09:27 PM

    Hi,

    as the message states: you are not allowed to use the same object (identical UUID) as the result structure (data object) and within your ruleset as an intermediate variable in a table.

    If you use different data objects as results from your decision table operations and finally move the desired result into the result structure of your function.

    Best regards,

    Christian

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2016 at 06:50 AM

    Hi Christian,

    What if I have a scenario wherein I have same data object as above? Is there any other way to handle it?

    BR,

    Gopa

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2016 at 12:04 PM

    Hi Gopa,

    unfortunately not. You really have to kind of "duplicate" them

    BR

    Christian

    Add comment
    10|10000 characters needed characters exceeded