AnsweredAssumed Answered

Is this correct way to get outgoing transitions?

Question asked by sberardelli on Mar 9, 2011
Latest reply on Mar 15, 2011 by sberardelli
So, we're taking Activiti for a test ride…
We need a way in our web app to present a list of outgoing transitions from whatever task they are on…
Digging around the docs didn't really shed any light.

So….stumbled onto this in my testing.
Is this a reasonable/correct way to go about this?
Seems like there should be a better way…

ProcessInstance instanceA = runtimeService.startProcessInstanceByKey("K12-Workflow-Master", map);
ExecutionEntity entity = (ExecutionEntity)instanceA;
List<PvmTransition> transitions = entity.getActivity().getOutgoingTransitions();

Thanks for any advice!