@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; BlockingControlLink other = (BlockingControlLink) obj; if (getUntilFinished() == null) { if (other.getUntilFinished() != null) return false; } else if (!getUntilFinished().equals(other.getUntilFinished())) return false; if (getParent() == null) { if (other.getParent() != null) return false; } else if (!getParent().equals(other.getParent())) return false; if (getBlock() == null) { if (other.getBlock() != null) return false; } else if (!getBlock().equals(other.getBlock())) return false; return true; }
} else if (bean instanceof BlockingControlLink) { BlockingControlLink runAfterCondition = (BlockingControlLink) bean; Workflow wf = runAfterCondition.getParent(); URI wfUri = uriForBean(wf);
@Override public void visitBlockingControlLink(BlockingControlLink bean) { // Also checks from Child Workflow parent = bean.getParent(); Processor block = bean.getBlock(); Processor untilFinished = bean.getUntilFinished(); // Check the block and untilFinished processors are in the same workflow if (block != null) { Workflow blockParent = block.getParent(); if ((parent == null) || !parent.equals(blockParent)) listener.outOfScopeValue(bean, "block", block); } if (untilFinished != null) { Workflow untilFinishedParent = untilFinished.getParent(); if ((parent == null) || !parent.equals(untilFinishedParent)) listener.outOfScopeValue(bean, "untilFinished", untilFinished); } // Check the block and untilFinished processors are specified if (checkComplete) { if (block == null) listener.nullField(bean, "block"); if (untilFinished == null) listener.nullField(bean, "untilFinished"); } }