{"_id":"6a0f111fb1dbfa00070022db","components":[{"_id":"fd11b9d9-e752-4040-9ac6-9f4fd5232e28","_type":"SetHeadersComponent","expressions":[{"_id":"635f8a74ec569b0011000b5f","expression":"#{ERM_error_mail}","expressionType":"simple","name":"error_mail_tmp","nextNode":null},{"_id":"635f8a74ec569b0011000b60","expression":"${header.error_mail_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"error_mail","nextNode":null},{"_id":"635f8a74ec569b0011000b61","expression":"#{ERM_error_frequency}","expressionType":"simple","name":"error_frequency_tmp","nextNode":null},{"_id":"6373a4cdec569b00110019ba","expression":"${header.error_frequency_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"error_frequency","nextNode":null},{"_id":"63763f0bec569b000b002954","expression":"#{ERM_name}","expressionType":"simple","name":"name_tmp","nextNode":null},{"_id":"63763f0bec569b000b002955","expression":"${header.name_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"name","nextNode":null},{"_id":"63763f0bec569b000b002956","expression":"#{ERM_value}","expressionType":"simple","name":"value_tmp","nextNode":null},{"_id":"63763f0bec569b000b002957","expression":"${header.value_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"value","nextNode":null}],"flowComponentId":null,"note":{"text":"ERM User Definable Metrics","created_at":"2024-03-06T10:21:26.967Z","updated_at":"2024-03-06T10:21:26.967Z","updated_by":"59565f3fbb0c38660ebe2bd6"},"previousEndpoint":"RightMiddle","previousNode":"3331572f-2613-4be8-ade6-230ca86c7566","x":468,"y":204},{"_id":"6c6f7d39-b405-4398-981e-9e3d1a8a65dd","_type":"SetBodyComponent","content":"INSERT into #{MbE_DB_table} (timestamp,tenant,flow_name,error_message,error_body,error_class,error_mail,error_frequency,error_origin,environment,breadcrumbid,instance,flow_id,name,value) VALUES ('${header.timestamp}','${header.tenant}','${header.flow_name}','${header.error_message}',NULL,'${header.error_class}','${header.error_mail}','${header.error_frequency}','${header.error_origin}','${header.environment}','${header.breadcrumbid}','${header.instance}','${header.flow_id}','${header.name}','${header.value}')","expressionType":"simple","flowComponentId":null,"note":{"text":"SQL Query","created_at":"2024-03-06T10:21:26.967Z","updated_at":"2024-03-06T10:21:26.967Z","updated_by":"59565f3fbb0c38660ebe2bd6"},"previousEndpoint":"RightMiddle","previousNode":"fd11b9d9-e752-4040-9ac6-9f4fd5232e28","x":576,"y":204},{"_id":"78194d71-8c16-49b4-8766-3e40b927c380","_type":"ReplaceComponent","flags":null,"flowComponentId":null,"group":0,"groupCount":0,"note":null,"previousEndpoint":"RightMiddle","previousNode":"6c6f7d39-b405-4398-981e-9e3d1a8a65dd","regex":"'null_user_definable'","replaceWith":"NULL","x":684,"y":204},{"_id":"de85a11d-9ee0-449c-90a9-355c4305b058","_type":"SQLComponent","database":"#{MbE_DB_name}","escapeChars":"false","flowComponentId":null,"host":"#{MbE_DB_host}","instance":null,"note":{"text":"SQL INSERT","created_at":"2024-03-06T10:21:26.968Z","updated_at":"2024-03-06T10:21:26.968Z","updated_by":"59565f3fbb0c38660ebe2bd6"},"password":"#{MbE_DB_password}","port":"#{MbE_DB_port} ","previousEndpoint":"RightMiddle","previousNode":"78194d71-8c16-49b4-8766-3e40b927c380","query":"${bodyAs(String)}","tlsVersion":"","type":"postgres","useSSL":"true","username":"#{MbE_DB_user}","x":792,"y":204},{"_id":"ed5abab8-20d3-40be-b24a-3c5b78d2de36","_type":"ReplaceComponent","flags":null,"flowComponentId":null,"group":0,"groupCount":0,"note":null,"previousEndpoint":"RightMiddle","previousNode":"a7b782a1-b122-438a-be4b-bad6eec15ff8","regex":"'null_user_definable'","replaceWith":"NULL","x":1224,"y":204},{"_id":"a7b782a1-b122-438a-be4b-bad6eec15ff8","_type":"SetBodyComponent","content":"UPDATE #{MbE_DB_table}  SET error_body='${header.error_body}' WHERE id='${header.id}'","expressionType":"simple","flowComponentId":null,"note":{"text":"SQL Query","created_at":"2024-03-06T10:21:26.968Z","updated_at":"2024-03-06T10:21:26.968Z","updated_by":"59565f3fbb0c38660ebe2bd6"},"previousEndpoint":"RightMiddle","previousNode":"3a43d1b7-f1c3-4a09-88f0-c885cba8b07e","x":1116,"y":204},{"_id":"3a43d1b7-f1c3-4a09-88f0-c885cba8b07e","_type":"SetHeadersComponent","expressions":[{"_id":"62bd8ef74c5c49000b000f65","expression":"//generatedKey","expressionType":"xpath","name":"id","nextNode":null},{"_id":"63da2436744d6a06bd000182","expression":"${exception.responseBody}","expressionType":"simple","name":"error_body_tmp","nextNode":null},{"_id":"62d802a8a328970010001027","expression":"${header.error_body_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"error_body","nextNode":null}],"flowComponentId":null,"note":{"text":"ERM HTTP Metrics","created_at":"2024-03-06T10:21:26.968Z","updated_at":"2024-03-06T10:21:26.968Z","updated_by":"59565f3fbb0c38660ebe2bd6"},"previousEndpoint":"RightMiddle","previousNode":"7edba1f0-6838-49b7-9ae4-d225ea0d41bb","x":1008,"y":204},{"_id":"7edba1f0-6838-49b7-9ae4-d225ea0d41bb","_type":"FilterComponent","expression":"${header.error_class} == 'org.apache.camel.http.base.HttpOperationFailedException'","expressionType":"simple","flowComponentId":null,"note":{"text":"Filter HTTP Exceptions","created_at":"2024-03-06T10:21:26.968Z","updated_at":"2024-03-06T10:21:26.968Z","updated_by":"59565f3fbb0c38660ebe2bd6"},"previousEndpoint":"RightMiddle","previousNode":"de85a11d-9ee0-449c-90a9-355c4305b058","x":900,"y":204},{"_id":"a666a3ec-3fc1-448a-9784-e45dfa1ddbf1","_type":"SQLComponent","database":"#{MbE_DB_name}","escapeChars":"false","flowComponentId":null,"host":"#{MbE_DB_host}","instance":null,"note":null,"password":"#{MbE_DB_password}","port":"#{MbE_DB_port} ","previousEndpoint":"RightMiddle","previousNode":"ed5abab8-20d3-40be-b24a-3c5b78d2de36","query":"${bodyAs(String)}","tlsVersion":"","type":"postgres","useSSL":"true","username":"#{MbE_DB_user}","x":1332,"y":204},{"_id":"3331572f-2613-4be8-ade6-230ca86c7566","_type":"SetHeadersComponent","expressions":[{"_id":"635a692bec569b001400084b","expression":"${exception.class}","expressionType":"simple","name":"error_class","nextNode":null},{"_id":"635a91c5ec569b0011000918","expression":"${exception.message}","expressionType":"simple","name":"error_message_tmp","nextNode":null},{"_id":"635a9924ec569b0011000aa6","expression":"${header.error_message_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"error_message","nextNode":null},{"_id":"62bd8ef74c5c49000b000f66","expression":"${date-with-timezone:now:Europe/Amsterdam:yyyy-MM-dd HH:mm:ss}","expressionType":"simple","name":"timestamp_tmp","nextNode":null},{"_id":"62d802a8a328970010001028","expression":"${header.timestamp_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"timestamp","nextNode":null},{"_id":"62bd93064c5c490014000f72","expression":"${header.breadcrumbId}","expressionType":"simple","name":"breadcrumbid_tmp","nextNode":null},{"_id":"62d802a8a328970010001029","expression":"${header.breadcrumbId.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"breadcrumbid","nextNode":null},{"_id":"62d802a8a32897001000102f","expression":"#{self.tenant}","expressionType":"simple","name":"tenant_tmp","nextNode":null},{"_id":"62d802a8a328970010001030","expression":"${header.tenant_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"tenant","nextNode":null},{"_id":"62d802a8a328970010001031","expression":"#{self.server}","expressionType":"simple","name":"instance_tmp","nextNode":null},{"_id":"62d802a8a328970010001032","expression":"${header.instance_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"instance","nextNode":null},{"_id":"62d802a8a328970010001033","expression":"#{self.environment}","expressionType":"simple","name":"environment_tmp","nextNode":null},{"_id":"62d802a8a328970010001034","expression":"${header.environment_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"environment","nextNode":null},{"_id":"62d802a8a328970010001035","expression":"#{self.flow_id}","expressionType":"simple","name":"flow_id_tmp","nextNode":null},{"_id":"62d802a8a328970010001036","expression":"${header.flow_id_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"flow_id","nextNode":null},{"_id":"62d802a8a328970010001037","expression":"#{self.flow_name}","expressionType":"simple","name":"flow_name_tmp","nextNode":null},{"_id":"62d802a8a328970010001038","expression":"${header.flow_name_tmp.replaceAll(\"\\'\",\"\\'\\'\")}","expressionType":"simple","name":"flow_name","nextNode":null},{"_id":"6373a4cdec569b00110019bb","expression":"ERM","expressionType":"constant","name":"error_origin","nextNode":null}],"flowComponentId":null,"note":{"text":"ERM Metrics","created_at":"2024-03-06T10:21:26.967Z","updated_at":"2024-03-06T10:21:26.967Z","updated_by":"59565f3fbb0c38660ebe2bd6"},"previousEndpoint":"","previousNode":"","x":360,"y":204}],"created_at":null,"equals_latest_version":false,"error_components":[{"_id":"c6695d34-7529-4fb9-975a-d544fcd9443e","_type":"FailedExchangeComponent","flowComponentId":null,"note":null,"previousEndpoint":null,"previousNode":"","redeliveryAttempts":"0","redeliveryInterval":"5000","x":400,"y":300}],"flow_group_id":"6a0f110fb1dbfa00070022da","flow_properties":[{"_id":"668fda7f56d329f893001169","is_meta":false,"name":"ERM_error_frequency","values":[{"_id":"668fda7f56d329f89300116a","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"},{"_id":"668fda7f56d329f89300116b","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"}]},{"_id":"668fda7f56d329f89300116c","is_meta":false,"name":"ERM_error_mail","values":[{"_id":"668fda7f56d329f89300116d","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"},{"_id":"668fda7f56d329f89300116e","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"}]},{"_id":"668fda7f56d329f89300116f","is_meta":false,"name":"ERM_name","values":[{"_id":"668fda7f56d329f893001170","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"},{"_id":"668fda7f56d329f893001171","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"}]},{"_id":"668fda7f56d329f893001172","is_meta":false,"name":"ERM_value","values":[{"_id":"668fda7f56d329f893001173","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"},{"_id":"668fda7f56d329f893001174","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"null_user_definable"}]},{"_id":"668fda7f56d329f893001175","is_meta":false,"name":"MbE_DB_host","values":[{"_id":"668fda7f56d329f893001176","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"demohost"},{"_id":"668fda7f56d329f893001177","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"demohost"}]},{"_id":"668fda7f56d329f893001178","is_meta":false,"name":"MbE_DB_name","values":[{"_id":"668fda7f56d329f893001179","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"demo"},{"_id":"668fda7f56d329f89300117a","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"demo"}]},{"_id":"668fda7f56d329f89300117b","is_meta":false,"name":"MbE_DB_password","values":[{"_id":"668fda7f56d329f89300117c","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"demopass"},{"_id":"668fda7f56d329f89300117d","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"demopass"}]},{"_id":"668fda7f56d329f89300117e","is_meta":false,"name":"MbE_DB_port","values":[{"_id":"668fda7f56d329f89300117f","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"5432"},{"_id":"668fda7f56d329f893001180","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"5432"}]},{"_id":"668fda7f56d329f893001181","is_meta":false,"name":"MbE_DB_table","values":[{"_id":"668fda7f56d329f893001182","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"error_handling"},{"_id":"668fda7f56d329f893001183","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"error_handling"}]},{"_id":"668fda7f56d329f893001184","is_meta":false,"name":"MbE_DB_user","values":[{"_id":"668fda7f56d329f893001185","encrypted":true,"environment":"test","last_update":null,"nonce":null,"updatedBy":null,"value":"demouser"},{"_id":"668fda7f56d329f893001186","encrypted":true,"environment":"production","last_update":null,"nonce":null,"updatedBy":null,"value":"demouser"}]}],"icon":"<?xml version=\"1.0\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 20010904//EN\"\n \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n<svg version=\"1.0\" xmlns=\"http://www.w3.org/2000/svg\"\n width=\"500.000000pt\" height=\"500.000000pt\" viewBox=\"0 0 500.000000 500.000000\"\n preserveAspectRatio=\"xMidYMid meet\">\n\n<g transform=\"translate(0.000000,500.000000) scale(0.100000,-0.100000)\"\nfill=\"#000000\" stroke=\"none\">\n<path d=\"M0 2500 l0 -2500 2500 0 2500 0 0 2500 0 2500 -2500 0 -2500 0 0\n-2500z m1260 1105 l0 -135 -255 0 -255 0 0 -260 0 -260 205 0 205 0 0 -135 0\n-135 -205 0 -205 0 0 -270 0 -270 255 0 255 0 0 -135 0 -135 -400 0 -400 0 0\n935 0 935 400 0 400 0 0 -135z m1127 124 c254 -34 345 -188 330 -559 -7 -194\n-49 -295 -146 -361 l-39 -26 51 -34 c41 -27 59 -47 84 -99 44 -87 53 -157 53\n-410 0 -193 7 -295 25 -351 6 -18 -1 -19 -144 -19 l-150 0 -11 38 c-7 21 -15\n157 -18 322 -6 262 -9 288 -27 320 -33 54 -75 73 -177 78 l-88 4 0 -381 0\n-381 -145 0 -145 0 0 935 0 935 234 0 c129 0 270 -5 313 -11z m1333 6 c0 -14\n201 -1245 208 -1269 5 -21 34 148 101 595 51 343 96 636 98 652 l6 27 203 0\n204 0 0 -935 0 -935 -140 0 -140 0 -2 635 -3 635 -96 -632 -95 -633 -141 -3\n-141 -3 -12 73 c-7 40 -54 323 -105 628 l-93 555 -1 -627 -1 -628 -130 0 -130\n0 0 935 0 935 205 0 c113 0 205 -2 205 -5z\"/>\n<path d=\"M2130 3185 l0 -285 83 0 c100 0 157 22 184 72 16 29 18 58 18 220 0\n173 -2 189 -21 215 -35 47 -78 63 -176 63 l-88 0 0 -285z\"/>\n</g>\n</svg>\n","icon_name":"ERM.svg","isFlowComponent":true,"lock_user_id":"67adc8fdf72b7c000700508e","name":"ERM","note":{"text":"This is a reusable, custom build component used to monitor the functioning of a flow and log information about it's functioning to an SQL database.","updated_at":"2026-05-28T08:37:41.226Z","updated_by":"67adc8fdf72b7c000700508e"},"request_timeout":20000,"tracing_ttl":null,"transport":"direct","trashed":false,"updated_at":"2026-05-28T08:37:41.491+00:00","updated_by":"Adam Tetz","flow_id":"6a0f111fb1dbfa00070022db","lockUserName":"Adam Tetz","lockCurrentUserCanEdit":null}