예제 #1
0
 /**
  * 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());
 }
예제 #2
0
 @Override
 protected void cloneInto(WorkflowBean clone, Cloning cloning) {
   BlockingControlLink cloneLink = (BlockingControlLink) clone;
   cloneLink.setBlock(cloning.cloneOrOriginal(getBlock()));
   cloneLink.setUntilFinished(cloning.cloneOrOriginal(getUntilFinished()));
 }