@Service public class ProcessEventHandlerRegistrar extends Object
Constructor and Description |
---|
ProcessEventHandlerRegistrar() |
Modifier and Type | Method and Description |
---|---|
<T> void |
addHandler(String processId,
OutcomeMapper<T> mapper)
Adds handler for BPMN event.
|
public <T> void addHandler(String processId, OutcomeMapper<T> mapper)
T
- Expected result class. This class will be mapped from internal process result
(InternalProcessResult
) by mapper
processId
- BPMN process id event source. BPMN can have multiple executions of same process, this is
the id of the process that identifies the execution uniquely.mapper
- Mapper to transform internal event that is sent by BPMN to higher-level result, i.e. to
Result
that is expected by
an entrypoint that triggered the process.Copyright © 2020. All rights reserved.