Class InboundPropertyHandler

java.lang.Object
io.camunda.connector.runtime.core.inbound.InboundPropertyHandler

public class InboundPropertyHandler extends Object
  • Constructor Details

    • InboundPropertyHandler

      public InboundPropertyHandler()
  • Method Details

    • readWrappedProperties

      public static Map<String,Object> readWrappedProperties(Map<String,String> unwrappedProperties)
      Converts a map of properties with keys containing dots into a nested map.

      Example:

      {"foo.alpha": "a", "foo.beta": "b"}
      will be converted to
      {"foo": {"alpha": "a", "beta": "b"}}

      This is needed to convert inbound connector properties into a format similar to the one used by Zeebe to provide the outbound connector variables. Thanks to this conversion, the Runtime can handle inbound and outbound connectors in a similar way.

      Parameters:
      unwrappedProperties - map of properties with composite keys containing dots
      Returns:
      nested map of properties