hale
hale copied to clipboard
[Feature]: Add an additional binding for the service provider to Groovy scripts
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