public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Event)) return false; RuntimeAction other = (RuntimeAction) o; if (id != 0 && id == other.getId()) return true; return eventType.equals(other.getEventType()) && graphElement.equals(other.getGraphElement()) && processInstance.equals(other.getProcessInstance()); }
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; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof RuntimeAction)) return false; RuntimeAction other = (RuntimeAction) o; if (id != 0 && id == other.getId()) return true; return eventType.equals(other.getEventType()) && graphElement.equals(other.getGraphElement()) && processInstance.equals(other.getProcessInstance()); }