JBoss Community

How to get a list of available transitions for an ActivityExecution

reply from Jorge Ferreira in jBPM - View the full discussion

I do not know if this can be achieved with the public API. If there is you SHOULD prefer that solution to the one that I present below.

ActivityExecution execution = ...;

ExecutionImpl executionImpl = (ExecutionImpl) execution;

ActivityImpl activityImpl = executionImpl.getActivity();

Map<String, Transition> transitions = activityImpl.getOutgoingTransitionsMap(); // the leaving transitions, keyed by transition name

Reply to this message by going to Community

Start a new discussion in jBPM at Community