Class InboundServiceImpl
java.lang.Object
com.flowable.engage.external.system.service.InboundServiceImpl
- All Implemented Interfaces:
InboundService
public class InboundServiceImpl extends java.lang.Object implements InboundService
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,InboundErrorHandler>
inboundErrorHandlers
protected java.util.Map<java.lang.String,InboundStatusHandler>
inboundStatusHandlers
-
Constructor Summary
Constructors Constructor Description InboundServiceImpl(java.util.List<InboundStatusHandler> inboundStatusHandlers, java.util.List<InboundErrorHandler> inboundErrorHandlers)
-
Method Summary
Modifier and Type Method Description InboundErrorHandler
getErrorHandler(java.lang.String externalSystemId)
Get the inbound error handler responsible for the givenexternalSystemId
.InboundStatusHandler
getStatusHandler(java.lang.String externalSystemId)
Get the inbound status handler responsible for the givenexternalSystemId
.
-
Field Details
-
Constructor Details
-
InboundServiceImpl
public InboundServiceImpl(java.util.List<InboundStatusHandler> inboundStatusHandlers, java.util.List<InboundErrorHandler> inboundErrorHandlers)
-
-
Method Details
-
getStatusHandler
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
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
-