@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (getUntilFinished() == null ? 0 : getUntilFinished().hashCode()); result = prime * result + (parent == null ? 0 : parent.hashCode()); result = prime * result + (getBlock() == null ? 0 : getBlock().hashCode()); return result; }
/** * Updates the workflow identifier. * <p> * The {@link #getCurrentRevision()} will be replaced using using * {@link #newRevision()}. * */ public void updateWorkflowIdentifier() { newRevision(); }
/** * Constructs a <code>BlockingControlLink</code> with the specified blocked and control <code>Processor</code>s. * <p> * The parent {@link Workflow} is set to be the same as the parent of the block <code>Processor</code>. * * @param block * the <code>Processor</code> that is blocked from starting. <strong>Must * not</strong> be <code>null</code> * @param untilFinished * the <code>Processor</code> that controls the block. Can be <code>null</code>. */ public BlockingControlLink(Processor block, Processor untilFinished) { setUntilFinished(untilFinished); setBlock(block); setParent(block.getParent()); }
@Override protected void cloneInto(WorkflowBean clone, Cloning cloning) { DataLink cloneLink = (DataLink)clone; cloneLink.setMergePosition(getMergePosition()); cloneLink.setReceivesFrom(cloning.cloneIfNotInCache(getReceivesFrom())); cloneLink.setSendsTo(cloning.cloneIfNotInCache(getSendsTo())); }
/** * Constructs a <code>DataLink</code> with the specified parent {@link Workflow} that connects * the specified {@link SenderPort} and {@link ReceiverPort}. * * @param parent * the <code>Workflow</code> to set as the <code>DataLink</code>'s parent. Can be * <code>null</code>. * @param senderPort * the <code>SenderPort</code> that the <code>DataLink</code> receives data from. Can * be <code>null</code>. * @param receiverPort * the <code>ReceiverPort</code> that the <code>DataLink</code> sends data to. Can be * <code>null</code>. */ public DataLink(Workflow parent, SenderPort senderPort, ReceiverPort receiverPort) { setReceivesFrom(senderPort); setSendsTo(receiverPort); setParent(parent); }
@Override public void setParent(Processor parent) { if (this.parent == parent) { return; } if (this.parent != null && this.parent.getIterationStrategyStack() == this) { this.parent.setIterationStrategyStack(null); } this.parent = parent; if (parent != null && parent.getIterationStrategyStack() != this) { parent.setIterationStrategyStack(this); } }
/** * Returns true if processor contains a nested workflow in any of its * activities in any of its profiles. */ public boolean containsNestedWorkflow(Processor processor) { for (Profile profile : processor.getParent().getParent().getProfiles()) { if (containsNestedWorkflow(processor, profile)) { return true; } } return false; }
@Override public void setParent(Workflow parent) { if (this.parent != null && this.parent != parent) { this.parent.getProcessors().remove(this); } this.parent = parent; if (parent != null) { parent.getProcessors().add(this); } }
/** * Constructs a <code>Processor</code> with the specified parent {@link Workflow} and name. * * @param parent * the <code>Workflow</code> to set as the <code>Processor</code>'s parent. Can be * <code>null</code>. * @param name * the name of the <code>Processor</code>. <strong>Must not</strong> be * <code>null</code> or an empty String. */ public Processor(Workflow parent, String name) { super(name); setParent(parent); }
@Override public void setParent(Workflow parent) { if (this.parent != null && this.parent != parent) { this.parent.getDataLinks().remove(this); } this.parent = parent; if (parent != null) { parent.getDataLinks().add(this); } }
public DummyWorkflow(WorkflowBundle parent) { super.setParent(parent); }
@Override public void setParent(Processor parent) { if (this.parent != null && this.parent != parent) { this.parent.getInputPorts().remove(this); } this.parent = parent; if (parent != null) { parent.getInputPorts().add(this); } }
@Override public void visitProcessor(Processor bean) { if (checkComplete) { if (bean.getIterationStrategyStack() == null) { listener.nullField(bean, "iterationStrategyStack"); } } }
@Override public void setParent(Workflow parent) { if (this.parent != null && this.parent != parent) { this.parent.getOutputPorts().remove(this); } this.parent = parent; if (parent != null) { parent.getOutputPorts().add(this); } }
@Override public void setParent(Workflow parent) { if (this.parent != null && this.parent != parent) { this.parent.getControlLinks().remove(this); } this.parent = parent; if (parent != null) { parent.getControlLinks().add(this); } }