update eftl

This commit is contained in:
2026-02-19 09:39:51 +01:00
parent b072ac8ce8
commit f3d2cea76b
@@ -19,6 +19,9 @@ http:
disabled: true
- name: x-ef-request-id
value: "22744"
disabled: true
- name: x-ef-request-id
value: "23258"
body:
type: json
data: |-
@@ -37,7 +40,7 @@ runtime:
- type: before-request
code: |-
// Copy-pasta your EFTL document below inside the template literals (`)
var eftlDocumentToBeProcessed = String.raw`
var eftlDocumentToBeProcessed = bru.setVar("elixBase64EftlDocument", btoa(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]
@@ -58,7 +61,7 @@ runtime:
[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="personaNominativoRightIterable" type="iterable"][SPLIT regex=", Qualifica: "][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]
@@ -71,14 +74,15 @@ runtime:
[/WHILE]
[/THEN][/IF]
[%= totalePersonaleDocente %]
[%= totalePersonaleAltro %]
NOM: [VALUE_OF varname="ripartizioniNominativiIterable" /]
[%= crlf %]
IMP: [VALUE_OF varname="ripartizioniImportiIterable" /]
[%= crlf %]
DOC: [FORMAT type="number" pattern="0.00"][% totalePersonaleDocente %][/FORMAT]
[%= crlf %]
PTA: [FORMAT type="number" pattern="0.00"][% totalePersonaleAltro %][/FORMAT]
[/EFTL]
`;
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
`));
settings:
encodeUrl: true