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

[BUG] Array input #1

Open
JokerGN opened this issue Mar 20, 2020 · 1 comment
Open

[BUG] Array input #1

JokerGN opened this issue Mar 20, 2020 · 1 comment

Comments

@JokerGN
Copy link

JokerGN commented Mar 20, 2020

When I send input of task as an array it will send command instead of value of it

for example I send input of workflow
{ hello: { world: [ "world" ] } }
so I want data in an array to be input for task
{ "hello": "${workflow.input.hello.world[0]}" }

but instead I get "world" we get "${workflow.input.hello.world[0]}" as input of task

Screen Shot 2563-03-20 at 14 44 19

@NV4RE
Copy link
Collaborator

NV4RE commented Mar 21, 2020

At this time the input template only support /^\${[a-z0-9-_]{1,64}[a-z0-9-_.]+}$/i (${workflow.input.hello.world.0})

And I would be greate if it can support Javascript like notation e.g. a?.b[0].c

Relate file link https://github.com/devit-tel/melonade-process-manager/blob/6e215391c1c1404b9be3c2a239bc0bab09d81b7b/src/utils/task.ts#L15

I would appreciate foy anyone who might like to make the pull reqrest for this issue

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

2 participants