Class ProcessDefinitionSearch

java.lang.Object
io.camunda.connector.runtime.inbound.importer.ProcessDefinitionSearch

public class ProcessDefinitionSearch extends Object
Stateful component that issues a process definition search based on the previous pagination index.
  • Constructor Details

    • ProcessDefinitionSearch

      public ProcessDefinitionSearch(io.camunda.operate.CamundaOperateClient camundaOperateClient)
  • Method Details

    • query

      public void query(Consumer<List<io.camunda.operate.dto.ProcessDefinition>> resultHandler)
    • fetchProcessInstancesWithVariables

      public List<io.camunda.connector.api.inbound.operate.ProcessInstance> fetchProcessInstancesWithVariables(Long processDefinitionKey)
      Fetches a list of process instances associated with a given process definition key, including the variables for each instance. The variables represent the current state of each process instance and may be updated over the lifetime of the instance.
      Parameters:
      processDefinitionKey - The unique identifier for the process definition to retrieve instances of.
      Returns:
      A list of ProcessInstance objects, each representing a process instance and its associated variables.
      Throws:
      RuntimeException - If an error occurs during the fetch operation.