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

io.camunda.operate.webapp.reader.FlowNodeInstanceReader Maven / Gradle / Ivy

The newest version!
/*
 * 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.reader;

import io.camunda.operate.entities.FlowNodeInstanceEntity;
import io.camunda.operate.entities.FlowNodeState;
import io.camunda.operate.webapp.rest.dto.FlowNodeStatisticsDto;
import io.camunda.operate.webapp.rest.dto.activity.FlowNodeInstanceRequestDto;
import io.camunda.operate.webapp.rest.dto.activity.FlowNodeInstanceResponseDto;
import io.camunda.operate.webapp.rest.dto.activity.FlowNodeStateDto;
import io.camunda.operate.webapp.rest.dto.metadata.FlowNodeMetadataDto;
import io.camunda.operate.webapp.rest.dto.metadata.FlowNodeMetadataRequestDto;
import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface FlowNodeInstanceReader {

  String NUMBER_OF_INCIDENTS_FOR_TREE_PATH = "numberOfIncidentsForTreePath";
  String AGG_INCIDENT_PATHS = "aggIncidentPaths";
  String AGG_INCIDENTS = "incidents";
  String AGG_RUNNING_PARENT = "running";
  String LEVELS_AGG_NAME = "levelsAgg";
  String LEVELS_TOP_HITS_AGG_NAME = "levelsTopHitsAgg";
  String FINISHED_FLOW_NODES_BUCKETS_AGG_NAME = "finishedFlowNodesBuckets";
  String FLOW_NODE_ID_AGG = "flowNodeIdAgg";
  String COUNT_INCIDENT = "countIncident";
  String COUNT_CANCELED = "countCanceled";
  String COUNT_COMPLETED = "countCompleted";
  String COUNT_ACTIVE = "countActive";

  Map getFlowNodeInstances(FlowNodeInstanceRequestDto request);

  FlowNodeMetadataDto getFlowNodeMetadata(
      String processInstanceId, FlowNodeMetadataRequestDto request);

  Map getFlowNodeStates(String processInstanceId);

  List getFlowNodeInstanceKeysByIdAndStates(
      Long processInstanceId, String flowNodeId, List states);

  Collection getFlowNodeStatisticsForProcessInstance(Long processInstanceId);

  List getAllFlowNodeInstances(Long processInstanceKey);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy