<#ftl output_format="JSON"> <#-- The macro for generating view and template metadata for a new Datastore --> <#macro newDataStore request uuid name entities> { <#-- recipe section --> "objectStatus": "NEW", "replaceable": true, "recipeObjectId": "DATASTORE-0", "templateForCreate": "createDataStore.ftlx", "templateForUpdate": "updateDataStore.xsl", <#-- bindings section --> "uuid": "${uuid}", "versionUuids": ["${request.generateUuid("DATASTORE_VERSION")}"], "currentVersionUuid": "${uuid}", "dataStoreSourceUuid": "${request.getTargetObject().fields.dataStoreSourceUuid}", "autoUpdateSchema": false, "isReadersInherit": false, "isAuthorsInherit": false, "isAdministratorsInherit": false, <#-- i18n section --> "name": "${name?json_string}", "description": "${request.getTextWithKey("recordActionTemplateRecipe.object.dataStore.description")?json_string}", "dataStoreEntities": [ <#list entities as entity> { "uuid": "${entity.uuid}", "name": "${entity.name?json_string}", "type": "${entity.type}", <#-- TODO: add a post process to change this status in AN-188892 --> "datatypeRecipeObjectId": "DATATYPE-0", "dseObjectStatus": "NEW" <#if entity?has_next> }, <#else> } ] }