#Is it possible to run actions directly inside a function?

1 messages · Page 1 of 1 (latest)

molten marsh
#

I'm still in the process of learning how to use node-red but I've got a decent grasp on a workflow that works well-ish for me and all the scripting I want to do, albeit it's a bit clunky. It primarily consists of 3 parts: an event is the input, a function does all the scripting, filtering, reformatting, and then an action or some other node is the output.

The problem I'm running into is that the communication from the function to the output node is pretty clunky because for every potential output that any function may have, it needs to have it's own entire output on the function. This just adds more annoying boilerplate to deal with, and I'd really prefer if I could just call those actions directly inside the function. Is such a thing possible? Is there some other workflow that might be a bit less cumbersome? Overall I'd really prefer to just use proper text-based scripting as much as possible.

woeful monolith
#

Would you mind reposting this question over in #1284980040940912641 w/ the Node-RED tag? We're in a kind of in between state where both of these channels have the tag, but that's the new home for these questions.