How to get current workflow identity in current node?

How to get current workflow identity in current node?

I’m not really sure what you exactly mean with “workflow identity”, but it’s probably in here what you’re looking for:

NodeContext.getContext().getWorkflowManager(); // …

– Philipp

1 Like

i saw your another post about this,i want a some data like workid to stands for the current workflow,like the following capture,i hope to get an id like 1, 2, 3 .

image

Hi @lou,
you can get context properties such as the name of the current workflow from here:


Workflows are identified by their path, there is no additional id.
best,
Gabriel

2 Likes

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