Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.settings.modules/DispatcherSettingsBuilder/setMappings

setMappings

fun setMappings(mappings: M.() -> Unit): T

Set the mappings for this module.

Mappings will only be used if the module is a Dispatcher. When defined only mapped variables will be passed to the Dispatcher.

Basic usage is very simple:

setMappings {
mapFrom("input1", "destination1")
mapFrom("input2", "destination2")
}
Content copied to clipboard

For more complex use cases you can leverage the optional methods on Mappings.VariableOptions

setMappings {
mapFrom(JsonPath["container"]["input1"], JsonPath["otherContainer"]["destination"])
.ifValueEquals("value")
}
Content copied to clipboard

Parameters

mappings

: A lambda used to configure the mappings to be applied to each Dispatch before sending it to the Dispatcher.


fun setMappings(mappings: Callback<M>): T

Set the mappings for this module.

Mappings will only be used if the module is a Dispatcher. When defined only mapped variables will be passed to the Dispatcher.

Basic usage is very simple:

setMappings(m -> {
m.mapFrom("input1", "destination1");
m.mapFrom("input2", "destination2");
});
Content copied to clipboard

For more complex use cases you can leverage the optional methods on Mappings.VariableOptions

setMappings(m -> {
m.mapFrom(m.path("container").key("input1"), m.path("otherContainer").key("destination"))
.ifValueEquals("value");
});
Content copied to clipboard

Parameters

mappings

: A lambda used to configure the mappings to be applied to each Dispatch before sending it to the Dispatcher.

Generated by Dokka
(c) Tealium 2026