mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
APPS-41 Automate AC for Declare and File as Record Share rule UI
This commit is contained in:
@@ -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 isCreateRecordPath()
|
||||
{
|
||||
return createRecordPath;
|
||||
}
|
||||
|
@@ -256,8 +256,11 @@ public class RulesAPI extends BaseAPI
|
||||
ruleActionObj.put("actionDefinitionName", ruleAction);
|
||||
JSONObject parameters = new JSONObject();
|
||||
if (ruleProperties.getPath() != null)
|
||||
{
|
||||
if(ruleProperties.isCreateRecordPath() != null)
|
||||
{
|
||||
parameters.put("createRecordPath", ruleProperties.isCreateRecordPath());
|
||||
}
|
||||
parameters.put("path", ruleProperties.getPath());
|
||||
}
|
||||
if (ruleProperties.getContentTitle() != null)
|
||||
|
Reference in New Issue
Block a user