<#ftl output_format="JSON"> <#-- The macro for generating template metadata for a new Rule Folder --> <#macro newRuleFolder request uuid name adminGroups="" readerGroups=""replaceable=true> { <#-- recipe section --> "objectType": "RULE_FOLDER", "objectStatus": "NEW", "replaceable": ${replaceable?c}, "recipeObjectId": "RULE_FOLDER-0", "templateForCreate": "createRuleFolder.ftlx", "templateForReuse": "recipes/existingRuleFoldersHelper.ftl", <#-- bindings section --> "uuid": "${uuid}", "versionUuids": ["${request.generateUuid("RULE_FOLDER_VERSION")}"], "parentUuid": "SYSTEM_RULES_ROOT", <#if adminGroups?has_content> "administratorGroups": ${adminGroups}, <#if readerGroups?has_content> "readerGroups": ${readerGroups}, "isReadersInherit": false, "isAuthorsInherit": false, "isAdministratorsInherit": false, <#-- i18n section --> "name": "${name?json_string}", "description": "${request.getTextWithKey("recordActionTemplateRecipe.object.ruleFolder.description", request.application.name)?json_string}" } <#-- The macro for generating view and template metadata for an existing Rule Folder --> <#macro reusedRuleFolder templateHelper recipeMetadata ruleFolder recipeObjectId> { <#-- recipe section --> "objectStatus": "EXISTING", "replaceable": true, "recipeObjectId": "${recipeObjectId}", <#-- bindings section --> "uuid": "${ruleFolder.getUuid()}", <#-- i18n section --> "name": "${ruleFolder.getName()?json_string}", "description": "${ruleFolder.getDescription()?json_string}" }