diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/rules/RuleDefinition.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/rules/RuleDefinition.java index 80f9b07200..927fd0fec5 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/rules/RuleDefinition.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/rules/RuleDefinition.java @@ -41,7 +41,7 @@ public class RuleDefinition private boolean runInBackground = false; private String ruleType = ConditionsOnRule.ADDED.getWhenConditionValue(); private String path; - private boolean createRecordPath = false; + private Boolean createRecordPath; private String contentTitle; private String contentDescription; private String rejectReason; @@ -145,7 +145,7 @@ public class RuleDefinition return this; } - public boolean isCreateRecordPath() + public Boolean getCreateRecordPath() { return createRecordPath; } diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RulesAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RulesAPI.java index 798d50761b..773d5d8fd1 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RulesAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RulesAPI.java @@ -257,7 +257,10 @@ public class RulesAPI extends BaseAPI JSONObject parameters = new JSONObject(); if (ruleProperties.getPath() != null) { - parameters.put("createRecordPath", ruleProperties.isCreateRecordPath()); + if(ruleProperties.getCreateRecordPath() != null) + { + parameters.put("createRecordPath", ruleProperties.getCreateRecordPath()); + } parameters.put("path", ruleProperties.getPath()); } if (ruleProperties.getContentTitle() != null) diff --git a/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/actions.properties b/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/actions.properties index cade03818a..34215766fe 100644 --- a/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/actions.properties +++ b/rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/messages/actions.properties @@ -46,12 +46,13 @@ isRecordType.description=Records have a specified record type # # i18n for Records Management Actions # -# Declare As Record -create-record.title=Declare as Record +# File As Record +create-record.title=File as Record create-record.description=Declares file as a record and optionally files it create-record.file-plan.display-label=File Plan create-record.hide-record.display-label=Hide Record create-record.path.display-label=Record Folder Location + # Declare As Version Record declare-as-version-record.title=Declare Version as Record declare-as-version-record.description=Declares this version of the file as a record and optionally files it