<#ftl output_format="JSON"> <#-- The macro for generating view and template metadata for a new Process Model --> <#macro newProcessModel request uuid name description dseNodeName pmFolderUuid displayNameUuid interface dseConstantUuid cdt isDeleteAction adminGroups="" viewerGroups=""> { <#-- recipe section --> "objectStatus": "NEW", "replaceable": false, "recipeObjectId": "PROCESS_MODEL-0", "templateForCreate": "createProcessModel.ftlx", <#-- bindings section --> "uuid": "${uuid}", "versionUuids": ["${request.generateUuid("PROCESS_MODEL_VERSION")}"], "persistentIdUuid": "${request.generateUuid("PERSISTENT_ID")}", "dataStoreEntityNodeName": "${dseNodeName?json_string}", "language": "${request.getLocale().getLanguage()}", "country": "${request.getLocale().getCountry()}", <#-- object references--> <#if adminGroups?has_content> "adminGroups": ${adminGroups}, "adminOwnerGroups": ${adminGroups}, <#if viewerGroups?has_content> "viewerGroups": ${viewerGroups}, "pmFolderUuid": "${pmFolderUuid}", "displayNameUuid": "${displayNameUuid}", "interfaceUuid": "${interface.uuid}", "interfaceName": "${interface.name?json_string}", "interfaceRuleInputName": "record", "dseConstantUuid": "${dseConstantUuid}", "cdtUuid": "${cdt.uuid}", "cdtName": "${cdt.name}", "cdtTypeNameSpace": "${cdt.typeNamespace}", <#-- nodes--> "endNodeUuid": "${request.generateUuid("END_NODE")}", "startNodeUuid": "${request.generateUuid("START_NODE")}", "dataStoreEntityNodeUuid": "${request.generateUuid("DATA_STORE_NODE")}", "xorNodeUuid": "${request.generateUuid("XOR_NODE")}", <#if isDeleteAction> "dataSoreEntityNodeAcLocalId": "appian.system.smart-services.delete-from-data-store", "dataSoreEntityNodeAcpLocalId": "input-DataToDelete", "dataSoreEntityNodeAcpName": "DataToDelete", "dataSoreEntityNodeAcpValueXsiType": "a:EntityDataIdentifiers?list", "dataSoreEntityNodeSecondAcpLocalId": "input-DeletionComment", "dataSoreEntityNodeSecondAcpName": "DeletionComment", "dataSoreEntityNodeSecondAcpValueXsiType": "xsd:string", "dataSoreEntityNodeInputToActivityClass": "true", "isDeleteAction": true, <#else> "dataSoreEntityNodeAcLocalId": "appian.system.smart-services.write-to-data-store", "dataSoreEntityNodeAcpLocalId": "input-DataStoreEntity", "dataSoreEntityNodeAcpName": "DataStoreEntity", "dataSoreEntityNodeAcpValueXsiType": "a:DataStoreEntity", "dataSoreEntityNodeSecondAcpLocalId": "output-StoredValues", "dataSoreEntityNodeSecondAcpName": "StoredValues", "dataSoreEntityNodeSecondAcpValueXsiType": "a:Variant?list", "dataSoreEntityNodeInputToActivityClass": "false", "isDeleteAction": false, <#-- i18n section --> "name": "${name?json_string}", "description": "${description?json_string}" }