Class BaseInboundStatusHandler
- java.lang.Object
-
- com.flowable.engage.external.system.common.BaseInboundStatusHandler
-
- All Implemented Interfaces:
InboundStatusHandler
- Direct Known Subclasses:
LineInboundStatusHandler,WeChatInboundStatusHandler,WhatsAppInboundStatusHandler
public abstract class BaseInboundStatusHandler extends Object implements InboundStatusHandler
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringexternalSystemId
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseInboundStatusHandler(String externalSystemId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetExternalSystemId()Returns the id of the external system implemented by this handler.protected abstract voidhandleExternalStatus(InboundStatusDto status)protected abstract voidhandleInternalStatus(InboundStatusDto status)voidhandleStatus(InboundStatusDto status)Handle the received status from the external adapterprotected abstract voidhandleUnknownStatus(InboundStatusDto status)
-
-
-
Field Detail
-
externalSystemId
protected final String externalSystemId
-
-
Constructor Detail
-
BaseInboundStatusHandler
protected BaseInboundStatusHandler(String externalSystemId)
-
-
Method Detail
-
getExternalSystemId
public final String getExternalSystemId()
Description copied from interface:InboundStatusHandlerReturns the id of the external system implemented by this handler.- Specified by:
getExternalSystemIdin interfaceInboundStatusHandler- Returns:
- the external system id implemented by this handler
-
handleStatus
public void handleStatus(InboundStatusDto status)
Description copied from interface:InboundStatusHandlerHandle the received status from the external adapter- Specified by:
handleStatusin interfaceInboundStatusHandler- Parameters:
status- the status from the external adapter
-
handleInternalStatus
protected abstract void handleInternalStatus(InboundStatusDto status)
-
handleExternalStatus
protected abstract void handleExternalStatus(InboundStatusDto status)
-
handleUnknownStatus
protected abstract void handleUnknownStatus(InboundStatusDto status)
-
-