APPS-41 Automate AC for Declare and File as Record Share rule UI

This commit is contained in:
Claudia Agache
2020-05-15 09:45:33 +03:00
parent 076c852d61
commit 63de5f87a0
2 changed files with 6 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -257,7 +257,10 @@ public class RulesAPI extends BaseAPI
JSONObject parameters = new JSONObject();
if (ruleProperties.getPath() != null)
{
parameters.put("createRecordPath", ruleProperties.isCreateRecordPath());
if(ruleProperties.isCreateRecordPath() != null)
{
parameters.put("createRecordPath", ruleProperties.isCreateRecordPath());
}
parameters.put("path", ruleProperties.getPath());
}
if (ruleProperties.getContentTitle() != null)