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>>
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CombineGlobalAndLocalPayloadReducerSingleton instance ofCombineGlobalAndLocalPayloadReducer.static final StringName ofCombineGlobalAndLocalPayloadReducerreducer. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
NAME
Name ofCombineGlobalAndLocalPayloadReducerreducer.- See Also:
-
INSTANCE
Singleton instance ofCombineGlobalAndLocalPayloadReducer.
-
-
Constructor Details
-
CombineGlobalAndLocalPayloadReducer
public CombineGlobalAndLocalPayloadReducer()
-
-
Method Details
-
apply
-
name
Description copied from interface:PayloadReducerRetrieves the name of the reducer.- Specified by:
namein interfacePayloadReducer- Returns:
- reducer name.
-