In this
blog we will see how to run multiple Rules of Enterprise Profitability and Cost
Management (EPCM) using Groovy in Sequential and proceed with the next rule
only after completion the previous rule.
/**************************************************************************************/
/*
Run IC Calcs All Region
*/
/*
Creation Date : 10th Apr 2024 */
/* Version : 1.0 */
/* Modifications : */
/* The Rule uses the Sub Var &CurMth,
&CurYr. */
/* The Rule will be executing the following, */
/*
1. Clear for EMEA */
/* 2.
Clear for APAC */
/* 3.
Clear for Americas */
/*
4. Merge Slices */
/*
5. Run Ruleset Ranges: */
/* Start End */
/* 1 999 */
/**************************************************************************************/
connectionName is a variable that stores the name of the connection to the server. In this case, it's set to 'Localhost'. This variable is later used to specify which server to connect to when making HTTP requests.
def
connectionName = 'Localhost'
Closure
subVarValue = { String subVar ->
operation.application.getSubstitutionVariable(subVar).value }
String
CurYr = subVarValue('CurYr')
String
CurMth = subVarValue('CurMth')
println "The Rule is using the Sub Var Current Year : " +CurYr +" " + "Current Month : " +CurMth