@Override public boolean equals(Object o) { if (o instanceof NoneTask) { NoneTask other = (NoneTask) o; return super.equals(other) && executionSet.equals(other.executionSet); } return false; } }
protected String getTaskName() { String taskName = "Task"; if (bpmnModel != null && bpmnModel instanceof BaseTask) { BaseTask task = (BaseTask) bpmnModel; if (task.getGeneral() != null && task.getGeneral().getName() != null && task.getGeneral().getName().getValue() != null && task.getGeneral().getName().getValue().length() > 0) { taskName = task.getGeneral().getName().getValue(); } } return taskName; }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), executionSet.hashCode()); }
@Override public SVGShapeView<?> newViewInstance(final BPMNSVGViewFactory factory, final BaseTask task) { return newViewInstance(Optional.ofNullable(task.getDimensionsSet().getWidth()), Optional.ofNullable(task.getDimensionsSet().getHeight()), VIEW_RESOURCES.getResource(factory, task)); }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), executionSet.hashCode()); }
@Override public SizeHandler<BaseTask, SVGShapeView> newSizeHandler() { return newSizeHandlerBuilder() .width(task -> task.getDimensionsSet().getWidth().getValue()) .height(task -> task.getDimensionsSet().getHeight().getValue()) .minWidth(task -> 50d) .maxWidth(task -> 400d) .minHeight(task -> 50d) .maxHeight(task -> 400d) .build(); }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), executionSet.hashCode()); }
@Override public boolean equals(Object o) { if (o instanceof ScriptTask) { ScriptTask other = (ScriptTask) o; return super.equals(other) && executionSet.equals(other.executionSet); } return false; } }
@Override public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), executionSet.hashCode(), dataIOSet.hashCode()); }
@Override public boolean equals(Object o) { if (o instanceof UserTask) { UserTask other = (UserTask) o; return super.equals(other) && executionSet.equals(other.executionSet); } return false; } }
@Override public boolean equals(Object o) { if (o instanceof BusinessRuleTask) { BusinessRuleTask other = (BusinessRuleTask) o; return super.equals(other) && executionSet.equals(other.executionSet) && dataIOSet.equals(other.dataIOSet); } return false; } }