add EFTL request to check Titulus configuration for module PROPOSTA_CCT_OPERATORE

This commit is contained in:
2026-03-26 16:12:35 +01:00
parent 7c1ab24a64
commit dfbd9ab8b9
@@ -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