diff --git a/b812ceb69337a210633378917cba10bc/README.md b/b812ceb69337a210633378917cba10bc/README.md index 1aa7e3e..05cd6fa 100644 --- a/b812ceb69337a210633378917cba10bc/README.md +++ b/b812ceb69337a210633378917cba10bc/README.md @@ -24,4 +24,4 @@ If you find yourself unable to import your repository due to the presence of fil 2.2 Activate/install all required dependencies 2.3 Re-import the application from source control Currently listed dependencies: - * ServiceNow IntegrationHub Enterprise Pack Installer + * diff --git a/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_16dd1d1353e47210030191e0a0490eab.xml b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_16dd1d1353e47210030191e0a0490eab.xml new file mode 100644 index 0000000..80f41a6 --- /dev/null +++ b/b812ceb69337a210633378917cba10bc/update/sys_hub_action_type_definition_16dd1d1353e47210030191e0a0490eab.xml @@ -0,0 +1,1340 @@ + + + public + + + + true + + {labelCacheCleanUpExecuted=true} + 28100 + false + + + + + Replace part of a string with asterisks. + + false + mask_string + [{"name":"{{action.input_string}}","label":"action➛Input String","type":"action","ref":"","reference_display":"","base_type":"string","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.start_index}}","label":"action➛Start index","type":"action","ref":"","reference_display":"","base_type":"integer","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{action.end_index}}","label":"action➛End index","type":"action","ref":"","reference_display":"","base_type":"integer","parent_table_name":"","column_name":"","choices":null,"attributes":{}},{"name":"{{step[c87c25a5-a77c-486d-add2-9108e5b234fd].result_string}}","label":"step➛Script step➛Result String","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":"d589a929-cf28-46b0-9c57-faa66ff2f5b2"}}] + + + + Mask String + + + + false + draft + sys_hub_action_type_definition + admin + 2025-10-17 22:42:48 + global + / + 16dd1d1353e47210030191e0a0490eab + 6 + Mask String + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + sys_hub_action_type_definition_16dd1d1353e47210030191e0a0490eab + admin + 2025-10-17 22:56:33 + false + + + + + + sys_hub_action_type_definition + 16dd1d1353e47210030191e0a0490eab + 2 + sys_variable_value + admin + 2025-10-17 22:54:37 + 1b8065d753e47210030191e0a0490e56 + 0 + admin + 2025-10-17 22:54:37 + 0 + d38065d753e47210030191e0a0490e47 + + + sys_hub_action_type_definition + 16dd1d1353e47210030191e0a0490eab + 1 + sys_variable_value + admin + 2025-10-17 22:54:37 + 5f8065d753e47210030191e0a0490e56 + 0 + admin + 2025-10-17 22:54:37 + {"version":"1.0","serializationFormat":"JSON","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\",\"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\"}"}}} + 9f8065d753e47210030191e0a0490e3f + + + + result + 16dd1d1353e47210030191e0a0490eab + admin + 2025-10-17 22:55:30 + 00c02dd753e47210030191e0a0490e35 + 0 + admin + 2025-10-17 22:55:30 + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab
+ {{step[c87c25a5-a77c-486d-add2-9108e5b234fd].result_string}} +
+ + __action_status__ + 16dd1d1353e47210030191e0a0490eab + admin + 2025-10-17 22:54:37 + 578065d753e47210030191e0a0490e56 + 0 + admin + 2025-10-17 22:54:37 + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab
+ +
+ + __dont_treat_as_error__ + 16dd1d1353e47210030191e0a0490eab + admin + 2025-10-17 22:54:37 + 138065d753e47210030191e0a0490e56 + 0 + admin + 2025-10-17 22:54:37 + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab
+ +
+ + + 16dd1d1353e47210030191e0a0490eab + c87c25a5-a77c-486d-add2-9108e5b234fd + 1 + + + + + + + 1 + +
+ 106afb6647032200b4fad7527c9a71e7 + admin + 2025-10-17 22:54:36 + 4f8065d753e47210030191e0a0490e05 + 2 + b812ceb69337a210633378917cba10bc + admin + 2025-10-17 22:56:33 + + + + sys_hub_step_instance + 4f8065d753e47210030191e0a0490e05 + 100 + sys_variable_value + admin + 2025-10-17 22:54:37 + 0b8065d753e47210030191e0a0490e3a + 0 + admin + 2025-10-17 22:54:37 + + c78065d753e47210030191e0a0490e13 + + + sys_hub_step_instance + 4f8065d753e47210030191e0a0490e05 + 400 + sys_variable_value + admin + 2025-10-17 22:54:37 + 478065d753e47210030191e0a0490e38 + 0 + admin + 2025-10-17 22:54:37 + 35aa573fd7802200bdbaee5b5e610375 + f5e56d79b3101300176b051a16a8dce4 + + + sys_hub_step_instance + 4f8065d753e47210030191e0a0490e05 + 200 + sys_variable_value + admin + 2025-10-17 22:54:37 + 4f8065d753e47210030191e0a0490e3a + 0 + admin + 2025-10-17 22:54:37 + + c78065d753e47210030191e0a0490e23 + + + sys_hub_step_instance + 4f8065d753e47210030191e0a0490e05 + 600 + sys_variable_value + admin + 2025-10-17 22:54:37 + 8b8065d753e47210030191e0a0490e38 + 1 + admin + 2025-10-17 22:56:33 + /** + * Mask String Characters + * + * This script masks characters in a given string from a specified start index to an end index (exclusive) with asterisks. + * + * Inputs: + * - OriginalString: The input string to be masked (string). + * - StartIndex: The 0-based starting index for masking (integer). + * - EndIndex: The exclusive ending index for masking (integer). + * + * Outputs: + * - result_string: The masked string (string). + * + * Logic: + * - Checks for empty string and returns it unchanged. + * - Validates indices: ensures 0 <= StartIndex < EndIndex <= OriginalString.length. + * - If indices are invalid, returns the original string unchanged. + * - Otherwise, constructs the masked string by concatenating the unmasked prefix, asterisks for the masked portion, and the unmasked suffix. + * + * Example: + * - OriginalString: "testing", StartIndex: 2, EndIndex: 4 + * - Result: "te**ing" + */ +(function execute(inputs, outputs) { + // Validate required inputs + if (!inputs.OriginalString || typeof inputs.OriginalString !== 'string') { + gs.error('Mask String Error: OriginalString must be a provided string'); + outputs.result_string = ''; + return; + } + + var original = inputs.OriginalString; + var start = inputs.StartIndex; + var end = inputs.EndIndex; + + // Handle empty string + if (original.length === 0) { + outputs.result_string = original; + return; + } + + // Validate indices + if (start < 0 || end > original.length || start >= end) { + gs.error('Mask String Error: Invalid indices provided, returning original string'); + outputs.result_string = original; + return; + } + + // Construct masked string + var prefix = original.substring(0, start); + var maskLength = end - start; + var mask = '*'.repeat(maskLength); + var suffix = original.substring(end); + + outputs.result_string = prefix + mask + suffix; +})(inputs, outputs); + 71aa7f6647032200b4fad7527c9a719b + + + + application + 4f8065d753e47210030191e0a0490e05 + admin + 2025-10-17 22:54:37 + 4f8065d753e47210030191e0a0490e37 + 0 + admin + 2025-10-17 22:54:37 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + EndIndex + 4f8065d753e47210030191e0a0490e05 + admin + 2025-10-17 22:54:37 + 038065d753e47210030191e0a0490e3a + 0 + admin + 2025-10-17 22:54:37 + var__m_sys_hub_step_ext_input_4f8065d753e47210030191e0a0490e05
+ {{action.end_index}} +
+ + OriginalString + 4f8065d753e47210030191e0a0490e05 + admin + 2025-10-17 22:54:37 + 478065d753e47210030191e0a0490e3a + 0 + admin + 2025-10-17 22:54:37 + var__m_sys_hub_step_ext_input_4f8065d753e47210030191e0a0490e05
+ {{action.input_string}} +
+ + script + 4f8065d753e47210030191e0a0490e05 + admin + 2025-10-17 22:54:37 + 838065d753e47210030191e0a0490e38 + 0 + admin + 2025-10-17 22:54:37 + var__m_sys_flow_step_definition_input_106afb6647032200b4fad7527c9a71e7
+ +
+ + StartIndex + 4f8065d753e47210030191e0a0490e05 + admin + 2025-10-17 22:54:37 + cb8065d753e47210030191e0a0490e39 + 0 + admin + 2025-10-17 22:54:37 + var__m_sys_hub_step_ext_input_4f8065d753e47210030191e0a0490e05
+ {{action.start_index}} +
+ + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=integer,uiTypeLabel=Integer + false + + + + + + + + + + + + + false + false + + + + StartIndex + false + + + + false + + + integer + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=integer,uiTypeLabel=Integer + false + + + + + + + + + + + + + false + false + + + + EndIndex + false + + + + false + + + integer + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String + false + + + + + + + + + + + + + false + false + + + + OriginalString + false + + + + false + + + string + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=string,uiTypeLabel=String,uiUniqueId=d589a929-cf28-46b0-9c57-faa66ff2f5b2 + false + + + + + + + + + + + + + false + false + + + + result_string + false + + + + false + + + string + + true + 8000 + 4f8065d753e47210030191e0a0490e05 + 4f8065d753e47210030191e0a0490e05 + sys_hub_step_instance + var__m_sys_hub_step_ext_output_4f8065d753e47210030191e0a0490e05 + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_step_ext_output + admin + 2025-10-17 22:54:37 + 0f8065d753e47210030191e0a0490e27 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:37 + false + false + false + false + false + simple + false + script + + + false + + + + result_string + + + + en + var__m_sys_hub_step_ext_output_4f8065d753e47210030191e0a0490e05 + + sys_documentation + admin + 2025-10-17 22:54:37 + 0b8065d753e47210030191e0a0490e2c + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:37 + + + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=integer,uiTypeLabel=Integer,uiUniqueId=01aafeb0-84c6-4ac2-9a6d-090057d99e7b + false + + + + + + + + + + + + + false + false + + + + start_index + false + + + + false + + + integer + + true + 40 + 16dd1d1353e47210030191e0a0490eab + 16dd1d1353e47210030191e0a0490eab + sys_hub_action_type_definition + var__m_sys_hub_action_input_16dd1d1353e47210030191e0a0490eab + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + admin + 2025-10-17 22:54:36 + 0f8025d753e47210030191e0a0490ef3 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:36 + 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=cb4c932c-387e-4460-96e2-06a86f1de45a + false + + + + + + + + + + + + + false + false + + + + input_string + false + + + + false + + + string + + true + 8000 + 16dd1d1353e47210030191e0a0490eab + 16dd1d1353e47210030191e0a0490eab + sys_hub_action_type_definition + var__m_sys_hub_action_input_16dd1d1353e47210030191e0a0490eab + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + admin + 2025-10-17 22:54:36 + 4380eddf53a47210030191e0a0490e7f + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:36 + false + false + false + false + false + simple + false + script + + + false + + + + true + false + false + element_mapping_provider=com.glide.flow_design.action.data.FlowDesignVariableMapper,uiType=integer,uiTypeLabel=Integer,uiUniqueId=46fa1c51-d47f-4b03-9cdf-c6b0a41361f4 + false + + + + + + + + + + + + + false + false + + + + end_index + false + + + + false + + + integer + + true + 40 + 16dd1d1353e47210030191e0a0490eab + 16dd1d1353e47210030191e0a0490eab + sys_hub_action_type_definition + var__m_sys_hub_action_input_16dd1d1353e47210030191e0a0490eab + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_action_input + admin + 2025-10-17 22:54:36 + cf8025d753e47210030191e0a0490ef9 + 0 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:36 + 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=97e955eb-b0f6-448a-946e-792605b54bd3 + false + + + + + + + + + + + + + false + false + + + + result + + false + + + + false + + + + string + + true + 8000 + 16dd1d1353e47210030191e0a0490eab + 16dd1d1353e47210030191e0a0490eab + sys_hub_action_type_definition + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab + + 1 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-17 22:54:59 + 20a029d753e47210030191e0a0490e1f + 1 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:55:30 + 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=1647a61a-9e97-4449-b628-03eb7add345a + false + + + + + + + + + + + + + false + false + + + + __action_status__ + + false + + + + false + + + + string + + false + 65000 + 16dd1d1353e47210030191e0a0490eab + 16dd1d1353e47210030191e0a0490eab + sys_hub_action_type_definition + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab + + 2 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-17 22:54:37 + 9f8065d753e47210030191e0a0490e3f + 1 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:59 + 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=677f467d-72c9-4d5b-bbe5-b1f4a5128ce1,visible_in_ui=false + false + + + + + + + + true + + + + + false + false + + + + __dont_treat_as_error__ + + false + + + + false + + + + boolean + + false + 40 + 16dd1d1353e47210030191e0a0490eab + 16dd1d1353e47210030191e0a0490eab + sys_hub_action_type_definition + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab + + 3 + false + false + + + + false + + + + + + false + false + sys_hub_action_output + admin + 2025-10-17 22:54:37 + d38065d753e47210030191e0a0490e47 + 7 + + + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:56:33 + false + false + false + false + false + simple + false + script + + + false + + + + + + + 16dd1d1353e47210030191e0a0490eab + admin + 2025-10-17 22:54:37 + 538065d753e47210030191e0a0490e59 + 0 + admin + 2025-10-17 22:54:37 + + + + input_string + + + + en + var__m_sys_hub_action_input_16dd1d1353e47210030191e0a0490eab + + sys_documentation + admin + 2025-10-17 22:54:36 + 0b8025d753e47210030191e0a0490ef2 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:36 + + + + + end_index + + + + en + var__m_sys_hub_action_input_16dd1d1353e47210030191e0a0490eab + + sys_documentation + admin + 2025-10-17 22:54:36 + 8f8025d753e47210030191e0a0490efe + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:36 + + + + + start_index + + + + en + var__m_sys_hub_action_input_16dd1d1353e47210030191e0a0490eab + + sys_documentation + admin + 2025-10-17 22:54:36 + cb8025d753e47210030191e0a0490ef8 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:36 + + + + + + __dont_treat_as_error__ + + + + en + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab + + sys_documentation + admin + 2025-10-17 22:54:37 + 538065d753e47210030191e0a0490e4f + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:37 + + + + + result + + + + en + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab + + sys_documentation + admin + 2025-10-17 22:54:59 + 6ca029d753e47210030191e0a0490e24 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:59 + + + + + __action_status__ + + + + en + var__m_sys_hub_action_output_16dd1d1353e47210030191e0a0490eab + + sys_documentation + admin + 2025-10-17 22:54:37 + df8065d753e47210030191e0a0490e45 + 0 + + b812ceb69337a210633378917cba10bc + + b812ceb69337a210633378917cba10bc + + admin + 2025-10-17 22:54:37 + + + + + +