Class DigitalTwinAdapterInboundRoute.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • condition

        public DigitalTwinAdapterInboundRoute.Builder condition​(String condition)
        A boolean expression used to determine whether the following transformation should be processed for the incoming payload.

        This expression is typically based on fields defined at the inbound Envelope and is evaluated before applying the payloadMapping.

        Parameters:
        condition - the value to set
        Returns:
        this builder
      • payloadMapping

        public DigitalTwinAdapterInboundRoute.Builder payloadMapping​(Map<String,​String> payloadMapping)
        A set of key-value JQ expressions used to transform the incoming payload into a shape compatible with the digital twin model’s context or schema.

        The keys are target fields (in the digital twin model), and values are JQ expressions pointing to data in the reference payload.

        Example: Given payload: { "time": "", "temp": 65, "hum": 55 } And mapping: { "temperature": "$.temp", "humidity": "$.hum", "timeObserved": "$.time" } The output will be: { "temperature": 65, "humidity": 55, "timeObserved": "" }

        Parameters:
        payloadMapping - the value to set
        Returns:
        this builder