-
Notifications
You must be signed in to change notification settings - Fork 12
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
CLI: cannot set a file path to data in workflow.json #639
Comments
We'll also have to update deploy to build the data inline into the workflow (like we do with expressions) |
Hey @josephjclark, For example, if we have
It will compile the workflow as:
I hope this is what we were aiming for. If there is anything I am missing or wrong about, please do correct me. Best regards. |
Hi @SatyamMattoo if you'd like to fix this issue please raise a PR and add your notes in there. It's OK for the pull request to be a draft or WIP or incomplete or whatever you want to call it. It's a lot easier for me to review and give feedback to you that way 🙏 It looks like your approach is correct but I'll have to dig my brain into it once the PR is opened. Thanks! |
Thank you for your response @josephjclark! I have raised the PR, you can review it at your convenience. |
Thank you @SatyamMattoo ! |
When running a workflow in the CLI, it is possible to set the expression (and I think credential) to a path.The CLI will then load this path when it loads the workflow.json.
This doesn't work for data at the moment, but it should. The
data
key sets the initial state for that step.Example use-case:
Related: we may also want to support a
state
property onoptions
, which would set the initial state if one isn't otherwise provided. This is probably a separate issue to be honest, but if I were working on it I would resolve both at once. I actually think theoptions
thing is a more valuable use-case.The text was updated successfully, but these errors were encountered: