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

[Feature]: Add an additional binding for the service provider to Groovy scripts #1150

Closed
JohannaOtt opened this issue Mar 22, 2024 · 0 comments · Fixed by #1187 or #1166
Closed

[Feature]: Add an additional binding for the service provider to Groovy scripts #1150

JohannaOtt opened this issue Mar 22, 2024 · 0 comments · Fixed by #1187 or #1166
Assignees
Labels
done The issue has been completed feature
Milestone

Comments

@JohannaOtt
Copy link
Contributor

JohannaOtt commented Mar 22, 2024

Is your feature request related to a problem? Please describe.
When using this alignment on the haleconnect platform, it fails because in the external groovy snippet, a HaleUI class is used.

Describe the solution you'd like
I tried to replace it with with HalePlatform.getService(...) instead and tested the project attached to this issue using the UI but that fails with java.lang.NullPointerException: Cannot invoke method getTable() on null object pointing to the fact that service provider has no access to that service. This means we would need to add an additional binding for the service provider to Groovy scripts (for example here).
Please contact me when working on the ticket - I can provide example data with which the error message can be caused.
GroovyLookup.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done The issue has been completed feature
Projects
None yet
4 participants