Class InboundServiceImpl
- java.lang.Object
-
- com.flowable.engage.external.system.service.InboundServiceImpl
-
- All Implemented Interfaces:
InboundService
public class InboundServiceImpl extends Object implements InboundService
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,InboundErrorHandler>
inboundErrorHandlers
protected Map<String,InboundStatusHandler>
inboundStatusHandlers
-
Constructor Summary
Constructors Constructor Description InboundServiceImpl(List<InboundStatusHandler> inboundStatusHandlers, List<InboundErrorHandler> inboundErrorHandlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InboundErrorHandler
getErrorHandler(String externalSystemId)
Get the inbound error handler responsible for the givenexternalSystemId
.InboundStatusHandler
getStatusHandler(String externalSystemId)
Get the inbound status handler responsible for the givenexternalSystemId
.
-
-
-
Field Detail
-
inboundStatusHandlers
protected final Map<String,InboundStatusHandler> inboundStatusHandlers
-
inboundErrorHandlers
protected final Map<String,InboundErrorHandler> inboundErrorHandlers
-
-
Constructor Detail
-
InboundServiceImpl
public InboundServiceImpl(List<InboundStatusHandler> inboundStatusHandlers, List<InboundErrorHandler> inboundErrorHandlers)
-
-
Method Detail
-
getStatusHandler
public InboundStatusHandler getStatusHandler(String externalSystemId)
Description copied from interface:InboundService
Get the inbound status handler responsible for the givenexternalSystemId
. If there is no status handler then either a default one should be returned or an exception thrown.- Specified by:
getStatusHandler
in interfaceInboundService
- Parameters:
externalSystemId
- the id of the external system- Returns:
- the status handler for the given system, never
null
-
getErrorHandler
public InboundErrorHandler getErrorHandler(String externalSystemId)
Description copied from interface:InboundService
Get the inbound error handler responsible for the givenexternalSystemId
. If there is no error handler then either a default one should be returned or an exception thrown.- Specified by:
getErrorHandler
in interfaceInboundService
- Parameters:
externalSystemId
- the id of the external system- Returns:
- the error handler for the given system, never
null
-
-