diff --git a/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_2f0bae3883347210f4185860ceaad312.xml b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_2f0bae3883347210f4185860ceaad312.xml new file mode 100644 index 0000000..6d7283d --- /dev/null +++ b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_2f0bae3883347210f4185860ceaad312.xml @@ -0,0 +1,2257 @@ + + + public + + + + true + + {labelCacheCleanUpExecuted=true} + 28100 + false + + + + Merges multiple JSON objects by adding values of matching keys. + + false + aggregateobjects + [{"name":"{{action.variable}}","label":"action➛variable","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.objectarray}}","label":"action➛objectArray","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].result}}","label":"step➛Script step➛result","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"97851999-a4b2-4f51-9f60-8c707b4ede1e"}},{"name":"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].status}}","label":"step➛Script step➛status","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"26272152-53c4-4186-ac88-eacb9b177b72"}},{"name":"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].error_message}}","label":"step➛Script step➛error_message","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"2b4768c2-b5f1-46a7-927d-a714b2eb0e28"}}] + af6ab8c18370b210f4185860ceaad334 + + AggregateObjects + + + + false + published + sys_hub_action_type_definition + admin + 2025-10-22 20:11:02 + global + / + 2f0bae3883347210f4185860ceaad312 + 17 + AggregateObjects + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + sys_hub_action_type_definition_2f0bae3883347210f4185860ceaad312 + admin + 2025-10-23 10:10:12 + false + + + + + + sys_hub_action_type_definition + 2f0bae3883347210f4185860ceaad312 + 3 + sys_variable_value + admin + 2025-10-22 20:14:34 + 23dbae3483747210f4185860ceaad357 + 0 + admin + 2025-10-22 20:14:34 + 0 + d7dbae3483747210f4185860ceaad34c + + + sys_hub_action_type_definition + 2f0bae3883347210f4185860ceaad312 + 1 + sys_variable_value + admin + 2025-10-22 20:14:34 + e3dbae3483747210f4185860ceaad357 + 1 + admin + 2025-10-23 10:10:05 + {"version":"1.0","complexObject":{"code":{"$cv":{"$c":"java.lang.String","$v":""}},"message":{"$cv":{"$c":"java.lang.String","$v":""}}},"complexObjectSchema":{"FlowDesigner:FDACTIONSTATUS":{"code":"Integer","code.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"Integer\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"integer\",\"default_value\":\"\",\"label\":\"Code\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"1\",\"max_length\":\"40\"}"},"message":"String","message.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"String\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"string\",\"mapped\":\"{}\",\"default_value\":\"\",\"label\":\"Message\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"2\",\"max_length\":\"4000\"}"}},"FlowDesigner:FDACTIONSTATUS.$type_facets":{"SimpleMapFacet":"{\"default_value\":\"\",\"label\":\"Action Status\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"uiUniqueId\":\"4adfb7bc-9d67-498d-88d0-8d6c3d584fed\",\"uiTypeLabel\":\"Object\",\"co_type_name\":\"FDACTIONSTATUS\",\"element_mapping_provider\":\"com.glide.flow_design.action.data.FlowDesignVariableMapper\",\"read_only\":\"false\",\"hint\":null,\"uiType\":\"object\",\"order\":\"1\",\"max_length\":\"65000\"}"}},"serializationFormat":"JSON"} + 53dbae3483747210f4185860ceaad344 + + + + result + 2f0bae3883347210f4185860ceaad312 + admin + 2025-10-22 20:18:12 + fcbc62b483747210f4185860ceaad314 + 0 + admin + 2025-10-22 20:18:12 + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312
+ {{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].result}} +
+ + __action_status__ + 2f0bae3883347210f4185860ceaad312 + admin + 2025-10-22 20:14:34 + afdbae3483747210f4185860ceaad356 + 0 + admin + 2025-10-22 20:14:34 + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312
+ +
+ + __dont_treat_as_error__ + 2f0bae3883347210f4185860ceaad312 + admin + 2025-10-22 20:14:34 + ebdbae3483747210f4185860ceaad356 + 0 + admin + 2025-10-22 20:14:34 + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312
+ +
+ + + 2f0bae3883347210f4185860ceaad312 + 5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6 + 1 + + + + + + + 1 + +
+ 106afb6647032200b4fad7527c9a71e7 + admin + 2025-10-22 20:14:33 + 5fdbae3483747210f4185860ceaad32f + 3 + b812ceb69337a210633378917cba10bc + admin + 2025-10-23 10:04:53 + + + + sys_hub_step_instance + 5fdbae3483747210f4185860ceaad32f + 600 + sys_variable_value + admin + 2025-10-22 20:14:34 + 1fdbae3483747210f4185860ceaad340 + 2 + admin + 2025-10-23 10:04:53 + (function execute(inputs, outputs) { + + // Expecting inputs.objects to be an array of JSON strings or objects + var objects = inputs.objects; + var merged = {}; + + // Ensure we can handle both GlideList or Array inputs + if (typeof objects === 'string') { + try { + objects = JSON.parse(objects); + } catch (e) { + outputs.status = "error"; + outputs.error_message = "Invalid JSON array input"; + outputs.result = "{}"; + return; + } + } + + // Loop through each object + for (var i = 0; i < objects.length; i++) { + var obj = objects[i]; + + // Convert string to JSON if needed + if (typeof obj === 'string') { + try { + obj = JSON.parse(obj); + } catch (e) { + outputs.status = "error"; + outputs.error_message = "Invalid JSON at index " + i; + continue; + } + } + + // Loop through each key in the current object + for (var key in obj) { + if (obj.hasOwnProperty(key)) { + var value = parseFloat(obj[key]) || 0; + + if (merged.hasOwnProperty(key)) { + merged[key] += value; // add if exists + } else { + merged[key] = value; // create if new + } + } + } + } + + // Return merged object result as JSON string + outputs.result = JSON.stringify(merged); + +})(inputs, outputs); + + 71aa7f6647032200b4fad7527c9a719b + + + sys_hub_step_instance + 5fdbae3483747210f4185860ceaad32f + 400 + sys_variable_value + admin + 2025-10-22 20:14:34 + d3dbae3483747210f4185860ceaad340 + 0 + admin + 2025-10-22 20:14:34 + 35aa573fd7802200bdbaee5b5e610375 + f5e56d79b3101300176b051a16a8dce4 + + + + objects + 5fdbae3483747210f4185860ceaad32f + admin + 2025-10-22 20:14:34 + d7dbae3483747210f4185860ceaad341 + 0 + admin + 2025-10-22 20:14:34 + var__m_sys_hub_step_ext_input_5fdbae3483747210f4185860ceaad32f
+ {{action.objectarray}} +
+ + script + 5fdbae3483747210f4185860ceaad32f + admin + 2025-10-23 06:37:17 + 556a78c18370b210f4185860ceaad334 + 0 + admin + 2025-10-23 06:37:17 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String + false + + + + + + + + + + + + + false + false + + + + objects + false + + + + false + + + string + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=2b4768c2-b5f1-46a7-927d-a714b2eb0e28 + false + + + + + + + + + + + + + false + false + + + + error_message + false + + + + false + + + string + + false + 8000 + 5fdbae3483747210f4185860ceaad32f + 5fdbae3483747210f4185860ceaad32f + sys_hub_step_instance + var__m_sys_hub_step_ext_output_5fdbae3483747210f4185860ceaad32f + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_output + admin + 2025-10-23 10:04:53 + 12e9a9058374b210f4185860ceaad322 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:04:53 + false + false + false + false + false + simple + false + script + + + false + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=26272152-53c4-4186-ac88-eacb9b177b72 + false + + + + + + + + + + + + + false + false + + + + status + false + + + + false + + + string + + false + 8000 + 5fdbae3483747210f4185860ceaad32f + 5fdbae3483747210f4185860ceaad32f + sys_hub_step_instance + var__m_sys_hub_step_ext_output_5fdbae3483747210f4185860ceaad32f + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_output + admin + 2025-10-23 10:04:53 + 1ee9a9058374b210f4185860ceaad311 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:04:53 + false + false + false + false + false + simple + false + script + + + false + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=97851999-a4b2-4f51-9f60-8c707b4ede1e + false + + + + + + + + + + + + + false + false + + + + result + false + + + + false + + + string + + true + 8000 + 5fdbae3483747210f4185860ceaad32f + 5fdbae3483747210f4185860ceaad32f + sys_hub_step_instance + var__m_sys_hub_step_ext_output_5fdbae3483747210f4185860ceaad32f + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_output + admin + 2025-10-22 20:18:12 + 74bc22b483747210f4185860ceaad3fd + 1 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:04:53 + false + false + false + false + false + simple + false + script + + + false + + + + error_message + + + + en + var__m_sys_hub_step_ext_output_5fdbae3483747210f4185860ceaad32f + + sys_documentation + admin + 2025-10-23 10:04:53 + 16e9a9058374b210f4185860ceaad324 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:04:53 + + + + + status + + + + en + var__m_sys_hub_step_ext_output_5fdbae3483747210f4185860ceaad32f + + sys_documentation + admin + 2025-10-23 10:04:53 + 56e9a9058374b210f4185860ceaad321 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:04:53 + + + + + result + + + + en + var__m_sys_hub_step_ext_output_5fdbae3483747210f4185860ceaad32f + + sys_documentation + admin + 2025-10-22 20:18:12 + b8bc62b483747210f4185860ceaad300 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:18:12 + + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=531d5aea-4223-470f-83e2-05165e23e156 + false + + + + + + + + + + + + + false + false + + + + objectarray + false + + + + false + + + string + + true + 8000 + 2f0bae3883347210f4185860ceaad312 + 2f0bae3883347210f4185860ceaad312 + sys_hub_action_type_definition + var__m_sys_hub_action_input_2f0bae3883347210f4185860ceaad312 + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + admin + 2025-10-22 20:14:33 + d7dbeef083747210f4185860ceaad3ec + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:14:33 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + action_error_output=true,co_type_name=FDACTIONSTATUS,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=object,uiTypeLabel=Object,uiUniqueId=6098e567-dc75-4a6b-b493-c2cd204174e7 + false + + + + + + + + + + + + + false + false + + + + __action_status__ + + false + + + + false + + + + string + + false + 65000 + 2f0bae3883347210f4185860ceaad312 + 2f0bae3883347210f4185860ceaad312 + sys_hub_action_type_definition + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312 + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-22 20:14:34 + 53dbae3483747210f4185860ceaad344 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:14:34 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,pwd2droppable=true,uiType=string,uiTypeLabel=String,uiUniqueId=bdd4aed9-ef54-4e4d-a7ae-43cd1b77d0e0 + false + + + + + + + + + + + + + false + false + + + + result + + false + + + + false + + + + string + + true + 8000 + 2f0bae3883347210f4185860ceaad312 + 2f0bae3883347210f4185860ceaad312 + sys_hub_action_type_definition + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312 + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-22 20:14:34 + 5fdbae3483747210f4185860ceaad348 + 1 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:18:12 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + action_error_output=true,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=boolean,uiTypeLabel=True/False,uiUniqueId=725375fd-784e-4fa3-a16c-c18854b181b8,visible_in_ui=false + false + + + + + + + + true + + + + + false + false + + + + __dont_treat_as_error__ + + false + + + + false + + + + boolean + + false + 40 + 2f0bae3883347210f4185860ceaad312 + 2f0bae3883347210f4185860ceaad312 + sys_hub_action_type_definition + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312 + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-22 20:14:34 + d7dbae3483747210f4185860ceaad34c + 15 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:10 + false + false + false + false + false + simple + false + script + + + false + + + + + + + 2f0bae3883347210f4185860ceaad312 + admin + 2025-10-22 20:14:34 + abdbae3483747210f4185860ceaad358 + 0 + admin + 2025-10-22 20:14:34 + + + + abdbae3483747210f4185860ceaad358 + {{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].status}}=error + false + + 1 + {"version":"1.0","complexObject":{"code":{"$cv":{"$c":"java.lang.String","$v":"1"}},"message":{"$cv":{"$c":"java.lang.String","$v":""}}},"complexObjectSchema":{"FlowDesigner:FDACTIONSTATUS":{"code":"Integer","code.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"Integer\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"integer\",\"default_value\":\"\",\"label\":\"Code\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"1\",\"max_length\":\"40\"}"},"message":"String","message.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"String\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"string\",\"mapped\":\"{\\\"message\\\":\\\"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].error_message}}\\\"}\",\"default_value\":\"\",\"label\":\"Message\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"2\",\"max_length\":\"4000\"}"}},"FlowDesigner:FDACTIONSTATUS.$type_facets":{"SimpleMapFacet":"{\"default_value\":\"\",\"label\":\"Action Status\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"uiUniqueId\":\"4adfb7bc-9d67-498d-88d0-8d6c3d584fed\",\"uiTypeLabel\":\"Object\",\"co_type_name\":\"FDACTIONSTATUS\",\"element_mapping_provider\":\"com.glide.flow_design.action.data.FlowDesignVariableMapper\",\"read_only\":\"false\",\"hint\":null,\"uiType\":\"object\",\"order\":\"1\",\"max_length\":\"65000\"}"}},"serializationFormat":"JSON"} + admin + 2025-10-23 10:08:14 + 93aae9458374b210f4185860ceaad32a + 1 + admin + 2025-10-23 10:10:05 + + + objectarray + + + + en + var__m_sys_hub_action_input_2f0bae3883347210f4185860ceaad312 + + sys_documentation + admin + 2025-10-22 20:14:33 + 1bdbae3483747210f4185860ceaad316 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:14:33 + + + + + + result + + + + en + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312 + + sys_documentation + admin + 2025-10-22 20:14:34 + 1fdbae3483747210f4185860ceaad34b + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:14:34 + + + + + __action_status__ + + + + en + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312 + + sys_documentation + admin + 2025-10-22 20:14:34 + 93dbae3483747210f4185860ceaad348 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:14:34 + + + + + __dont_treat_as_error__ + + + + en + var__m_sys_hub_action_output_2f0bae3883347210f4185860ceaad312 + + sys_documentation + admin + 2025-10-22 20:14:34 + e3dbae3483747210f4185860ceaad352 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-22 20:14:34 + + + + + + + 2f0bae3883347210f4185860ceaad312 + {"type":"PlanProxy","persistor":{"@class":".ChunkingPlanPersistor","table":"sys_hub_action_plan","id":"b36ab8c18370b210f4185860ceaad3af","name":"plan","plan_signature":null}} + 002be5858374b210f4185860ceaad365 + admin + 2025-10-23 06:37:27 + global + / + b36ab8c18370b210f4185860ceaad3af + 1 + + + admin + 2025-10-23 10:10:12 + + + public + + + + + {labelCacheCleanUpExecuted=true} + 28100 + false + + + + Merges multiple JSON objects by adding values of matching keys. + + aggregateobjects + [{"name":"{{action.variable}}","label":"action➛variable","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.objectarray}}","label":"action➛objectArray","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].result}}","label":"step➛Script step➛result","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"97851999-a4b2-4f51-9f60-8c707b4ede1e"}},{"name":"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].status}}","label":"step➛Script step➛status","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"26272152-53c4-4186-ac88-eacb9b177b72"}},{"name":"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].error_message}}","label":"step➛Script step➛error_message","type":"step","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{"uiTypeLabel":"String","element_mapping_provider":"com.glide.flow_design.action.data.FlowDesignVariableMapper","uiType":"string","uiUniqueId":"2b4768c2-b5f1-46a7-927d-a714b2eb0e28"}}] + true + AggregateObjects + + + + 2f0bae3883347210f4185860ceaad312 + sys_hub_action_type_snapshot + admin + 2025-10-23 06:37:26 + global + / + af6ab8c18370b210f4185860ceaad334 + 1 + + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:11 + false + + + + + + sys_hub_action_type_snapshot + af6ab8c18370b210f4185860ceaad334 + 1 + sys_variable_value + admin + 2025-10-23 06:37:27 + 236ab8c18370b210f4185860ceaad372 + 1 + admin + 2025-10-23 10:10:12 + {"version":"1.0","complexObject":{"code":{"$cv":{"$c":"java.lang.String","$v":""}},"message":{"$cv":{"$c":"java.lang.String","$v":""}}},"complexObjectSchema":{"FlowDesigner:FDACTIONSTATUS":{"code":"Integer","code.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"Integer\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"integer\",\"default_value\":\"\",\"label\":\"Code\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"1\",\"max_length\":\"40\"}"},"message":"String","message.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"String\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"string\",\"mapped\":\"{}\",\"default_value\":\"\",\"label\":\"Message\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"2\",\"max_length\":\"4000\"}"}},"FlowDesigner:FDACTIONSTATUS.$type_facets":{"SimpleMapFacet":"{\"default_value\":\"\",\"label\":\"Action Status\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"uiUniqueId\":\"4adfb7bc-9d67-498d-88d0-8d6c3d584fed\",\"uiTypeLabel\":\"Object\",\"co_type_name\":\"FDACTIONSTATUS\",\"element_mapping_provider\":\"com.glide.flow_design.action.data.FlowDesignVariableMapper\",\"read_only\":\"false\",\"hint\":null,\"uiType\":\"object\",\"order\":\"1\",\"max_length\":\"65000\"}"}},"serializationFormat":"JSON"} + 236ab8c18370b210f4185860ceaad354 + + + sys_hub_action_type_snapshot + af6ab8c18370b210f4185860ceaad334 + 3 + sys_variable_value + admin + 2025-10-23 06:37:27 + 6f6ab8c18370b210f4185860ceaad371 + 0 + admin + 2025-10-23 06:37:27 + 0 + 2f6ab8c18370b210f4185860ceaad35b + + + + result + af6ab8c18370b210f4185860ceaad334 + admin + 2025-10-23 06:37:27 + 676ab8c18370b210f4185860ceaad371 + 0 + admin + 2025-10-23 06:37:27 + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334
+ {{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].result}} +
+ + __action_status__ + af6ab8c18370b210f4185860ceaad334 + admin + 2025-10-23 06:37:27 + eb6ab8c18370b210f4185860ceaad371 + 0 + admin + 2025-10-23 06:37:27 + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334
+ +
+ + __dont_treat_as_error__ + af6ab8c18370b210f4185860ceaad334 + admin + 2025-10-23 06:37:27 + 2b6ab8c18370b210f4185860ceaad371 + 0 + admin + 2025-10-23 06:37:27 + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334
+ +
+ + + af6ab8c18370b210f4185860ceaad334 + 5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6 + 1 + + + + + + + 1 + +
+ 106afb6647032200b4fad7527c9a71e7 + admin + 2025-10-23 06:37:26 + eb6ab8c18370b210f4185860ceaad33f + 2 + b812ceb69337a210633378917cba10bc + admin + 2025-10-23 10:10:12 + + + + sys_hub_step_instance + eb6ab8c18370b210f4185860ceaad33f + 600 + sys_variable_value + admin + 2025-10-23 06:37:26 + 2f6ab8c18370b210f4185860ceaad350 + 1 + admin + 2025-10-23 10:10:12 + (function execute(inputs, outputs) { + + // Expecting inputs.objects to be an array of JSON strings or objects + var objects = inputs.objects; + var merged = {}; + + // Ensure we can handle both GlideList or Array inputs + if (typeof objects === 'string') { + try { + objects = JSON.parse(objects); + } catch (e) { + outputs.status = "error"; + outputs.error_message = "Invalid JSON array input"; + outputs.result = "{}"; + return; + } + } + + // Loop through each object + for (var i = 0; i < objects.length; i++) { + var obj = objects[i]; + + // Convert string to JSON if needed + if (typeof obj === 'string') { + try { + obj = JSON.parse(obj); + } catch (e) { + outputs.status = "error"; + outputs.error_message = "Invalid JSON at index " + i; + continue; + } + } + + // Loop through each key in the current object + for (var key in obj) { + if (obj.hasOwnProperty(key)) { + var value = parseFloat(obj[key]) || 0; + + if (merged.hasOwnProperty(key)) { + merged[key] += value; // add if exists + } else { + merged[key] = value; // create if new + } + } + } + } + + // Return merged object result as JSON string + outputs.result = JSON.stringify(merged); + +})(inputs, outputs); + + 71aa7f6647032200b4fad7527c9a719b + + + sys_hub_step_instance + eb6ab8c18370b210f4185860ceaad33f + 400 + sys_variable_value + admin + 2025-10-23 06:37:26 + 6b6ab8c18370b210f4185860ceaad350 + 0 + admin + 2025-10-23 06:37:26 + 35aa573fd7802200bdbaee5b5e610375 + f5e56d79b3101300176b051a16a8dce4 + + + + application + eb6ab8c18370b210f4185860ceaad33f + admin + 2025-10-23 06:37:26 + 276ab8c18370b210f4185860ceaad350 + 0 + admin + 2025-10-23 06:37:26 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + objects + eb6ab8c18370b210f4185860ceaad33f + admin + 2025-10-23 06:37:26 + 676ab8c18370b210f4185860ceaad351 + 0 + admin + 2025-10-23 06:37:26 + var__m_sys_hub_step_ext_input_eb6ab8c18370b210f4185860ceaad33f
+ {{action.objectarray}} +
+ + script + eb6ab8c18370b210f4185860ceaad33f + admin + 2025-10-23 06:37:26 + e76ab8c18370b210f4185860ceaad350 + 0 + admin + 2025-10-23 06:37:26 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String + false + + + + + + + + + + + + + false + false + + + + objects + false + + + + false + + + string + + true + 8000 + eb6ab8c18370b210f4185860ceaad33f + eb6ab8c18370b210f4185860ceaad33f + sys_hub_step_instance + var__m_sys_hub_step_ext_input_eb6ab8c18370b210f4185860ceaad33f + + 0 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_input + admin + 2025-10-23 06:37:26 + 2b6ab8c18370b210f4185860ceaad343 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=2b4768c2-b5f1-46a7-927d-a714b2eb0e28 + false + + + + + + + + + + + + + false + false + + + + error_message + false + + + + false + + + string + + false + 8000 + eb6ab8c18370b210f4185860ceaad33f + eb6ab8c18370b210f4185860ceaad33f + sys_hub_step_instance + var__m_sys_hub_step_ext_output_eb6ab8c18370b210f4185860ceaad33f + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_output + admin + 2025-10-23 10:10:11 + 082be5858374b210f4185860ceaad34d + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:11 + false + false + false + false + false + simple + false + script + + + false + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=97851999-a4b2-4f51-9f60-8c707b4ede1e + false + + + + + + + + + + + + + false + false + + + + result + false + + + + false + + + string + + true + 8000 + eb6ab8c18370b210f4185860ceaad33f + eb6ab8c18370b210f4185860ceaad33f + sys_hub_step_instance + var__m_sys_hub_step_ext_output_eb6ab8c18370b210f4185860ceaad33f + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_output + admin + 2025-10-23 06:37:26 + 6b6ab8c18370b210f4185860ceaad347 + 1 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:11 + false + false + false + false + false + simple + false + script + + + false + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=26272152-53c4-4186-ac88-eacb9b177b72 + false + + + + + + + + + + + + + false + false + + + + status + false + + + + false + + + string + + false + 8000 + eb6ab8c18370b210f4185860ceaad33f + eb6ab8c18370b210f4185860ceaad33f + sys_hub_step_instance + var__m_sys_hub_step_ext_output_eb6ab8c18370b210f4185860ceaad33f + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_output + admin + 2025-10-23 10:10:11 + 842be5858374b210f4185860ceaad34a + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:11 + false + false + false + false + false + simple + false + script + + + false + + + + error_message + + + + en + var__m_sys_hub_step_ext_output_eb6ab8c18370b210f4185860ceaad33f + + sys_documentation + admin + 2025-10-23 10:10:11 + 0c2be5858374b210f4185860ceaad34f + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:11 + + + + + status + + + + en + var__m_sys_hub_step_ext_output_eb6ab8c18370b210f4185860ceaad33f + + sys_documentation + admin + 2025-10-23 10:10:11 + 4c2be5858374b210f4185860ceaad34c + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:11 + + + + + result + + + + en + var__m_sys_hub_step_ext_output_eb6ab8c18370b210f4185860ceaad33f + + sys_documentation + admin + 2025-10-23 06:37:26 + 676ab8c18370b210f4185860ceaad34a + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=531d5aea-4223-470f-83e2-05165e23e156 + false + + + + + + + + + + + + + false + false + + + + objectarray + false + + + + false + + + string + + true + 8000 + af6ab8c18370b210f4185860ceaad334 + af6ab8c18370b210f4185860ceaad334 + sys_hub_action_type_snapshot + var__m_sys_hub_action_input_af6ab8c18370b210f4185860ceaad334 + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + admin + 2025-10-23 06:37:26 + 6b6ab8c18370b210f4185860ceaad337 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + action_error_output=true,co_type_name=FDACTIONSTATUS,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=object,uiTypeLabel=Object,uiUniqueId=6098e567-dc75-4a6b-b493-c2cd204174e7 + false + + + + + + + + + + + + + false + false + + + + __action_status__ + + false + + + + false + + + + string + + false + 65000 + af6ab8c18370b210f4185860ceaad334 + af6ab8c18370b210f4185860ceaad334 + sys_hub_action_type_snapshot + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334 + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-23 06:37:26 + 236ab8c18370b210f4185860ceaad354 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + action_error_output=true,element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=boolean,uiTypeLabel=True/False,uiUniqueId=725375fd-784e-4fa3-a16c-c18854b181b8,visible_in_ui=false + false + + + + + + + + true + + + + + false + false + + + + __dont_treat_as_error__ + + false + + + + false + + + + boolean + + false + 40 + af6ab8c18370b210f4185860ceaad334 + af6ab8c18370b210f4185860ceaad334 + sys_hub_action_type_snapshot + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334 + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-23 06:37:26 + 2f6ab8c18370b210f4185860ceaad35b + 3 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 10:10:12 + false + false + false + false + false + simple + false + script + + + false + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,pwd2droppable=true,uiType=string,uiTypeLabel=String,uiUniqueId=bdd4aed9-ef54-4e4d-a7ae-43cd1b77d0e0 + false + + + + + + + + + + + + + false + false + + + + result + + false + + + + false + + + + string + + true + 8000 + af6ab8c18370b210f4185860ceaad334 + af6ab8c18370b210f4185860ceaad334 + sys_hub_action_type_snapshot + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334 + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-23 06:37:26 + a36ab8c18370b210f4185860ceaad358 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + false + false + false + false + false + simple + false + script + + + false + + + + + + + af6ab8c18370b210f4185860ceaad334 + admin + 2025-10-23 06:37:27 + 2b6ab8c18370b210f4185860ceaad373 + 0 + admin + 2025-10-23 06:37:27 + + + + 2b6ab8c18370b210f4185860ceaad373 + {{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].status}}=error + false + + 1 + {"version":"1.0","complexObject":{"code":{"$cv":{"$c":"java.lang.String","$v":"1"}},"message":{"$cv":{"$c":"java.lang.String","$v":""}}},"complexObjectSchema":{"FlowDesigner:FDACTIONSTATUS":{"code":"Integer","code.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"Integer\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"integer\",\"default_value\":\"\",\"label\":\"Code\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"1\",\"max_length\":\"40\"}"},"message":"String","message.$field_facets":{"SimpleMapFacet":"{\"uiTypeLabel\":\"String\",\"read_only\":\"false\",\"hint\":\"\",\"uiType\":\"string\",\"mapped\":\"{\\\"message\\\":\\\"{{step[5d4f9919-c2c2-4000-80cd-a1f3b3a2ede6].error_message}}\\\"}\",\"default_value\":\"\",\"label\":\"Message\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"order\":\"2\",\"max_length\":\"4000\"}"}},"FlowDesigner:FDACTIONSTATUS.$type_facets":{"SimpleMapFacet":"{\"default_value\":\"\",\"label\":\"Action Status\",\"action_error_output\":\"true\",\"mandatory\":\"false\",\"uiUniqueId\":\"4adfb7bc-9d67-498d-88d0-8d6c3d584fed\",\"uiTypeLabel\":\"Object\",\"co_type_name\":\"FDACTIONSTATUS\",\"element_mapping_provider\":\"com.glide.flow_design.action.data.FlowDesignVariableMapper\",\"read_only\":\"false\",\"hint\":null,\"uiType\":\"object\",\"order\":\"1\",\"max_length\":\"65000\"}"}},"serializationFormat":"JSON"} + admin + 2025-10-23 10:10:12 + 8c2be5858374b210f4185860ceaad364 + 0 + admin + 2025-10-23 10:10:12 + + + objectarray + + + + en + var__m_sys_hub_action_input_af6ab8c18370b210f4185860ceaad334 + + sys_documentation + admin + 2025-10-23 06:37:26 + a36ab8c18370b210f4185860ceaad33b + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + + + + + + result + + + + en + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334 + + sys_documentation + admin + 2025-10-23 06:37:26 + 636ab8c18370b210f4185860ceaad35b + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + + + + + __dont_treat_as_error__ + + + + en + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334 + + sys_documentation + admin + 2025-10-23 06:37:26 + 6f6ab8c18370b210f4185860ceaad36c + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + + + + + __action_status__ + + + + en + var__m_sys_hub_action_output_af6ab8c18370b210f4185860ceaad334 + + sys_documentation + admin + 2025-10-23 06:37:26 + e76ab8c18370b210f4185860ceaad357 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-23 06:37:26 + + + + + + 2f0bae3883347210f4185860ceaad312 + af6ab8c18370b210f4185860ceaad334 + glide-zurich-07-01-2025__patch1-08-20-2025_09-08-2025_1328.zip + +