cancel
Showing results for 
Search instead for 
Did you mean: 

loop step with a decision table - confirmation

MichalKrawczyk
Active Contributor
0 Kudos
278

Hi Guys,

I'm trying to create an expression for sending a table (2 fields: source, target) like line type - source_line

and I want to loop via a decision table to get the target field - can you please confirm my understanding of the flow:

1. processing mode (Perform Action - as I only want to change the target field in the source/input table)  ?

2. rule:

change "source_line" after processing - "decision table with two fields - (source and target)"

is that all ?

Thank you for confirmation,

Regards,

Michal Krawczyk

Accepted Solutions (1)

Accepted Solutions (1)

christianlechne
Active Contributor
0 Kudos

Hi Michal,

if I understand you correctly you can indeed directly manipulate the context object within the rule as you described it.

Without the loop this looks something like the following screenshots

Nevertheless you have to take care that when calling the BRF+Function from your backend to enforce BRF+ to hand back the changed context values:

Nervertheless you have some drawbacks as you will e. g. not directly see the result when doing the simulation (as the result object itself remains empty)

BR Christian

MichalKrawczyk
Active Contributor
0 Kudos

hi Christian,

thank you for the info - just one more question:

how to I pass the correct value to the decision table from the line type ?

(as it does not seem to work if the field name is the same currently)

Thank you,

Regards,

Michal Krawczyk

0 Kudos

Refer to the attribute of the line type as context when you add the columns in your decesion table.

"Insert Column"--> "From Context Data Objects".

Be careful that you select the attribute of the correct structure. If you have multiple data objects in your application scope with the same structure as the line type or type , then you get multiple entries and you need to ensure you select the correct one.

christianlechne
Active Contributor
0 Kudos

Hi Michal,

As Indranil already replied the assignement of the field of the structure is done when setting up the decision table. Here you have to define the condition column(s) where in your case you have to select the field of the structure you are working on:

BR Christian

Answers (0)