cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Specifying the sequence for Business rule execution

chanmo
Explorer
0 Kudos
186

Hi,

We've have 4 set of business rules. One of the business rule(A2000_2) is depedent on another business rule(A2000). To get the key figures calculated for the accounts in A2000_2, users had to execute the logic script twice.

To avoid executing the logic scripts multiple times, is there a way to specify the sequence of the business rules execution in the script logic? or loop the logic script to run twice. Below the logic script we are using.

*FOR %CAT% = %CATEGORY_SET%

*RUN_PROGRAM CALC_ACCOUNT

CATEGORY = %CAT%

CURRENCY = LC

TID_RA = %TIME_SET%

CALC = A1000,A2000,A2000_2,A3000

OTHER = [ENTITY = %ENTITY_SET%]

*ENDRUN_PROGRAM

*NEXT

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Kudos

Something like:

*FOR %CAT% = %CATEGORY_SET% 
 
*RUN_PROGRAM CALC_ACCOUNT 
CATEGORY = %CAT% 
CURRENCY = LC 
TID_RA = %TIME_SET% 
CALC = A1000,A2000 
OTHER = [ENTITY = %ENTITY_SET%] 
*ENDRUN_PROGRAM 

*RUN_PROGRAM CALC_ACCOUNT 
CATEGORY = %CAT% 
CURRENCY = LC 
TID_RA = %TIME_SET% 
CALC = A2000_2,A3000 
OTHER = [ENTITY = %ENTITY_SET%] 
*ENDRUN_PROGRAM 
 
*NEXT