Hi,
I want to end a workflow early but when I call $end(‘error’) I get the error $end is not defined.
I printed out the contents of ‘$’ and there is no end function.
Am I missing something?
Thanks,
Lar
Hi,
I want to end a workflow early but when I call $end(‘error’) I get the error $end is not defined.
I printed out the contents of ‘$’ and there is no end function.
Am I missing something?
Thanks,
Lar
Hi @lharney I’m sorry that portion of our docs is redundant and must have missed the v2 update.
We’ll fix that.
But here’s an updated link that shows the correct documentation: Writing Node.js in Steps
The $end
has been replaced with $.flow.exit
.
Thanks @pierce