From c25a48177ac7db7eda09188ed791d976c0c9b174 Mon Sep 17 00:00:00 2001 From: EmVal Date: Tue, 8 Oct 2024 11:46:47 +0200 Subject: [PATCH] Fix Static Resource extension & integration tests --- .../model/enumeration/AppErrorCodeEnum.java | 5 +- .../model/enumeration/AppErrorType.java | 3 +- .../impl/ResourceEntityServiceImpl.java | 32 +- .../impl/ResourceEntityServiceImplTest.java | 12 +- ...ation_test_model_1.postman_collection.json | 13739 ++++++++++++++++ .../resources/integration-test/run-postman.sh | 2 +- 6 files changed, 13779 insertions(+), 14 deletions(-) create mode 100644 src/test/resources/integration-test/postman/Integration_test_model_1.postman_collection.json diff --git a/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorCodeEnum.java b/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorCodeEnum.java index c60c0a64..cb869a0e 100644 --- a/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorCodeEnum.java +++ b/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorCodeEnum.java @@ -59,11 +59,12 @@ public enum AppErrorCodeEnum { BPMN_INTERNAL_ERROR("ATMLM_4000051", "Nessun file associato a BPMN o nessuna storageKey trovata", INTERNAL), BPMN_FILE_CANNOT_BE_UNDEPLOYED("ATMLM_4000052", "La risorsa di processo indicata non può essere rilasciata", INTERNAL), NO_ASSOCIATION_FOUND("ATMLM_4000060","Nessuna associazione trovata", CONSTRAINT_VIOLATION), - ALL_FIELDS_ARE_BLANK("ATMLM_4000061", "Tutti i campi sono vuoti", AppErrorType.BLANK_FIELDS), + ALL_FIELDS_ARE_BLANK("ATMLM_4000061", "Tutti i campi sono vuoti", BLANK_FIELDS), RESOURCES_CREATION_ERROR("ATMLM_4000062", "Errore nella creazione di resource multipli", GENERIC ), FILE_DECODE_ERROR("ATMLM_4000063", "Errore nella decodifica del file", GENERIC ), DATABASE_SAVE_FILE_ERROR("ATMLM_4000064", "Errore nella persistenza del file sul database", INTERNAL), - OBJECT_STORE_COPY_FILE_ERROR("ATMLM_4000065", "Errore nella copia del file nella cartella DELETE su Object Store", INTERNAL); + OBJECT_STORE_COPY_FILE_ERROR("ATMLM_4000065", "Errore nella copia del file nella cartella DELETE su Object Store", INTERNAL), + INVALID_FILE_EXTENSION("ATMLM_4000066", "Estensione del file non valida", INVALID_EXTENSION); private final String errorCode; private final String errorMessage; private final AppErrorType type; diff --git a/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorType.java b/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorType.java index 61a5776f..18d078b9 100644 --- a/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorType.java +++ b/src/main/java/it/gov/pagopa/atmlayer/service/model/enumeration/AppErrorType.java @@ -26,5 +26,6 @@ public enum AppErrorType { CANNOT_ASSOCIATE, NOT_EXISTING_USER_ID, NOT_EXISTING_USER_PROFILE, CANNOT_REPLACE_ASSOCIATION, - BLANK_FIELDS + BLANK_FIELDS, + INVALID_EXTENSION } \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImpl.java b/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImpl.java index 05a0f7a1..b8155da2 100644 --- a/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImpl.java +++ b/src/main/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImpl.java @@ -29,7 +29,6 @@ import org.eclipse.microprofile.rest.client.inject.RestClient; import java.io.File; -import java.io.IOException; import java.sql.Timestamp; import java.util.*; @@ -120,12 +119,14 @@ public Uni upload(ResourceEntity resourceEntity, File file, @Override public Uni createResource(ResourceEntity resourceEntity, File file, String filename, String path, String description) { + validateFileExtension(filename, Arrays.asList("html", "jpeg", "jpg", "png", "svg")); + return findBySHA256(resourceEntity.getSha256()) .onItem().transformToUni(Unchecked.function(x -> { if (x.isPresent()) { - throw new AtmLayerException(String.format("Esiste già una risorsa con lo stesso contenuto: %s", x.get().getResourceFile().getStorageKey().substring(15)), - Response.Status.BAD_REQUEST, - RESOURCE_WITH_SAME_SHA256_ALREADY_EXISTS); + throw new AtmLayerException(String.format("Esiste già una risorsa con lo stesso contenuto: %s", + x.get().getResourceFile().getStorageKey().substring(15)), + Response.Status.BAD_REQUEST, RESOURCE_WITH_SAME_SHA256_ALREADY_EXISTS); } return resourceFileService.findByStorageKey(resourceEntity.getStorageKey()) .onItem() @@ -148,6 +149,21 @@ public Uni createResource(ResourceEntity resourceEntity, File fi })); } + + private void validateFileExtension(String filename, List validExtensions) { + String fileExtension = Optional.ofNullable(filename) + .filter(f -> f.contains(".")) + .map(f -> f.substring(filename.lastIndexOf(".") + 1).toLowerCase()) + .orElse(""); + + if (!validExtensions.contains(fileExtension)) { + throw new AtmLayerException(String.format("Estensione del file non valida: %s. Estensioni consentite: %s", + fileExtension, String.join(", ", validExtensions)), + Response.Status.BAD_REQUEST, AppErrorCodeEnum.INVALID_FILE_EXTENSION); + } + } + + @Override @WithTransaction public Uni> createResourceMultiple(List resourceEntityList, List resourceCreationDtoList) { @@ -158,6 +174,14 @@ public Uni> createResourceMultiple(List resourceEnt int index = resourceEntityList.indexOf(resourceEntity); File file = resourceCreationDtoList.get(index).getFile(); String filename = resourceCreationDtoList.get(index).getFilename(); + + try { + validateFileExtension(filename, Arrays.asList("html", "jpeg", "jpg", "png", "svg")); + } catch (AtmLayerException ex) { + errors.add(String.format("%s-%s", filename, ex.getMessage())); + return Uni.createFrom().nullItem(); + } + return findBySHA256(resourceEntity.getSha256()) .onItem().transformToUni(x -> { if (x.isPresent()) { diff --git a/src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImplTest.java b/src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImplTest.java index e68dfb59..4ebef7bd 100644 --- a/src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImplTest.java +++ b/src/test/java/it/gov/pagopa/atmlayer/service/model/service/impl/ResourceEntityServiceImplTest.java @@ -70,7 +70,7 @@ void testCreateAlreadyExists() { resourceEntity.setStorageKey("storageKey"); when(resourceEntityRepository.findBySHA256(any(String.class))).thenReturn(Uni.createFrom().nullItem()); when(resourceFileService.findByStorageKey(any(String.class))).thenReturn(Uni.createFrom().item(Optional.of(resourceFile))); - resourceEntityService.createResource(resourceEntity, file, "filename", "path", "description") + resourceEntityService.createResource(resourceEntity, file, "filename.html", "path", "description") .subscribe().withSubscriber(UniAssertSubscriber.create()) .assertFailedWith(AtmLayerException.class, "Impossibile caricare storageKey: la risorsa con lo stesso nome file e percorso esiste già"); } @@ -92,7 +92,7 @@ void testCreateSyncError() { when(resourceEntityStorageService.saveFile(any(ResourceEntity.class), any(File.class), any(String.class), any(String.class))) .thenReturn(Uni.createFrom().item(resourceFile)); when(resourceEntityRepository.findById(any(UUID.class))).thenReturn(Uni.createFrom().nullItem()); - resourceEntityService.createResource(resourceEntity, new File("path/to/file"), "filename.xml", "path", "description") + resourceEntityService.createResource(resourceEntity, new File("path/to/file"), "filename.jpeg", "path", "description") .subscribe().withSubscriber(UniAssertSubscriber.create()) .assertFailedWith(AtmLayerException.class, "Problema di sincronizzazione sulla creazione della risorsa"); } @@ -110,7 +110,7 @@ void testCreateResourceWithDuplicateSHA256() { when(resourceEntityRepository.findBySHA256(sha256)).thenReturn(Uni.createFrom().item(existingResourceEntity)); - resourceEntityService.createResource(existingResourceEntity, file, "filename", "path", "description") + resourceEntityService.createResource(existingResourceEntity, file, "filename.jpg", "path", "description") .subscribe().withSubscriber(UniAssertSubscriber.create()) .assertFailedWith(AtmLayerException.class, "Esiste già una risorsa con lo stesso contenuto"); } @@ -128,10 +128,10 @@ void testCreateResourceSuccess() { when(resourceEntityRepository.findBySHA256(sha256)).thenReturn(Uni.createFrom().nullItem()); when(resourceFileService.findByStorageKey(any(String.class))).thenReturn(Uni.createFrom().item(Optional.empty())); when(resourceEntityRepository.persist(any(ResourceEntity.class))).thenReturn(Uni.createFrom().item(resourceEntity1)); - when(resourceEntityStorageService.saveFile(resourceEntity1, file, "prova.txt", "/file/prova")).thenReturn(Uni.createFrom().item(resourceFile)); + when(resourceEntityStorageService.saveFile(resourceEntity1, file, "prova.png", "/file/prova")).thenReturn(Uni.createFrom().item(resourceFile)); when(resourceEntityRepository.findById(uuid)).thenReturn(Uni.createFrom().item(resourceEntity1)); - resourceEntityService.createResource(resourceEntity1, file, "filename", "path", "description") + resourceEntityService.createResource(resourceEntity1, file, "filename.svg", "path", "description") .subscribe().withSubscriber(UniAssertSubscriber.create()) .assertCompleted() .assertItem(resourceEntity1); @@ -315,7 +315,7 @@ void testCreateResourceMultipleOK() { } private List getResourceCreationDtoInstance(){ - ResourceCreationDto resourceCreationDto = new ResourceCreationDto(new File("test.txt"), "filename", NoDeployableResourceType.HTML, "path", "description"); + ResourceCreationDto resourceCreationDto = new ResourceCreationDto(new File("test.jpg"), "filename.jpg", NoDeployableResourceType.HTML, "path", "description"); List dtoList = new ArrayList<>(); dtoList.add(resourceCreationDto); return dtoList; diff --git a/src/test/resources/integration-test/postman/Integration_test_model_1.postman_collection.json b/src/test/resources/integration-test/postman/Integration_test_model_1.postman_collection.json new file mode 100644 index 00000000..14b4c788 --- /dev/null +++ b/src/test/resources/integration-test/postman/Integration_test_model_1.postman_collection.json @@ -0,0 +1,13739 @@ +{ + "info": { + "_postman_id": "3e5063c4-19b1-4d6a-b16c-dfc33aef466c", + "name": "Integration_test_model_completa_15feb", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "30399095" + }, + "item": [ + { + "name": "Salva Modello BPMN 1 di tipo MENU", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"bpmn_1_id\", jsonData.bpmnId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"bpmn_1\",", + " pm.collectionVariables.get(\"bpmn_part1\")+id+pm.collectionVariables.get(\"bpmn1_part2\"));", + " pm.collectionVariables.set(\"bpmn_1_definition_key\",id); ", + " ", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{bpmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Disabilita BPMN 1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/disable/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "disable", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel disabilitare BPMN inesistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 404\", function () {\r", + " pm.response.to.have.status(404);\r", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "var uuid = require(\"uuid\");\r", + "var myUUID = uuid.v4();\r", + "pm.collectionVariables.set(\"not_found_uuid\", myUUID);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/disable/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "disable", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{not_found_uuid}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Salva Modello BPMN 1 dopo disable", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"bpmn_1_id\", jsonData.bpmnId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"bpmn_1\",", + " pm.collectionVariables.get(\"bpmn_part1\")+id+pm.collectionVariables.get(\"bpmn1_part2\"));", + " pm.collectionVariables.set(\"bpmn_1_definition_key\",id); ", + " ", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{bpmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel salvare un file BPMN_2 diverso, ma con stessa chiave", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "pm.collectionVariables.set(\"bpmn_2\",", + "pm.collectionVariables.get(\"bpmn_part1\")+pm.collectionVariables.get(\"bpmn_1_definition_key\")+pm.collectionVariables.get(\"bpmn2_part2\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{bpmn_2}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1_fail", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'associare un file inesistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});\r", + "var data=pm.response.json();\r", + "pm.test(\"errorCode is ATMLM_4000002\", function(){\r", + " pm.expect(data.errorCode).to.equal(\"ATMLM_4000002\");\r", + "})\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"acquirerId\":\"1234\",\r\n \"branchId\":\"1\",\r\n \"terminalId\":\"1\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "6a0e1873-c6a2-4889-903e-47c33d4491f6" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'associare un file non deployato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});\r", + "var data=pm.response.json();\r", + "pm.test(\"errorCode is ATMLM_4000003\", function(){\r", + " pm.expect(data.errorCode).to.equal(\"ATMLM_4000003\");\r", + "})\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"acquirerId\":\"1234\",\r\n \"branchId\":\"1\",\r\n \"terminalId\":\"1\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "DEPLOY MODELLO VALIDO BPMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + }, + { + "name": "example_response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-length", + "value": "941" + }, + { + "key": "Content-Type", + "value": "application/json;charset=UTF-8" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"f283ee28-d057-416e-974e-d5c980e6f57d\",\n \"modelVersion\": 1,\n \"deployedFileName\": null,\n \"definitionKey\": \"omnis_1699342547298\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"fbe716fda9cad5344462d2d926df4a8da2cdb0e1b4a29000001033928c080ce4\",\n \"definitionVersionCamunda\": 2,\n \"camundaDefinitionId\": \"demo11_06:2:ffbe9dda-7708-11ee-b684-b266d188abc5\",\n \"description\": \"description\",\n \"resourceFile\": {\n \"id\": \"c5979255-06b7-4b11-a379-14e6607a6232\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"BPMN/files/UUID/f283ee28-d057-416e-974e-d5c980e6f57d/VERSION/1/demo_0611_1.bpmn\",\n \"fileName\": \"demo_0611_1\",\n \"extension\": \"bpmn\",\n \"createdAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n },\n \"resource\": \"DEMO_11_06.bpmn\",\n \"deploymentId\": \"ffb8aa67-7708-11ee-b684-b266d188abc5\",\n \"createdAt\": \"2023-11-07T07:35:47.428+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:51.300+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n}" + } + ] + }, + { + "name": "ASSOCIA il MODELLO BPMN_1 alla banca con acquirerId 1234", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"{{bpmn_1_id}}\",\n \"defaultTemplateVersion\": \"1\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"1\",\n \"branchDefaultTemplateId\": \"{{bpmn_1_id}}\",\n \"branchDefaultTemplateVersion\": \"1\",\n \"terminals\": [\n {\n \"templateId\": \"{{bpmn_1_id}}\",\n \"templateVersion\": \"1\",\n \"terminalIds\": [\n \"1\",\n \"2\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "functionType", + "value": "MENU" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "Fallisci nel modificare tripletta non ancora associata", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});\r", + "var data=pm.response.json();\r", + "pm.test(\"errorCode is ATMLM_4000049\", function(){\r", + " pm.expect(data.errorCode).to.equal(\"ATMLM_4000049\");\r", + "})" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"acquirerId\":{{acquirer_id_2}},\r\n \"branchId\":\"1\",\r\n \"terminalId\":\"1\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Aggiungi nuova tripletta alle configurazioni", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"acquirerId\":\"{{acquirer_id_2}}\",\r\n \"branchId\":\"1\",\r\n \"terminalId\":\"1\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'aggiungere tripletta già associata", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});\r", + "var data=pm.response.json();\r", + "pm.test(\"errorCode is ATMLM_4000047\", function(){\r", + " pm.expect(data.errorCode).to.equal(\"ATMLM_4000047\");\r", + "})\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"acquirerId\":{{acquirer_id_2}},\r\n \"branchId\":\"1\",\r\n \"terminalId\":\"1\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "cerca associazioni BPMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var data = pm.response.json();", + "pm.test(\"Four bpmnBankConfigs found\", function (){", + " pm.expect(data.results.length).to.equal(5);", + "})" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version?pageIndex=0&pageSize=10", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "query": [ + { + "key": "pageIndex", + "value": "0" + }, + { + "key": "pageSize", + "value": "10" + } + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "PER BANCA , BRANCH E TERMINALE censiti nelle conf, restituisci il modello BPMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var res = jsonData.bpmnId", + "pm.test(\"right id\", function () {", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"bpmn_1_id\"));", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "PER BANCA e BRANCH CENSITI e TERMINALE NON CENSITO in conf, restituisci il modello BPMN_1 come default BRANCH", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var res = jsonData.bpmnId", + "pm.test(\"right id\", function () {", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"bpmn_1_id\"));", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "3" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "PER BANCA CENSITA E BRANCH e TERMINALE NON CENSITI in conf, restituisci il modello BPMN_1 come default BANCA", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var res = jsonData.bpmnId", + "pm.test(\"right id\", function () {", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"bpmn_1_id\"));", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "2" + }, + { + "key": "terminalId", + "value": "3" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "PER BANCA NON CENSITA, RESTITUISCI Errore 400", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_invalid}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel disabilitare un BPMN associato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/disable/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "disable", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Salva Modello BPMN_3 di tipo MENU", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"bpmn_3_id\", jsonData.bpmnId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"bpmn_3\",", + " pm.collectionVariables.get(\"bpmn_part1\")+id+pm.collectionVariables.get(\"bpmn1_part2\"));", + " pm.collectionVariables.set(\"bpmn_3_definition_key\",id);", + "", + " ", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{bpmn_3}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "prova ad associare il modello BPMN_3 alla banca come default BANCA, ma fallisci perchè processo non ancora deployato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"{{bpmn_3_id}}\",\n \"defaultTemplateVersion\": \"1\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"1\",\n \"branchDefaultTemplateId\": \"{{bpmn_1_id}}\",\n \"branchDefaultTemplateVersion\": \"1\",\n \"terminals\": [\n {\n \"templateId\": \"{{bpmn_1_id}}\",\n \"templateVersion\": \"1\",\n \"terminalIds\": [\n \"1\",\n \"2\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "functionType", + "value": "MENU" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "DEPLOY MODELLO VALIDO BPMN_3", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_3_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Modifica tripletta esistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"acquirerId\":{{acquirer_id_2}},\r\n \"branchId\":\"1\",\r\n \"terminalId\":\"1\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_3_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Elimina singola configurazione", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version?acquirerId={{acquirer_id_2}}&branchId=1&terminalId=1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "query": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_2}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "1" + } + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_3_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "prova ad associare il modello BPMN_3 alla banca come default BANCA, e concludi con SUCCESSO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"{{bpmn_3_id}}\",\n \"defaultTemplateVersion\": \"1\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"1\",\n \"branchDefaultTemplateId\": \"{{bpmn_1_id}}\",\n \"branchDefaultTemplateVersion\": \"1\",\n \"terminals\": [\n {\n \"templateId\": \"{{bpmn_1_id}}\",\n \"templateVersion\": \"1\",\n \"terminalIds\": [\n \"1\",\n \"2\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "functionType", + "value": "MENU" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "filtra per functionType, acquirerId e bpmnId", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var data=pm.response.json();", + "pm.test(\"One BPMN meets the criteria\", function(){", + " pm.expect(data.results.length).to.equal(1);", + "})" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/filter?pageIndex=0&pageSize=10&bpmnId={{bpmn_1_id}}&functionType=MENU&acquirerId={{acquirer_id_1}}", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "filter" + ], + "query": [ + { + "key": "pageIndex", + "value": "0" + }, + { + "key": "pageSize", + "value": "10" + }, + { + "key": "bpmnId", + "value": "{{bpmn_1_id}}" + }, + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "Fallisci nel filtrare per tripletta invalida (terminale senza branch)", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/filter?pageIndex=0&pageSize=10&acquirerId={{acquirer_id_1}}&terminalId=terminal1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "filter" + ], + "query": [ + { + "key": "pageIndex", + "value": "0" + }, + { + "key": "pageSize", + "value": "10" + }, + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "terminalId", + "value": "terminal1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "Fallisci nel filtrare per tripletta invalida (branch senza acquirer)", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/filter?pageIndex=0&pageSize=10&terminalId=terminal&branchId=branch", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "filter" + ], + "query": [ + { + "key": "pageIndex", + "value": "0" + }, + { + "key": "pageSize", + "value": "10" + }, + { + "key": "terminalId", + "value": "terminal" + }, + { + "key": "branchId", + "value": "branch" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "ORA per CONFIGURAZIONE con Branch non censito, RESTITUISCI BPMN_3", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var res = jsonData.bpmnId", + "pm.test(\"right id\", function () {", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"bpmn_3_id\"));", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "2" + }, + { + "key": "terminalId", + "value": "2" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "UPGRADE del modello BPMN_1 alla versione 2", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "pm.collectionVariables.set(\"bpmn_1_v2\",", + "pm.collectionVariables.get(\"bpmn_part1\")+pm.collectionVariables.get(\"bpmn_1_definition_key\")+pm.collectionVariables.get(\"bpmn2_part2\"));", + "pm.collectionVariables.set(\"bpmn_1_v2_definition_key\",pm.collectionVariables.get(\"bpmn_1_definition_key\"));" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.bpmnId", + "var version = jsonData.modelVersion", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"bpmn_1_id\"));", + "});", + "pm.test(\"right version\", function () {", + " pm.expect(version).to.equal(2);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "file", + "value": "{{bpmn_1_v2}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "yv", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/upgrade", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "upgrade" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "uuid", + "value": "541e0b66-d2C3-CDF2-9D02-Af5fedD44EE0", + "description": "(Required) ", + "type": "text" + }, + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "yv", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/upgrade", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "upgrade" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"B97A356D-ceca-8fa9-A51f-7786D7f1fe4d\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"status\": \"CREATED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"4dcff2bC-8a67-Ae9D-0E14-bB5426840EFA\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"FE732fAc-2870-4aAb-5D0A-A6f36eEddA5C\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "DEPLOY MODELLO VALIDO BPMN_1 v2", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "2" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "prova ad associare il modello BPMN_1_v2 alla banca come default per branch 1, e concludi con SUCCESSO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"{{bpmn_3_id}}\",\n \"defaultTemplateVersion\": \"1\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"1\",\n \"branchDefaultTemplateId\": \"{{bpmn_1_id}}\",\n \"branchDefaultTemplateVersion\": \"2\",\n \"terminals\": [\n {\n \"templateId\": \"{{bpmn_1_id}}\",\n \"templateVersion\": \"1\",\n \"terminalIds\": [\n \"1\",\n \"2\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "functionType", + "value": "MENU" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "fallisci nel creare delle associazioni inviando delle triplette duplicate nel body", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"{{bpmn_3_id}}\",\n \"defaultTemplateVersion\": \"1\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"1\",\n \"branchDefaultTemplateId\": \"{{bpmn_1_id}}\",\n \"branchDefaultTemplateVersion\": \"2\",\n \"terminals\": [\n {\n \"templateId\": \"{{bpmn_1_id}}\",\n \"templateVersion\": \"1\",\n \"terminalIds\": [\n \"1\",\n \"1\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "functionType", + "value": "MENU" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "ORA i terminali censiti nella conf restituiscono il BPMN_1_v1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.bpmnId", + "var vers = jsonData.modelVersion", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"bpmn_1_id\"));", + "});", + "pm.test(\"right version\", function () {", + " pm.expect(vers).to.equal(1);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "mentre i terminali non censiti ma nel branch 1 restituiscono il BPMN_1_v2", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.bpmnId", + "var vers = jsonData.modelVersion", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"bpmn_1_id\"));", + "});", + "pm.test(\"right version\", function () {", + " pm.expect(vers).to.equal(2);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "3" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "mentre gli altri branch restituiscono il default della banca, il bpmn_3", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.bpmnId", + "var vers = jsonData.modelVersion", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"bpmn_3_id\"));", + "});", + "pm.test(\"right version\", function () {", + " pm.expect(vers).to.equal(1);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank/:bank_id/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank", + ":bank_id", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType", + "value": "MENU" + }, + { + "key": "bank_id", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "2" + }, + { + "key": "terminalId", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/function/:functionType/bank{{acquirerId}}/branch/:branchId/terminal/:terminalId", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "function", + ":functionType", + "bank{{acquirerId}}", + "branch", + ":branchId", + "terminal", + ":terminalId" + ], + "variable": [ + { + "key": "functionType" + }, + { + "key": "branchId" + }, + { + "key": "terminalId" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Salva Modello BPMN 4 di tipo Spontaneous Payment", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"bpmn_4_id\", jsonData.bpmnId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"bpmn_4\",", + " pm.collectionVariables.get(\"bpmn_part1\")+id+pm.collectionVariables.get(\"bpmn1_part2\"));", + " pm.collectionVariables.set(\"bpmn_4_definition_key\",id);", + "", + " ", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{bpmn_4}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "SPONTANEOUS_PAYMENT", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "DEPLOY MODELLO VALIDO BPMN_4", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_4_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "prova ad associare il modello BPMN_4 alla banca come default per banca, ma fallisci perchè diverso functionType", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"{{bpmn_4_id}}\",\n \"defaultTemplateVersion\": \"1\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"1\",\n \"branchDefaultTemplateId\": \"{{bpmn_1_id}}\",\n \"branchDefaultTemplateVersion\": \"2\",\n \"terminals\": [\n {\n \"templateId\": \"{{bpmn_1_id}}\",\n \"templateVersion\": \"1\",\n \"terminalIds\": [\n \"1\",\n \"2\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "functionType", + "value": "MENU" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"defaultTemplateId\": \"5FbCebC2-34EF-5Cba-Db1B-fBaF2ae4DCC2\",\n \"defaultTemplateVersion\": \"\",\n \"branchesConfigs\": [\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"2c2AD5aD-51dd-9AfA-FCcC-dDE9c5DAdcCc\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"2cbDF1eE-F24E-2a5a-ce30-01B5cDb182DF\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"cedb8aaf-b685-E8eF-78cC-FE6B44B3Da8D\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n },\n {\n \"branchId\": \"\",\n \"branchDefaultTemplateId\": \"1bB4EE2e-a10E-f840-f74f-e47ebFe6c15a\",\n \"branchDefaultTemplateVersion\": \"\",\n \"terminals\": [\n {\n \"templateId\": \"fBaDDFC6-8afD-5FFD-F701-cffbfFce3Fe4\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n },\n {\n \"templateId\": \"FB0119e4-0A9D-03de-fCdb-4CcdD4FFA4ce\",\n \"templateVersion\": \"\",\n \"terminalIds\": [\n \"\",\n \"\"\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "headerFamily": "json", + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/bank/:acquirerId/associations/function/:functionType", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "bank", + ":acquirerId", + "associations", + "function", + ":functionType" + ], + "variable": [ + { + "key": "acquirerId" + }, + { + "key": "functionType" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"bpmnId\": \"a78D6007-9eAF-d2C0-7AED-fB764A84469D\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"SPONTANEOUS_PAYMENT\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n {\n \"bpmnId\": \"F7978319-A91C-b5FF-C21e-bdf685D50AD7\",\n \"bpmnModelVersion\": \"\",\n \"acquirerId\": \"\",\n \"branchId\": \"\",\n \"terminalId\": \"\",\n \"functionType\": \"MENU\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n }\n]" + } + ] + }, + { + "name": "Elimina singola configurazione", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version?acquirerId={{acquirer_id_1}}&branchId=1&terminalId=1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "query": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "1" + } + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'eliminare associazione inesistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});\r", + "var data=pm.response.json();\r", + "pm.test(\"errorCode is ATMLM_4000048\", function(){\r", + " pm.expect(data.errorCode).to.equal(\"ATMLM_4000048\");\r", + "})" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/associations/:uuid/version/:version?acquirerId={{acquirer_id_1}}&branchId=1&terminalId=1", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "associations", + ":uuid", + "version", + ":version" + ], + "query": [ + { + "key": "acquirerId", + "value": "{{acquirer_id_1}}" + }, + { + "key": "branchId", + "value": "1" + }, + { + "key": "terminalId", + "value": "1" + } + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Salva Workflow Resource di tipo DMN 1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"dmn_1_id\", jsonData.workflowResourceId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"dmn_1\",", + " pm.collectionVariables.get(\"dmn1_part1\")+id+pm.collectionVariables.get(\"dmn1_part2\"));", + " pm.collectionVariables.set(\"dmn_1_definition_key\",id); ", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get DMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.workflowResourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"dmn_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo DMN 1 con file duplicato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = pm.collectionVariables.get(\"dmn_1_definition_key\");", + " pm.collectionVariables.set(\"dmn_1_duplicate\",", + " pm.collectionVariables.get(\"dmn1_part1\")+id+pm.collectionVariables.get(\"dmn1_part2\"));", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo DMN 1 file assente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo DMN 1 con tipo sbagliato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "FORM", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo DMN 1 con STESSA definition key", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = pm.collectionVariables.get(\"dmn_1_definition_key\");", + " pm.collectionVariables.set(\"dmn_1_duplicate\",", + " pm.collectionVariables.get(\"dmn1_part1\")+id+pm.collectionVariables.get(\"dmn1_part2_v2\"));", + " pm.collectionVariables.set(\"dmn_1_definition_key\",id); ", + "", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1_duplicate}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Salva Workflow Resource di tipo BPMN 1", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " console.log(\"workflow_bpmn1_part1:\", pm.collectionVariables.get(\"workflow_bpmn1_part1\"));", + " console.log(\"id:\", id);", + " console.log(\"workflow_bpmn1_part2:\", pm.collectionVariables.get(\"workflow_bpmn1_part2\"));", + " pm.collectionVariables.set(\"workflow_bpmn_1\",", + " pm.collectionVariables.get(\"bpmn_part1\")+id+pm.collectionVariables.get(\"bpmn1_part2\"));", + " pm.collectionVariables.set(\"workflow_bpmn_1_definition_key\",id);", + "", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"workflow_bpmn_1_id\", jsonData.workflowResourceId);", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_bpmn", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "BPMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get Workflow Resource BPMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.workflowResourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"workflow_bpmn_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo BPMN 1 con file duplicato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflowbpmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_bpmn", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "BPMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo BPMN 1 con file assente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "var jsonData = JSON.parse(responseBody);" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_bpmn", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "BPMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo BPMN 1 con tipo sbagliato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_bpmn", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo BPMN 1 con STESSA definition key", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};\r", + "\r", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {\r", + " if (error || response.code !== 200) {\r", + " pm.expect.fail('Could not load external library');\r", + " }\r", + "\r", + " eval(response.text());\r", + "\r", + " // This is where you can set the locale. See faker.js docs for all available locales.\r", + " window.faker.locale=\"it\";\r", + " var id = pm.collectionVariables.get(\"workflow_bpmn_1_definition_key\");\r", + " pm.collectionVariables.set(\"workflow_bpmn_1_duplicate\",\r", + " pm.collectionVariables.get(\"bpmn_part1\")+id+pm.collectionVariables.get(\"bpmn1_part2_v2\"));\r", + " pm.collectionVariables.set(\"workflow_bpmn_1_definition_key\",id); \r", + "\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_bpmn", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "BPMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Salva Workflow Resource di tipo FORM 1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"form_1_id\", jsonData.workflowResourceId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"form_1\",", + " pm.collectionVariables.get(\"form1_part1\")+id+pm.collectionVariables.get(\"form1_part2\"));", + " pm.collectionVariables.set(\"form_1_definition_key\",id); ", + " ", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "FORM", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get FORM_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.workflowResourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"form_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo FORM 1 con file duplicato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = pm.collectionVariables.get(\"form_1_definition_key\");", + " pm.collectionVariables.set(\"form_1_duplicate\",", + " pm.collectionVariables.get(\"form1_part1\")+id+pm.collectionVariables.get(\"form1_part2\"));", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "FORM", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo FORM 1 file assente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "FORM", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo FORM 1 con tipo sbagliato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "BPMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo FORM 1 con STESSA definition key", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var id = pm.collectionVariables.get(\"form_1_definition_key\");", + " pm.collectionVariables.set(\"form_1_duplicate\",", + " pm.collectionVariables.get(\"form1_part1\")+id+pm.collectionVariables.get(\"form1_part2_v2\"));", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "demo_0611_1", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "FORM", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Filtra workflow resource per resourceType, fileName e id", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var data = pm.response.json();", + "pm.test(\"One file meets the criteria\", function(){", + " pm.expect(data.results.length).to.equal(1);", + "})", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/filter?resourceType=FORM&fileName=demo&workflowResourceId={{form_1_id}}", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "filter" + ], + "query": [ + { + "key": "resourceType", + "value": "FORM" + }, + { + "key": "fileName", + "value": "demo" + }, + { + "key": "workflowResourceId", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "DEPLOY WORKFLOW RESOURCE VALIDO DMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/deploy/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "deploy", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + }, + { + "name": "example_response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-length", + "value": "941" + }, + { + "key": "Content-Type", + "value": "application/json;charset=UTF-8" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"f283ee28-d057-416e-974e-d5c980e6f57d\",\n \"modelVersion\": 1,\n \"deployedFileName\": null,\n \"definitionKey\": \"omnis_1699342547298\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"fbe716fda9cad5344462d2d926df4a8da2cdb0e1b4a29000001033928c080ce4\",\n \"definitionVersionCamunda\": 2,\n \"camundaDefinitionId\": \"demo11_06:2:ffbe9dda-7708-11ee-b684-b266d188abc5\",\n \"description\": \"description\",\n \"resourceFile\": {\n \"id\": \"c5979255-06b7-4b11-a379-14e6607a6232\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"BPMN/files/UUID/f283ee28-d057-416e-974e-d5c980e6f57d/VERSION/1/demo_0611_1.bpmn\",\n \"fileName\": \"demo_0611_1\",\n \"extension\": \"bpmn\",\n \"createdAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n },\n \"resource\": \"DEMO_11_06.bpmn\",\n \"deploymentId\": \"ffb8aa67-7708-11ee-b684-b266d188abc5\",\n \"createdAt\": \"2023-11-07T07:35:47.428+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:51.300+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n}" + } + ] + }, + { + "name": "DEPLOY WORKFLOW RESOURCE VALIDO BPMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/deploy/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "deploy", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + }, + { + "name": "example_response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-length", + "value": "941" + }, + { + "key": "Content-Type", + "value": "application/json;charset=UTF-8" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"f283ee28-d057-416e-974e-d5c980e6f57d\",\n \"modelVersion\": 1,\n \"deployedFileName\": null,\n \"definitionKey\": \"omnis_1699342547298\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"fbe716fda9cad5344462d2d926df4a8da2cdb0e1b4a29000001033928c080ce4\",\n \"definitionVersionCamunda\": 2,\n \"camundaDefinitionId\": \"demo11_06:2:ffbe9dda-7708-11ee-b684-b266d188abc5\",\n \"description\": \"description\",\n \"resourceFile\": {\n \"id\": \"c5979255-06b7-4b11-a379-14e6607a6232\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"BPMN/files/UUID/f283ee28-d057-416e-974e-d5c980e6f57d/VERSION/1/demo_0611_1.bpmn\",\n \"fileName\": \"demo_0611_1\",\n \"extension\": \"bpmn\",\n \"createdAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n },\n \"resource\": \"DEMO_11_06.bpmn\",\n \"deploymentId\": \"ffb8aa67-7708-11ee-b684-b266d188abc5\",\n \"createdAt\": \"2023-11-07T07:35:47.428+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:51.300+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n}" + } + ] + }, + { + "name": "DEPLOY WORKFLOW RESOURCE VALIDO FORM_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/deploy/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "deploy", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + }, + { + "name": "example_response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-length", + "value": "941" + }, + { + "key": "Content-Type", + "value": "application/json;charset=UTF-8" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"f283ee28-d057-416e-974e-d5c980e6f57d\",\n \"modelVersion\": 1,\n \"deployedFileName\": null,\n \"definitionKey\": \"omnis_1699342547298\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"fbe716fda9cad5344462d2d926df4a8da2cdb0e1b4a29000001033928c080ce4\",\n \"definitionVersionCamunda\": 2,\n \"camundaDefinitionId\": \"demo11_06:2:ffbe9dda-7708-11ee-b684-b266d188abc5\",\n \"description\": \"description\",\n \"resourceFile\": {\n \"id\": \"c5979255-06b7-4b11-a379-14e6607a6232\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"BPMN/files/UUID/f283ee28-d057-416e-974e-d5c980e6f57d/VERSION/1/demo_0611_1.bpmn\",\n \"fileName\": \"demo_0611_1\",\n \"extension\": \"bpmn\",\n \"createdAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n },\n \"resource\": \"DEMO_11_06.bpmn\",\n \"deploymentId\": \"ffb8aa67-7708-11ee-b684-b266d188abc5\",\n \"createdAt\": \"2023-11-07T07:35:47.428+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:51.300+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n}" + } + ] + }, + { + "name": "Fallisci nel DEPLOY WORKFLOW RESOURCE non trovato DMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "var uuid = require(\"uuid\");\r", + "var myUUID = uuid.v4();\r", + "pm.collectionVariables.set(\"not_found_uuid\", myUUID);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/deploy/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "deploy", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{not_found_uuid}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + }, + { + "name": "example_response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-length", + "value": "941" + }, + { + "key": "Content-Type", + "value": "application/json;charset=UTF-8" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"f283ee28-d057-416e-974e-d5c980e6f57d\",\n \"modelVersion\": 1,\n \"deployedFileName\": null,\n \"definitionKey\": \"omnis_1699342547298\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"fbe716fda9cad5344462d2d926df4a8da2cdb0e1b4a29000001033928c080ce4\",\n \"definitionVersionCamunda\": 2,\n \"camundaDefinitionId\": \"demo11_06:2:ffbe9dda-7708-11ee-b684-b266d188abc5\",\n \"description\": \"description\",\n \"resourceFile\": {\n \"id\": \"c5979255-06b7-4b11-a379-14e6607a6232\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"BPMN/files/UUID/f283ee28-d057-416e-974e-d5c980e6f57d/VERSION/1/demo_0611_1.bpmn\",\n \"fileName\": \"demo_0611_1\",\n \"extension\": \"bpmn\",\n \"createdAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n },\n \"resource\": \"DEMO_11_06.bpmn\",\n \"deploymentId\": \"ffb8aa67-7708-11ee-b684-b266d188abc5\",\n \"createdAt\": \"2023-11-07T07:35:47.428+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:51.300+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n}" + } + ] + }, + { + "name": "Fallisci nel DEPLOY WORKFLOW RESOURCE non trovato BPMN_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "var uuid = require(\"uuid\");\r", + "var myUUID = uuid.v4();\r", + "pm.collectionVariables.set(\"not_found_uuid\", myUUID);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/deploy/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "deploy", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{not_found_uuid}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + }, + { + "name": "example_response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-length", + "value": "941" + }, + { + "key": "Content-Type", + "value": "application/json;charset=UTF-8" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"f283ee28-d057-416e-974e-d5c980e6f57d\",\n \"modelVersion\": 1,\n \"deployedFileName\": null,\n \"definitionKey\": \"omnis_1699342547298\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"fbe716fda9cad5344462d2d926df4a8da2cdb0e1b4a29000001033928c080ce4\",\n \"definitionVersionCamunda\": 2,\n \"camundaDefinitionId\": \"demo11_06:2:ffbe9dda-7708-11ee-b684-b266d188abc5\",\n \"description\": \"description\",\n \"resourceFile\": {\n \"id\": \"c5979255-06b7-4b11-a379-14e6607a6232\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"BPMN/files/UUID/f283ee28-d057-416e-974e-d5c980e6f57d/VERSION/1/demo_0611_1.bpmn\",\n \"fileName\": \"demo_0611_1\",\n \"extension\": \"bpmn\",\n \"createdAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n },\n \"resource\": \"DEMO_11_06.bpmn\",\n \"deploymentId\": \"ffb8aa67-7708-11ee-b684-b266d188abc5\",\n \"createdAt\": \"2023-11-07T07:35:47.428+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:51.300+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n}" + } + ] + }, + { + "name": "Fallisci nel DEPLOY WORKFLOW RESOURCE non trovato FORM_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "var uuid = require(\"uuid\");\r", + "var myUUID = uuid.v4();\r", + "pm.collectionVariables.set(\"not_found_uuid\", myUUID);" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/deploy/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "deploy", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{not_found_uuid}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn/deploy/:uuid/version/:version", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid" + }, + { + "key": "version" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + }, + { + "name": "example_response", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/deploy/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "deploy", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "content-length", + "value": "941" + }, + { + "key": "Content-Type", + "value": "application/json;charset=UTF-8" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"f283ee28-d057-416e-974e-d5c980e6f57d\",\n \"modelVersion\": 1,\n \"deployedFileName\": null,\n \"definitionKey\": \"omnis_1699342547298\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"fbe716fda9cad5344462d2d926df4a8da2cdb0e1b4a29000001033928c080ce4\",\n \"definitionVersionCamunda\": 2,\n \"camundaDefinitionId\": \"demo11_06:2:ffbe9dda-7708-11ee-b684-b266d188abc5\",\n \"description\": \"description\",\n \"resourceFile\": {\n \"id\": \"c5979255-06b7-4b11-a379-14e6607a6232\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"BPMN/files/UUID/f283ee28-d057-416e-974e-d5c980e6f57d/VERSION/1/demo_0611_1.bpmn\",\n \"fileName\": \"demo_0611_1\",\n \"extension\": \"bpmn\",\n \"createdAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:47.432+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n },\n \"resource\": \"DEMO_11_06.bpmn\",\n \"deploymentId\": \"ffb8aa67-7708-11ee-b684-b266d188abc5\",\n \"createdAt\": \"2023-11-07T07:35:47.428+00:00\",\n \"lastUpdatedAt\": \"2023-11-07T07:35:51.300+00:00\",\n \"createdBy\": null,\n \"lastUpdatedBy\": null\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo DMN 1 diverso, ma con stessa chiave", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"dmn_2\",", + "pm.collectionVariables.get(\"dmn1_part1\")+pm.collectionVariables.get(\"dmn_1_definition_key\")+pm.collectionVariables.get(\"dmn1_part2_v2\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_2}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "test_16_11fail", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo DMN 1 con tipo diverso da DMN", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "test_16_11fail", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "FORM", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo BPMN 1 diverso, ma con stessa chiave", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"workflow_bpmn_2\",", + "pm.collectionVariables.get(\"bpmn_part1\")+pm.collectionVariables.get(\"workflow_bpmn_1_definition_key\")+pm.collectionVariables.get(\"bpmn1_part2\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_2}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "test_16_11fail", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "BPMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo BPMN 1 con tipo diverso da BPMN", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "test_16_11fail", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo FORM 1 diverso, ma con stessa chiave", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"form_2\",", + "pm.collectionVariables.get(\"form1_part1\")+pm.collectionVariables.get(\"form_1_definition_key\")+pm.collectionVariables.get(\"form1_part2_v2\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_2}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "test_16_11fail", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "FORM", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Workflow Resource di tipo FORM 1 con tipo diverso da FORM", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "test_16_fail", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "DMN", + "description": "(Required) (This can only be one of BPMN, DMN, FORM)", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Salva Resource di tipo HTML 1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"html_1_id\", jsonData.resourceId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " var fileName = window.faker.lorem.word(10)+\".html\";", + " pm.collectionVariables.set(\"html_1\",", + " pm.collectionVariables.get(\"html1_part1\")+content+pm.collectionVariables.get(\"html1_part2\"));", + " pm.collectionVariables.set(\"html_filename\",fileName);", + " pm.collectionVariables.set(\"html_1_content\",content);", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{html_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{html_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "HTML", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get HTML_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.resourceId;\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"html_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{html_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel Salvare Resource di tipo HTML 1 con file duplicato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = pm.collectionVariables.get(\"html_1_content\");", + " var fileName = window.faker.lorem.word(10)+\".html\";", + " pm.collectionVariables.set(\"html_1\",", + " pm.collectionVariables.get(\"html1_part1\")+content+pm.collectionVariables.get(\"html1_part2\"));", + " pm.collectionVariables.set(\"html_filename\",fileName);", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{html_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{html_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "HTML", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Salva Resource di tipo HTML 1 con PATH", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"html_1_id\", jsonData.resourceId);", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " var fileName = window.faker.lorem.word(10)+\".html\";", + " var path = window.faker.lorem.word(10)+\"/\"+window.faker.lorem.word(10);", + " pm.collectionVariables.set(\"html_1\",", + " pm.collectionVariables.get(\"html1_part1\")+content+pm.collectionVariables.get(\"html1_part2\"));", + " pm.collectionVariables.set(\"html_filename\",fileName);", + " pm.collectionVariables.set(\"html_path\", path);", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{html_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{html_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "HTML", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "{{html_path}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Resource di tipo HTML 1 con stesso contenuto e stesso path", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{html_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{html_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "HTML", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "{{html_path}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Salva Resource di tipo OTHER 1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"other_1_id\", jsonData.resourceId);", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " var fileName = window.faker.lorem.word(10)+\".jpg\";", + " pm.collectionVariables.set(\"other_1\", content);", + " pm.collectionVariables.set(\"other_filename\",fileName);", + " pm.collectionVariables.set(\"other_1_content\",content);", + "});", + "", + "", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{other_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{other_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "OTHER", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get OTHER_1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.resourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"other_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{other_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel Salvare Resource di tipo OTHER 1 con file duplicato", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = pm.collectionVariables.get(\"other_1_content\");", + " var fileName = window.faker.lorem.word(10)+\".other\";", + " pm.collectionVariables.set(\"other_1\", content);", + " pm.collectionVariables.set(\"other_filename\",fileName);", + "});", + "", + "", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{other_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{other_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "OTHER", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Salva Resource di tipo OTHER 1 con PATH", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "pm.collectionVariables.set(\"other_1_id\", jsonData.resourceId);", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " var fileName = window.faker.lorem.word(10)+\".jpg\";", + " var path = window.faker.lorem.word(10)+\"/\"+window.faker.lorem.word(10);", + " pm.collectionVariables.set(\"other_1\", content);", + " pm.collectionVariables.set(\"other_filename\",fileName);", + " pm.collectionVariables.set(\"other_path\", path);", + "});", + "", + "", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{other_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{other_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "OTHER", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "{{other_path}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nel Salvare Resource di tipo OTHER 1 con stesso contenuto e stesso path", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = pm.collectionVariables.get(\"same_content\");", + " var fileName = window.faker.lorem.word(10)+\".jpg\";", + " pm.collectionVariables.set(\"other_filename\",fileName);", + "});", + "", + "", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{other_1}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "{{other_filename}}", + "description": "(Required) ", + "type": "text" + }, + { + "key": "resourceType", + "value": "OTHER", + "description": "(Required) (This can only be one of HTML, OTHER)", + "type": "text" + }, + { + "key": "path", + "value": "{{other_path}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources" + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Filtra risorse per resourceType e resourceId", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var data = pm.response.json();\r", + "pm.test(\"One file meets filters\", function () {\r", + " pm.expect(data.results.length).to.equal(1);\r", + "});\r", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/filter?pageIndex=0&pageSize=10&resourceId={{html_1_id}}&noDeployableResourceType=HTML", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + "filter" + ], + "query": [ + { + "key": "pageIndex", + "value": "0" + }, + { + "key": "pageSize", + "value": "10" + }, + { + "key": "resourceId", + "value": "{{html_1_id}}" + }, + { + "key": "sha256", + "value": "00e25cc0038502feb24e37e5f", + "disabled": true + }, + { + "key": "noDeployableResourceType", + "value": "HTML" + }, + { + "key": "fileName", + "value": "architecto.html", + "disabled": true + }, + { + "key": "storageKey", + "value": "RESOURCE/files/OTHER", + "disabled": true + }, + { + "key": "extension", + "value": "other", + "disabled": true + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'Update Resource di tipo HTML 1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{html_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{not_found_uuid}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update Resource di tipo HTML 1 con stesso file", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{html_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{html_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update Resource di tipo OTHER 1", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{other_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{not_found_uuid}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update Resource di tipo OTHER 1 con stesso file", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{other_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{other_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Update Resource di tipo HTML 1 V2", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.resourceId", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"html_1_id\"));", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"html_1_v2\",", + " pm.collectionVariables.get(\"html1_part1\")+content+pm.collectionVariables.get(\"html1_part2\"));", + " pm.collectionVariables.set(\"dmn_1_v2_definition_key\",pm.collectionVariables.get(\"dmn_1_definition_key\"));", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{html_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{html_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get HTML_1 dopo Update", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.resourceId;\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"html_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{html_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Update Resource di tipo OTHER 1 V2", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.resourceId", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"other_1_id\"));", + "});" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "window = {};", + "", + "pm.sendRequest(\"https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js\", (error, response) => {", + " if (error || response.code !== 200) {", + " pm.expect.fail('Could not load external library');", + " }", + "", + " eval(response.text());", + "", + " // This is where you can set the locale. See faker.js docs for all available locales.", + " window.faker.locale=\"it\";", + " var content = window.faker.lorem.word(10)+ \"_\" + new Date().getTime();", + " pm.collectionVariables.set(\"other_1_v2\", content);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{other_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{other_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get OTHER_1 dopo Update", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.resourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"other_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{other_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo DMN 1 con stesso file", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo DMN 1 con tipo diverso", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo DMN 1 con chiave diversa", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"dmn_1_v2_fail\",\r", + "pm.collectionVariables.get(\"dmn1_part1\")+pm.collectionVariables.get(\"form_1_definition_key\")+pm.collectionVariables.get(\"dmn1_part2_v2\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Update Workflow Resource di tipo DMN 1 V2", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.workflowResourceId;", + "var definitionKey = jsonData.definitionKey;", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"dmn_1_id\"));", + "});", + "pm.test(\"right definition key\", function () {", + " pm.expect(definitionKey).to.equal(pm.collectionVariables.get(\"dmn_1_definition_key\"));", + "})" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"dmn_1_v2\",", + "pm.collectionVariables.get(\"dmn1_part1\")+pm.collectionVariables.get(\"dmn_1_definition_key\")+pm.collectionVariables.get(\"dmn1_part2_v2\"));", + "pm.collectionVariables.set(\"dmn_1_v2_definition_key\",pm.collectionVariables.get(\"dmn_1_definition_key\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get DMN_1 dopo Update", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.workflowResourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"dmn_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo BPMN 1 con stesso file", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo BPMN 1 con tipo diverso", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo BPMN 1 con chiave diversa", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"workflow_bpmn_1_v2_fail\",\r", + "pm.collectionVariables.get(\"bpmn_part1\")+pm.collectionVariables.get(\"form_1_definition_key\")+pm.collectionVariables.get(\"bpmn1_part2\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_1_v2_fail}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Update Workflow Resource di tipo BPMN 1 V2", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.workflowResourceId;", + "var definitionKey = jsonData.definitionKey;", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"workflow_bpmn_1_id\"));", + "});", + "pm.test(\"right definition key\", function () {", + " pm.expect(definitionKey).to.equal(pm.collectionVariables.get(\"workflow_bpmn_1_definition_key\"));", + "})" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"workflow_bpmn_1_v2\",", + "pm.collectionVariables.get(\"bpmn_part1\")+pm.collectionVariables.get(\"workflow_bpmn_1_definition_key\")+pm.collectionVariables.get(\"bpmn2_part2\"));", + "pm.collectionVariables.set(\"workflow_bpmn_1_v2_definition_key\",pm.collectionVariables.get(\"workflow_bpmn_1_definition_key\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{workflow_bpmn_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get BPMN_1 dopo Update", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.workflowResourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"workflow_bpmn_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo FORM 1 con stesso file", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo FORM 1 con tipo diverso", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{dmn_1}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Fallisci nell'Update del Workflow Resource di tipo FORM 1 con chiave diversa", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {", + " pm.response.to.have.status(400);", + "});", + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"form_1_v2_fail\",\r", + "pm.collectionVariables.get(\"form1_part1\")+pm.collectionVariables.get(\"dmn_1_definition_key\")+pm.collectionVariables.get(\"form1_part2_v2\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Update Workflow Resource di tipo FORM 1 V2", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "var jsonData = JSON.parse(responseBody);", + "var id = jsonData.workflowResourceId;", + "var definitionKey = jsonData.definitionKey;", + "pm.test(\"right id\", function () {", + " pm.expect(id).to.equal(pm.collectionVariables.get(\"form_1_id\"));", + "});", + "pm.test(\"right definition key\", function () {", + " pm.expect(definitionKey).to.equal(pm.collectionVariables.get(\"form_1_definition_key\"));", + "})" + ], + "type": "text/javascript" + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.collectionVariables.set(\"form_1_v2\",", + "pm.collectionVariables.get(\"form1_part1\")+pm.collectionVariables.get(\"form_1_definition_key\")+pm.collectionVariables.get(\"form1_part2_v2\"));", + "pm.collectionVariables.set(\"form_1_v2_definition_key\",pm.collectionVariables.get(\"form_1_definition_key\"));" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "{{form_1_v2}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/update/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "update", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [ + { + "name": "OK", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + }, + { + "key": "Accept", + "value": "application/json" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "", + "description": "(Required) ", + "type": "text" + }, + { + "key": "filename", + "value": "B3q5VzcAJo_", + "description": "(Required) ", + "type": "text" + }, + { + "key": "functionType", + "value": "MENU", + "description": "(Required) (This can only be one of MENU,SPONTANEOUS_PAYMENT)", + "type": "text" + } + ] + }, + "url": { + "raw": "http://localhost:8086/api/v1/model/bpmn", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8086", + "path": [ + "api", + "v1", + "model", + "bpmn" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"bpmnId\": \"7a7a6585-5e05-8244-ADae-E978C9DdC92F\",\n \"modelVersion\": \"\",\n \"deployedFileName\": \"\",\n \"definitionKey\": \"\",\n \"functionType\": \"MENU\",\n \"status\": \"DEPLOYED\",\n \"sha256\": \"\",\n \"definitionVersionCamunda\": \"\",\n \"camundaDefinitionId\": \"\",\n \"description\": \"\",\n \"resourceFile\": {\n \"id\": \"B2D42af0-e3AE-fAe7-5BFf-EddD3daEeB00\",\n \"resourceType\": \"BPMN\",\n \"storageKey\": \"\",\n \"fileName\": \"\",\n \"extension\": \"\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n },\n \"resource\": \"\",\n \"deploymentId\": \"8FFED2c8-FA9f-fd7D-B25a-B8fA41DB7D3d\",\n \"createdAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"lastUpdatedAt\": {\n \"year\": \"\",\n \"month\": \"\",\n \"date\": \"\",\n \"day\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"timeImpl\": \"\",\n \"timezoneOffset\": \"\",\n \"calendarDate\": {\n \"era\": {\n \"name\": \"\",\n \"abbr\": \"\",\n \"since\": \"\",\n \"sinceDate\": {\n \"era\": {\n \"value\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n }\n },\n \"localTime\": \"\",\n \"hash\": \"\",\n \"abbreviation\": \"\"\n },\n \"year\": \"\",\n \"month\": \"\",\n \"dayOfMonth\": \"\",\n \"dayOfWeek\": \"\",\n \"leapYear\": \"\",\n \"hours\": \"\",\n \"minutes\": \"\",\n \"seconds\": \"\",\n \"millis\": \"\",\n \"fraction\": \"\",\n \"normalized\": \"\",\n \"zoneinfo\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"zoneOffset\": \"\",\n \"daylightSaving\": \"\",\n \"forceStandardTime\": \"\",\n \"locale\": {\n \"language\": \"\",\n \"script\": \"\",\n \"country\": \"\",\n \"variant\": \"\",\n \"extensionKeys\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleAttributes\": [\n \"\",\n \"\"\n ],\n \"unicodeLocaleKeys\": [\n \"\",\n \"\"\n ],\n \"iSO3Language\": \"\",\n \"iSO3Country\": \"\",\n \"displayLanguage\": \"\",\n \"displayScript\": \"\",\n \"displayCountry\": \"\",\n \"displayVariant\": \"\",\n \"displayName\": \"\"\n },\n \"timeOfDay\": \"\",\n \"standardTime\": \"\",\n \"daylightTime\": \"\",\n \"zone\": {\n \"ID\": \"\",\n \"rawOffset\": \"\",\n \"iD\": \"\",\n \"displayName\": \"\",\n \"dSTSavings\": \"\"\n },\n \"cachedYear\": \"\",\n \"cachedFixedDateJan1\": \"\",\n \"cachedFixedDateNextJan1\": \"\",\n \"normalizedYear\": \"\",\n \"cachedJan1\": \"\"\n },\n \"nanos\": \"\",\n \"time\": \"\"\n },\n \"createdBy\": \"\",\n \"lastUpdatedBy\": \"\"\n}" + } + ] + }, + { + "name": "Get FORM_1 dopo Update", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "var jsonData = JSON.parse(responseBody);\r", + "var res = jsonData.workflowResourceId\r", + "pm.test(\"right id\", function () {\r", + " pm.expect(res).to.equal(pm.collectionVariables.get(\"form_1_id\"));\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{form_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Download BPMN", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript" + } + }, + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/download/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "download", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}" + }, + { + "key": "version", + "value": "1" + } + ] + } + }, + "response": [] + }, + { + "name": "Download BPMN FrontEnd", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/bpmn/downloadFrontEnd/:uuid/version/:version", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "bpmn", + "downloadFrontEnd", + ":uuid", + "version", + ":version" + ], + "variable": [ + { + "key": "uuid", + "value": "{{bpmn_1_id}}", + "description": "(Required) " + }, + { + "key": "version", + "value": "1", + "description": "(Required) " + } + ] + } + }, + "response": [] + }, + { + "name": "Download Workflow Resource", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disabledSystemHeaders": {} + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/octet-stream", + "type": "text" + } + ], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/download/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "download", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Download Workflow Resource FrontEnd", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/downloadFrontEnd/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "downloadFrontEnd", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{workflow_bpmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Disabilita risorsa esistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/disable/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + "disable", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{other_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel disabilitare risorsa inesistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 500\", function () {\r", + " pm.response.to.have.status(500);\r", + "});\r" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/disable/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + "disable", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{other_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Disabilita Workflow Resource esistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/disable/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "disable", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nel disabilitare Workflow Resource inesistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});\r", + "var data=pm.response.json();\r", + "pm.test(\"errorCode is ATMLM_4000023\", function(){\r", + " pm.expect(data.errorCode).to.equal(\"ATMLM_4000023\");\r", + "})" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/workflow-resource/disable/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "workflow-resource", + "disable", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{dmn_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Elimina risorsa esistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{html_1_id}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Fallisci nell'eliminare risorsa non esistente", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 400\", function () {\r", + " pm.response.to.have.status(400);\r", + "});\r", + "var data=pm.response.json();\r", + "pm.expect(data.errorCode).to.equal(\"ATMLM_4000029\");" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{baseUrl}}/api/v1/model/resources/:uuid", + "host": [ + "{{baseUrl}}" + ], + "path": [ + "api", + "v1", + "model", + "resources", + ":uuid" + ], + "variable": [ + { + "key": "uuid", + "value": "{{html_1_id}}" + } + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "apikey", + "apikey": [ + { + "key": "value", + "value": "TfRV0R7jTX1ZhzWxdZBvn2ALZxlhgd446EPfuECc", + "type": "string" + }, + { + "key": "key", + "value": "x-api-key", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "bpmn_1_id", + "value": "", + "type": "string" + }, + { + "key": "acquirer_id_1", + "value": "1234", + "type": "string" + }, + { + "key": "acquirer_id_2", + "value": "5678", + "type": "string" + }, + { + "key": "acquirer_id_invalid", + "value": "999999999", + "type": "string" + }, + { + "key": "bpmn_part1", + "value": "\n\n \n \n Flow_0rtxipq\n \n \n Flow_0rtxipq\n Flow_0d1f1hn\n \n \n \n Flow_0d1f1hn\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n", + "type": "string" + }, + { + "key": "bpmn_1", + "value": "" + }, + { + "key": "bpmn_1_definition_key", + "value": "", + "type": "string" + }, + { + "key": "bpmn2_part2", + "value": "\" isExecutable=\"true\" camunda:historyTimeToLive=\"180\">\n \n Flow_0rtxipq\n \n \n Flow_0rtxipq\n Flow_0d1f1hn\n \n \n \n Flow_0d1f1hn\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n", + "type": "string" + }, + { + "key": "bpmn_2", + "value": "" + }, + { + "key": "bpmn_3_definition_key", + "value": "", + "type": "string" + }, + { + "key": "bpmn_3", + "value": "" + }, + { + "key": "bpmn_3_id", + "value": "" + }, + { + "key": "bpmn_1_v2", + "value": "" + }, + { + "key": "bpmn_1_v2_definition_key", + "value": "" + }, + { + "key": "bpmn_4", + "value": "" + }, + { + "key": "bpmn_4_definition_key", + "value": "" + }, + { + "key": "bpmn_4_id", + "value": "" + }, + { + "key": "baseUrl", + "value": "", + "disabled": true + }, + { + "key": "dmn_1_id", + "value": "", + "type": "string" + }, + { + "key": "dmn1_part1", + "value": "\n\n \n \n \n \n \n \"\"\n \n \n \n \n \n \n \n \"\"\n \n \n \n \n codice Atto numerico len[8..18] AND codice Ente numerico len [11..13] \n \n matches(?, \"^\\d{8,18}$\")\n \n \n matches(?, \"^\\d{11,13}$\")\n \n \n true\n \n \n \n \n \n \n \n \n \n \n false\n \n \n \n \n \n \n \n \n \n \n \n\n", + "type": "string" + }, + { + "key": "dmn_1_definition_key", + "value": "", + "type": "string" + }, + { + "key": "dmn_1_", + "value": "", + "type": "string" + }, + { + "key": "form_1", + "value": "", + "type": "string" + }, + { + "key": "form_1_id", + "value": "", + "type": "string" + }, + { + "key": "form_1_definition_key", + "value": "", + "type": "string" + }, + { + "key": "form1_part1", + "value": "{\n \"components\": [\n {\n \"label\": \"Number\",\n \"type\": \"number\",\n \"layout\": {\n \"row\": \"Row_00m0vu6\",\n \"columns\": null\n },\n \"id\": \"Field_0lkf78b\",\n \"key\": \"number_b2b7qe\"\n },\n {\n \"subtype\": \"date\",\n \"dateLabel\": \"Date\",\n \"label\": \"Date time\",\n \"type\": \"datetime\",\n \"layout\": {\n \"row\": \"Row_0hcja9h\",\n \"columns\": null\n },\n \"id\": \"Field_0kn2898\",\n \"key\": \"datetime_f4rwi\"\n }\n ],\n \"type\": \"default\",\n \"id\": \"", + "type": "string" + }, + { + "key": "form1_part2", + "value": "\",\n \"exporter\": {\n \"name\": \"Camunda Modeler\",\n \"version\": \"5.16.0\"\n },\n \"executionPlatform\": \"Camunda Platform\",\n \"executionPlatformVersion\": \"7.20.0\",\n \"schemaVersion\": 11\n}", + "type": "string" + }, + { + "key": "dmn1_part2_v2", + "value": "\" name=\"codice atto e ente validi\" camunda:historyTimeToLive=\"150\">\n \n \n \n \n \"\"\n \n \n \n \n \n \n \n \"\"\n \n \n \n \n codice Atto numerico len[8..18] AND codice Ente numerico len [11..13] \n \n matches(?, \"^\\d{8,18}$\")\n \n \n matches(?, \"^\\d{11,13}$\")\n \n \n true\n \n \n \n \n \n \n \n \n \n \n false\n \n \n \n \n \n \n \n \n \n \n \n\n", + "type": "string" + }, + { + "key": "dmn_1_v2", + "value": "", + "type": "string" + }, + { + "key": "dmn_1_v2_definition_key", + "value": "", + "type": "string" + }, + { + "key": "dmn_1_v2_id", + "value": "", + "type": "string" + }, + { + "key": "html1_part2", + "value": "\n

My first paragraph.

\n\n\n", + "type": "string" + }, + { + "key": "html_1_id", + "value": "", + "type": "string" + }, + { + "key": "other_1", + "value": "", + "type": "string" + }, + { + "key": "other_1_id", + "value": "", + "type": "string" + }, + { + "key": "html1_part1", + "value": "\n\n\n

", + "type": "string" + }, + { + "key": "html_content", + "value": "", + "type": "string" + }, + { + "key": "html_1", + "value": "" + }, + { + "key": "html_filename", + "value": "", + "type": "string" + }, + { + "key": "html_path", + "value": "", + "type": "string" + }, + { + "key": "other_filename", + "value": "", + "type": "string" + }, + { + "key": "other_path", + "value": "", + "type": "string" + }, + { + "key": "html_1_v2", + "value": "", + "type": "string" + }, + { + "key": "html_content_v2", + "value": "", + "type": "string" + }, + { + "key": "other_1_v2", + "value": "", + "type": "string" + }, + { + "key": "dmn_2", + "value": "", + "type": "string" + }, + { + "key": "form_2", + "value": "", + "type": "string" + }, + { + "key": "form1_part2_v2", + "value": "\",\n \"exporter\": {\n \"name\": \"Camunda Modeler\",\n \"version\": \"5.16.0\"\n },\n \"executionPlatform\": \"Camunda Platforms\",\n \"executionPlatformVersion\": \"7.20.0\",\n \"schemaVersion\": 11\n}", + "type": "string" + }, + { + "key": "form_1_v2", + "value": "", + "type": "string" + }, + { + "key": "form_1_v2_definition_key", + "value": "" + }, + { + "key": "not_found_uuid", + "value": "", + "type": "string" + }, + { + "key": "same_content", + "value": "test", + "type": "string" + }, + { + "key": "dmn_1", + "value": "" + }, + { + "key": "html_1_content", + "value": "", + "type": "string" + }, + { + "key": "other_1_content", + "value": "", + "type": "string" + }, + { + "key": "dmn_1_duplicate", + "value": "", + "type": "string" + }, + { + "key": "form_1_duplicate", + "value": "", + "type": "string" + }, + { + "key": "dmn_1_v2_fail", + "value": "", + "type": "string" + }, + { + "key": "form_1_v2_fail", + "value": "", + "type": "string" + }, + { + "key": "workflow_bpmn_1", + "value": "", + "type": "string" + }, + { + "key": "workflow_bpmn1_part1", + "value": "\n\n \n \n Flow_04wrgr6\n \n \n Flow_04wrgr6\n Flow_096edrn\n Flow_0q7puws\n \n \n \n \n \n \n 31\n error on stampanteKO.html\n \n \n \n \n 27\n timeout on stampanteKO.html\n \n \n \n \n ${true}\n \n \n ${150}\n \n \n ${false}\n \n \n ${false}\n ${continue}\n \n \n Flow_096edrn\n Flow_05evy1e\n \n \n Flow_05evy1e\n Flow_1r3rpfh\n Flow_1xqfmbo\n \n \n Flow_0q7puws\n Flow_1r3rpfh\n Flow_0iavi1u\n Flow_1qcw6m1\n \n \n \n \n \n \n 31\n error on inputCodiceAttoEnte.html\n \n \n \n \n timeout on inputCodiceAttoEnte.html\n 27\n \n \n ${250}\n \n \n Flow_0iavi1u\n Flow_0te1s6o\n Flow_0cwnlkd\n \n \n \n \n SCAN_BIIL_DATA\n \n \n QRcode\n \n \n ${150}\n \n \n timeout on bill scan\n 54\n \n \n \n \n 44\n \n \n ${count +1 }\n \n \n Flow_01b75gy\n Flow_1944z0s\n Flow_1dga4mu\n \n \n Flow_04szigj\n Flow_04u54zp\n Flow_1rjwaqr\n \n \n Flow_1rjwaqr\n \n \n \n Flow_1xqfmbo\n \n \n \n \n \n client_secret=${client_secret}&client_id=${client_id}&grant_type=client_credentials\n \n \n \n \n application/x-www-form-urlencoded\n 06789\n 64874412\n ATM\n \n \n \n \n 7\n \n \n https://example-rest/user/{id}\n ${response}\n ${statusCode}\n \n \n Flow_0orckpy\n Flow_04u54zp\n Flow_0x3ks2r\n \n \n \n \n ${PRINTER=='OK'}\n \n \n \n ${continue}\n \n \n \n \n #{SCANNER=='OK'}\n \n \n \n \n ${count < 3}\n \n \n \n \n ${validateResult}\n \n \n \n \n Flow_0x3ks2r\n \n \n \n \n \n ${0}\n \n \n Flow_1qcw6m1\n Flow_1944z0s\n \n \n \n Flow_1dga4mu\n Flow_0orckpy\n Flow_1x6urq9\n \n \n Flow_1x6urq9\n Flow_01b75gy\n Flow_0te1s6o\n \n \n ${scanResult =='KO'}\n \n \n Flow_0cwnlkd\n Flow_04szigj\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n", + "type": "string" + }, + { + "key": "workflow_bpmn1_part2v2", + "value": "\" isExecutable=\"true\" camunda:historyTimeToLive=\"180\">\n \n Flow_04wrgr6\n \n \n Flow_04wrgr6\n Flow_096edrn\n Flow_0q7puws\n \n \n \n \n \n \n 31\n error on stampanteKO.html\n \n \n \n \n 27\n timeout on stampanteKO.html\n \n \n \n \n ${true}\n \n \n ${150}\n \n \n ${false}\n \n \n ${false}\n ${continue}\n \n \n Flow_096edrn\n Flow_05evy1e\n \n \n Flow_05evy1e\n Flow_1r3rpfh\n Flow_1xqfmbo\n \n \n Flow_0q7puws\n Flow_1r3rpfh\n Flow_0iavi1u\n Flow_1qcw6m1\n \n \n \n \n \n \n 31\n error on inputCodiceAttoEnte.html\n \n \n \n \n timeout on inputCodiceAttoEnte.html\n 27\n \n \n ${250}\n \n \n Flow_0iavi1u\n Flow_0te1s6o\n Flow_0cwnlkd\n \n \n \n \n SCAN_BIIL_DATA\n \n \n QRcode\n \n \n ${150}\n \n \n timeout on bill scan\n 54\n \n \n \n \n 44\n \n \n ${count +1 }\n \n \n Flow_01b75gy\n Flow_1944z0s\n Flow_1dga4mu\n \n \n Flow_04szigj\n Flow_04u54zp\n Flow_1rjwaqr\n \n \n Flow_1rjwaqr\n \n \n \n Flow_1xqfmbo\n \n \n \n \n \n client_secret=${client_secret}&client_id=${client_id}&grant_type=client_credentials\n \n \n \n \n application/x-www-form-urlencoded\n 06789\n 64874412\n ATM\n \n \n \n \n 7\n \n \n https://example-rest/user/{id}\n ${response}\n ${statusCode}\n \n \n Flow_0orckpy\n Flow_04u54zp\n Flow_0x3ks2r\n \n \n \n \n ${PRINTER=='OK'}\n \n \n \n ${continue}\n \n \n \n \n #{SCANNER=='OK'}\n \n \n \n \n ${count < 3}\n \n \n \n \n ${validateResult}\n \n \n \n \n Flow_0x3ks2r\n \n \n \n \n \n ${0}\n \n \n Flow_1qcw6m1\n Flow_1944z0s\n \n \n \n Flow_1dga4mu\n Flow_0orckpy\n Flow_1x6urq9\n \n \n Flow_1x6urq9\n Flow_01b75gy\n Flow_0te1s6o\n \n \n ${scanResult =='KO'}\n \n \n Flow_0cwnlkd\n Flow_04szigj\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n", + "type": "string" + }, + { + "key": "workflow_bpmn_1_id", + "value": "", + "type": "string" + }, + { + "key": "workflow_bpmn_1_definition_key", + "value": "", + "type": "string" + }, + { + "key": "workflowbpmn_1", + "value": "" + }, + { + "key": "workflowbpmn_1_definition_key", + "value": "" + }, + { + "key": "workflowbpmn_1_id", + "value": "" + }, + { + "key": "workflow_bpmn_1_duplicate", + "value": "", + "type": "string" + }, + { + "key": "workflow_bpmn_2", + "value": "", + "type": "string" + }, + { + "key": "workflow_bpmn_1_v2_fail", + "value": "", + "type": "string" + }, + { + "key": "workflow_bpmn_1_v2", + "value": "", + "type": "string" + }, + { + "key": "workflow_bpmn_1_v2_definition_key", + "value": "", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/src/test/resources/integration-test/run-postman.sh b/src/test/resources/integration-test/run-postman.sh index b350a814..90ee05f6 100644 --- a/src/test/resources/integration-test/run-postman.sh +++ b/src/test/resources/integration-test/run-postman.sh @@ -1,4 +1,4 @@ #!/bin/sh -newman run /postman/Integration_test_model.postman_collection.json -r cli,json,htmlextra \ +newman run /postman/Integration_test_model_1.postman_collection.json -r cli,json,htmlextra \ --reporter-json-export output/result.json --reporter-htmlextra-export output/result.html \ --env-var "baseUrl=http://host.testcontainers.internal:8086"