Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Log mediator initialize the expressions each time it executes. #3873

Closed
GDLMadushanka opened this issue Jan 17, 2025 · 0 comments · Fixed by wso2/wso2-synapse#2287
Closed

Comments

@GDLMadushanka
Copy link
Contributor

Description

In the following example, variable mediators initialize the synapse expression once. But the expressions inside the log mediator initialize each time we invoke (found when debugging).

<variable name="book1price" type="DOUBLE" expression="${payload.store.book[0].price}"/>
<variable name="book2price" type="DOUBLE" expression="${payload.store.book[1].price}"/>
<log category="INFO">
    <message>The first 2 books ${vars.book1price + vars.book2price}</message>
</log>

Steps to Reproduce

Add the above code block in an API and invoke while debugging.

Version

4.4.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants