wso2 / product-micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
204 stars 221 forks source link

[New Feature] Simplify Expressions #3749

Closed GDLMadushanka closed 1 week ago

GDLMadushanka commented 4 weeks ago

Problem

In MI, currently to write an expression, either we need to use XPath, or JSONPath or some other xpath functions like (get-property, vault-lookup). For a new user, even though the VS Code tool looks nice and with co-pilot they may get a quick start, when they get into writing expressions, they get stuck. We need to find a better way to write expressions. It can be either a new expression editor, or a new expression language, etc.

Proposed Solution

https://gist.github.com/rosensilva/a0b3a5ce7009edfa49ab083e07c6f9ea

Alternatives

No response

Version

No response

GDLMadushanka commented 3 weeks ago

Update Implemented all the features in the above specification with tests. Draft PR https://github.com/wso2/wso2-synapse/pull/2227 Added registry access function.

Remaining tasks Add XPATH evaluation support Documentation