<#ftl output_format="JSON"> <#-- The macro for generating template metadata for a new Process Model Folder --> <#macro newProcessModelFolder request recipeObjectId uuid name adminGroups="" viewerGroups="" replaceable=true triggers="" description=""> { <#-- recipe section --> "version": 2, "objectType": "PROCESS_MODEL_FOLDER", "replaceable": ${replaceable?c}, "recipeObjectId": "${recipeObjectId}", "templateForCreate": "ix/v2/createProcessModelFolder_v2.ftlx", "templateForReuse": "recipes/v2/existingProcessModelFoldersHelper_v2.ftl", "selectedObjectIndex": 0, "isVisible": true, <#if triggers?has_content> "triggers": ${triggers}, <#-- the set of new and reused objects --> "objects": [ { "objectStatus": "NEW", "templateObjectId": "${recipeObjectId}-0", "objectIndex": 0, <#-- bindings section --> "uuid": "${uuid}", "versionUuids": ["${request.generateUuid("PROCESS_MODEL_FOLDER_VERSION")}"], <#if adminGroups?has_content> "adminOwnerGroups": ${adminGroups}, <#if viewerGroups?has_content> "viewerGroups": ${viewerGroups}, "isReadersInherit": false, "isAuthorsInherit": false, "isAdministratorsInherit": false, <#-- i18n section --> "name": "${name?json_string}", <#if description?has_content> "description": "${description?json_string}" <#else> "description": "${request.getTextWithKey("recordActionTemplateRecipe.object.processModelFolder.description", request.application.name)?json_string}" } ] } <#-- The macro for generating view and template metadata for an existing Process Model Folder --> <#macro reusedProcessModelFolder templateHelper newObjectMetadata processModelFolder recipeObjectId objectIndex> { <#-- recipe section --> "objectStatus": "EXISTING", "templateObjectId": "${recipeObjectId}-${objectIndex?c}", "objectIndex": ${objectIndex?c}, <#-- bindings section --> "uuid": "${processModelFolder.getUuid()}", <#-- i18n section --> "name": "${processModelFolder.getName()?json_string}", "description": "${processModelFolder.getDescription()?json_string}" }