info:
name: Partecipanti - Body
type: http
seq: 9
http:
method: POST
url: "{{elixFormsApiUrl}}/eftl/process/v1"
headers:
- name: x-requested-with
value: XMLHttpRequest
- name: x-api-key
value: "{{elixFormsWsAuthenticationToken}}"
- name: x-ef-request-id
value: "32873"
body:
type: json
data: |-
{
"userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script
"userContext": {
"lang": "IT",
"crlf": "\r\n",
"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
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="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; %]
[%= styles %]
[%= startTable %]
[%= startRowColspan %]È necessario compilare la DSAN collegata all'istanza del modulo "Ripartizione Utili / Compensi - Presentazione Proposta" i cui dati sono riportati nel seguito![%= endRow %]
[%= startRowColspan %][%= endRow %]
[%= startRowColspan %]Riepilogo dei dati della Proposta[%= 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 %]Il link al modulo di presentazione della DSAN è: [%= href %][%= endRow %]
[%= endTable %]
[/EFTL]
`);
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5