Class ProcessDefinitionSearch
java.lang.Object
io.camunda.connector.runtime.inbound.importer.ProcessDefinitionSearch
Stateful component that issues a process definition search based on the previous pagination
index.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessDefinitionSearch(io.camunda.operate.CamundaOperateClient camundaOperateClient) -
Method Summary
Modifier and TypeMethodDescriptionList<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.void
-
Constructor Details
-
ProcessDefinitionSearch
public ProcessDefinitionSearch(io.camunda.operate.CamundaOperateClient camundaOperateClient)
-
-
Method Details
-
query
-
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
ProcessInstanceobjects, each representing a process instance and its associated variables. - Throws:
RuntimeException- If an error occurs during the fetch operation.
-