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

org.camunda.community.migration.processInstance.client.Camunda7Client Maven / Gradle / Ivy

There is a newer version: 0.10.3
Show newest version
package org.camunda.community.migration.processInstance.client;

import java.util.Collection;
import java.util.List;
import org.camunda.community.migration.processInstance.dto.client.ActivityInstanceDto;
import org.camunda.community.migration.processInstance.dto.client.JobDefinitionDto;
import org.camunda.community.migration.processInstance.dto.client.ProcessDefinitionDto;
import org.camunda.community.migration.processInstance.dto.client.ProcessInstanceDto;
import org.camunda.community.migration.processInstance.dto.client.VariableInstanceDto;
import org.camunda.community.migration.processInstance.dto.client.VersionDto;
import org.camunda.community.migration.processInstance.dto.rest.JobDto;

public interface Camunda7Client {
  String BEAN_NAME = "camunda7Client";

  List getJobDefinitions(
      Camunda7JobType jobType,
      Camunda7JobConfiguration jobConfiguration,
      String processDefinitionId);

  void suspendJobDefinition(String jobDefinitionId, boolean suspended);

  VersionDto getVersion();

  void suspendProcessDefinitionById(String processDefinitionId, boolean suspended);

  ProcessInstanceDto getProcessInstance(String processInstanceId);

  ProcessDefinitionDto getProcessDefinition(String processDefinitionId);

  ActivityInstanceDto getActivityInstances(String processInstanceId);

  void cancelProcessInstance(String processInstanceId);

  void setVariable(String processInstanceId, String variableName, Object variableValue);

  List getProcessInstancesByProcessDefinition(String processDefinitionId);

  List getProcessInstancesByProcessDefinitionAndActivityIds(
      String processDefinitionId, Collection activityIds);

  ProcessDefinitionDto getLatestProcessDefinitionByKey(String processDefinitionKey);

  List getVariableInstances(String processInstanceId);

  List getJobs(String camunda7ProcessInstanceId);

  enum Camunda7JobType {
    ASYNC_CONTINUATION("async-continuation");
    private final String name;

    Camunda7JobType(String name) {
      this.name = name;
    }

    public String getName() {
      return name;
    }
  }

  enum Camunda7JobConfiguration {
    ASYNC_BEFORE("async-before");
    private final String name;

    Camunda7JobConfiguration(String name) {
      this.name = name;
    }

    public String getName() {
      return name;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy