Exemplo n.º 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;
  }
Exemplo n.º 2
0
  @Override
  public boolean isEquivalentTo(FlowElement element) {
    if (element == null) return false;

    if (this == element) return true;

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