update eftl
This commit is contained in:
+13
-9
@@ -19,6 +19,9 @@ http:
|
|||||||
disabled: true
|
disabled: true
|
||||||
- name: x-ef-request-id
|
- name: x-ef-request-id
|
||||||
value: "22744"
|
value: "22744"
|
||||||
|
disabled: true
|
||||||
|
- name: x-ef-request-id
|
||||||
|
value: "23258"
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
data: |-
|
data: |-
|
||||||
@@ -37,7 +40,7 @@ runtime:
|
|||||||
- type: before-request
|
- type: before-request
|
||||||
code: |-
|
code: |-
|
||||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
// 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" /]
|
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||||
[VAR name="arrayCFdocenti" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_DOCENTE,REQUEST,IUQOID[/TAG][/VAR]
|
[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="arrayCFaltro" type="string"][TAG]GETVALUEBYTAG,PARTECIPANTI_QUALIFICA_ALTRO,REQUEST,IUQOID[/TAG][/VAR]
|
||||||
@@ -58,7 +61,7 @@ runtime:
|
|||||||
[DO]
|
[DO]
|
||||||
[VAR name="personaImporto" type="number"][VALUE_OF varname="ripartizioniImportiIterable" index="ripartizioneIdx" /][/VAR]
|
[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="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]
|
[VAR name="personaCF" type="string"][VALUE_OF varname="personaNominativoRightIterable" index="firstItem" /][/VAR]
|
||||||
[IF]
|
[IF]
|
||||||
[CONDITION][CONTAINS varname="arrayCFdocenti" value="personaCF" /][/CONDITION]
|
[CONDITION][CONTAINS varname="arrayCFdocenti" value="personaCF" /][/CONDITION]
|
||||||
@@ -71,14 +74,15 @@ runtime:
|
|||||||
[/WHILE]
|
[/WHILE]
|
||||||
[/THEN][/IF]
|
[/THEN][/IF]
|
||||||
|
|
||||||
[%= totalePersonaleDocente %]
|
NOM: [VALUE_OF varname="ripartizioniNominativiIterable" /]
|
||||||
[%= totalePersonaleAltro %]
|
[%= 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]
|
[/EFTL]
|
||||||
`;
|
`));
|
||||||
|
|
||||||
var base64EncodedDocument = btoa(eftlDocumentToBeProcessed);
|
|
||||||
|
|
||||||
bru.setVar("elixBase64EftlDocument", base64EncodedDocument);
|
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
encodeUrl: true
|
encodeUrl: true
|
||||||
|
|||||||
Reference in New Issue
Block a user