setMappings
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")
}For more complex use cases you can leverage the optional methods on Mappings.VariableOptions
setMappings {
mapFrom(JsonPath["container"]["input1"], JsonPath["otherContainer"]["destination"])
.ifValueEquals("value")
}Parameters
: A lambda used to configure the mappings to be applied to each Dispatch before sending it to the Dispatcher.
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");
});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");
});Parameters
: A lambda used to configure the mappings to be applied to each Dispatch before sending it to the Dispatcher.