add other collections
This commit is contained in:
+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
|
||||
Reference in New Issue
Block a user