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

Custom MessageListener not used when a CQL Message is in a referenced library #324

Open
birick1 opened this issue Sep 5, 2024 · 0 comments

Comments

@birick1
Copy link
Contributor

birick1 commented Sep 5, 2024

Hi cql-execution team!

When implementing a MessageListener, the listener works as expected when Message(...) is in the primary CQL file. However, when Message() is in a referenced library, it does not work as expected.

For example, FHIRHelpers has several different Message() calls, but they will not trigger a call to an implemented MessageListener.

In debugging, a NullMessageListener would be instantiated for such library Message calls. I discussed with @cmoesel, who identified that this.messageListener should be added as a final parameter in the constructors here and here. I tried out this solution, and it appears to have resolved the issue.

I'd like to ask that this solution be considered and added.

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

No branches or pull requests

1 participant