Skip to content

LCM Rules - Fixed escape variable

Eduardo Santos requested to merge bugfix-25-web into develop

Now, if inside the Escape text block there is a string, the string is correctly escaped. Furthermore, if instead of a string, there is a method inside the block, the method is added to the code inside a new escapeText method to escape the first method returned value.

Screenshot_2025-01-15_at_11.36.06

This escapeText method will then be executed by OSOM (see this). If a user wants to provide as a parameter an array (without using the escape block), the user can use the Get Value as String block, and the value will be sent as is to OSOM, i.e., as an array, string, number, etc. If the user uses the Escape text block, the provided parameter will be escaped and sent as a string.

In the case of the parameter = [{"device": {"ipv4Address": {}, "networkAccessIdentifier": "123456789@domain.com", "phoneNumber": "+123456789"}, "provisioningId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "qosProfile": "QOS_A", "status": "AVAILABLE", "startedAt": "2024-12-12T09:52:26Z"}]. The final output will be:

Screenshot_2025-01-15_at_11.12.38

Closes #25

Edited by Eduardo Santos

Merge request reports