}
execution.setVariable("RESULT", res);
}
private BpmStep prepareStep(ProcessInstance pi, DelegateExecution exec) {
MutableBpmStep step = new MutableBpmStep();
step.setProcessInstance(pi);
step.setExecutionId(exec.getId());
step.setStateName((String) this.stepName.getValue(exec));
// makes no sense in BPMN2.0, anyway step should not rely its logic on its placement on process map
// List<String> transitionNames = new ArrayList<String>();
// for (Transition transition : exec.getActivity().getOutgoingTransitions()) {
// transitionNames.add(transition.getDestination().getName());
// }