Class PayloadPropertyWorkflowIdProvider
java.lang.Object
io.axoniq.framework.workflow.runtime.execution.PayloadPropertyWorkflowIdProvider
- All Implemented Interfaces:
WorkflowIdProvider,Function<EventMessage,String>
Workflow id provider accessing event message property.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
ConstructorsConstructorDescriptionPayloadPropertyWorkflowIdProvider(String attributeName) Constructs id provider.PayloadPropertyWorkflowIdProvider(String attributeName, UnaryOperator<String> idProcessor) Constructs id provider. -
Method Summary
Modifier and TypeMethodDescriptionapply(EventMessage eventMessage) fromPayloadAttribute(Configuration configuration, String attributeName, UnaryOperator<String> customizer)
-
Constructor Details
-
PayloadPropertyWorkflowIdProvider
Constructs id provider.- Parameters:
attributeName- name of the payload attribute.
-
PayloadPropertyWorkflowIdProvider
Constructs id provider.- Parameters:
attributeName- name of the payload attribute.idProcessor- processor called on the result of attribute extractor.
-
-
Method Details
-
fromPayloadAttribute
public static PayloadPropertyWorkflowIdProvider fromPayloadAttribute(Configuration configuration, String attributeName, UnaryOperator<String> customizer) -
apply
- Specified by:
applyin interfaceFunction<EventMessage,String>
-