AnsweredAssumed Answered

Read rows in Dynamic Table

Question asked by ctsarsonas on Dec 29, 2017

I'm currently using activiti 6.0. The scenario is that the user will enumerate a list of items inside a dynamic table:

 

Items

Quantity

Pants30
Shorts15

 

Each rows will be processed using Decision Table as reference list/data with the ff. sample condition and statement (psedocode):

 

If (Item == "Pants")

{ 

    If (Qty >= 30)

        Price = 250;

    Else

        Price = 300;

}

 

If (Item == "Shorts")

{ 

     If (Qty >= 30)    

         Price = 100; 

     Else    

          Price = 150;

}

Result = Qty * Price;

 

Final result should be like this :

 

ItemsQuantityPriceAmount
Pants302507500
Shorts151502250

 

Is there a way to read each row of the dynamic table and loop the process using decision table?

Is there a best practice on how to do this kind of scenario?

Your help is highly appreciated. Thank you

Outcomes