From f1ee0585b7a24ad7a2522ede926c8f73f69220e3 Mon Sep 17 00:00:00 2001 From: cagache Date: Fri, 28 Sep 2018 09:29:07 +0300 Subject: [PATCH] Corrected variable name --- .../rest/v0/service/DispositionScheduleService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/service/DispositionScheduleService.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/service/DispositionScheduleService.java index cc7130ce67..22520994ce 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/service/DispositionScheduleService.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/service/DispositionScheduleService.java @@ -76,12 +76,12 @@ public class DispositionScheduleService extends BaseAPI */ public void addRetainAfterPeriodStep(String categoryName, String period) { - HashMap cutOffStep = new HashMap<>(); - cutOffStep.put(RETENTION_SCHEDULE.NAME, "retain"); - cutOffStep.put(RETENTION_SCHEDULE.RETENTION_PERIOD, period); - cutOffStep.put(RETENTION_SCHEDULE.DESCRIPTION, "Retain after a period step"); + HashMap retainStep = new HashMap<>(); + retainStep.put(RETENTION_SCHEDULE.NAME, "retain"); + retainStep.put(RETENTION_SCHEDULE.RETENTION_PERIOD, period); + retainStep.put(RETENTION_SCHEDULE.DESCRIPTION, "Retain after a period step"); recordCategoriesAPI.addDispositionScheduleSteps(dataUser.getAdminUser().getUsername(), - dataUser.getAdminUser().getPassword(), categoryName, cutOffStep); + dataUser.getAdminUser().getPassword(), categoryName, retainStep); } /**