Class OperateClientAdapterImpl
java.lang.Object
io.camunda.connector.runtime.inbound.operate.OperateClientAdapterImpl
- All Implemented Interfaces:
OperateClientAdapter
-
Constructor Summary
ConstructorsConstructorDescriptionOperateClientAdapterImpl(io.camunda.operate.CamundaOperateClient camundaOperateClient, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionList<io.camunda.operate.model.FlowNodeInstance> fetchActiveProcessInstanceKeyByDefinitionKeyAndElementId(Long processDefinitionKey, String elementId) Fetches a list of 'ACTIVE' flow node instances associated with a given process definition key and element ID.fetchVariablesByProcessInstanceKey(Long processInstanceKey) Fetches the variables associated with a given active process instance identified by its key.
-
Constructor Details
-
OperateClientAdapterImpl
public OperateClientAdapterImpl(io.camunda.operate.CamundaOperateClient camundaOperateClient, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
fetchActiveProcessInstanceKeyByDefinitionKeyAndElementId
public List<io.camunda.operate.model.FlowNodeInstance> fetchActiveProcessInstanceKeyByDefinitionKeyAndElementId(Long processDefinitionKey, String elementId) Fetches a list of 'ACTIVE' flow node instances associated with a given process definition key and element ID.- Specified by:
fetchActiveProcessInstanceKeyByDefinitionKeyAndElementIdin interfaceOperateClientAdapter- Parameters:
processDefinitionKey- The unique identifier for the process definition to retrieve flow node instances from.elementId- The identifier of the specific flow node element within the process definition.- Returns:
- A list of active
FlowNodeInstanceobjects. - Throws:
RuntimeException- If an error occurs during the fetch operation.
-
fetchVariablesByProcessInstanceKey
Fetches the variables associated with a given active process instance identified by its key. The variables are dynamic and may change over the lifetime of the process instance.- Specified by:
fetchVariablesByProcessInstanceKeyin interfaceOperateClientAdapter- Parameters:
processInstanceKey- The unique identifier for the active process instance to retrieve variables of.- Returns:
- A map containing the variables associated with the active process instance.
- Throws:
RuntimeException- If an error occurs during the fetch operation.
-