|
|
|
@ -142,8 +142,9 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
|
|
|
|
|
inputs.put(AccountingDashboardHarvesterPlugin.MEASURE_TYPE_INPUT_PARAMETER, aggregationType.name());
|
|
|
|
|
inputs.put(AccountingDashboardHarvesterPlugin.GET_VRE_USERS_INPUT_PARAMETER, true);
|
|
|
|
|
inputs.put(AccountingDashboardHarvesterPlugin.RERUN_INPUT_PARAMETER, true);
|
|
|
|
|
inputs.put(AccountingDashboardHarvesterPlugin.RERUN_INPUT_PARAMETER, false);
|
|
|
|
|
inputs.put(AccountingDashboardHarvesterPlugin.DRY_RUN_INPUT_PARAMETER, false);
|
|
|
|
|
inputs.put(AccountingDashboardHarvesterPlugin.PARTIAL_HARVESTING, false);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
Calendar from = DateUtils.getStartCalendar(2016, Calendar.SEPTEMBER, 1);
|
|
|
|
@ -152,12 +153,18 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
inputs.put(AccountingDataHarvesterPlugin.START_DATE_INPUT_PARAMETER, fromDate);
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// 3rd of the month for MONTHLY Harvesting at 10:00
|
|
|
|
|
// CronExpression cronExpression = new CronExpression("0 0 10 3 1/1 ? *");
|
|
|
|
|
|
|
|
|
|
// Every day at 10:00 for partial harvesting
|
|
|
|
|
CronExpression cronExpression = new CronExpression("0 0 10 3 1/1 ? *");
|
|
|
|
|
|
|
|
|
|
Scheduling scheduling = new Scheduling(cronExpression);
|
|
|
|
|
scheduling.setGlobal(false);
|
|
|
|
|
LaunchParameter launchParameter = new LaunchParameter(AccountingDashboardHarvesterPluginDeclaration.NAME, inputs,
|
|
|
|
|
scheduling);
|
|
|
|
|
//LaunchParameter launchParameter = new LaunchParameter(AccountingDashboardHarvesterPluginDeclaration.NAME, inputs);
|
|
|
|
|
|
|
|
|
|
smartExecutor.launch(launchParameter);
|
|
|
|
|
|
|
|
|
|
logger.info("End.");
|
|
|
|
|