cancel
Showing results for 
Search instead for 
Did you mean: 

Function context issue

former_member227510
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

christianlechne
Active Contributor
0 Kudos

Hi Gopa,

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

BR

Christian

former_member227510
Participant
0 Kudos

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

christianlechne
Active Contributor
0 Kudos

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