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

JavaScript doesn't return an Array in zeebe #216

Open
PedroKravetz opened this issue Jul 1, 2022 · 2 comments
Open

JavaScript doesn't return an Array in zeebe #216

PedroKravetz opened this issue Jul 1, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@PedroKravetz
Copy link

When you try to return a array in zeebe using JavaScript, it doesn't return an Array. Here is an example:
return ["a", "b"];
in zeebe, it returns {"0": "a", "1": "b"};, he put the index of the array inside a json and doesn't return a array.
This only happens in JavaScript, in Groovy, it gives back the array as it is.

@saig0 saig0 added the bug Something isn't working label Aug 9, 2022
@saig0
Copy link
Contributor

saig0 commented Aug 9, 2022

@PedroKravetz thank you for reporting 👍

It seems to be a known issue: https://stackoverflow.com/questions/22492641/java8-js-nashorn-convert-array-to-java-array

I guess that it would make sense to migrate to GraalVM JS (#170).

Since this is currently not my focus (as a maintainer of this repo), I would be happy to receive contributions from the community 🚀

@jonathanlukas
Copy link
Collaborator

Hello @PedroKravetz , as the migration to graalvm js is now done, could you please confirm that the issue is resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants