Class CombineGlobalAndLocalPayloadReducer

java.lang.Object
io.axoniq.framework.workflow.runtime.execution.payload.CombineGlobalAndLocalPayloadReducer
All Implemented Interfaces:
PayloadReducer, BiFunction<Map<String,@Nullable Object>,Map<String,@Nullable Object>,Map<String,@Nullable Object>>

public class CombineGlobalAndLocalPayloadReducer extends Object implements PayloadReducer
Combines two payloads into one. Takes all values from the first payload (workflow context) and adds the values of the second (local), overwriting any duplicates. Usage of this reducer as a parameter reducer allows accessing all workflow context variables directly. Usage of this reducer as a result reducer writes all results back into the workflow context.
Since:
5.4.0
Author:
Simon Zambrovski