{
  "data": {
    "GTF_WKFL_STUDIO": {
      "nodes": {
        "8d6ba012-bf59-44b8-99f6-1d64b532e49c": {
          "x": 1114.3333333333326,
          "y": 462.11111111111245,
          "id": "8d6ba012-bf59-44b8-99f6-1d64b532e49c",
          "body": "<label> Mail retour &#224; l'envoyeur pj manquante </label>",
          "data": {
            "description": "Mail retour à l'envoyeur pj manquante",
            "template_id": "217",
            "scope": [
              {
                "key": "dest",
                "value": "{{EmailTrigger_1.from}}"
              },
              {
                "key": "mail",
                "value": "{{EmailTrigger_1}}"
              }
            ]
          },
          "icon": "fa-paper-plane",
          "class": "EmailSender",
          "input": {
            "main-input": {
              "class": "main-input",
              "index": 0,
              "connections": [
                "214d9cf2-d8a9-4b58-a2ff-87096fe8d2b8"
              ]
            }
          },
          "title": "EmailSender_1",
          "output": {
            "onError": {
              "class": "error hidden",
              "index": 1,
              "title": "GENERIC_OUTPUT_CONDITION_ERROR_OCCURED",
              "connections": []
            },
            "onSuccess": {
              "class": "success",
              "index": 0,
              "connections": []
            }
          },
          "status": null,
          "buttons": [
            {
              "title": "WKFL_CONTEXTUAL_MENU_EDIT_NODE",
              "icon": "icon-vitis-cog"
            }
          ]
        },
        "c9ba7a64-c5c3-47bb-9cfa-c2931a04ea59": {
          "x": 636,
          "y": 368,
          "id": "c9ba7a64-c5c3-47bb-9cfa-c2931a04ea59",
          "body": "<label> V&#233;rifie qu'une pi&#232;ce jointe est bien pr&#233;sente </label>",
          "data": {
            "condition": "{{EmailTrigger_1.attachments | length(@)}} > 0",
            "description": "Vérifie qu'une pièce jointe est bien présente"
          },
          "icon": "fa-code-fork",
          "class": "Tester",
          "input": {
            "main-input": {
              "class": "main-input",
              "index": 0,
              "connections": [
                "a6f6a591-1b55-4af3-90fe-7f05e1bf6ef7"
              ]
            }
          },
          "title": "Tester_1",
          "output": {
            "onError": {
              "class": "fatal hidden",
              "index": 2,
              "title": "TESTER_OUTPUT_CONDITION_ERROR_OCCURED",
              "connections": []
            },
            "onSuccess-f": {
              "class": "error",
              "index": 1,
              "title": "TESTER_OUTPUT_CONDITION_IS_FALSE",
              "connections": [
                "214d9cf2-d8a9-4b58-a2ff-87096fe8d2b8"
              ]
            },
            "onSuccess-t": {
              "class": "success",
              "index": 0,
              "title": "TESTER_OUTPUT_CONDITION_IS_TRUE",
              "connections": [
                "fdb3145f-c107-4a85-9120-67ffa24747ad"
              ]
            }
          },
          "status": 3,
          "buttons": [
            {
              "title": "WKFL_CONTEXTUAL_MENU_EDIT_NODE",
              "icon": "icon-vitis-cog"
            },
            {
              "title": "WKFL_CONTEXTUAL_MENU_DISPLAY_NODE_DATA",
              "icon": "icon-vitis-search"
            }
          ]
        },
        "cdbf0511-ad4c-49bd-bd50-3da0e24530d7": {
          "x": 195.88888888888886,
          "y": 372.33333333333394,
          "id": "cdbf0511-ad4c-49bd-bd50-3da0e24530d7",
          "body": "<label> Lecture d'une boite mail </label>",
          "data": {
            "tls": true,
            "host": "{{environment.host}}",
            "move": "GTF",
            "port": "{{environment.port}}",
            "user": "{{environment.user}}",
            "folder": "INBOX",
            "password": "{{environment.password}}",
            "period_id": "10523",
            "description": "Lecture d'une boite mail",
            "unzip_attachment": true
          },
          "icon": "fa-envelope-o",
          "class": "EmailTrigger",
          "input": {},
          "title": "EmailTrigger_1",
          "output": {
            "onError": {
              "class": "error hidden",
              "index": 1,
              "title": "GENERIC_OUTPUT_CONDITION_ERROR_OCCURED",
              "connections": []
            },
            "onSuccess": {
              "class": "success",
              "index": 0,
              "connections": [
                "a6f6a591-1b55-4af3-90fe-7f05e1bf6ef7"
              ]
            }
          },
          "status": 3,
          "buttons": [
            {
              "title": "WKFL_CONTEXTUAL_MENU_EDIT_NODE",
              "icon": "icon-vitis-cog"
            },
            {
              "title": "WKFL_CONTEXTUAL_MENU_DISPLAY_NODE_DATA",
              "icon": "icon-vitis-search"
            }
          ]
        },
        "fd71774d-7ad0-40a2-bf0b-fbb8678caaf6": {
          "title": "GtfOrderRunner_1",
          "class": "GtfOrderRunner",
          "icon": "fa-cogs",
          "body": "<label> Traitement de la pi&#232;ce jointe </label>",
          "input": {
            "main-input": {
              "connections": [
                "fdb3145f-c107-4a85-9120-67ffa24747ad"
              ],
              "index": 0,
              "class": "main-input"
            }
          },
          "output": {
            "onSuccess": {
              "connections": [],
              "index": 0,
              "class": "success"
            },
            "onError": {
              "connections": [],
              "index": 1,
              "class": "error",
              "title": "GENERIC_OUTPUT_CONDITION_ERROR_OCCURED"
            }
          },
          "data": {
            "description": "Traitement de la pièce jointe",
            "workspace_id": "10518",
            "user_id": "43",
            "priority": 1,
            "email_option_id": 1,
            "sync": true,
            "wk_params": [
              {
                "key": "files",
                "value": "{{EmailTrigger_1.attachments[0]}}"
              }
            ]
          },
          "x": 1104.6666666666667,
          "y": 302.11111111111074,
          "buttons": [
            {
              "title": "WKFL_CONTEXTUAL_MENU_EDIT_NODE",
              "icon": "icon-vitis-cog"
            }
          ],
          "status": 2,
          "id": "fd71774d-7ad0-40a2-bf0b-fbb8678caaf6"
        }
      },
      "connections": {
        "214d9cf2-d8a9-4b58-a2ff-87096fe8d2b8": {
          "input": {
            "node_id": "8d6ba012-bf59-44b8-99f6-1d64b532e49c",
            "port_name": "main-input"
          },
          "output": {
            "node_id": "c9ba7a64-c5c3-47bb-9cfa-c2931a04ea59",
            "port_name": "onSuccess-f"
          },
          "hasData": false
        },
        "a6f6a591-1b55-4af3-90fe-7f05e1bf6ef7": {
          "input": {
            "node_id": "c9ba7a64-c5c3-47bb-9cfa-c2931a04ea59",
            "port_name": "main-input"
          },
          "output": {
            "node_id": "cdbf0511-ad4c-49bd-bd50-3da0e24530d7",
            "port_name": "onSuccess"
          },
          "hasData": true
        },
        "fdb3145f-c107-4a85-9120-67ffa24747ad": {
          "output": {
            "node_id": "c9ba7a64-c5c3-47bb-9cfa-c2931a04ea59",
            "port_name": "onSuccess-t"
          },
          "input": {
            "node_id": "fd71774d-7ad0-40a2-bf0b-fbb8678caaf6",
            "port_name": "main-input"
          },
          "hasData": true
        }
      }
    }
  },
  "studio": {
    "counters": {
      "Tester": 2,
      "EmailSender": 1,
      "EmailTrigger": 1,
      "GtfOrderRunner": 1
    },
    "module_name": "GTF_WKFL_STUDIO"
  }
}