add other collections
This commit is contained in:
+196
@@ -0,0 +1,196 @@
|
||||
info:
|
||||
name: Proposta CCT determina contratti conto terzi NO EFTL
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "10971"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"tipologiePunto1\": \"CRCT_RA;CRCT_RAS;CRCT_RB\",\r
|
||||
|
||||
\ \"tipologiePunto2\": \"SERV_CON\",\r
|
||||
|
||||
\ \"tipologiePunto3\": \"FORM_COM\",\r
|
||||
|
||||
\ \"tipologiePunto4\": \"\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL]\r
|
||||
|
||||
[VAR name=\"corrispettivo\" type=\"string\"][TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"presenzaOneri\" type=\"boolean\"][TAG]SCHEMAID,341,COL0084,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"mostraRitenute\" type=\"string\"][TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"ulterioreRitenuta2Max\" type=\"string\"][TAG]SCHEMAID,337,COL0017,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
<html>\r
|
||||
|
||||
\ <head>\r
|
||||
|
||||
\ <style>\r
|
||||
|
||||
\ h2 {\r
|
||||
|
||||
\ text-align: center;\r
|
||||
|
||||
\ font-size: 14pt;\r
|
||||
|
||||
\ font-weight: bold;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ p {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ol {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ .firma {\r
|
||||
|
||||
\ float: right;\r
|
||||
|
||||
\ margin: 2em;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ </style>\r
|
||||
|
||||
\ </head>\r
|
||||
|
||||
\ <body>\r
|
||||
|
||||
\ <!-- Header con logo UniPR come nel template standard -->\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>IL DIRIGENTE</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visti lo Statuto dell'Università degli Studi di Parma ed il Regolamento Generale di Ateneo;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento di Ateneo per l'amministrazione, la finanza e la contabilità, emanato con Decreto Rettorale n. 1674/2024, prot. 198495 del 17 luglio 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi, emanato con Decreto Rettorale n. 2298/2024, prot. n. 264866 del 4 ottobre 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento dell'Università degli Studi di Parma in materia di brevetti e tutela dell'invenzione, emanato con Decreto Rettorale n. 1033/2024, prot. n. 113244 del 30 aprile 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <!-- <p>preso atto che, con nota assunta a Prot. n. ___, il [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG] ha trasmesso:</p> -->\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>richiamato integralmente il testo del contratto da stipularsi tra l'Università degli Studi di Parma, nell'interesse del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG], avente ad oggetto [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] sotto la responsabilità scientifica di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG], con durata di mesi [TAG]SCHEMAID,341,COL0008,IUQOID, , [/TAG], per un corrispettivo pari a euro [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG];</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>ritenuto, per quanto premesso, di aderire alla richiesta di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG] di approvazione della stipula del contratto con [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] per [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] in premessa, ai sensi e per gli effetti di quanto previsto dal sopra citato Regolamento sulla disciplina delle attività di ricerca, consulenza, didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi con riferimento all'Art.2, punto A;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>determina</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <ol>\r
|
||||
|
||||
\ <li>di approvare la stipula del contratto tra [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] e l'Università degli Studi di Parma, nell'interesse del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG], avente ad oggetto [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] sotto la responsabilità scientifica di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG], con durata di mesi [TAG]SCHEMAID,341,COL0008,IUQOID, , [/TAG];</li>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <li>di autorizzare l'introito del corrispettivo pari ad euro [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] che verrà erogato da [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG] != \"N\" %]--][% mostraRitenute != \"N\" %][/CONDITION][THEN], da assoggettare alle ritenute secondo le modalità previste dall'art. 6, comma 1 del \"Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi\" nella misura del 3% (euro [TAG]SCHEMAID,337,COL0014,IUQOID, , [/TAG]) per l'Amministrazione di Ateneo, del 4% (euro [TAG]SCHEMAID,337,COL0015,IUQOID, , [/TAG]) per il Fondo Comune di Ateneo e del 1% (euro [TAG]SCHEMAID,337,COL0016,IUQOID, , [/TAG]) per l'incremento dei fondi di cui agli artt. 119, comma 2, punto a) e 121, comma 2, punto a) del CCNL di comparto per l'attuazione dell'art. 110, comma 2 del medesimo contratto[IF][CONDITION][!--[% [TAG]SCHEMAID,337,COL0017,IUQOID, , [/TAG] != \"\" && [TAG]SCHEMAID,337,COL0017,IUQOID, , [/TAG] > 0 %]--][% ulterioreRitenuta2Max > 0 %][/CONDITION][THEN] e del [TAG]SCHEMAID,337,COL0057,IUQOID, , [/TAG]% (euro [TAG]SCHEMAID,337,COL0063,IUQOID, , [/TAG]) a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][/THEN][/IF][/THEN][/IF];</li>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <li>di dare mandato al Direttore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG] per ogni adempimento relativo.</li>\r
|
||||
|
||||
\ </ol>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <div class=\"firma\">\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Parma, li [TAG]SCHEMAID,340,COL0022,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">[TAG]SCHEMAID,341,COL0093,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Firmato digitalmente ai sensi del D.Lgs. n. 82/2005</p>\r
|
||||
|
||||
\ </div>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <!-- Footer con logo UniPR come nel template standard -->\r
|
||||
|
||||
\ </body>\r
|
||||
|
||||
</html>\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+196
@@ -0,0 +1,196 @@
|
||||
info:
|
||||
name: Proposta CCT determina contratti conto terzi
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "9717"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"tipologiePunto1\": \"CRCT_RA;CRCT_RAS;CRCT_RB\",\r
|
||||
|
||||
\ \"tipologiePunto2\": \"SERV_CON\",\r
|
||||
|
||||
\ \"tipologiePunto3\": \"FORM_COM\",\r
|
||||
|
||||
\ \"tipologiePunto4\": \"\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL]\r
|
||||
|
||||
[VAR name=\"corrispettivo\" type=\"string\"][TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"presenzaOneri\" type=\"boolean\"][TAG]SCHEMAID,341,COL0084,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"mostraRitenute\" type=\"string\"][TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"ulterioreRitenuta2Max\" type=\"string\"][TAG]SCHEMAID,337,COL0057,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
<html>\r
|
||||
|
||||
\ <head>\r
|
||||
|
||||
\ <style>\r
|
||||
|
||||
\ h2 {\r
|
||||
|
||||
\ text-align: center;\r
|
||||
|
||||
\ font-size: 14pt;\r
|
||||
|
||||
\ font-weight: bold;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ p {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ol {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ .firma {\r
|
||||
|
||||
\ float: right;\r
|
||||
|
||||
\ margin: 2em;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ </style>\r
|
||||
|
||||
\ </head>\r
|
||||
|
||||
\ <body>\r
|
||||
|
||||
\ <!-- Header con logo UniPR come nel template standard -->\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>IL DIRIGENTE</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visti lo Statuto dell'Università degli Studi di Parma ed il Regolamento Generale di Ateneo;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento di Ateneo per l'amministrazione, la finanza e la contabilità, emanato con Decreto Rettorale n. 1674/2024, prot. 198495 del 17 luglio 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi, emanato con Decreto Rettorale n. 2298/2024, prot. n. 264866 del 4 ottobre 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento dell'Università degli Studi di Parma in materia di brevetti e tutela dell'invenzione, emanato con Decreto Rettorale n. 1033/2024, prot. n. 113244 del 30 aprile 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <!-- <p>preso atto che, con nota assunta a Prot. n. ___, il [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG] ha trasmesso:</p> -->\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>richiamato integralmente il testo del contratto da stipularsi tra l'Università degli Studi di Parma, nell'interesse del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG], avente ad oggetto [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] sotto la responsabilità scientifica di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG], con durata di mesi [TAG]SCHEMAID,341,COL0008,IUQOID, , [/TAG], per un corrispettivo pari a euro [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG];</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>ritenuto, per quanto premesso, di aderire alla richiesta di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG] di approvazione della stipula del contratto con [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] per [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] in premessa, ai sensi e per gli effetti di quanto previsto dal sopra citato Regolamento sulla disciplina delle attività di ricerca, consulenza, didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi con riferimento all'Art.2, punto A;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>determina</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <ol>\r
|
||||
|
||||
\ <li>di approvare la stipula del contratto tra [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] e l'Università degli Studi di Parma, nell'interesse del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG], avente ad oggetto [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] sotto la responsabilità scientifica di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG], con durata di mesi [TAG]SCHEMAID,341,COL0008,IUQOID, , [/TAG];</li>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <li>di autorizzare l'introito del corrispettivo pari ad euro [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] che verrà erogato da [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG] != \"N\" %]--][% mostraRitenute != \"N\" %][/CONDITION][THEN], da assoggettare alle ritenute di cui all'art. 6, comma 1 del \"Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi\" nella misura del 3% (euro [TAG]SCHEMAID,337,COL0014,IUQOID, , [/TAG]) per l'Amministrazione di Ateneo, del 4% (euro [TAG]SCHEMAID,337,COL0015,IUQOID, , [/TAG]) per il Fondo Comune di Ateneo e del 1% (euro [TAG]SCHEMAID,337,COL0016,IUQOID, , [/TAG]) per l'incremento dei fondi di cui agli artt. 119, comma 2, punto a) e 121, comma 2, punto a) del CCNL di comparto per l'attuazione dell'art. 110, comma 2 del medesimo contratto[IF][CONDITION][!--[% [TAG]SCHEMAID,337,COL0017,IUQOID, , [/TAG] != \"\" && [TAG]SCHEMAID,337,COL0017,IUQOID, , [/TAG] > 0 %]--][% ulterioreRitenuta2Max > 0 %][/CONDITION][THEN] e del [TAG]SCHEMAID,337,COL0057,IUQOID, , [/TAG]% (euro [TAG]SCHEMAID,337,COL0063,IUQOID, , [/TAG]) a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][/THEN][/IF][/THEN][/IF];</li>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <li>di dare mandato al Direttore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG] per ogni adempimento relativo.</li>\r
|
||||
|
||||
\ </ol>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <div class=\"firma\">\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Parma, li [TAG]SCHEMAID,340,COL0022,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">[TAG]SCHEMAID,341,COL0093,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Firmato digitalmente ai sensi del D.Lgs. n. 82/2005</p>\r
|
||||
|
||||
\ </div>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <!-- Footer con logo UniPR come nel template standard -->\r
|
||||
|
||||
\ </body>\r
|
||||
|
||||
</html>\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+520
File diff suppressed because one or more lines are too long
+224
@@ -0,0 +1,224 @@
|
||||
info:
|
||||
name: Proposta CCT determina ex art 15
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "9717"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"tipologiePunto1\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto2\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto3\": \"CCS_IST_RA;CCS_IST_RAS;CCS_IST_RB\",\r
|
||||
|
||||
\ \"tipologiePunto4\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto5\": \"MTA;NDA\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL]\r
|
||||
|
||||
[VAR name=\"corrispettivo\" type=\"string\"][TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"speseGenerali\" type=\"string\"][TAG]SCHEMAID,341,COL0051,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"presenzaOneri\" type=\"boolean\"][TAG]SCHEMAID,341,COL0084,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"mostraRitenute\" type=\"string\"][TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"ulterioreRitenuta2Max\" type=\"string\"][TAG]SCHEMAID,337,COL0067,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
<html>\r
|
||||
|
||||
\ <head>\r
|
||||
|
||||
\ <style>\r
|
||||
|
||||
\ h2 {\r
|
||||
|
||||
\ text-align: center;\r
|
||||
|
||||
\ font-size: 14pt;\r
|
||||
|
||||
\ font-weight: bold;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ p {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ol {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ .firma {\r
|
||||
|
||||
\ float: right;\r
|
||||
|
||||
\ margin: 2em;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ </style>\r
|
||||
|
||||
\ </head>\r
|
||||
|
||||
\ <body>\r
|
||||
|
||||
\ <!-- Header con logo UniPR come nel template standard -->\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>IL DIRIGENTE</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto l'art.15 della legge 7 agosto 1990 n. 241 che disciplina gli \"Accordi tra Pubbliche Amministrazioni\";</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>richiamato l'art. 7, comma 4 del D. Lgs. 31 marzo 2023, n. 36 \"Codice dei contratti pubblici in attuazione dell'articolo 1 della legge 21 giugno 2022, n. 78, recante delega al Governo in materia di contratti pubblici\";</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visti lo Statuto dell'Università degli Studi di Parma ed il Regolamento Generale di Ateneo;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi, emanato con Decreto Rettorale n. 2298/2024, prot. n. 264866 del 4 ottobre 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento dell'Università degli Studi di Parma in materia di brevetti e tutela dell'invenzione, emanato con Decreto Rettorale n. 1033/2024, prot. n. 113244 del 30 aprile 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
[IF][CONDITION][!-- [% [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] > 0 %] --][% corrispettivo > 0 %][/CONDITION][THEN]\r
|
||||
|
||||
\ <p>visto il Regolamento di Ateneo per l'amministrazione, la finanza e la contabilità, emanato con Decreto Rettorale n. 1674/2024, prot. 198495 del 17 luglio 2024;</p>\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>preso atto del rispetto da parte dell'Università degli Studi di Parma del parametro di cui all'art. 7, comma 4, lettera d), del D.Lgs. n. 36/2023, in relazione all'avvenuto accertamento sul bilancio unico di Ateneo delle poste relative;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <!--<p>preso atto che, con nota assunta a Prot. n. ___, il [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG] ha trasmesso:</p>-->\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>verificata l'applicabilità dell'art. 15 \"Accordi fra Pubbliche Amministrazioni\" della legge n. 241/1990 sul procedimento amministrativo, sussistendone i presupposti, incluso l'interesse reciproco, il contributo di tutti i soggetti sottoscrittori, la proprietà condivisa dei risultati secondo quanto stabilito dall'Accordo e la compartecipazione alle spese finalizzate al raggiungimento degli obiettivi specificati nel testo della stessa;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>richiamato integralmente il testo dell'accordo da stipularsi tra l'Università degli Studi di Parma, nell'interesse del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG], avente ad oggetto [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] sotto la responsabilità scientifica di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG], con durata di mesi [TAG]SCHEMAID,341,COL0008,IUQOID, , [/TAG][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0084,IUQOID, , [/TAG] == false %]--][% presenzaOneri == false %][/CONDITION][THEN], senza oneri a carico del budget dell'Amministrazione Centrale[/THEN][/IF];</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>ritenuto, per quanto premesso, di aderire alla richiesta di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG] di approvazione della stipula Accordo con [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] per [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] in premessa, ai sensi e per gli effetti di quanto previsto dal sopra citato Regolamento sulla disciplina delle attività di ricerca, consulenza, didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi con riferimento all'Art.2, punto B;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>determina</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <ol>\r
|
||||
|
||||
\ <li>richiamate le premesse, parti integranti del presente dispositivo, di approvare la stipula dell'Accordo tra [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] e l'Università degli Studi di Parma, nell'interesse del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG], avente ad oggetto [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] sotto la responsabilità scientifica di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG], con durata di mesi [TAG]SCHEMAID,341,COL0008,IUQOID, , [/TAG][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0084,IUQOID, , [/TAG] == false %]--][% presenzaOneri == false %][/CONDITION][THEN], senza oneri a carico del budget dell'Amministrazione Centrale[/THEN][/IF];</li>\r
|
||||
|
||||
\r
|
||||
|
||||
[IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] > 0 %]--][% corrispettivo > 0 %][/CONDITION][THEN]\r
|
||||
|
||||
\ <li>di autorizzare l'introito del contributo di euro [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] da parte di [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG] != \"N\" %]--][% mostraRitenute != \"N\" %][/CONDITION][THEN][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0051,IUQOID, , [/TAG] > 0 %]--][% speseGenerali > 0 %][/CONDITION][THEN], da assoggettare alle ritenute secondo le modalità previste dall'art. 6, comma 2 del \"Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi\" nella misura del 6% (euro [TAG]SCHEMAID,337,COL0049,IUQOID, , [/TAG]) per l'Amministrazione di Ateneo, del 8% (euro [TAG]SCHEMAID,337,COL0050,IUQOID, , [/TAG]) per il Fondo Comune di Ateneo e del 2% (euro [TAG]SCHEMAID,337,COL0051,IUQOID, , [/TAG]) per l'incremento dei fondi di cui agli artt. 119, comma 2, punto a) e 121, comma 2, punto a) del CCNL di comparto per l'attuazione dell'art. 110, comma 2 del medesimo contratto[/THEN][/IF][IF][CONDITION][!--[% [TAG]SCHEMAID,337,COL0064,IUQOID, , [/TAG] != \"\" && [TAG]SCHEMAID,337,COL0064,IUQOID, , [/TAG] > 0 %]--][% ulterioreRitenuta2Max > 0 %][/CONDITION][THEN], con una ritenuta ulteriore del [TAG]SCHEMAID,337,COL0067,IUQOID, , [/TAG]% (euro [TAG]SCHEMAID,337,COL0068,IUQOID, , [/TAG]) a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][/THEN][/IF][/THEN][/IF];</li>\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
\ <li>di conferire mandato al Direttore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG] per l'adempimento di ogni attività relativa.</li>\r
|
||||
|
||||
\ </ol>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <div class=\"firma\">\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Parma, li [TAG]SCHEMAID,340,COL0022,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">[TAG]SCHEMAID,341,COL0093,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Firmato digitalmente ai sensi del D.Lgs. n. 82/2005</p>\r
|
||||
|
||||
\ </div>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <!-- Footer con logo UniPR come nel template standard -->\r
|
||||
|
||||
\ </body>\r
|
||||
|
||||
</html>\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+408
File diff suppressed because one or more lines are too long
+214
@@ -0,0 +1,214 @@
|
||||
info:
|
||||
name: Proposta CCT determina sperimentazioni cliniche
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "9717"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"tipologiePunto1\": \"CRCT_RA;CRCT_RAS;CRCT_RB\",\r
|
||||
|
||||
\ \"tipologiePunto2\": \"SERV_CON\",\r
|
||||
|
||||
\ \"tipologiePunto3\": \"FORM_COM\",\r
|
||||
|
||||
\ \"tipologiePunto4\": \"\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL]\r
|
||||
|
||||
[VAR name=\"corrispettivo\" type=\"string\"][TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"speseGenerali\" type=\"string\"][TAG]SCHEMAID,341,COL0051,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"presenzaOneri\" type=\"boolean\"][TAG]SCHEMAID,341,COL0084,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"mostraRitenute\" type=\"string\"][TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"ulterioreRitenuta2Max\" type=\"string\"][TAG]SCHEMAID,337,COL0067,IUQOID, , [/TAG][/VAR]\r
|
||||
|
||||
<html>\r
|
||||
|
||||
\ <head>\r
|
||||
|
||||
\ <style>\r
|
||||
|
||||
\ h2 {\r
|
||||
|
||||
\ text-align: center;\r
|
||||
|
||||
\ font-size: 14pt;\r
|
||||
|
||||
\ font-weight: bold;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ p {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ol {\r
|
||||
|
||||
\ text-align: justify;\r
|
||||
|
||||
\ font-size: 12pt;\r
|
||||
|
||||
\ line-height: 1.5;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ .firma {\r
|
||||
|
||||
\ float: right;\r
|
||||
|
||||
\ margin: 2em;\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ </style>\r
|
||||
|
||||
\ </head>\r
|
||||
|
||||
\ <body>\r
|
||||
|
||||
\ <!-- Header con logo UniPR come nel template standard -->\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>IL DIRIGENTE</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Decreto Ministeriale 30 novembre 2021 recante \"Misure volte a facilitare e sostenere la realizzazione degli studi clinici di medicinali senza scopo di lucro e degli studi osservazionali e a disciplinare la cessione di dati e risultati di sperimentazioni senza scopo di lucro a fini registrativi, ai sensi dell'art. 1, comma 1, lettera c), del decreto legislativo 14 maggio 2019, n. 52\";</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Decreto Legislativo 196/2003 e ss.mm.ii. e il Regolamento europeo GDPR 679/2016, relativo alla protezione delle persone fisiche con riguardo al trattamento dei dati personali;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visti lo Statuto dell'Università degli Studi di Parma ed il Regolamento Generale di Ateneo;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi, emanato con Decreto Rettorale n. 2298/2024, prot. n. 264866 del 4 ottobre 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>visto il Regolamento dell'Università degli Studi di Parma in materia di brevetti e tutela dell'invenzione, emanato con Decreto Rettorale n. 1033/2024, prot. n. 113244 del 30 aprile 2024;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
[IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] > 0 %]--][% corrispettivo > 0 %][/CONDITION][THEN]\r
|
||||
|
||||
\ <p>visto il Regolamento di Ateneo per l'amministrazione, la finanza e la contabilità, emanato con Decreto Rettorale n. 1674/2024, prot. 198495 del 17 luglio 2024;</p>\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>preso atto del testo dell'accordo che, tra l'altro, prevede quanto segue:</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>preso atto dell'autorizzazione all'avvio dello studio rilasciata in data ___ da ___;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <p>ritenuto, per quanto premesso, di aderire alla richiesta avanzata da [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG] di approvazione della stipula del contratto con [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] per la conduzione della sperimentazione sopra descritta, ai sensi e per gli effetti di quanto previsto dal sopra citato Regolamento sulla disciplina delle attività di ricerca, consulenza, didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi con riferimento all'Art.2, lettera B;</p>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <h2>determina</h2>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <ol>\r
|
||||
|
||||
\ <li>richiamate le premesse, parti integranti del presente dispositivo, di approvare la stipula del contratto tra [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] e l'Università degli Studi di Parma, nell'interesse del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG], avente ad oggetto la conduzione della sperimentazione clinica dal titolo [TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG] sotto la responsabilità scientifica di [TAG]SCHEMAID,341,COL0049,IUQOID, , [/TAG], con decorrenza dalla data di sottoscrizione e durata fino a mesi [TAG]SCHEMAID,341,COL0008,IUQOID, , [/TAG][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0084,IUQOID, , [/TAG] == false %]--][% presenzaOneri == false %][/CONDITION][THEN], senza oneri a carico del budget dell'Amministrazione Centrale[/THEN][/IF];</li>\r
|
||||
|
||||
\r
|
||||
|
||||
[IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] > 0 %]--][% corrispettivo > 0 %][/CONDITION][THEN]\r
|
||||
|
||||
\ <li>di autorizzare l'introito del contributo di euro [TAG]SCHEMAID,341,COL0094,IUQOID, , [/TAG] da parte di [TAG]SCHEMAID,341,COL0086,IUQOID, , [/TAG] a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0090,IUQOID, , [/TAG] != \"N\" %]--][% mostraRitenute != \"N\" %][/CONDITION][THEN][IF][CONDITION][!--[% [TAG]SCHEMAID,341,COL0051,IUQOID, , [/TAG] > 0 %]--][% speseGenerali > 0 %][/CONDITION][THEN], da assoggettare alle ritenute secondo le modalità previste dall'art. 6, comma 2 del \"Regolamento sulla disciplina delle attività di ricerca, consulenza e didattica e alta formazione eseguite dall'Università degli Studi di Parma a fronte di contratti o accordi con soggetti terzi\" nella misura del 6% (euro [TAG]SCHEMAID,337,COL0049,IUQOID, , [/TAG]) per l'Amministrazione di Ateneo, del 8% (euro [TAG]SCHEMAID,337,COL0050,IUQOID, , [/TAG]) per il Fondo Comune di Ateneo e del 2% (euro [TAG]SCHEMAID,337,COL0051,IUQOID, , [/TAG]) per l'incremento dei fondi di cui agli artt. 119, comma 2, punto a) e 121, comma 2, punto a) del CCNL di comparto per l'attuazione dell'art. 110, comma 2 del medesimo contratto, calcolate sulle sole quote di overheads[/THEN][/IF][IF][CONDITION][!--[% [TAG]SCHEMAID,337,COL0064,IUQOID, , [/TAG] > 0 && [TAG]SCHEMAID,337,COL0064,IUQOID, , [/TAG] != \"\" %]--][% ulterioreRitenuta2Max > 0 %][/CONDITION][THEN], con una ritenuta ulteriore del [TAG]SCHEMAID,337,COL0067,IUQOID, , [/TAG]% (euro [TAG]SCHEMAID,337,COL0068,IUQOID, , [/TAG]) a favore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG][/THEN][/IF][/THEN][/IF];</li>\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
\ <li>di dare mandato al Direttore del [TAG]SCHEMAID,341,COL0006,IUQOID, , [/TAG] per ogni ulteriore adempimento relativo.</li>\r
|
||||
|
||||
\ </ol>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <div class=\"firma\">\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Parma, li [TAG]SCHEMAID,340,COL0022,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">[TAG]SCHEMAID,341,COL0093,IUQOID, , [/TAG]</p>\r
|
||||
|
||||
\ <p style=\"text-align: center;\">Firmato digitalmente ai sensi del D.Lgs. n. 82/2005</p>\r
|
||||
|
||||
\ </div>\r
|
||||
|
||||
\r
|
||||
|
||||
\ <!-- Footer con logo UniPR come nel template standard -->\r
|
||||
|
||||
\ </body>\r
|
||||
|
||||
</html>\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
info:
|
||||
name: Punto A regolamento
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "8760"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"tipologiePunto1\": \"CRCT_RA;CRCT_RAS;CRCT_RB\",\r
|
||||
|
||||
\ \"tipologiePunto2\": \"SERV_CON\",\r
|
||||
|
||||
\ \"tipologiePunto3\": \"FORM_COM\",\r
|
||||
|
||||
\ \"tipologiePunto4\": \"\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"tipologiaContratto\" type=\"string\"][TAG]GETVALUEBYTAG,TIPOLOGIA_CODICE,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"puntoAregolamento\" type=\"number\"][% puntoAregolamento = 0; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto1\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoAregolamento = 1; %][/THEN]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto2\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoAregolamento = 2; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto3\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoAregolamento = 3; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto4\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoAregolamento = 4; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= puntoAregolamento %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
info:
|
||||
name: Punto B regolamento
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "8760"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"tipologiePunto1\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto2\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto3\": \"CCS_IST_RA;CCS_IST_RAS;CCS_IST_RB\",\r
|
||||
|
||||
\ \"tipologiePunto4\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto5\": \"MTA;NDA\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[!--\r
|
||||
|
||||
\ \"tipologiePunto1\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto2\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto3\": \"CCS_IST_RA;CCS_IST_RAS;CCS_IST_RB\",\r
|
||||
|
||||
\ \"tipologiePunto4\": \"\",\r
|
||||
|
||||
\ \"tipologiePunto5\": \"MTA;NDA\"\r
|
||||
|
||||
--]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"tipologiaContratto\" type=\"string\"][TAG]GETVALUEBYTAG,TIPOLOGIA_CODICE,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"puntoBregolamento\" type=\"number\"][% puntoBregolamento = 0; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!--\r
|
||||
|
||||
3 CCS_IST_RA\tConvenzioni di collaborazione scientifica istituzionali - ricerca applicata\r
|
||||
|
||||
3 CCS_IST_RAS\tConvenzioni di collaborazione scientifica istituzionali - ricerca applicata alla sanità\r
|
||||
|
||||
3 CCS_IST_RB\tConvenzioni di collaborazione scientifica istituzionali - ricerca di base\r
|
||||
|
||||
5 MTA\tMaterial Transfer Agreement\r
|
||||
|
||||
5 NDA\tNon Disclosure Agreement\r
|
||||
|
||||
? CONV_QUA\tConvenzioni quadro\r
|
||||
|
||||
--]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto1\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoBregolamento = 1; %][/THEN]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto2\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoBregolamento = 2; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto3\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoBregolamento = 3; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto4\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoBregolamento = 4; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"tipologiePunto5\"][VALUE_OF varname=\"tipologiaContratto\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% puntoBregolamento = 5; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[FORMAT type=\"number\" pattern=\"#\"][% puntoBregolamento %][/FORMAT]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: CCT - Determina da Proposta
|
||||
type: folder
|
||||
seq: 2
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
info:
|
||||
name: Calcolo ripartizione per tipologia persona
|
||||
type: http
|
||||
seq: 7
|
||||
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22744"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="arrayCFdocenti" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_DOCENTE,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="arrayCFaltro" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_ALTRO,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="totalePersonaleDocente" type="number"][% totalePersonaleDocente = 0; %][/VAR]
|
||||
[VAR name="totalePersonaleAltro" type="number"][% totalePersonaleAltro = 0; %][/VAR]
|
||||
|
||||
[VAR name="ripartizioniNominativiIterable" type="iterable"][SPLIT regex="#"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,CONCAT,#[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniImportiIterable" type="iterable"][SPLIT regex="#"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,IUQOID,CONCAT,#[/TAG][/SPLIT][/VAR]
|
||||
|
||||
[VAR name="ripartizioniCount" type="string"][SIZE_OF varname="ripartizioniNominativiIterable" /][/VAR]
|
||||
[IF][CONDITION][% ripartizioniCount > 0 %][/CONDITION][THEN]
|
||||
[VAR name="ripartizioneIdx" type="string"][% ripartizioneIdx = 0; %][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[WHILE threshold="99"]
|
||||
[CONDITION][% ripartizioneIdx < ripartizioniCount %][/CONDITION]
|
||||
[DO]
|
||||
[VAR name="personaImporto" type="number"][VALUE_OF varname="ripartizioniImportiIterable" index="ripartizioneIdx" /][/VAR]
|
||||
[VAR name="personaNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="ripartizioniNominativiIterable" index="ripartizioneIdx" /][/SPLIT][/VAR]
|
||||
[VAR name="personaNominativoRightIterable" type="iterable"][SPLIT regex="\)"][VALUE_OF varname="personaNominativoIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="personaCF" type="string"][VALUE_OF varname="personaNominativoRightIterable" index="firstItem" /][/VAR]
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="arrayCFdocenti" value="personaCF" /][/CONDITION]
|
||||
[THEN][% totalePersonaleDocente = totalePersonaleDocente + personaImporto; %][/THEN]
|
||||
[ELSE][% totalePersonaleAltro = totalePersonaleAltro + personaImporto; %][/ELSE]
|
||||
[/IF]
|
||||
|
||||
[% ripartizioneIdx = ripartizioneIdx + 1; %]
|
||||
[/DO]
|
||||
[/WHILE]
|
||||
[/THEN][/IF]
|
||||
|
||||
[%= totalePersonaleDocente %]
|
||||
[%= totalePersonaleAltro %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
info:
|
||||
name: Check richiedente in partecipanti by CodFis
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "21306"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\",\r
|
||||
|
||||
\ \"codiciFiscaliAmmessi\": \";XMMPPL74T17E463A;;\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"checkUtentePartecipante\" type=\"string\"][% utentePartecipante = \"Utente non ammesso alla compilazione perché non partecipante al contratto!\"; %][/VAR]\r
|
||||
|
||||
[VAR name=\"richiedenteCF\" type=\"string\"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"rsProponenteCF\" type=\"string\"][TAG]GETVALUEBYTAG,RSP_CODFIS,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"responsabili\" type=\"string\"][TAG]GETVALUEBYTAG,CONTRATTO_RESPONSABILI,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanti\" type=\"string\"][TAG]GETVALUEBYTAG,CONTRATTO_PARTECIPANTI,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Hack for the CONTAIN below... --]\r
|
||||
|
||||
[VAR name=\"richiedenteCFcontain\" type=\"string\"][% richiedenteCFcontain = \", CF: \" + richiedenteCF + \", Qualifica: \"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Il richiedente non deve essere il RS proponente --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i responsabili --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i partecipanti --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i nominativi ammessi (DEBUG) --]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION][% richiedenteCF == rsProponenteCF %][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"Il Responsabile Scientifico proponente non deve compilare la DSAN\"; %][/THEN]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"responsabili\"][VALUE_OF varname=\"richiedenteCFcontain\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"1\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"partecipanti\"][VALUE_OF varname=\"richiedenteCFcontain\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"2\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"codiciFiscaliAmmessi\"][VALUE_OF varname=\"richiedenteCF\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= checkUtentePartecipante %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
info:
|
||||
name: Check richiedente in partecipanti
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "21223"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\",\r
|
||||
|
||||
\ \"nominativiAmmessi\": \";MAMMI Pier Paolo;;\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"checkUtentePartecipante\" type=\"string\"][% utentePartecipante = \"Utente non ammesso alla compilazione perché non partecipante al contratto!\"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"rsProponenteCognome\" type=\"string\"][TAG]GETVALUEBYTAG,RSP_COGNOME,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"rsProponenteNome\" type=\"string\"][TAG]GETVALUEBYTAG,RSP_COGNOME,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"responsabili\" type=\"string\"][TAG]GETVALUEBYTAG,CONTRATTO_RESPONSABILI,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanti\" type=\"string\"][TAG]GETVALUEBYTAG,CONTRATTO_PARTECIPANTI,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- [VAR name=\"nominativoUtentePlain\" type=\"string\"][TAG]GETVALUEBYTAG,RICHIEDENTE_NOMINATIVO,REQUEST,IUQOID[/TAG][/VAR] --]\r
|
||||
|
||||
[VAR name=\"nominativoUtentePlain\" type=\"string\"][% nominativoUtentePlain = \"mammi Pier Paolo\"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Hack for the CONTAIN below... --]\r
|
||||
|
||||
[VAR name=\"nominativoUtente\" type=\"string\"][% nominativoUtente = \" \" + nominativoUtentePlain + \", CF: \"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Il richiedente non deve essere il RS proponente --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i responsabili --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i partecipanti --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i nominativi ammessi (DEBUG) --]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION][% nominativoUtentePlain == rsProponenteCognome + \" \" + rsProponenteNome %][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"Il Responsabile Scientifico proponente non deve compilare la DSAN\"; %][/THEN]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"responsabili\"][VALUE_OF varname=\"nominativoUtente\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"partecipanti\"][VALUE_OF varname=\"nominativoUtente\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"nominativiAmmessi\"][VALUE_OF varname=\"nominativoUtentePlain\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= checkUtentePartecipante %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
info:
|
||||
name: Codice fiscale ammesso
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
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: "22224"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"codiciFiscaliAmmessi": ";MMMPPL74T17E463A;;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="isRichiedenteInRS" type="string"][% isRichiedenteInRS = "Utente non ammesso alla compilazione perché non RS del contratto!"; %][/VAR]
|
||||
[VAR name="responsabiliScientifici" type="string"][TAG]GETVALUEBYTAG,CONTRATTO_RESPONSABILI,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[VAR name="codiceFiscaleUtente" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="codiceFiscaleUtenteDebug" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[% codiceFiscaleUtente = ", CF: " + codiceFiscaleUtente + " "; %]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="responsabiliScientifici"][VALUE_OF varname="codiceFiscaleUtente" /][/CONTAINS][/CONDITION]
|
||||
[THEN][% isRichiedenteInRS = ""; %][/THEN]
|
||||
[ELSE IF]
|
||||
[CONDITION][CONTAINS varname="codiciFiscaliAmmessi"][VALUE_OF varname="codiceFiscaleUtenteDebug" /][/CONTAINS][/CONDITION]
|
||||
[THEN][% isRichiedenteInRS = ""; %][/THEN]
|
||||
[/ELSE IF]
|
||||
[/IF]
|
||||
|
||||
[%= isRichiedenteInRS %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+118
@@ -0,0 +1,118 @@
|
||||
info:
|
||||
name: Codici fiscali ripartizioni Simple-minded
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "21223"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "21334"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "21344"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\",\r
|
||||
|
||||
\ \"codiciFiscaliAmmessi\": \";MMMPPL74T17E463A;;\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"checkUtentePartecipante\" type=\"string\"][% utentePartecipante = \"Il richiedente non è ammesso alla compilazione perché non rientra tra le ripartizioni proposte\"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"ripartizioniDaProposta\" type=\"string\"][TAG]GETVALUEBYTAG,RIPARTIZIONI,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"rsProponenteCF\" type=\"string\"][TAG]GETVALUEBYTAG,RSP_CODFIS,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"richiedenteCF\" type=\"string\"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"richiedenteCFregex\" type=\"string\"][% richiedenteCFregex = \" (CF: \" + richiedenteCF + \")\"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Il richiedente non deve essere il RS proponente --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i responsabili --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i partecipanti --]\r
|
||||
|
||||
[!-- Il richiedente deve comparire fra i nominativi ammessi (DEBUG) --]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION][% richiedenteCF == rsProponenteCF %][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"Il Responsabile Scientifico proponente non deve compilare la DSAN\"; %][/THEN]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"ripartizioniDaProposta\"][VALUE_OF varname=\"richiedenteCFregex\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][CONTAINS varname=\"codiciFiscaliAmmessi\"][VALUE_OF varname=\"richiedenteCF\" /][/CONTAINS][/CONDITION]\r
|
||||
|
||||
\ [THEN][% checkUtentePartecipante = \"\"; %][/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= checkUtentePartecipante %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
info:
|
||||
name: Codici fiscali ripartizioni
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "21223"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "21334"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"ripartizioniIterableWithSep\" type=\"iterable\"][SPLIT regex=\"#\"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,CONCAT,#[/TAG][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"ripartizioniCount\" type=\"string\"][SIZE_OF varname=\"ripartizioniIterableWithSep\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"ripartizioniJoin\" type=\"string\"][% ripartizioniJoin = \"\"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF][CONDITION][% ripartizioniCount > 0 %][/CONDITION][THEN]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneIdx\" type=\"string\"][% ripartizioneIdx = 0; %][/VAR]\r
|
||||
|
||||
\ [VAR name=\"firstItem\" type=\"number\"][% firstItem = 0; %][/VAR]\r
|
||||
|
||||
\ [VAR name=\"secondItem\" type=\"number\"][% secondItem = 1; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [WHILE threshold=\"99\"]\r
|
||||
|
||||
\ [CONDITION][% ripartizioneIdx < ripartizioniCount %][/CONDITION]\r
|
||||
|
||||
\ [DO]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneFull\" type=\"string\"][VALUE_OF varname=\"ripartizioniIterableWithSep\" index=\"ripartizioneIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneFullIterable\" type=\"iterable\"][SPLIT regex=\" \\(CF: \"][TRIM][VALUE_OF varname=\"ripartizioneFull\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneCFIterable\" type=\"iterable\"][SPLIT regex=\"\\)\"][VALUE_OF varname=\"ripartizioneFullIterable\" index=\"secondItem\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneCF\" type=\"string\"][VALUE_OF varname=\"ripartizioneCFIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\ [% ripartizioniJoin = ripartizioniJoin + ripartizioneCF; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [% ripartizioneIdx = ripartizioneIdx + 1; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [IF][CONDITION][% ripartizioneIdx < ripartizioniCount %][/CONDITION][THEN]\r
|
||||
|
||||
\ [% ripartizioniJoin = ripartizioniJoin + \"#\"; %]\r
|
||||
|
||||
\ [/THEN][/IF]\r
|
||||
|
||||
\ [/DO]\r
|
||||
|
||||
\ [/WHILE]\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[!--\r
|
||||
|
||||
[%= ripartizioniCount %]\r
|
||||
|
||||
[%= crlf %]\r
|
||||
|
||||
[%= ripartizioneIdx %]\r
|
||||
|
||||
[%= crlf %]\r
|
||||
|
||||
[%= \"JOIN: \" ripartizioniJoin %]\r
|
||||
|
||||
--]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= ripartizioniJoin %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+238
@@ -0,0 +1,238 @@
|
||||
info:
|
||||
name: Elenco contraenti formattati
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "8760"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"docs\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsAsEntities\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"singleEntity\": {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ \"simpleList\": [\r
|
||||
|
||||
\ \"s1\",\r
|
||||
|
||||
\ \"s2\",\r
|
||||
|
||||
\ \"s3\"\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsSize\": 3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"idxNome\" type=\"number\"][% idxNome = 0; %][/VAR]\r
|
||||
|
||||
[VAR name=\"idxCfPIva\" type=\"number\"][% idxCfPIva = 1; %][/VAR]\r
|
||||
|
||||
[VAR name=\"idxSede\" type=\"number\"][% idxSede = 2; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"elencoContraentiCompleto\" type=\"string\"][% elencoContraentiCompleto = \"\"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"contraenti\" type=\"iterable\"][SPLIT regex=\"\\n\"][TAG]SCHEMAID,341,COL0004,IUQOID, , [/TAG][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"countContraenti\" type=\"number\"][SIZE_OF varname=\"contraenti\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"idxContraente\" type=\"number\"][% idxContraente = 0; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Estraggo i dati del primo contraente (ce ne sarà sempre almeno uno) --]\r
|
||||
|
||||
[VAR name=\"currContraente\" type=\"string\"][VALUE_OF varname=\"contraenti\" index=\"idxContraente\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"currContraenteSplit\" type=\"iterable\"][SPLIT regex=\", (.*?):\"][TRIM][VALUE_OF varname=\"currContraente\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"currContraenteNome\" type=\"string\"][TRIM][VALUE_OF varname=\"currContraenteSplit\" index=\"idxNome\" /][/TRIM][/VAR]\r
|
||||
|
||||
[VAR name=\"currContraenteCfPIva\" type=\"string\"][TRIM][VALUE_OF varname=\"currContraenteSplit\" index=\"idxCfPIva\" /][/TRIM][/VAR]\r
|
||||
|
||||
[VAR name=\"currContraenteSede\" type=\"string\"][TRIM][VALUE_OF varname=\"currContraenteSplit\" index=\"idxSede\" /][/TRIM][/VAR]\r
|
||||
|
||||
[% elencoContraentiCompleto = currContraenteNome + \" (CF/PIVA: \" + currContraenteCfPIva + \") con sede legale in \" + currContraenteSede; %]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Se c'è più di un contraente, ciclo su tutti i rimanenti (tutto questo per non avere una \", \" in fondo alla stringa finale...) --]\r
|
||||
|
||||
[WHILE]\r
|
||||
|
||||
\ [CONDITION][% idxContraente < countContraenti - 1 %][/CONDITION]\r
|
||||
|
||||
\ [DO]\r
|
||||
|
||||
\ [% idxContraente = idxContraente + 1; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [VAR name=\"currContraente\" type=\"string\"][VALUE_OF varname=\"contraenti\" index=\"idxContraente\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"currContraenteSplit\" type=\"iterable\"][SPLIT regex=\", (.*?):\"][TRIM][VALUE_OF varname=\"currContraente\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"currContraenteNome\" type=\"string\"][VALUE_OF varname=\"currContraenteSplit\" index=\"idxNome\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"currContraenteCfPIva\" type=\"string\"][VALUE_OF varname=\"currContraenteSplit\" index=\"idxCfPIva\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"currContraenteSede\" type=\"string\"][VALUE_OF varname=\"currContraenteSplit\" index=\"idxSede\" /][/VAR]\r
|
||||
|
||||
\ [% elencoContraentiCompleto = elencoContraentiCompleto + \", \" + currContraenteNome + \" (CF/PIVA: \" + currContraenteCfPIva + \") con sede legale in \" + currContraenteSede; %]\r
|
||||
|
||||
\ [/DO]\r
|
||||
|
||||
[/WHILE]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= elencoContraentiCompleto %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+246
@@ -0,0 +1,246 @@
|
||||
info:
|
||||
name: Elenco partecipanti per dropdown con chiave
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "21223"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"newLine\" type=\"string\"][VALUE_OF varname=\"crlf\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"responsabili\" type=\"string\"][TRIM][TAG]GETVALUEBYTAG,CONTRATTO_RESPONSABILI,REQUEST,IUQOID[/TAG][/TRIM][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanti\" type=\"string\"][TRIM][TAG]GETVALUEBYTAG,CONTRATTO_PARTECIPANTI,REQUEST,IUQOID[/TAG][/TRIM][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Aggiungi primo elemento \"nullo\" --]\r
|
||||
|
||||
[VAR name=\"ripartizioniElenco\" type=\"string\"][% ripartizioniElenco = \"[0] ---\" + newLine; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"responsabiliIterable\" type=\"iterable\"][SPLIT regex=\"\\n\"][VALUE_OF varname=\"responsabili\" /][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipantiIterable\" type=\"iterable\"][SPLIT regex=\"\\n\"][VALUE_OF varname=\"partecipanti\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"responsabiliCount\" type=\"number\"][SIZE_OF varname=\"responsabiliIterable\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipantiCount\" type=\"number\"][SIZE_OF varname=\"partecipantiIterable\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"personaIdx\" type=\"string\"][% personaIdx = 0; %][/VAR]\r
|
||||
|
||||
[VAR name=\"dropdownIdx\" type=\"string\"][% dropdownIdx = 0; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"firstItem\" type=\"number\"][% firstItem = 0; %][/VAR]\r
|
||||
|
||||
[VAR name=\"secondItem\" type=\"number\"][% secondItem = 1; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[WHILE threshold=\"99\"]\r
|
||||
|
||||
\ [CONDITION][% personaIdx < responsabiliCount %][/CONDITION]\r
|
||||
|
||||
\ [DO]\r
|
||||
|
||||
\ [VAR name=\"responsabileFull\" type=\"string\"][VALUE_OF varname=\"responsabiliIterable\" index=\"personaIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"responsabileIterable\" type=\"iterable\"][SPLIT regex=\", CF: \"][TRIM][VALUE_OF varname=\"responsabileFull\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- Recupera il nominativo --]\r
|
||||
|
||||
\ [VAR name=\"responsabileNominativo\" type=\"string\"][VALUE_OF varname=\"responsabileIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- Recupera il codice fiscale --]\r
|
||||
|
||||
\ [VAR name=\"responsabileResto\" type=\"string\"][VALUE_OF varname=\"responsabileIterable\" index=\"secondItem\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"responsabileRestoIterable\" type=\"iterable\"][SPLIT regex=\", Qualifica: \"][VALUE_OF varname=\"responsabileResto\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"responsabileCodiceFiscale\" type=\"string\"][VALUE_OF varname=\"responsabileRestoIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [% personaIdx = personaIdx + 1; %]\r
|
||||
|
||||
\ [% dropdownIdx = dropdownIdx + 1; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- HACK ignobile per recuperare il numero che altrimenti verrebbe emesso come \"1.0\", etc... --]\r
|
||||
|
||||
\ [VAR name=\"responsabileKeyIterable\" type=\"iterable\"][SPLIT regex=\"\\.\"][% dropdownIdx + \"\" %][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"responsabileKey\" type=\"string\"][VALUE_OF varname=\"responsabileKeyIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [% ripartizioniElenco = ripartizioniElenco + \"[\" + responsabileKey + \"] \" + responsabileNominativo + \" (CF: \" + responsabileCodiceFiscale + \")\"; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [IF]\r
|
||||
|
||||
\ [CONDITION][% personaIdx < responsabiliCount %][/CONDITION]\r
|
||||
|
||||
\ [THEN]\r
|
||||
|
||||
\ [% ripartizioniElenco = ripartizioniElenco + newLine; %]\r
|
||||
|
||||
\ [/THEN]\r
|
||||
|
||||
\ [ELSE IF]\r
|
||||
|
||||
\ [CONDITION][IS_NOT_EMPTY varname=\"partecipanti\" /][/CONDITION]\r
|
||||
|
||||
\ [THEN]\r
|
||||
|
||||
\ [% ripartizioniElenco = ripartizioniElenco + newLine; %]\r
|
||||
|
||||
\ [/THEN]\r
|
||||
|
||||
\ [/ELSE IF]\r
|
||||
|
||||
\ [/IF]\r
|
||||
|
||||
\ [/DO]\r
|
||||
|
||||
[/WHILE]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF][CONDITION][IS_NOT_EMPTY varname=\"partecipanti\" /][/CONDITION][THEN]\r
|
||||
|
||||
\ [% personaIdx = 0; %]\r
|
||||
|
||||
\ [WHILE threshold=\"99\"]\r
|
||||
|
||||
\ [CONDITION][% personaIdx < partecipantiCount %][/CONDITION]\r
|
||||
|
||||
\ [DO]\r
|
||||
|
||||
\ [VAR name=\"partecipanteFull\" type=\"string\"][VALUE_OF varname=\"partecipantiIterable\" index=\"personaIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"partecipanteIterable\" type=\"iterable\"][SPLIT regex=\", CF: \"][TRIM][VALUE_OF varname=\"partecipanteFull\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- Recupera il nominativo --]\r
|
||||
|
||||
\ [VAR name=\"partecipanteNominativo\" type=\"string\"][VALUE_OF varname=\"partecipanteIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- Recupera il codice fiscale --]\r
|
||||
|
||||
\ [VAR name=\"partecipanteResto\" type=\"string\"][VALUE_OF varname=\"partecipanteIterable\" index=\"secondItem\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"partecipanteRestoIterable\" type=\"iterable\"][SPLIT regex=\", Qualifica: \"][VALUE_OF varname=\"partecipanteResto\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"partecipanteCodiceFiscale\" type=\"string\"][VALUE_OF varname=\"partecipanteRestoIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [% personaIdx = personaIdx + 1; %]\r
|
||||
|
||||
\ [% dropdownIdx = dropdownIdx + 1; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- HACK ignobile per recuperare il numero che altrimenti verrebbe emesso come \"1.0\", etc... --]\r
|
||||
|
||||
\ [VAR name=\"partecipanteKeyIterable\" type=\"iterable\"][SPLIT regex=\"\\.\"][% dropdownIdx + \"\" %][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"partecipanteKey\" type=\"string\"][VALUE_OF varname=\"partecipanteKeyIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [% ripartizioniElenco = ripartizioniElenco + \"[\" + partecipanteKey + \"] \" + partecipanteNominativo + \" (CF: \" + partecipanteCodiceFiscale + \")\"; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [IF]\r
|
||||
|
||||
\ [CONDITION][% personaIdx < partecipantiCount %][/CONDITION]\r
|
||||
|
||||
\ [THEN]\r
|
||||
|
||||
\ [% ripartizioniElenco = ripartizioniElenco + newLine; %]\r
|
||||
|
||||
\ [/THEN]\r
|
||||
|
||||
\ [/IF]\r
|
||||
|
||||
\ [/DO]\r
|
||||
|
||||
\ [/WHILE]\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= ripartizioniElenco %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
info:
|
||||
name: Elenco partecipanti per tabella HTML Copy
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "19758"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL]\r
|
||||
|
||||
[VAR name=\"newLine\" type=\"string\"][VALUE_OF varname=\"crlf\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"ripartizioniNominativiWithSep\" type=\"string\"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"ripartizioniImportiWithSep\" type=\"string\"][TAG]SCHEMAID,538,COL0002,ID_OBJECT,,#[/TAG][/VAR]\r
|
||||
|
||||
<table>\r
|
||||
|
||||
<tr><th>Partecipante</th><th>Importo (EUR)</th></tr>\r
|
||||
|
||||
[IF][CONDITION][IS_NOT_EMPTY varname=\"ripartizioniNominativiWithSep\" /][/CONDITION][THEN]\r
|
||||
|
||||
\ [VAR name=\"ripartizioniNominativiIterable\" type=\"iterable\"][SPLIT regex=\"#\"][VALUE_OF varname=\"ripartizioniNominativiWithSep\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioniImportiIterable\" type=\"iterable\"][SPLIT regex=\"#\"][VALUE_OF varname=\"ripartizioniImportiWithSep\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioniCount\" type=\"number\"][SIZE_OF varname=\"ripartizioniNominativiIterable\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneIdx\" type=\"string\"][% ripartizioneIdx = 0; %][/VAR]\r
|
||||
|
||||
\ [VAR name=\"firstItem\" type=\"number\"][% firstItem = 0; %][/VAR]\r
|
||||
|
||||
\ [VAR name=\"secondItem\" type=\"number\"][% secondItem = 1; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\r
|
||||
|
||||
\ [FOR varName=\"ripartizione\" iterable=\"ripartizioniNominativiIterable\"]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativoFull\" type=\"string\"][VALUE_OF varname=\"ripartizioniNominativiIterable\" index=\"ripartizioneIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneImporto\" type=\"string\"][VALUE_OF varname=\"ripartizioniImportiIterable\" index=\"ripartizioneIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativoIterable\" type=\"iterable\"][SPLIT regex=\"] \"][TRIM][VALUE_OF varname=\"ripartizioneNominativoFull\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativo\" type=\"string\"][VALUE_OF varname=\"ripartizioneNominativoIterable\" index=\"secondItem\" /][/VAR]\r
|
||||
|
||||
\ [% ripartizioneIdx = ripartizioneIdx + 1; %]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneKeyIterable\" type=\"iterable\"][SPLIT regex=\"\\.\"][% ripartizioneIdx + \"\" %][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneKey\" type=\"string\"][VALUE_OF varname=\"ripartizioneKeyIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\ <tr><td>[VALUE_OF varname=\"ripartizioneNominativo\" /]</td><td>[VALUE_OF varname=\"ripartizioneImporto\" /]</td></tr>\r
|
||||
|
||||
\ [/FOR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!--\r
|
||||
|
||||
\ [WHILE threshold=\"99\"]\r
|
||||
|
||||
\ [CONDITION][% ripartizioneIdx < ripartizioniCount %][/CONDITION]\r
|
||||
|
||||
\ [DO]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativoFull\" type=\"string\"][VALUE_OF varname=\"ripartizioniNominativiIterable\" index=\"ripartizioneIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneImporto\" type=\"string\"][VALUE_OF varname=\"ripartizioniImportiIterable\" index=\"ripartizioneIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativoIterable\" type=\"iterable\"][SPLIT regex=\"] \"][TRIM][VALUE_OF varname=\"ripartizioneNominativoFull\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativo\" type=\"string\"][VALUE_OF varname=\"ripartizioneNominativoIterable\" index=\"secondItem\" /][/VAR]\r
|
||||
|
||||
\ [% ripartizioneIdx = ripartizioneIdx + 1; %]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneKeyIterable\" type=\"iterable\"][SPLIT regex=\"\\.\"][% ripartizioneIdx + \"\" %][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneKey\" type=\"string\"][VALUE_OF varname=\"ripartizioneKeyIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
<tr><td>[VALUE_OF varname=\"ripartizioneNominativo\" /]</td><td>[VALUE_OF varname=\"ripartizioneImporto\" /]</td></tr>\r
|
||||
|
||||
\ [/DO]\r
|
||||
|
||||
\ [/WHILE]\r
|
||||
|
||||
\ --]\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
</table>\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
info:
|
||||
name: Elenco partecipanti per tabella HTML
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "19758"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL]\r
|
||||
|
||||
[HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"ripartizioniNominativiWithSep\" type=\"string\"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"ripartizioniImportiWithSep\" type=\"string\"][TAG]SCHEMAID,538,COL0002,ID_OBJECT,,#[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"tabellaRipartizioni\" type=\"string\"][% tabellaRipartizioni = \"<table><tr><th>Partecipante</th><th>Importo (EUR)</th></tr>\"; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF][CONDITION][IS_NOT_EMPTY varname=\"ripartizioniNominativiWithSep\" /][/CONDITION][THEN]\r
|
||||
|
||||
\ [VAR name=\"ripartizioniNominativiIterable\" type=\"iterable\"][SPLIT regex=\"#\"][VALUE_OF varname=\"ripartizioniNominativiWithSep\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioniImportiIterable\" type=\"iterable\"][SPLIT regex=\"#\"][VALUE_OF varname=\"ripartizioniImportiWithSep\" /][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioniCount\" type=\"number\"][SIZE_OF varname=\"ripartizioniNominativiIterable\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneIdx\" type=\"string\"][% ripartizioneIdx = 0; %][/VAR]\r
|
||||
|
||||
\ [VAR name=\"firstItem\" type=\"number\"][% firstItem = 0; %][/VAR]\r
|
||||
|
||||
\ [VAR name=\"secondItem\" type=\"number\"][% secondItem = 1; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [WHILE threshold=\"99\"]\r
|
||||
|
||||
\ [CONDITION][% ripartizioneIdx != ripartizioniCount %][/CONDITION]\r
|
||||
|
||||
\ [DO]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativoFull\" type=\"string\"][VALUE_OF varname=\"ripartizioniNominativiIterable\" index=\"ripartizioneIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneImporto\" type=\"string\"][VALUE_OF varname=\"ripartizioniImportiIterable\" index=\"ripartizioneIdx\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativoIterable\" type=\"iterable\"][SPLIT regex=\"] \"][TRIM][VALUE_OF varname=\"ripartizioneNominativoFull\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- Recupera il nominativo --]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneNominativo\" type=\"string\"][VALUE_OF varname=\"ripartizioneNominativoIterable\" index=\"secondItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [% ripartizioneIdx = ripartizioneIdx + 1; %]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [!-- HACK ignobile per recuperare il numero che altrimenti verrebbe emesso come \"1.0\", etc... --]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneKeyIterable\" type=\"iterable\"][SPLIT regex=\"\\.\"][% ripartizioneIdx + \"\" %][/SPLIT][/VAR]\r
|
||||
|
||||
\ [VAR name=\"ripartizioneKey\" type=\"string\"][VALUE_OF varname=\"ripartizioneKeyIterable\" index=\"firstItem\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
\ [% tabellaRipartizioni = tabellaRipartizioni + \"<tr><td>\" + ripartizioneNominativo + \"</td><td>\" + ripartizioneImporto + \"</td></tr>\"; %]\r
|
||||
|
||||
\ [/DO]\r
|
||||
|
||||
\ [/WHILE]\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
[% tabellaRipartizioni = tabellaRipartizioni + \"</table>\"; %]\r
|
||||
|
||||
[%= tabellaRipartizioni %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
info:
|
||||
name: Elenco partecipanti per tendina
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "19375"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"elencoPartecipantiDebug\" type=\"string\"][% elencoPartecipantiDebug = \"\"; %][/VAR]\r
|
||||
|
||||
[VAR name=\"elencoPartecipantiCompleto\" type=\"string\"][% elencoContraentiCompleto = \"\"; %][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanti\" type=\"string\"][TRIM][TAG]SCHEMAID,542,COL0018,IUQOID, , [/TAG][/TRIM][/VAR]\r
|
||||
|
||||
[%= \"\" %]\r
|
||||
|
||||
[IF][CONDITION][IS_NOT_EMPTY varname=\"partecipanti\" /][/CONDITION][THEN]\r
|
||||
|
||||
[VAR name=\"partecipantiSplit\" type=\"iterable\"][SPLIT regex=\"\\n\"][VALUE_OF varname=\"partecipanti\" /][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipantiCount\" type=\"number\"][SIZE_OF varname=\"partecipantiSplit\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanteIdx\" type=\"number\"][% partecipanteIdx = 0; %][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanteNominativoIdx\" type=\"number\"][% partecipanteNominativoIdx = 0; %][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanteRestoIdx\" type=\"number\"][% partecipanteRestoIdx = 1; %][/VAR]\r
|
||||
|
||||
[WHILE threshold=\"99\"][CONDITION][% partecipanteIdx < partecipantiCount %][/CONDITION][DO]\r
|
||||
|
||||
[VAR name=\"partecipanteFull\" type=\"string\"][VALUE_OF varname=\"partecipantiSplit\" index=\"partecipanteIdx\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanteSplit\" type=\"iterable\"][SPLIT regex=\", CF: \"][TRIM][VALUE_OF varname=\"partecipanteFull\" /][/TRIM][/SPLIT][/VAR]\r
|
||||
|
||||
[!-- Recupera il nominativo --]\r
|
||||
|
||||
[VAR name=\"partecipanteNominativo\" type=\"string\"][VALUE_OF varname=\"partecipanteSplit\" index=\"partecipanteNominativoIdx\" /][/VAR]\r
|
||||
|
||||
[!-- Recupera il codice fiscale --]\r
|
||||
|
||||
[VAR name=\"partecipanteResto\" type=\"string\"][VALUE_OF varname=\"partecipanteSplit\" index=\"partecipanteRestoIdx\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanteRestoSplit\" type=\"iterable\"][SPLIT regex=\", Qualifica: \"][VALUE_OF varname=\"partecipanteResto\" /][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"partecipanteCodiceFiscale\" type=\"string\"][VALUE_OF varname=\"partecipanteRestoSplit\" index=\"partecipanteNominativoIdx\" /][/VAR]\r
|
||||
|
||||
[%= \"[\" %][FORMAT type=\"number\" pattern=\"integer\"][% partecipanteIdx + 1 %][/FORMAT][%= \"] \" + partecipanteNominativo + \" (CF: \" + partecipanteCodiceFiscale + \")\" %]\r
|
||||
|
||||
[% partecipanteIdx = partecipanteIdx + 1; %]\r
|
||||
|
||||
[/DO][/WHILE]\r
|
||||
|
||||
[/THEN][/IF]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
info:
|
||||
name: Numero partecipanti meno RS (se c'è)
|
||||
type: http
|
||||
seq: 7
|
||||
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="newline"][% newline = ""; %][/VAR]
|
||||
[VAR name="codiceFiscaleProponente"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[% codiceFiscaleProponente = "SPGNDR67C24A944V"; %]
|
||||
[VAR name="ripartizioniConcat" type="string"][TRIM][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,CONCAT,#[/TAG][/TRIM][/VAR]
|
||||
|
||||
[VAR name="ripartizioniIterable" type="iterable"][SPLIT regex="#"][VALUE_OF varname="ripartizioniConcat" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniCount" type="string"][SIZE_OF varname="ripartizioniIterable" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="ripartizioniConcat" value="codiceFiscaleProponente" /][/CONDITION]
|
||||
[THEN][% ripartizioniCount = ripartizioniCount - 1; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= ripartizioniConcat %]
|
||||
[%= newline %]
|
||||
[%= codiceFiscaleProponente %]
|
||||
[%= newline %]
|
||||
[%= ripartizioniCount %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
info:
|
||||
name: Numero ripartizioni da form partecipanti
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
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: "19758"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"ripartizioniIterable\" type=\"iterable\"][SPLIT regex=\"#\"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"ripartizioniCount\" type=\"string\"][SIZE_OF varname=\"ripartizioniIterable\" /][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= ripartizioniCount %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
info:
|
||||
name: Partecipanti per Qualifica
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
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: "22085"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[!-- Must be defined in EftlSolver attribute! --]
|
||||
[VAR name="newLine" type="string"][VALUE_OF varname="crlf" /][/VAR]
|
||||
[VAR name="qualificheDocentiIterable" type="iterable"][SPLIT regex=";"][VALUE_OF varname="qualificheDocenti" /][/SPLIT][/VAR]
|
||||
|
||||
[VAR name="responsabiliScientifici" type="string"][TAG]GETVALUEBYTAG,CONTRATTO_RESPONSABILI,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="partecipanti" type="string"][TAG]GETVALUEBYTAG,CONTRATTO_PARTECIPANTI,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[VAR name="soggettiIterable" type="iterable"][SPLIT regex="\n"][% responsabiliScientifici + newLine + partecipanti %][/SPLIT][/VAR]
|
||||
|
||||
[VAR name="elencoCodFisPersonaleDocente" type="string"][% elencoCodFisPersonaleDocente = ";"; %]][/VAR]
|
||||
[VAR name="elencoCodFisPersonaleAltro" type="string"][% elencoCodFisPersonaleAltro = ";"; %]][/VAR]
|
||||
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[FOR varname="persona" iterable="soggettiIterable"]
|
||||
[!-- Estraggo il Codice Fiscale --]
|
||||
[VAR name="personaIterable" type="iterable"][SPLIT regex=", CF: "][TRIM][VALUE_OF varname="persona" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="personaRight" type="string"][VALUE_OF varname="personaIterable" index="secondItem" /][/VAR]
|
||||
[VAR name="personaIterable" type="iterable"][SPLIT regex=", Qualifica: "][TRIM][VALUE_OF varname="personaRight" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="personaIterable" index="firstItem" /][/VAR]
|
||||
[!-- Estraggo la Qualifica --]
|
||||
[VAR name="personaRight" type="string"][VALUE_OF varname="personaIterable" index="secondItem" /][/VAR]
|
||||
[VAR name="personaIterable" type="iterable"][SPLIT regex=", Struttura di afferenza: "][TRIM][VALUE_OF varname="personaRight" /][/TRIM][/SPLIT][/VAR]
|
||||
[VAR name="qualifica" type="string"][VALUE_OF varname="personaIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="qualificheDocentiIterable" value="qualifica" /][/CONDITION]
|
||||
[THEN][% elencoCodFisPersonaleDocente = elencoCodFisPersonaleDocente + codiceFiscale + ";"; %][/THEN]
|
||||
[ELSE][% elencoCodFisPersonaleAltro = elencoCodFisPersonaleAltro + codiceFiscale + ";"; %][/ELSE]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
|
||||
|
||||
[%= "Docenti: " elencoCodFisPersonaleDocente %]
|
||||
[%= newLine %]
|
||||
[%= "Altro: " elencoCodFisPersonaleAltro %]
|
||||
[%= newLine %]
|
||||
[%= newLine %]
|
||||
[%= responsabiliScientifici + newLine + partecipanti %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
info:
|
||||
name: RS proponente completo (multipli)
|
||||
type: http
|
||||
seq: 4
|
||||
|
||||
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: "19758"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"crlf\": \"\\r\\n\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"rspTitolo\" type=\"string\"][TAG]GETVALUEBYTAG,RSP_TITOLO,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"rspCognome\" type=\"string\"][TAG]GETVALUEBYTAG,RSP_COGNOME,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"rspNome\" type=\"string\"][TAG]GETVALUEBYTAG,RSP_NOME,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[%= rspTitolo + \" \" + rspCognome + \" \" rspNome %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: CCT - Liquidazione Compensi
|
||||
type: folder
|
||||
seq: 3
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
info:
|
||||
name: Calcolo D.1.3 5% con virgole
|
||||
type: http
|
||||
seq: 7
|
||||
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22748"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="D1_1" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_1,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="D1_2" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_2,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="A" type="number"][TAG]SCHEMAID,338,COL0001,IUQOID, , [/TAG][/VAR]
|
||||
[VAR name="D1_3" type="number"][% D1_3 = D1_1 + D1_2 - (A * 0.20); %][/VAR]
|
||||
[VAR name="QuotaAteneo" type="number"][% QuotaAteneo = 0; %][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% D1_3 > 0 %][/CONDITION]
|
||||
[THEN][% QuotaAteneo = D1_3 * 0.05; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[FORMAT type="number" pattern="#,##0.00"][% QuotaAteneo %][/FORMAT]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
info:
|
||||
name: Calcolo D.1.3 con virgole
|
||||
type: http
|
||||
seq: 7
|
||||
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22748"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22705"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22754"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="ceiling" type="string"][TAG]GETVALUEBYTAG,CORRISPETTIVO_CEILING,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[!-- HACK per numeri corretti!!!1! --]
|
||||
[VAR name="ceilingIterable" type="iterable"][SPLIT regex="\."][TAG]GETVALUEBYTAG,CORRISPETTIVO_CEILING,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="first" type="number"][% first = 0; %][/VAR]
|
||||
[VAR name="second" type="number"][% second = 1; %][/VAR]
|
||||
[VAR name="ceilingInteger" type="string"][VALUE_OF varname="ceilingIterable" index="first" /][/VAR]
|
||||
[VAR name="ceilingDecimal" type="string"][VALUE_OF varname="ceilingIterable" index="second" /][/VAR]
|
||||
[IF][CONDITION][IS_EMPTY varname="ceilingDecimal" /][/CONDITION][THEN][% ceilingDecimal = "00"; %][/THEN][/IF]
|
||||
[VAR name="ceilingNumber" type="number"][% ceilingNumber = ceilingInteger + "," + ceilingDecimal; %][/VAR]
|
||||
|
||||
[%= ceilingNumber %]
|
||||
[%= " --- " %]
|
||||
[%= ceilingNumber * 0.20 %]
|
||||
[%= " --- " %]
|
||||
[%= ceiling %]
|
||||
[%= " --- " %]
|
||||
[%= ceilingInteger %]
|
||||
[%= " --- " %]
|
||||
[%= ceilingDecimal %]
|
||||
|
||||
[VAR name="numberIterable" type="iterable"][SPLIT regex="\."][TAG]SCHEMAID,341,COL0009,IUQOID, , [/TAG][/SPLIT][/VAR]
|
||||
[VAR name="first" type="number"][% first = 0; %][/VAR]
|
||||
[VAR name="second" type="number"][% second = 1; %][/VAR]
|
||||
[VAR name="numberIntegerPart" type="string"][VALUE_OF varname="numberIterable" index="first" /][/VAR]
|
||||
[VAR name="numberDecimalPart" type="string"][VALUE_OF varname="numberIterable" index="second" /][/VAR]
|
||||
[IF][CONDITION][IS_EMPTY varname="numberDecimalPart" /][/CONDITION][THEN][% numberDecimalPart = "00"; %][/THEN][/IF]
|
||||
[VAR name="valueAsNumber" type="number"][% valueAsNumber = numberIntegerPart + "," + numberDecimalPart; %][/VAR]
|
||||
|
||||
[VAR name="fattoreRitenuta2max" type="number"][TAG]SCHEMAID,341,COL0030,IUQOID, , [/TAG][/VAR]
|
||||
[VAR name="ritenuta2max" type="number"][% ritenuta2max = valueAsNumber * fattoreRitenuta2max; %][/VAR]
|
||||
[VAR name="ritenuta2maxMessage" type="string"][% ritenuta2maxMessage = "L'importo massimo (2%) dell'ulteriore ritenuta deliberata dalla struttura è: " + ritenuta2max + " €"; %][/VAR]
|
||||
|
||||
[%= ritenuta2maxMessage %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
info:
|
||||
name: Codice Contratto con caratteri strani
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
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: "16204"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"itemCodiceContratto\": \"CRIS_G_25_CCS_IST_RA_UNIVERSITÀPOLITECNICADELL_01\"\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = String.raw`\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"codiceContratto\" type=\"string\"][VALUE_OF varname=\"itemCodiceContratto\" /][/VAR]\r
|
||||
|
||||
[VAR name=\"debug\" type=\"boolean\"][% debug = false; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Titolo contratto ha il formato \"[codice_contratto] titolo\" --]\r
|
||||
|
||||
[!-- La prima split fatta per \"\\] \" mi restituisce \"[codice_contratto\" --]\r
|
||||
|
||||
[VAR name=\"firstSplit\" type=\"iterable\"][SPLIT regex=\"\\] \"][VALUE_OF varname=\"itemCodiceContratto\" /][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"firstSplitIdx\"][% firstSplitIdx = 0; %][/VAR]\r
|
||||
|
||||
[!-- La seconda split fatta per \"\\[\" mi restituisce \"codice_contratto\" --]\r
|
||||
|
||||
[VAR name=\"secondSplit\" type=\"iterable\"][SPLIT regex=\"\\[\"][VALUE_OF varname=\"firstSplit\" index=\"firstSplitIdx\" /][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"secondSplitIdx\"][% secondSplitIdx = 1; %][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"condizione\"][SIZE_OF varname=\"secondSplit\" /][/VAR]\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION][% condizione > 1 %][/CONDITION]\r
|
||||
|
||||
\ [THEN]\r
|
||||
|
||||
\ [VAR name=\"codiceContratto\" type=\"string\"][VALUE_OF varname=\"secondSplit\" index=\"secondSplitIdx\" /][/VAR]\r
|
||||
|
||||
\ [/THEN]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[VAR name=\"codiceContrattoSplit\" type=\"iterable\"][SPLIT regex=\"Ã\"][VALUE_OF varname=\"codiceContratto\" /][/SPLIT][/VAR]\r
|
||||
|
||||
[VAR name=\"condizioneSplit\"][SIZE_OF varname=\"codiceContrattoSplit\" /][/VAR]\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION][% condizioneSplit > 1 %][/CONDITION]\r
|
||||
|
||||
\ [THEN]\r
|
||||
|
||||
\ [% debug = true; %]\r
|
||||
|
||||
\ [VAR name=\"codiceContrattoSplitFirst\" type=\"string\"][VALUE_OF varname=\"codiceContrattoSplit\" index=\"firstSplitIdx\" /][/VAR]\r
|
||||
|
||||
\ [VAR name=\"codiceContrattoSplitSecond\" type=\"string\"][VALUE_OF varname=\"codiceContrattoSplit\" index=\"secondSplitIdx\" /][/VAR]\r
|
||||
|
||||
\ [% codiceContratto = codiceContrattoSplitFirst + \"%C3%80\" + codiceContrattoSplitSecond; %]\r
|
||||
|
||||
\ [/THEN]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
<html>\r
|
||||
|
||||
<ul>\r
|
||||
|
||||
<li>[%= codiceContratto %]</li>\r
|
||||
|
||||
<li>[%= codiceContrattoSplit %]</li>\r
|
||||
|
||||
<li>[%= debug %]</li>\r
|
||||
|
||||
</ul>\r
|
||||
|
||||
</html>\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
console.log(eftlDocumentToBeProcessed);\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
info:
|
||||
name: Contratto IS economico
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
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: "8463"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"docs\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsAsEntities\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"singleEntity\": {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ \"simpleList\": [\r
|
||||
|
||||
\ \"s1\",\r
|
||||
|
||||
\ \"s2\",\r
|
||||
|
||||
\ \"s3\"\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsSize\": 3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
[EFTL][HEADER name=\"trimDocument\" value=\"true\" type=\"boolean\" /]\r
|
||||
|
||||
[VAR name=\"tipologiaCodice\" type=\"string\"][TAG]GETVALUEBYTAG,TIPOLOGIA_CODICE,REQUEST,IUQOID[/TAG][/VAR]\r
|
||||
|
||||
[VAR name=\"isEconomico\" type=\"boolean\"][% isEconomico = true; %][/VAR]\r
|
||||
|
||||
[VAR name=\"tipologieNonEconomico\" type=\"iterable\"][SPLIT regex=\";\"][TAG]GETVALUEBYTAG,TIPOLOGIE_NON_ECONOMICO,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]\r
|
||||
|
||||
\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
\ [CONDITION]\r
|
||||
|
||||
\ [CONTAINS varname=\"tipologieNonEconomico\"][VALUE_OF varname=\"tipologiaCodice\" /][/CONTAINS]\r
|
||||
|
||||
\ [/CONDITION]\r
|
||||
|
||||
\ [THEN][% isEconomico = false; %][/THEN]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
\r
|
||||
|
||||
[%= isEconomico %]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
info:
|
||||
name: Messaggio ritenute massime
|
||||
type: http
|
||||
seq: 7
|
||||
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22748"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22705"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22754"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="C_B3" type="number"][TAG]GETVALUEBYTAG,C_B3,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="D1_1" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_1,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="D1_2" type="number"][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_D_1_2,REQUEST,IUQOID[/TAG][/VAR]
|
||||
|
||||
[VAR name="numberIterable" type="iterable"][SPLIT regex="\."][TAG]GETVALUEBYTAG,PROPOSTA_CCT_CONTRATTO_A,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="first" type="number"][% first = 0; %][/VAR]
|
||||
[VAR name="second" type="number"][% second = 1; %][/VAR]
|
||||
[VAR name="numberIntegerPart" type="string"][VALUE_OF varname="numberIterable" index="first" /][/VAR]
|
||||
[VAR name="numberDecimalPart" type="string"][VALUE_OF varname="numberIterable" index="second" /][/VAR]
|
||||
[IF][CONDITION][IS_EMPTY varname="numberDecimalPart" /][/CONDITION][THEN][% numberDecimalPart = "00"; %][/THEN][/IF]
|
||||
[VAR name="A" type="number"][% A = numberIntegerPart + "," + numberDecimalPart; %][/VAR]
|
||||
|
||||
[VAR name="D1_3" type="number"][% D1_3 = D1_1 + D1_2 - (A * 0.20); %][/VAR]
|
||||
[VAR name="QuotaAteneo" type="number"][% QuotaAteneo = 0; %][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% D1_3 > 0 %][/CONDITION]
|
||||
[THEN][% QuotaAteneo = D1_3 * 0.05; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[VAR name="D2" type="number"][% D2 = C_B3 - D1_1 - D1_2 - (2 * QuotaAteneo); %][/VAR]
|
||||
|
||||
[FORMAT type="number" pattern="#,##0.00"][% D2 %][/FORMAT]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: CCT - Proposta Operatore
|
||||
type: folder
|
||||
seq: 1
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
@@ -0,0 +1,756 @@
|
||||
info:
|
||||
name: Process EFTL
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
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: "7792"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"docs\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsAsEntities\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"singleEntity\": {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ \"simpleList\": [\r
|
||||
|
||||
\ \"s1\",\r
|
||||
|
||||
\ \"s2\",\r
|
||||
|
||||
\ \"s3\"\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsSize\": 3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: "// Copy-pasta your EFTL document below inside the template literals (`)\r
|
||||
|
||||
var eftlDocumentToBeProcessed = `\r
|
||||
|
||||
<html>\r
|
||||
|
||||
<!-- codice NON processato da EFTL -->\r
|
||||
|
||||
<head>\r
|
||||
|
||||
</head>\r
|
||||
|
||||
<body style=\"font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 12px; fontstyle: normal; line-height: 19.6px;\">\r
|
||||
|
||||
<p style=\"text-align: center; font-size: 13pt; padding-top: 5pt;\">\r
|
||||
|
||||
<a href=\"#ITALIANO\">VERSIONE ITALIANA</a></p>\r
|
||||
|
||||
<p style=\"padding-bottom: 5pt;\"> </p>\r
|
||||
|
||||
<h2 align=\"center\"><strong>[TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG]</strong></h2>\r
|
||||
|
||||
<p style=\"text-align: center; font-size: 14pt; padding-top: 25pt;\">Tipologia: <strong>[TAG]SCHEMAID,341,COL0003,IUQOID, , [/TAG]</strong></p>\r
|
||||
|
||||
<p style=\"text-align: center; font-size: 14pt; padding-top: 25pt;\">Corrispettivo: <strong>[TAG]SCHEMAID,341,COL0009,IUQOID, , [/TAG]</strong></p>\r
|
||||
|
||||
<p style=\"text-align: center; font-size: 14pt; padding-top: 5pt;\">Decreto del Rettore</p>\r
|
||||
|
||||
<hr />\r
|
||||
|
||||
\r
|
||||
|
||||
<!-- Questo invece è processato -->\r
|
||||
|
||||
[EFTL]\r
|
||||
|
||||
<h2 align=\"center\"><strong>[TAG]SCHEMAID,341,COL0005,IUQOID, , [/TAG]</strong></h2>\r
|
||||
|
||||
<p style=\"text-align: center; font-size: 14pt; padding-top: 25pt;\">Tipologia: <strong>[TAG]SCHEMAID,341,COL0003,IUQOID, , [/TAG]</strong></p>\r
|
||||
|
||||
<p style=\"text-align: center; font-size: 14pt; padding-top: 25pt;\">Corrispettivo: <strong>[TAG]SCHEMAID,341,COL0009,IUQOID, , [/TAG]</strong></p>\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
\r
|
||||
|
||||
...\r
|
||||
|
||||
\r
|
||||
|
||||
[eftl] [!-- Inizio blocco EFTL --]\r
|
||||
|
||||
[!-- Blocco di codice riportato in output come scrittura non EFTL --]\r
|
||||
|
||||
<tag>testo tra tag html</tag> [!-- Blocco di codice riportato in output come scrittura non EFTL --]\r
|
||||
|
||||
testo senza tags\r
|
||||
|
||||
[VAR name=\"i\" type=\"number\"] [!-- Inizio blocco VAR per la definizione di una variabile --]\r
|
||||
|
||||
[% i = 0; %] [!-- Blocco di assegnazione valore ad una variabile --]\r
|
||||
|
||||
[/VAR]\r
|
||||
|
||||
<p>un po' di testo che verrà riportato</p> [!-- Blocco di codice riportato in output come scrittura non EFTL --]\r
|
||||
|
||||
[!-- Inizio blocco if/then/elese --]\r
|
||||
|
||||
[IF]\r
|
||||
|
||||
[CONDITION] [!-- Condizione del blocco IF da valutare: risultato aspettato di tipo booleano --]\r
|
||||
|
||||
[% lang == \"IT\" %]\r
|
||||
|
||||
[/CONDITION]\r
|
||||
|
||||
[THEN] [!-- Se blocco condizione true --]\r
|
||||
|
||||
\r
|
||||
|
||||
[FOR varName=\"doc\" iterable=\"docs\"]\r
|
||||
|
||||
doc: [%= doc %]\r
|
||||
|
||||
[/FOR]\r
|
||||
|
||||
\r
|
||||
|
||||
[!-- Condizione Blocco while --]\r
|
||||
|
||||
[WHILE]\r
|
||||
|
||||
[CONDITION] [% docs != null && i < docsSize %] [/CONDITION]\r
|
||||
|
||||
[DO] [!-- Blocco while da eseguire se condizione è \"true\" --]\r
|
||||
|
||||
<p> value of var \"i\" is: [%= i %]</p>\r
|
||||
|
||||
[FOR varName=\"doc\" iterable=\"docs\"] [!-- Blocco FOR di iterazione --]\r
|
||||
|
||||
doc corrente: [%= doc %] [!-- Blocco esposizione del valore della variabile --]\r
|
||||
|
||||
<strong> Sto ciclando sul documento con nome e prezzo </strong>\r
|
||||
|
||||
\r
|
||||
|
||||
[/FOR]\r
|
||||
|
||||
[% i = i + 1; %] [!-- Blocco di assegnazione valore ad una variabile --]\r
|
||||
|
||||
<p> value of var \"i\" after increment is: [%= i %]</p>\r
|
||||
|
||||
[/DO]\r
|
||||
|
||||
[/WHILE]\r
|
||||
|
||||
[/THEN]\r
|
||||
|
||||
[ELSE] [!-- Se blocco condizione false --]\r
|
||||
|
||||
<strong>fixed-time RESEARCH ASSISTANT CONTRACT/S for COLLABORATION at RESEARCH ACTIVITY</strong>\r
|
||||
|
||||
[/ELSE]\r
|
||||
|
||||
[/IF]\r
|
||||
|
||||
[!-- Fine blocco EFTL --]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
<!-- codice NON processato da EFTL -->\r
|
||||
|
||||
\r
|
||||
|
||||
...\r
|
||||
|
||||
\r
|
||||
|
||||
<p>testo tra un documento blocco EFTL© e l'altro</p>\r
|
||||
|
||||
\r
|
||||
|
||||
...\r
|
||||
|
||||
\r
|
||||
|
||||
[EFTL] [!-- Inizio 2° blocco EFTL --]\r
|
||||
|
||||
<ol>\r
|
||||
|
||||
<li>\r
|
||||
|
||||
Decreto del rettore del [TAG]SCHEMAID,202,COL0030,ID_OBJECT, , [/TAG] nr. [TAG]SCHEMAID,202,COL0022,ID_OBJECT, , [/TAG]\r
|
||||
|
||||
</li>\r
|
||||
|
||||
<li>\r
|
||||
|
||||
Decreto del rettore nr. [TAG]GETVALUEBYTAG,NUM_PROT,REQUEST,IUQOID[FILTER]ACTION_NAME=pers_a_inviaPerFirmaRemotaBando_facEcon[/FILTER][/TAG] del [TAG]GETVALUEBYTAG,PROVV_DATE,REQUEST,IUQOID[FILTER]ACTION_NAME=pers_a_inviaPerFirmaRemotaBando_facEcon[/FILTER],,,dd/MM/yyyy[/TAG]\r
|
||||
|
||||
</li>\r
|
||||
|
||||
</ol>\r
|
||||
|
||||
<tag>altro tag</tag>\r
|
||||
|
||||
[!-- Fine 2° blocco EFTL --]\r
|
||||
|
||||
[/EFTL]\r
|
||||
|
||||
<!-- codice NON processato da EFTL -->\r
|
||||
|
||||
<p align=\"center\">\r
|
||||
|
||||
<em>Resto del documento...</em>\r
|
||||
|
||||
</p>\r
|
||||
|
||||
<p> </p>\r
|
||||
|
||||
<p>The Rector</p>\r
|
||||
|
||||
<p>Digitally signed</p>\r
|
||||
|
||||
</body>\r
|
||||
|
||||
</html>\r
|
||||
|
||||
`;\r
|
||||
|
||||
\r
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);\r
|
||||
|
||||
\r
|
||||
|
||||
bru.setVar(\"elixBase64EftlDocument\", base64EncodedDocument);"
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
examples:
|
||||
- name: Process EFTL - Success
|
||||
request:
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
method: POST
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "7792"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"docs\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsAsEntities\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"singleEntity\": {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ \"simpleList\": [\r
|
||||
|
||||
\ \"s1\",\r
|
||||
|
||||
\ \"s2\",\r
|
||||
|
||||
\ \"s3\"\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsSize\": 3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/json;charset=UTF-8
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
- name: transfer-encoding
|
||||
value: chunked
|
||||
- name: vary
|
||||
value: Accept-Encoding
|
||||
- name: content-encoding
|
||||
value: gzip
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "OK",
|
||||
"description": "OK",
|
||||
"complete": true,
|
||||
"globalStatus": "OK",
|
||||
"resultNumber": 1,
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"ITSystemName": "EFTL",
|
||||
"complete": true,
|
||||
"serviceVersion": "1.0.0",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "OK",
|
||||
"description": "OK",
|
||||
"detailStatus": "OK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "a6c6d1c6-14fb-457e-bd82-b1cc137f8c95",
|
||||
"version": "3.9.2.21",
|
||||
"processedDocument": "CjxodG1sPgo8IS0tIGNvZGljZSBOT04gcHJvY2Vzc2F0byBkYSBFRlRMIC0tPgo8aGVhZD4KPC9oZWFkPgo8Ym9keSBzdHlsZT0iZm9udC1mYW1pbHk6IFRhaG9tYSwgVmVyZGFuYSwgU2Vnb2UsIHNhbnMtc2VyaWY7IGZvbnQtc2l6ZTogMTJweDsgZm9udHN0eWxlOiBub3JtYWw7IGxpbmUtaGVpZ2h0OiAxOS42cHg7Ij4KPHAgc3R5bGU9InRleHQtYWxpZ246IGNlbnRlcjsgZm9udC1zaXplOiAxM3B0OyBwYWRkaW5nLXRvcDogNXB0OyI+CjxhIGhyZWY9IiNJVEFMSUFOTyI+VkVSU0lPTkUgSVRBTElBTkE8L2E+PC9wPgo8cCBzdHlsZT0icGFkZGluZy1ib3R0b206IDVwdDsiPiA8L3A+CjxoMiBhbGlnbj0iY2VudGVyIj48c3Ryb25nPltUQUddU0NIRU1BSUQsMzQxLENPTDAwMDUsSVVRT0lELCAsIFsvVEFHXTwvc3Ryb25nPjwvaDI+CjxwIHN0eWxlPSJ0ZXh0LWFsaWduOiBjZW50ZXI7IGZvbnQtc2l6ZTogMTRwdDsgcGFkZGluZy10b3A6IDI1cHQ7Ij5UaXBvbG9naWE6IDxzdHJvbmc+W1RBR11TQ0hFTUFJRCwzNDEsQ09MMDAwMyxJVVFPSUQsICwgWy9UQUddPC9zdHJvbmc+PC9wPgo8cCBzdHlsZT0idGV4dC1hbGlnbjogY2VudGVyOyBmb250LXNpemU6IDE0cHQ7IHBhZGRpbmctdG9wOiAyNXB0OyI+Q29ycmlzcGV0dGl2bzogPHN0cm9uZz5bVEFHXVNDSEVNQUlELDM0MSxDT0wwMDA5LElVUU9JRCwgLCBbL1RBR108L3N0cm9uZz48L3A+CjxwIHN0eWxlPSJ0ZXh0LWFsaWduOiBjZW50ZXI7IGZvbnQtc2l6ZTogMTRwdDsgcGFkZGluZy10b3A6IDVwdDsiPkRlY3JldG8gZGVsIFJldHRvcmU8L3A+CjxociAvPgoKPCEtLSBRdWVzdG8gaW52ZWNlICZlZ3JhdmU7IHByb2Nlc3NhdG8gLS0+Cgo8aDIgYWxpZ249ImNlbnRlciI+PHN0cm9uZz48L3N0cm9uZz48L2gyPgo8cCBzdHlsZT0idGV4dC1hbGlnbjogY2VudGVyOyBmb250LXNpemU6IDE0cHQ7IHBhZGRpbmctdG9wOiAyNXB0OyI+VGlwb2xvZ2lhOiA8c3Ryb25nPjwvc3Ryb25nPjwvcD4KPHAgc3R5bGU9InRleHQtYWxpZ246IGNlbnRlcjsgZm9udC1zaXplOiAxNHB0OyBwYWRkaW5nLXRvcDogMjVwdDsiPkNvcnJpc3BldHRpdm86IDxzdHJvbmc+PC9zdHJvbmc+PC9wPgoKCi4uLgoKIAoKPHRhZz50ZXN0byB0cmEgdGFnIGh0bWw8L3RhZz4gCnRlc3RvIHNlbnphIHRhZ3MKCjxwPnVuIHBvJyBkaSB0ZXN0byBjaGUgdmVyciZhZ3JhdmU7IHJpcG9ydGF0bzwvcD4gCgogCgoKIAo8cD4gdmFsdWUgb2YgdmFyICJpIiBpczogMC4wPC9wPgogCmRvYyBjb3JyZW50ZTogeyJuYW1lIjoiZG9jMSIsInF1YW50aXR5IjozLCJwcmljZSI6MTIzLjN9CjxzdHJvbmc+IFN0byBjaWNsYW5kbyBzdWwgZG9jdW1lbnRvIGNvbiBub21lIGUgcHJlenpvIDwvc3Ryb25nPgogCmRvYyBjb3JyZW50ZTogeyJuYW1lIjoiZG9jMiIsInF1YW50aXR5Ijo1LCJwcmljZSI6MjEzLjN9CjxzdHJvbmc+IFN0byBjaWNsYW5kbyBzdWwgZG9jdW1lbnRvIGNvbiBub21lIGUgcHJlenpvIDwvc3Ryb25nPgogCmRvYyBjb3JyZW50ZTogeyJuYW1lIjoiZG9jMyIsInF1YW50aXR5IjoxMCwicHJpY2UiOjMyMS4zfQo8c3Ryb25nPiBTdG8gY2ljbGFuZG8gc3VsIGRvY3VtZW50byBjb24gbm9tZSBlIHByZXp6byA8L3N0cm9uZz4KCjxwPiB2YWx1ZSBvZiB2YXIgImkiIGFmdGVyIGluY3JlbWVudCBpczogMS4wPC9wPgogCjxwPiB2YWx1ZSBvZiB2YXIgImkiIGlzOiAxLjA8L3A+CiAKZG9jIGNvcnJlbnRlOiB7Im5hbWUiOiJkb2MxIiwicXVhbnRpdHkiOjMsInByaWNlIjoxMjMuM30KPHN0cm9uZz4gU3RvIGNpY2xhbmRvIHN1bCBkb2N1bWVudG8gY29uIG5vbWUgZSBwcmV6em8gPC9zdHJvbmc+CiAKZG9jIGNvcnJlbnRlOiB7Im5hbWUiOiJkb2MyIiwicXVhbnRpdHkiOjUsInByaWNlIjoyMTMuM30KPHN0cm9uZz4gU3RvIGNpY2xhbmRvIHN1bCBkb2N1bWVudG8gY29uIG5vbWUgZSBwcmV6em8gPC9zdHJvbmc+CiAKZG9jIGNvcnJlbnRlOiB7Im5hbWUiOiJkb2MzIiwicXVhbnRpdHkiOjEwLCJwcmljZSI6MzIxLjN9CjxzdHJvbmc+IFN0byBjaWNsYW5kbyBzdWwgZG9jdW1lbnRvIGNvbiBub21lIGUgcHJlenpvIDwvc3Ryb25nPgoKPHA+IHZhbHVlIG9mIHZhciAiaSIgYWZ0ZXIgaW5jcmVtZW50IGlzOiAyLjA8L3A+CiAKPHA+IHZhbHVlIG9mIHZhciAiaSIgaXM6IDIuMDwvcD4KIApkb2MgY29ycmVudGU6IHsibmFtZSI6ImRvYzEiLCJxdWFudGl0eSI6MywicHJpY2UiOjEyMy4zfQo8c3Ryb25nPiBTdG8gY2ljbGFuZG8gc3VsIGRvY3VtZW50byBjb24gbm9tZSBlIHByZXp6byA8L3N0cm9uZz4KIApkb2MgY29ycmVudGU6IHsibmFtZSI6ImRvYzIiLCJxdWFudGl0eSI6NSwicHJpY2UiOjIxMy4zfQo8c3Ryb25nPiBTdG8gY2ljbGFuZG8gc3VsIGRvY3VtZW50byBjb24gbm9tZSBlIHByZXp6byA8L3N0cm9uZz4KIApkb2MgY29ycmVudGU6IHsibmFtZSI6ImRvYzMiLCJxdWFudGl0eSI6MTAsInByaWNlIjozMjEuM30KPHN0cm9uZz4gU3RvIGNpY2xhbmRvIHN1bCBkb2N1bWVudG8gY29uIG5vbWUgZSBwcmV6em8gPC9zdHJvbmc+Cgo8cD4gdmFsdWUgb2YgdmFyICJpIiBhZnRlciBpbmNyZW1lbnQgaXM6IDMuMDwvcD4KCgoKPCEtLSBjb2RpY2UgTk9OIHByb2Nlc3NhdG8gZGEgRUZUTCAtLT4KCi4uLgoKPHA+dGVzdG8gdHJhIHVuIGRvY3VtZW50byBibG9jY28gRUZUTCZjb3B5OyBlIGwnYWx0cm88L3A+CgouLi4KCiAKPG9sPgo8bGk+CkRlY3JldG8gZGVsIHJldHRvcmUgZGVsICBuci4gCjwvbGk+CjxsaT4KRGVjcmV0byBkZWwgcmV0dG9yZSBuci4gIGRlbCAKPC9saT4KPC9vbD4KPHRhZz5hbHRybyB0YWc8L3RhZz4KCgo8IS0tIGNvZGljZSBOT04gcHJvY2Vzc2F0byBkYSBFRlRMIC0tPgo8cCBhbGlnbj0iY2VudGVyIj4KPGVtPlJlc3RvIGRlbCBkb2N1bWVudG8uLi48L2VtPgo8L3A+CjxwPiA8L3A+CjxwPlRoZSBSZWN0b3I8L3A+CjxwPkRpZ2l0YWxseSBzaWduZWQ8L3A+CjwvYm9keT4KPC9odG1sPgo="
|
||||
}
|
||||
}
|
||||
- name: "Process EFTL - TEST #1"
|
||||
request:
|
||||
url: "{{elixFormsApiUrl}}/eftl/process/v1"
|
||||
method: POST
|
||||
headers:
|
||||
- name: x-requested-with
|
||||
value: XMLHttpRequest
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "8463"
|
||||
body:
|
||||
type: json
|
||||
data: "{\r
|
||||
|
||||
\ \"userDocument\": \"{{elixBase64EftlDocument}}\", // see the pre-request script\r
|
||||
|
||||
\ \"userContext\": {\r
|
||||
|
||||
\ \"lang\": \"IT\",\r
|
||||
|
||||
\ \"docs\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsAsEntities\": [\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc2\",\r
|
||||
|
||||
\ \"quantity\": 5,\r
|
||||
|
||||
\ \"price\": 213.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc3\",\r
|
||||
|
||||
\ \"quantity\": 10,\r
|
||||
|
||||
\ \"price\": 321.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"singleEntity\": {\r
|
||||
|
||||
\ \"eftlEntityType\": \"com.anthesi.elixforms.api.eftl.model.mock.EftlDoc\",\r
|
||||
|
||||
\ \"eftlEntity\": {\r
|
||||
|
||||
\ \"name\": \"doc1\",\r
|
||||
|
||||
\ \"quantity\": 3,\r
|
||||
|
||||
\ \"price\": 123.3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
\ },\r
|
||||
|
||||
\ \"simpleList\": [\r
|
||||
|
||||
\ \"s1\",\r
|
||||
|
||||
\ \"s2\",\r
|
||||
|
||||
\ \"s3\"\r
|
||||
|
||||
\ ],\r
|
||||
|
||||
\ \"docsSize\": 3\r
|
||||
|
||||
\ }\r
|
||||
|
||||
}"
|
||||
response:
|
||||
statusText: "200"
|
||||
headers:
|
||||
- name: cache-control
|
||||
value: no-cache, no-store, must-revalidate
|
||||
- name: pragma
|
||||
value: no-cache
|
||||
- name: proxy-connection
|
||||
value: Keep-Alive
|
||||
- name: x-content-security-policy
|
||||
value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
|
||||
- name: content-type
|
||||
value: application/json;charset=UTF-8
|
||||
- name: strict-transport-security
|
||||
value: max-age=63072000;includeSubDomains
|
||||
- name: content-security-policy
|
||||
value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
|
||||
- name: x-frame-options
|
||||
value: SAMEORIGIN
|
||||
- name: x-xss-protection
|
||||
value: 1;mode=block
|
||||
- name: x-content-type-options
|
||||
value: nosniff
|
||||
- name: referrer-policy
|
||||
value: unsafe-url
|
||||
- name: transfer-encoding
|
||||
value: chunked
|
||||
- name: vary
|
||||
value: Accept-Encoding
|
||||
- name: content-encoding
|
||||
value: gzip
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"value": {
|
||||
"code": "OK",
|
||||
"description": "OK",
|
||||
"complete": true,
|
||||
"globalStatus": "OK",
|
||||
"resultNumber": 1,
|
||||
"serviceInformationList": {
|
||||
"serviceInformation": [
|
||||
{
|
||||
"ITSystemName": "EFTL",
|
||||
"complete": true,
|
||||
"serviceVersion": "1.0.0",
|
||||
"statusDetailList": {
|
||||
"statusDetail": [
|
||||
{
|
||||
"code": "OK",
|
||||
"description": "OK",
|
||||
"detailStatus": "OK"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"uuid": "ffaa1626-1841-41cd-8b7e-827b171e439e",
|
||||
"version": "3.9.2.21",
|
||||
"processedDocument": "ZmFsc2U="
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
info:
|
||||
name: Create JSON
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
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: "22224"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"codiciFiscaliAmmessi": ";MMMPPL74T17E463A;;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="json" type="string"][% json = ""; %][/VAR]
|
||||
|
||||
[% json = "{ "; %]
|
||||
|
||||
[VAR name="ripartizioniIterableWithSep" type="iterable"][SPLIT regex="#"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,CONCAT,#[/TAG][/SPLIT][/VAR]
|
||||
|
||||
[VAR name="arrayPartecipanti" type="string"][% arrayPartecipanti = "[ "; %][/VAR]
|
||||
[FOR]
|
||||
|
||||
[/FOR]
|
||||
[% arrayPartecipanti = arrayPartecipanti + " ]"; %]
|
||||
|
||||
[% json = json + " " + arrayPartecipanti " }"; %]
|
||||
|
||||
[%= json %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,89 @@
|
||||
info:
|
||||
name: Test vari
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
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: "22737"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22224"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22748"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22705"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "22842"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"qualificheDocenti": ";Docente;Ricercatore;",
|
||||
"complex": {
|
||||
"antani": "tapioca",
|
||||
"array": [
|
||||
1, 2, 4
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
var eftlDocumentToBeProcessed = String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="newLine" type="string"][VALUE_OF varname="crlf" /][/VAR]
|
||||
[VAR name="stringSeparated" type="string"][% stringSeparated = "xyz#abc#def"; %][/VAR]
|
||||
[VAR name="stringIterable" type="iterable"][SPLIT regex="#"][VALUE_OF varname="stringSeparated" /][/SPLIT][/VAR]
|
||||
|
||||
[VAR name="stringJson" type="string"][TAG]SCHEMAID,405,COL0017,IUQOID, , [/TAG][/VAR]
|
||||
|
||||
[VAR name="valoreT" type="string"][TAG]GETVALUEBYTAG,TEXTAREA_TAG,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[VAR name="valoreS" type="string"][TAG]SCHEMAID,405,COL0003,IUQOID, , [/TAG][/VAR]
|
||||
|
||||
[VAR name="valoreTag" type="number"][TAG]GETVALUEBYTAG,TEXTAREA_TAG,REQUEST,IUQOID,LAST,,0.00[/TAG][/VAR]
|
||||
[VAR name="valoreSch" type="number"][TAG]SCHEMAID,405,COL0003,IUQOID,,,,0.00[/TAG][/VAR]
|
||||
|
||||
[VAR name="prodottoTag" type="number"][% prodotto = valoreTag * 0.20; %][/VAR]
|
||||
[VAR name="prodottoSch" type="number"][% prodotto = valoreSch * 0.20; %][/VAR]
|
||||
|
||||
[%= valoreT " : " valoreS %]
|
||||
[%= newLine %]
|
||||
[%= valoreTag " : " valoreSch %]
|
||||
[%= newLine %]
|
||||
[%= prodottoTag " : " prodottoSch %]
|
||||
[%= newLine %]
|
||||
[%= stringIterable %]
|
||||
[%= newLine %]
|
||||
[%= complex %]
|
||||
[/EFTL]
|
||||
`;
|
||||
|
||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
||||
|
||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: Test vari
|
||||
type: folder
|
||||
seq: 4
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
@@ -0,0 +1,13 @@
|
||||
info:
|
||||
name: EFTL processing
|
||||
type: folder
|
||||
seq: 10
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
scripts:
|
||||
- type: after-response
|
||||
code: |-
|
||||
const { visualize } = require("./elixFormsJs.js")
|
||||
|
||||
visualize(res);
|
||||
Reference in New Issue
Block a user