Community

jBPM get outgoing Transition names

reply from Maciej Swiderski in jBPM - View the full discussion

Hi,

 

so to get active node(s) you can use your execution instance:

 

execution.getActiveActivityNames()

This will return all active nodes for your execution or null if none is active.

 

Next, you can iterate over this and get each active node execution by using execution instance again:

 

execution.findActiveExecutionIn(activityName)

That will return new execution object.

 

Here starts not so nice usage.... you can cat that execution to ExecutionImpl and then you could access getActivity method and then getOutgoingTransitions...

 

I heard that there are issues in jira to get such functionality as part of public API so you could go through jira to check it out.

 

Please take a look at java docs for more details.

 

HTH

Maciej

Reply to this message by going to Community

Start a new discussion in jBPM at Community