Record Class ConnectorRequest

java.lang.Object
java.lang.Record
com.bonitasoft.processbuilder.execution.ConnectorRequest
Record Components:
configJson - The full PBConfiguration.configValue JSON (contains baseUrl, methods[], auth, etc.)
actionType - The FlowActionType key ("restApis", "notifications")
methodName - The method name to invoke from the methods[] array (NEW structure)
params - Runtime parameters for {{param}} substitution (query + path combined)
body - Optional request body override
headers - Optional additional headers
fieldMappingJson - Optional field mapping JSON for response transformation
timeoutMs - Optional timeout override (0 = use config default)
verifySsl - Optional SSL verification override (null = use config default)
methodOverride - Optional HTTP method override (e.g., "GET", "POST")
queryParams - Optional URL query parameters (appended to URL, distinct from template params)

public record ConnectorRequest(String configJson, String actionType, String methodName, Map<String,String> params, String body, Map<String,String> headers, String fieldMappingJson, int timeoutMs, Boolean verifySsl, String methodOverride, Map<String,String> queryParams) extends Record
Input request for the ConnectorExecutionEngine.

Encapsulates all the information needed to execute a REST call: the PBConfiguration JSON, the method to invoke, and runtime overrides.

  • Constructor Details

    • ConnectorRequest

      public ConnectorRequest(String configJson, String actionType, String methodName, Map<String,String> params, String body, Map<String,String> headers, String fieldMappingJson, int timeoutMs, Boolean verifySsl, String methodOverride, Map<String,String> queryParams)
      Creates an instance of a ConnectorRequest record class.
      Parameters:
      configJson - the value for the configJson record component
      actionType - the value for the actionType record component
      methodName - the value for the methodName record component
      params - the value for the params record component
      body - the value for the body record component
      headers - the value for the headers record component
      fieldMappingJson - the value for the fieldMappingJson record component
      timeoutMs - the value for the timeoutMs record component
      verifySsl - the value for the verifySsl record component
      methodOverride - the value for the methodOverride record component
      queryParams - the value for the queryParams record component
  • Method Details

    • builder

      public static ConnectorRequest.Builder builder(String configJson)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • configJson

      public String configJson()
      Returns the value of the configJson record component.
      Returns:
      the value of the configJson record component
    • actionType

      public String actionType()
      Returns the value of the actionType record component.
      Returns:
      the value of the actionType record component
    • methodName

      public String methodName()
      Returns the value of the methodName record component.
      Returns:
      the value of the methodName record component
    • params

      public Map<String,String> params()
      Returns the value of the params record component.
      Returns:
      the value of the params record component
    • body

      public String body()
      Returns the value of the body record component.
      Returns:
      the value of the body record component
    • headers

      public Map<String,String> headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component
    • fieldMappingJson

      public String fieldMappingJson()
      Returns the value of the fieldMappingJson record component.
      Returns:
      the value of the fieldMappingJson record component
    • timeoutMs

      public int timeoutMs()
      Returns the value of the timeoutMs record component.
      Returns:
      the value of the timeoutMs record component
    • verifySsl

      public Boolean verifySsl()
      Returns the value of the verifySsl record component.
      Returns:
      the value of the verifySsl record component
    • methodOverride

      public String methodOverride()
      Returns the value of the methodOverride record component.
      Returns:
      the value of the methodOverride record component
    • queryParams

      public Map<String,String> queryParams()
      Returns the value of the queryParams record component.
      Returns:
      the value of the queryParams record component