From dfbd9ab8b95f89e9774a73f6a3c61457192749a1 Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Thu, 26 Mar 2026 16:12:35 +0100 Subject: [PATCH] add EFTL request to check Titulus configuration for module PROPOSTA_CCT_OPERATORE --- .../Fascicolo e documento - Nuovo formato.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 collections/elixForms API v2/EFTL processing/CCT - Proposta Operatore/Fascicolo e documento - Nuovo formato.yml diff --git a/collections/elixForms API v2/EFTL processing/CCT - Proposta Operatore/Fascicolo e documento - Nuovo formato.yml b/collections/elixForms API v2/EFTL processing/CCT - Proposta Operatore/Fascicolo e documento - Nuovo formato.yml new file mode 100644 index 0000000..07d85b0 --- /dev/null +++ b/collections/elixForms API v2/EFTL processing/CCT - Proposta Operatore/Fascicolo e documento - Nuovo formato.yml @@ -0,0 +1,63 @@ +info: + name: Fascicolo e documento - Nuovo formato + type: http + seq: 9 + +http: + method: POST + url: "{{elixFormsApiUrl}}/eftl/process/v1" + headers: + - name: x-requested-with + value: XMLHttpRequest + - name: x-api-key + value: "{{elixFormsWsAuthenticationToken}}" + - name: x-ef-request-id + value: "17144" + disabled: true + - name: x-ef-request-id + value: "15956" + - name: x-ef-request-id + value: "25981" + disabled: true + body: + type: json + data: |- + { + "userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script + "userContext": { + "lang": "IT", + "crlf": "\r\n", + "DEBUG": "S" + } + } + auth: inherit + +runtime: + scripts: + - type: before-request + code: |- + const { prepareEftlDocument } = require("./elixFormsJs.js") + // Copy-pasta your EFTL document below inside the template literals (`) + prepareEftlDocument(String.raw` + [EFTL][HEADER name="trimDocument" value="true" type="boolean" /] + + [VAR name="idContratto" type="string"][TAG]GETVALUEBYTAG,ID_IRIS,REQUEST,IUQOID[/TAG][/VAR] + [VAR name="titoloContratto" type="string"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_DESCR,REQUEST,IUQOID[/TAG][/VAR] + [VAR name="responsabiliCsv" type="string"][TAG]GETVALUEBYTAG,ELENCO_RS_CSV,REQUEST,IUQOID[/TAG][/VAR] + [VAR name="contraentiCsv" type="string"][TAG]GETVALUEBYTAG,ELENCO_CONTRAENTI_CSV,REQUEST,IUQOID[/TAG][/VAR] + + Debug: [TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG] + + Fascicolo: [TAG]GETVALUEBYTAG,ID_IRIS,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_CONTRAENTI_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_RS_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_DESCR,REQUEST,IUQOID[/TAG] + Documento: Proposta di Contratto / Convenzione - [TAG]GETVALUEBYTAG,ID_IRIS,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_CONTRAENTI_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,ELENCO_RS_CSV,REQUEST,IUQOID[/TAG] - [TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_DESCR,REQUEST,IUQOID[/TAG] + + Old Fas: [TAG]SCHEMAID,341,COL0001,IUQOID, , [/TAG] + Old Doc: Proposta di contratto / convenzione - ID contratto: [TAG]SCHEMAID,341,COL0001,IUQOID, , [/TAG] + [/EFTL] + `); + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5