All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.camunda.operate.webapp.rest.dto.activity.FlowNodeInstanceResponseDto Maven / Gradle / Ivy

/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Camunda License 1.0. You may not use this file
 * except in compliance with the Camunda License 1.0.
 */
package io.camunda.operate.webapp.rest.dto.activity;

import java.util.List;
import java.util.Objects;

/** Represents the list of flow node instances - direct children of one parent. */
public class FlowNodeInstanceResponseDto {

  private Boolean isRunning;
  private List children;

  public FlowNodeInstanceResponseDto() {}

  public FlowNodeInstanceResponseDto(
      final Boolean running, final List children) {
    this.isRunning = running;
    this.children = children;
  }

  public List getChildren() {
    return children;
  }

  public FlowNodeInstanceResponseDto setChildren(final List children) {
    this.children = children;
    return this;
  }

  /**
   * @return true when instances parent is still running. False otherwise.
   */
  public Boolean getRunning() {
    return isRunning;
  }

  public FlowNodeInstanceResponseDto setRunning(final Boolean running) {
    isRunning = running;
    return this;
  }

  @Override
  public int hashCode() {
    return Objects.hash(isRunning, children);
  }

  @Override
  public boolean equals(final Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    final FlowNodeInstanceResponseDto that = (FlowNodeInstanceResponseDto) o;
    return Objects.equals(isRunning, that.isRunning) && Objects.equals(children, that.children);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy