Exemple #1
0
  public ElementStage(FlowProcess flowProcess, FlowElement flowElement) {
    this.flowElement = flowElement;

    FlowElement element = flowElement;

    while (element != null) {
      if (element.hasConfigDef())
        flowProcess = new ElementFlowProcess(flowProcess, element.getConfigDef());

      if (element instanceof Pipe) element = ((Pipe) element).getParent();
      else element = null;
    }

    this.flowProcess = flowProcess;
  }
Exemple #2
0
  @Override
  public boolean isEquivalentTo(FlowElement element) {
    if (element == null) return false;

    if (this == element) return true;

    return getClass() == element.getClass();
  }