/** * Emits an event before whenever a particular transition happens on the specified tree. Event subject is the eventId associated with the action. * * @param transition transition that is about to happen * @param params extra information to be passed */ public void sendTransitionActions(Transition transition, Map<String, Object> params) { Assert.notNull(transition, "Transition must not be null"); Assert.notNull(params, "Params must not be null"); params.put("transitionName", transition.getName()); sendActions(transition.getActions(), params); } }
/** * Emits an event before whenever a particular transition happens on the specified tree. Event subject is the eventId associated with the action. * * @param transition transition that is about to happen * @param params extra information to be passed */ public void sendTransitionActions(Transition transition, Map<String, Object> params) { Assert.notNull(transition, "Transition must not be null"); Assert.notNull(params, "Params must not be null"); params.put("transitionName", transition.getName()); sendActions(transition.getActions(), params); } }