add updated Liquidazione requests
This commit is contained in:
+55
@@ -0,0 +1,55 @@
|
||||
info:
|
||||
name: Campi conferma - Codice struttura protocollo
|
||||
type: http
|
||||
seq: 29
|
||||
|
||||
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: "32873"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"struttureCensite": "106014;;106227;;106208;;106027;;106178;;106177;;106006;;106017;;106016;;106012;;300221;;106013;;106015;;106007;;106011;;106156;;106151;;106154;;106155;;106152;;106157;;106153;;106150;;106148;;106277;;106272",
|
||||
"codiceStrutturaDefault": "FALLBACK"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
runtime:
|
||||
scripts:
|
||||
- type: before-request
|
||||
code: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[% codiceStrutturaProtocollo = codiceStrutturaDefault; %]
|
||||
|
||||
[VAR name="codiceStrutturaContratto" type="string"][TAG]GETVALUEBYTAG,STRUTTURA_PRINCIPALE_CODICE,REQUEST,ID_OBJECT[/TAG][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="struttureCensite" value="codiceStrutturaContratto" /][/CONDITION]
|
||||
[THEN][% codiceStrutturaProtocollo = codiceStrutturaContratto; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= codiceStrutturaProtocollo %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+27
-36
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Partecipanti - Body
|
||||
type: http
|
||||
seq: 10
|
||||
seq: 9
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -12,7 +12,7 @@ http:
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31397"
|
||||
value: "32873"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -21,7 +21,14 @@ http:
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"DEBUG": "S"
|
||||
"styles": ".label { padding-bottom: 10px; font-family: Arial,Sans-serif; font-size: 13px; color: #222; vertical-align: top; }\r\n.value { padding: 0 1em 10px 0; font-family: Arial,Sans-serif; font-size: 13px; color:#888; white-space: nowrap; vertical-align: top; }\r\n\r\n",
|
||||
"startTable": "\u0026lt;table cellpadding='0' cellspacing='0' border='0'\u0026gt;\u0026lt;tbody\u0026gt;",
|
||||
"endTable": "\u0026lt;/tbody\u0026gt;\u0026lt;/table\u0026gt;\r\n",
|
||||
"startRowColspan": "\r\n\u0026lt;tr\u0026gt;\u0026lt;td colspan='2' class='value'\u0026gt;",
|
||||
"startLabelRow": "\r\n\u0026lt;tr\u0026gt;\u0026lt;td class='label'\u0026gt;\u0026lt;div\u0026gt;",
|
||||
"startValueRow": "\r\n\u0026lt;/div\u0026gt;\u0026lt;/td\u0026gt;\u0026lt;td class='value'\u0026gt;",
|
||||
"endRow": "\u0026lt;/td\u0026gt;\u0026lt;/tr\u0026gt;",
|
||||
"href": "\u0026lt;a href='https://procedure.unipr.it/rwe2/module_preview.jsp?MODULE_TAG=RIPARTIZIONE_CCT_DSAN' target='_blank'\u0026gt;Ripartizione Utili / Compensi - DSAN\u0026lt;/a\u0026gt;"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
@@ -34,41 +41,25 @@ runtime:
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="rsp_titolo" type="string"][TAG]GETVALUEBYTAG,RSP_TITOLO,REQUEST,ID_OBJECT[/TAG][/VAR]
|
||||
[VAR name="rsp_cognome" type="string"][TAG]GETVALUEBYTAG,RSP_COGNOME,REQUEST,ID_OBJECT[/TAG][/VAR]
|
||||
[VAR name="rsp_nome" type="string"][TAG]GETVALUEBYTAG,RSP_NOME,REQUEST,ID_OBJECT[/TAG][/VAR]
|
||||
[% responsabileScientificoProponente = rsp_titolo + " " + rsp_cognome + " " + rsp_nome; %]
|
||||
|
||||
[VAR name="richiedenteCF" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
[%= styles %]
|
||||
|
||||
[!-- Recupera il CF dell'ultimo inserimento --]
|
||||
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[VAR name="emailPartecipante" type="string"][% emailPartecipante = ""; %][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF != "" && lastUpdatedNominativoCF != richiedenteCF %][/CONDITION]
|
||||
[THEN]
|
||||
[VAR name="arrayCfEmailIterable" type="iterable"][SPLIT regex=";"][TAG]GETVALUEBYTAG,SOGGETTI_EMAIL,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[FOR varname="coppia" iterable="arrayCfEmailIterable"]
|
||||
[VAR name="coppiaIterable" type="iterable"][SPLIT regex=":"][VALUE_OF varname="coppia" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="coppiaIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="email" type="string"][VALUE_OF varname="coppiaIterable" index="secondItem" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF == codiceFiscale %][/CONDITION]
|
||||
[THEN][% emailPartecipante = email; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% DEBUG == "S" %][/CONDITION]
|
||||
[THEN][% emailPartecipante = "pierpaolo.mammi@unipr.it"; %][/THEN]
|
||||
[/IF]
|
||||
[/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= emailPartecipante %]
|
||||
[%= startTable %]
|
||||
[%= startRowColspan %]<b>È necessario compilare la DSAN collegata all'istanza del modulo "Ripartizione Utili / Compensi - Presentazione Proposta" i cui dati sono riportati nel seguito!</b>[%= endRow %]
|
||||
[%= startRowColspan %][%= endRow %]
|
||||
[%= startRowColspan %]<b>Riepilogo dei dati della Proposta</b>[%= endRow %]
|
||||
[%= startRowColspan %][%= endRow %]
|
||||
[%= startLabelRow %]Responsabile Scientifico proponente[%= startValueRow %][%= responsabileScientificoProponente %][%= endRow %]
|
||||
[%= startLabelRow %]Codice contratto[%= startValueRow %][TAG]GETVALUEBYTAG,ID_CONTRATTO,REQUEST,ID_OBJECT[/TAG][%= endRow %]
|
||||
[%= startLabelRow %]Titolo contratto[%= startValueRow %][TAG]GETVALUEBYTAG,TITOLO_CONTRATTO,REQUEST,ID_OBJECT[/TAG][%= endRow %]
|
||||
[%= startLabelRow %]Contraente/i[%= startValueRow %][TAG]GETVALUEBYTAG,CONTRATTO_CONTRAENTI,REQUEST,ID_OBJECT[/TAG][%= endRow %]
|
||||
[%= startRowColspan %][%= endRow %]
|
||||
[%= startRowColspan %]<b>Il link al modulo di presentazione della DSAN è: [%= href %]</b>[%= endRow %]
|
||||
[%= endTable %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
info:
|
||||
name: Partecipanti - CF per verifica DSAN
|
||||
type: http
|
||||
seq: 13
|
||||
|
||||
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: "32873"
|
||||
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: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
|
||||
[VAR name="richiedenteCF" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="lastUpdatedNominativo" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="lastUpdatedImporto" type="string"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="lastUpdatedNominativo" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[% partecipanteCF = lastUpdatedNominativoCF; %]
|
||||
|
||||
[!-- La DSAN deve essere presentata da tutti i partecipanti inseriti! --]
|
||||
[!--
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF != "" && lastUpdatedNominativoCF == richiedenteCF %][/CONDITION]
|
||||
[THEN][% partecipanteCF = ""; %][/THEN]
|
||||
[/IF]
|
||||
--]
|
||||
|
||||
[%= partecipanteCF %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+18
-28
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Partecipanti - Email
|
||||
type: http
|
||||
seq: 8
|
||||
seq: 7
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -12,7 +12,7 @@ http:
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31397"
|
||||
value: "32873"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -21,7 +21,7 @@ http:
|
||||
"userContext": {
|
||||
"lang": "IT",
|
||||
"crlf": "\r\n",
|
||||
"DEBUG": "S"
|
||||
"DEBUG": "N"
|
||||
}
|
||||
}
|
||||
auth: inherit
|
||||
@@ -34,38 +34,28 @@ runtime:
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[% item1 = 0; item2 = 1; emailPartecipante = ""; %]
|
||||
|
||||
[VAR name="richiedenteCF" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
[VAR name="arrayCfEmailIterable" type="iterable"][SPLIT regex=";"][TAG]GETVALUEBYTAG,SOGGETTI_EMAIL,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
|
||||
[!-- Recupera il CF dell'ultimo inserimento --]
|
||||
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="item1" /][/VAR]
|
||||
|
||||
[VAR name="emailPartecipante" type="string"][% emailPartecipante = ""; %][/VAR]
|
||||
[FOR varname="coppia" iterable="arrayCfEmailIterable"]
|
||||
[VAR name="coppiaIterable" type="iterable"][SPLIT regex=":"][VALUE_OF varname="coppia" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="coppiaIterable" index="item1" /][/VAR]
|
||||
[VAR name="email" type="string"][VALUE_OF varname="coppiaIterable" index="item2" /][/VAR]
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF == codiceFiscale %][/CONDITION]
|
||||
[THEN][% emailPartecipante = email; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF != "" && lastUpdatedNominativoCF != richiedenteCF %][/CONDITION]
|
||||
[THEN]
|
||||
[VAR name="arrayCfEmailIterable" type="iterable"][SPLIT regex=";"][TAG]GETVALUEBYTAG,SOGGETTI_EMAIL,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[FOR varname="coppia" iterable="arrayCfEmailIterable"]
|
||||
[VAR name="coppiaIterable" type="iterable"][SPLIT regex=":"][VALUE_OF varname="coppia" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="coppiaIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="email" type="string"][VALUE_OF varname="coppiaIterable" index="secondItem" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF == codiceFiscale %][/CONDITION]
|
||||
[THEN][% emailPartecipante = email; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% DEBUG == "S" %][/CONDITION]
|
||||
[THEN][% emailPartecipante = "pierpaolo.mammi@unipr.it"; %][/THEN]
|
||||
[/IF]
|
||||
[/THEN]
|
||||
[CONDITION][% DEBUG == "S" %][/CONDITION]
|
||||
[THEN][% emailPartecipante = "pierpaolo.mammi@unipr.it"; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= emailPartecipante %]
|
||||
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
info:
|
||||
name: Partecipanti - Importo PTA
|
||||
type: http
|
||||
seq: 12
|
||||
|
||||
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: "32873"
|
||||
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: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="arrayCF" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_ALTRO,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[% item1 = 0; item2 = 1; importoDocente = 0; %]
|
||||
|
||||
[VAR name="lastUpdatedNominativo" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="lastUpdatedImporto" type="string"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
|
||||
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="lastUpdatedNominativo" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="item1" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="arrayCF" value="lastUpdatedNominativoCF" /][/CONDITION]
|
||||
[THEN][% importoDocente = lastUpdatedImporto; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= importoDocente %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
info:
|
||||
name: Partecipanti - Importo docente
|
||||
type: http
|
||||
seq: 11
|
||||
|
||||
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: "32873"
|
||||
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: |-
|
||||
const { prepareEftlDocument } = require("./elixFormsJs.js")
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="arrayCF" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_DOCENTE,REQUEST,IUQOID[/TAG][/VAR]
|
||||
[% item1 = 0; item2 = 1; importo = 0; %]
|
||||
|
||||
[VAR name="lastUpdatedNominativo" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="lastUpdatedImporto" type="number"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
|
||||
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="lastUpdatedNominativo" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="item1" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][CONTAINS varname="arrayCF" value="lastUpdatedNominativoCF" /][/CONDITION]
|
||||
[THEN][% importo = lastUpdatedImporto; %][/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= importo %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
+13
-19
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Dati completi ripartizione
|
||||
name: Partecipanti - Riga dati completi ripartizione
|
||||
type: http
|
||||
seq: 2
|
||||
seq: 14
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -12,13 +12,7 @@ http:
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "31499"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "31630"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "24068"
|
||||
value: "32873"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -39,23 +33,23 @@ runtime:
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[% item1 = 0; item2 = 1; %]
|
||||
|
||||
[VAR name="partecipante" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="importo" type="string"][TAG]GETVALUEBYTAG,IMPORTO_RIPARTIZIONE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[!-- Rimuoviamo l'indice della scelta da tendina "[X] " --]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex="] "][VALUE_OF varname="partecipante" /][/SPLIT][/VAR]
|
||||
[!-- Scorriamo l'iterable splittando man mano per i divisori nella scelta da tendina --]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="datiIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="nominativo" type="string"][VALUE_OF varname="datiIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="datiIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="datiIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=", Struttura di afferenza: "][VALUE_OF varname="datiIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="qualifica" type="string"][VALUE_OF varname="datiIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex="\)"][VALUE_OF varname="datiIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="struttura" type="string"][VALUE_OF varname="datiIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="datiIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="nominativo" type="string"][VALUE_OF varname="datiIterable" index="item1" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="datiIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="datiIterable" index="item1" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex=", Struttura di afferenza: "][VALUE_OF varname="datiIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="qualifica" type="string"][VALUE_OF varname="datiIterable" index="item1" /][/VAR]
|
||||
[VAR name="datiIterable" type="iterable"][SPLIT regex="\)"][VALUE_OF varname="datiIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="struttura" type="string"][VALUE_OF varname="datiIterable" index="item1" /][/VAR]
|
||||
|
||||
[%= nominativo + ";;" + codiceFiscale + ";;" + qualifica + ";;" + struttura + ";;" + importo %]
|
||||
[/EFTL]
|
||||
+2
-36
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Partecipanti - Subject
|
||||
type: http
|
||||
seq: 9
|
||||
seq: 8
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -34,41 +34,7 @@ runtime:
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
|
||||
[VAR name="richiedenteCF" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[!-- Recupera il CF dell'ultimo inserimento --]
|
||||
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[VAR name="emailPartecipante" type="string"][% emailPartecipante = ""; %][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF != "" && lastUpdatedNominativoCF != richiedenteCF %][/CONDITION]
|
||||
[THEN]
|
||||
[VAR name="arrayCfEmailIterable" type="iterable"][SPLIT regex=";"][TAG]GETVALUEBYTAG,SOGGETTI_EMAIL,REQUEST,IUQOID[/TAG][/SPLIT][/VAR]
|
||||
[FOR varname="coppia" iterable="arrayCfEmailIterable"]
|
||||
[VAR name="coppiaIterable" type="iterable"][SPLIT regex=":"][VALUE_OF varname="coppia" /][/SPLIT][/VAR]
|
||||
[VAR name="codiceFiscale" type="string"][VALUE_OF varname="coppiaIterable" index="firstItem" /][/VAR]
|
||||
[VAR name="email" type="string"][VALUE_OF varname="coppiaIterable" index="secondItem" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF == codiceFiscale %][/CONDITION]
|
||||
[THEN][% emailPartecipante = email; %][/THEN]
|
||||
[/IF]
|
||||
[/FOR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% DEBUG == "S" %][/CONDITION]
|
||||
[THEN][% emailPartecipante = "pierpaolo.mammi@unipr.it"; %][/THEN]
|
||||
[/IF]
|
||||
[/THEN]
|
||||
[/IF]
|
||||
|
||||
[%= emailPartecipante %]
|
||||
*** https://procedure.unipr.it - Richiesta compilazione DSAN per Ripartizione Utili / Compensi - Contratto [TAG]GETVALUEBYTAG,ID_CONTRATTO,REQUEST,ID_OBJECT[/TAG] ***
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
|
||||
+10
-17
@@ -1,7 +1,7 @@
|
||||
info:
|
||||
name: Partecipanti - hasDSAN
|
||||
type: http
|
||||
seq: 11
|
||||
seq: 10
|
||||
|
||||
http:
|
||||
method: POST
|
||||
@@ -12,7 +12,7 @@ http:
|
||||
- name: x-api-key
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "24075"
|
||||
value: "32873"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -33,29 +33,22 @@ runtime:
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[% hasDSAN = "1"; item1 = 0; item2 = 1; %]
|
||||
|
||||
[!-- La DSAN deve essere presentata da tutti i partecipanti inseriti! --]
|
||||
[!--
|
||||
[VAR name="richiedenteCF" type="string"][TAG]GETVALUEBYTAG,RICHIEDENTE_CODFIS,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="lastUpdatedNominativo" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,UPDATED_LAST[/TAG][/VAR]
|
||||
[VAR name="hasDSAN" type="string"][% hasDSAN = "1"; %][/VAR]
|
||||
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
[VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR]
|
||||
|
||||
[VAR name="lastUpdatedNominativoIterable" type="iterable"][SPLIT regex=" \(CF: "][VALUE_OF varname="lastUpdatedNominativo" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="secondItem" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="firstItem" /][/VAR]
|
||||
|
||||
[!--
|
||||
[%= richiedenteCF %]
|
||||
[%= crlf %]
|
||||
[%= lastUpdatedNominativoCF %]
|
||||
[% richiedenteCF = ""; %]
|
||||
--]
|
||||
[VAR name="lastUpdatedNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][VALUE_OF varname="lastUpdatedNominativoIterable" index="item2" /][/SPLIT][/VAR]
|
||||
[VAR name="lastUpdatedNominativoCF" type="string"][VALUE_OF varname="lastUpdatedNominativoRightIterable" index="item1" /][/VAR]
|
||||
|
||||
[IF]
|
||||
[CONDITION][% lastUpdatedNominativoCF != "" && lastUpdatedNominativoCF == richiedenteCF %][/CONDITION]
|
||||
[THEN][% hasDSAN = "0"; %][/THEN]
|
||||
[CONDITION][% lastUpdatedNominativoCF != "" && lastUpdatedNominativoCF == richiedenteCF %][/CONDITION]
|
||||
[THEN][% hasDSAN = "0"; %][/THEN]
|
||||
[/IF]
|
||||
--]
|
||||
|
||||
[%= hasDSAN %]
|
||||
[/EFTL]
|
||||
|
||||
Reference in New Issue
Block a user