EvaldoMaciel

Integrador Digibee

Jul 21st, 2020
1,084
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"data":{"type":"connector","name":"db-connector-v2","accountLabel":"mysql-2","stepName":"DB-Connector","params":{"advanced":false,"keepConnection":true,"operation":"QUERY","failOnError":false,"blobAsFile":false,"typeProperties":"[]","sql":"SELECT * from clientes where codigo = {{ message.queryAndPath.codigo }}","url":"jdbc:mysql://34.68.38.221/db-training","connectionProperties":"{}","batch":false},"id":"2ca0d82a-264e-473e-8643-8c2b4db28519","key":"component@connectordb-connector-v2"},"position":{"x":182.5,"y":145},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"type":"choice","stepName":"Choice","id":"ff04755d-d910-49f5-8bc0-b7b4c02a583d","key":"component@choicechoice"},"position":{"x":324,"y":145},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"type":"connector","name":"log-connector","stepName":"Log-Sucesso","params":{"logLevel":"INFO","message":"SUCESSO NO DB: {{ message.$ }}"},"id":"17820020-5bcd-4d68-8741-c67cbfc782a0","key":"component@connectorlog-connector"},"position":{"x":619,"y":62},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"name":"json-generator-connector","type":"connector","stepName":"Json-Generator-Sucesso","params":{"json":"{\n    \"cliente\": {\n        \"nome\": {{ message.data[0].name }},\n        \"email\": {{ message.data[0].email }}\n    },\n    \"cep\": {{ message.data[0].cep }}\n}","failOnError":false},"id":"e06f18ca-7b68-42cc-bfe7-cd4bc94b0d89","key":"component@connectorjson-generator-connector"},"position":{"x":813.5,"y":62},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"type":"session-management","stepName":"Session-Management-Salva Cliente","operation":"PUT","sessionType":"LOCAL","scoped":false,"fields":["cliente"],"id":"d6777f8f-5ac1-4201-b5ab-49362cd3c74e","key":"component@session-managementsession-management"},"position":{"x":1056,"y":62},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"type":"connector","name":"rest-connector-v2","stepName":"Rest-Connector-Consulta CEP","params":{"advanced":false,"stopOnServerError":false,"headers":"{\"Content-Type\":\"application/json\"}","operation":"GET","readTimeout":30000,"queryParams":"","url":"https://viacep.com.br/ws/{{ DEFAULT(message.$.cep, \"04547-130\") }}/json/","connectTimeout":30000,"stopOnClientError":false},"accountLabel":"","accountLabels":{"custom-1":"","custom-2":""},"id":"996f8de2-a4fb-47bf-9d04-73c8427f76ae","key":"component@connectorrest-connector-v2"},"position":{"x":1300,"y":62},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"operation":"GET","scoped":false,"sessionType":"LOCAL","stepName":"Session-Management-Recupera Cliente","fields":["cliente"],"type":"session-management","id":"0bc10218-dbac-4c97-aedc-65cc2453c801","onExceptionTrack":null,"onProcessTrack":null,"key":"component@session-managementsession-management"},"position":{"x":1558,"y":62},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"name":"json-generator-connector","type":"connector","stepName":"Json-Generator-Connector-Saida Tratada","params":{"json":"\n{\n    \"cliente\": {\n        \"nome\": {{ message.cliente.nome }},\n        \"email\": {{ message.cliente.email }},\n        \"endereco\": {{ message.body }}\n    }\n}","failOnError":false},"id":"a5757eea-bf90-4600-9966-45c5381e777b","key":"component@connectorjson-generator-connector"},"position":{"x":1843,"y":62},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"type":"connector","name":"log-connector","stepName":"Log-Erro no DB","params":{"logLevel":"ERROR","message":"ERRO NO DB: {{ message.$ }}"},"id":"e7620e76-0b27-4182-b10a-39304f44ef4d","key":"component@connectorlog-connector"},"position":{"x":619,"y":228},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"name":"json-generator-connector","type":"connector","stepName":"Json-Generator-Cliente nao encontrado","params":{"json":"\n{\n    \"message\": \"Cliente nao encontrado\"\n}","failOnError":false},"id":"a34c7a52-1dd8-456d-a38b-8d5a2159f3e1","key":"component@connectorjson-generator-connector"},"position":{"x":813.5,"y":228},"group":"nodes","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":false,"classes":""},{"data":{"id":"d426c9cb-348d-465f-a864-225aecbd2e41","source":"2ca0d82a-264e-473e-8643-8c2b4db28519","target":"ff04755d-d910-49f5-8bc0-b7b4c02a583d","data":{"type":"default","conditionType":null,"conditionRule":null,"condition":null,"label":null}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"39bc8ce6-3ef6-4ab7-bf68-8a5f63b742a3","source":"ff04755d-d910-49f5-8bc0-b7b4c02a583d","target":"17820020-5bcd-4d68-8741-c67cbfc782a0","data":{"type":"choice","conditionType":"when","conditionRule":"jsonPath","condition":"$.data","label":"SUCESSO NO DB"}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"e9702c7c-5740-45d7-9258-fd2b0cabe26c","source":"ff04755d-d910-49f5-8bc0-b7b4c02a583d","target":"e7620e76-0b27-4182-b10a-39304f44ef4d","data":{"type":"choice","conditionType":"otherwise","conditionRule":null,"condition":null,"label":"ERRO NO DB"}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"6e0616bf-c7d7-4907-8a24-52d9260f38cb","source":"17820020-5bcd-4d68-8741-c67cbfc782a0","target":"e06f18ca-7b68-42cc-bfe7-cd4bc94b0d89","data":{"type":"default","conditionType":null,"conditionRule":null,"condition":null,"label":null}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"7f738ddf-ce7e-48dc-bba1-fc380fd02997","source":"e06f18ca-7b68-42cc-bfe7-cd4bc94b0d89","target":"d6777f8f-5ac1-4201-b5ab-49362cd3c74e","data":{"type":"default","conditionType":null,"conditionRule":null,"condition":null,"label":null}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"9f05b70e-101e-45b2-b4e6-d9ccea12cec8","source":"d6777f8f-5ac1-4201-b5ab-49362cd3c74e","target":"996f8de2-a4fb-47bf-9d04-73c8427f76ae","data":{"type":"default","conditionType":null,"conditionRule":null,"condition":null,"label":null}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"64fb39ef-7964-40c4-b45f-2546203d1353","source":"996f8de2-a4fb-47bf-9d04-73c8427f76ae","target":"0bc10218-dbac-4c97-aedc-65cc2453c801","data":{"type":"default","conditionType":null,"conditionRule":null,"condition":null,"label":null}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"8f6890a5-341a-4907-b410-e22431aef759","source":"0bc10218-dbac-4c97-aedc-65cc2453c801","target":"a5757eea-bf90-4600-9966-45c5381e777b","data":{"type":"default","conditionType":null,"conditionRule":null,"condition":null,"label":null}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""},{"data":{"id":"bf075700-3ad4-4d89-ad39-40a6b80921fc","source":"e7620e76-0b27-4182-b10a-39304f44ef4d","target":"a34c7a52-1dd8-456d-a38b-8d5a2159f3e1","data":{"type":"default","conditionType":null,"conditionRule":null,"condition":null,"label":null}},"position":{"x":0,"y":0},"group":"edges","removed":false,"selected":true,"selectable":true,"locked":false,"grabbable":true,"pannable":true,"classes":""}]
RAW Paste Data