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>inboundErrorHandlersprotected 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 InboundErrorHandlergetErrorHandler(String externalSystemId)Get the inbound error handler responsible for the givenexternalSystemId.InboundStatusHandlergetStatusHandler(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:InboundServiceGet 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:
getStatusHandlerin 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:InboundServiceGet 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:
getErrorHandlerin interfaceInboundService- Parameters:
externalSystemId- the id of the external system- Returns:
- the error handler for the given system, never
null
-
-