@Override public boolean equals(Object o) { if (o instanceof ErrorEventExecutionSet) { ErrorEventExecutionSet other = (ErrorEventExecutionSet) o; return errorRef.equals(other.errorRef); } return false; } }
public ErrorEventExecutionSet() { this(new ErrorRef()); }
@Override public int hashCode() { return HashUtil.combineHashCodes(errorRef.hashCode()); }
@Override public Function<Node, Pair<Object, String>> getMapper() { return node -> { ErrorRef errorRef = null; if (startErrorEventsFilter.test(node)) { errorRef = ((StartErrorEvent) ((View) node.getContent()).getDefinition()).getExecutionSet().getErrorRef(); } else if (intermediateErrorEventsFilter.test(node)) { errorRef = ((IntermediateErrorEventCatching) ((View) node.getContent()).getDefinition()).getExecutionSet().getErrorRef(); } else if (endErrorEventsFilter.test(node)) { errorRef = ((EndErrorEvent) ((View) node.getContent()).getDefinition()).getExecutionSet().getErrorRef(); } if (errorRef != null && errorRef.getValue() != null && !errorRef.getValue().isEmpty()) { return new Pair<>(errorRef.getValue(), errorRef.getValue(), Pair.PairEqualsMode.K1); } else { return null; } }; } }
private void assertErrorEventExecutionSet(CancellingErrorEventExecutionSet executionSet, String eventName, boolean isCancelling) { assertNotNull(executionSet); assertNotNull(executionSet.getErrorRef()); assertNotNull(executionSet.getCancelActivity()); assertEquals(eventName, executionSet.getErrorRef().getValue()); assertEquals(isCancelling, executionSet.getCancelActivity().getValue()); } }
private void assertErrorEventExecutionSet(InterruptingErrorEventExecutionSet executionSet, String eventName, boolean isInterrupting) { assertNotNull(executionSet); assertNotNull(executionSet.getErrorRef()); assertEquals(eventName, executionSet.getErrorRef().getValue()); assertEquals(isInterrupting, executionSet.getIsInterrupting().getValue()); } }
private void assertErrorEventExecutionSet(ErrorEventExecutionSet executionSet, String eventName) { assertNotNull(executionSet); assertNotNull(executionSet.getErrorRef()); assertEquals(eventName, executionSet.getErrorRef().getValue()); } }
public EndErrorEvent() { this(new BPMNGeneralSet(""), new BackgroundSet(), new FontSet(), new CircleDimensionSet(new Radius()), new ErrorEventExecutionSet(), new DataIOSet()); }
@Override public boolean equals(Object o) { if (o instanceof StartErrorEvent) { StartErrorEvent other = (StartErrorEvent) o; return super.equals(other) && dataIOSet.equals(other.dataIOSet) && executionSet.equals(other.executionSet); } return false; } }
@Override public boolean equals(Object o) { if (o instanceof IntermediateErrorEventCatching) { IntermediateErrorEventCatching other = (IntermediateErrorEventCatching) o; return super.equals(other) && executionSet.equals(other.executionSet) && dataIOSet.equals(other.dataIOSet); } return false; } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof EndErrorEvent)) { return false; } if (!super.equals(o)) { return false; } EndErrorEvent that = (EndErrorEvent) o; if (executionSet != null ? !executionSet.equals(that.executionSet) : that.executionSet != null) { return false; } return dataIOSet != null ? dataIOSet.equals(that.dataIOSet) : that.dataIOSet == null; }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), executionSet.hashCode(), dataIOSet.hashCode()); } }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), executionSet.hashCode(), dataIOSet.hashCode()); }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), dataIOSet.hashCode(), executionSet.hashCode()); }
public InterruptingErrorEventExecutionSet() { this(new IsInterrupting(true), new ErrorRef()); }
@Override public boolean equals(Object o) { if (o instanceof InterruptingErrorEventExecutionSet) { InterruptingErrorEventExecutionSet other = (InterruptingErrorEventExecutionSet) o; return isInterrupting.equals(other.isInterrupting) && errorRef.equals(other.errorRef); } return false; } }
@Override public int hashCode() { return HashUtil.combineHashCodes(isInterrupting.hashCode(), errorRef.hashCode()); }
public CancellingErrorEventExecutionSet() { this(new CancelActivity(true), new ErrorRef()); }
@Override public boolean equals(Object o) { if (o instanceof CancellingErrorEventExecutionSet) { CancellingErrorEventExecutionSet other = (CancellingErrorEventExecutionSet) o; return cancelActivity.equals(other.cancelActivity) && errorRef.equals(other.errorRef); } return false; } }
@Override public int hashCode() { return HashUtil.combineHashCodes(cancelActivity.hashCode(), errorRef.hashCode()); }