Class OperateClientAdapterImpl

java.lang.Object
io.camunda.connector.runtime.inbound.operate.OperateClientAdapterImpl
All Implemented Interfaces:
OperateClientAdapter

public class OperateClientAdapterImpl extends Object implements OperateClientAdapter
  • 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:
      fetchActiveProcessInstanceKeyByDefinitionKeyAndElementId in interface OperateClientAdapter
      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 FlowNodeInstance objects.
      Throws:
      RuntimeException - If an error occurs during the fetch operation.
    • fetchVariablesByProcessInstanceKey

      public Map<String,Object> fetchVariablesByProcessInstanceKey(Long processInstanceKey)
      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:
      fetchVariablesByProcessInstanceKey in interface OperateClientAdapter
      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.