private List getRuntimeActionsForEvent(ExecutionContext executionContext, String eventType) { List eventRuntimeActions = null; List runtimeActions = executionContext.getProcessInstance().getRuntimeActions(); if (runtimeActions != null) { for (Iterator iter = runtimeActions.iterator(); iter.hasNext();) { RuntimeAction runtimeAction = (RuntimeAction) iter.next(); // if the runtime action is registered on this element and eventType if (equals(runtimeAction.getGraphElement()) && eventType.equals(runtimeAction.getEventType())) { // ... add its action to the list of runtime actions if (eventRuntimeActions == null) eventRuntimeActions = new ArrayList(); eventRuntimeActions.add(runtimeAction.getAction()); } } } return eventRuntimeActions; }
private List getRuntimeActionsForEvent(ExecutionContext executionContext, String eventType) { List eventRuntimeActions = null; List runtimeActions = executionContext.getProcessInstance().getRuntimeActions(); if (runtimeActions != null) { for (Iterator iter = runtimeActions.iterator(); iter.hasNext();) { RuntimeAction runtimeAction = (RuntimeAction) iter.next(); // if the runtime action is registered on this element and eventType if (equals(runtimeAction.getGraphElement()) && eventType.equals(runtimeAction.getEventType())) { // ... add its action to the list of runtime actions if (eventRuntimeActions == null) eventRuntimeActions = new ArrayList(); eventRuntimeActions.add(runtimeAction.getAction()); } } } return eventRuntimeActions; }