Launch a BusinessRule Template from Businessrule with multiple values for Designtimeprompt
Summary:
How to Launch a BusinessRule Template from Businessrule with multiple values for Designtimeprompt
Content (required):
We want to run a longer businessrule for the current OR the current and prior period (months) depending on certain criteria. To avoid duplication of code we decided to use a businessruletemplate, launch it from a businessrule with different values based on 1 substitutionvariable for the Designtimeprompt (DTS_Periods).
In the businessrule, I make some if-elseif checks ,if certain aggregation and values exist in previous period - if the aggregation is missing, I use a loop function to execute the businessrule-template, which calculates the prior and current period, if the prior period does not need calculation, I execute a the ruletemplate for the current period.