Package dev.dsf.bpe.v2.service
Interface TargetProvider.Builder
- Enclosing interface:
TargetProvider
public static interface TargetProvider.Builder
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfilter
(TargetProvider.Builder.Predicate predicate) Returns a builder consisting of the elements that match the given predicate.A correlationKey should be used if return messages i.e.Targets
without correlation key can be used when sending out multiple messages without expecting replies.
-
Method Details
-
withCorrelationKey
Targets withCorrelationKey()A correlationKey should be used if return messages i.e. Task resources from multiple organizations with the same message-name are expected in a following multi instance message receive task or intermediate message catch event in a multi instance subprocess.
Note: The correlationKey needs to be set as aBpmnExecutionVariables.CORRELATION_KEY
variable in the message receive task or intermediate message catch event of a subprocess before incoming messages i.e. Task resources can be correlated. Within a BPMN file this can be accomplished by setting an input variable with name:BpmnExecutionVariables.CORRELATION_KEY
, type:string or expression
, and value:${target.correlationKey}
.A correlationKey should also be used when sending a message i.e. Task resource back to an organization waiting for multiple returns.
- Returns:
Targets
including correlation keys- See Also:
-
withoutCorrelationKey
Targets withoutCorrelationKey()Targets
without correlation key can be used when sending out multiple messages without expecting replies.- Returns:
Targets
without correlation keys- See Also:
-
filter
Returns a builder consisting of the elements that match the given predicate. Anull
predicate will be ignored.- Parameters:
predicate
- may benull
- Returns:
- filtered builder
-