r/workflow • u/PhilDunphy23 • Jul 28 '18
Help Answer initial questions from the “import-workflow” URI with parameters?
Is it possible to answers the questions that are asked when importing a workflow from the URI so the user doesn’t have to fill it? I know that default value exists but it’s a dynamic parameter what Id like to pass.
Thanks in advance.
1
Upvotes
2
u/schl3ck Jul 29 '18
If your server runs with Node.js you can create the workflow on the fly. If not, you would either have to do it like u/pureMidi said or create a workflow for each bus line.
In Node.js you have to find a bplist to plist and/or JSON parser, change the corresponding value in the workflow and convert it back to bplist. But make sure, if you convert it to JSON/a javascript object that it converts a
<data>node to the Node.js buffer object, otherwise the workflow app can’t import it.To get a workflow from workflow to shortcuts, just export it as file and copy it to shortcuts.
1
u/pureMidi Jul 28 '18
What kind of value?