<#ftl output_format="JSON"> <#-- The macro for generating view and template metadata for a new Process Display Name Expression Rule --> <#macro newDisplayNameExpressionRule request uuid name ruleFolderUuid cdt processModelName cdtDisplayFieldName> <#assign processModelNameNoPrefix = request.getTextResolver().format(processModelName, "STRIP_APP_PREFIX", request.getAppPrefix())> { <#-- recipe section --> "objectStatus": "NEW", "replaceable": false, "recipeObjectId": "CONTENT_FREEFORM_RULE-0", "templateForCreate": "createExpressionRule.ftlx", <#-- bindings section --> "uuid":"${uuid}", "versionUuids":["${uuid}"], "parentUuid": "${ruleFolderUuid}", "cdtFirstField": "${cdtDisplayFieldName}", "ruleInputs": [ { "name": "cancel", "typeName": "boolean", "typeNamespace": "http://www.w3.org/2001/XMLSchema" }, { "name": "record", "typeName": "${cdt.name}", "typeNamespace": "${cdt.typeNamespace}" } ], "name": "${name?json_string}", <#-- i18n section --> "description": "${request.getTextWithKey("recordActionTemplateRecipe.object.expressionRule.displayName.description", processModelNameNoPrefix)?json_string}", "processTitle": "${processModelNameNoPrefix?json_string}" }