<#ftl output_format="JSON"> <#-- The macro for generating template metadata for a new Process Model --> <#macro newProcessModel request recipeObjectId uuid name description pmFolderUuid displayNameUuid recordUuid interfaceUuid interfaceName interfaceRuleInputs processModelNodes processVariables startForm lanes processDisplayName processModelTemplate adminGroups="" viewerGroups="" replaceable=true triggers="" properties=""> { <#-- recipe section --> "version": 2, "objectType": "PROCESS_MODEL", "replaceable": ${replaceable?c}, "recipeObjectId": "${recipeObjectId}", "templateForCreate": "${processModelTemplate}", "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")}"], "pmFolderUuid": "${pmFolderUuid}", "displayNameUuid": "${displayNameUuid}", "interfaceUuid": "${interfaceUuid}", "interfaceName": "${interfaceName}", "language": "${request.getDefaultLocale().getLanguage()}", "country": "${request.getDefaultLocale().getCountry()!""}", "recordUuid": "${recordUuid}", <#if adminGroups?has_content> "adminOwnerGroups": ${adminGroups}, <#if viewerGroups?has_content> "viewerGroups": ${viewerGroups}, "isReadersInherit": false, "isAuthorsInherit": false, "isAdministratorsInherit": false, <#-- nodes section --> "processModelNodes": ${processModelNodes}, "processVariables": ${processVariables}, "interfaceRuleInputs": ${interfaceRuleInputs}, "lanes": "${lanes}", "startForm": "${startForm}", "processDisplayName": "${processDisplayName}", <#-- i18n section --> "name": "${name?json_string}", "description": "${description?json_string}" } ] }