How to get the flowId in the flow?

I want to get flowId in my flow, which are used as key to store process error information into the database. Is there any way to do it, such as flow.get("flowId") or?

You could stick a change node near the start of every flow that would put the name of the flow in a msg variable

I hope to get this id in my flow's node.

Hi @Jack, the flow id isn't exposed to the nodes. As @zenofmud suggests, you would need to hard code an identifier on each flow - which could be written to flow context by an Inject node on start up.

thank you

thank you.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.