Class DefaultTemporaryMessageHandler
- java.lang.Object
-
- com.flowable.engage.engine.impl.message.temporary.DefaultTemporaryMessageHandler
-
- All Implemented Interfaces:
TemporaryMessageHandler
public class DefaultTemporaryMessageHandler extends Object implements TemporaryMessageHandler
- Author:
- Filip Hrisafov
-
-
Constructor Summary
Constructors Constructor Description DefaultTemporaryMessageHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleNotPassedStatus(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)protected voidhandleStatusPassed(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)voidpostProcess(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)Post process the temporary message with the result.protected voidtemporaryMessageProcessed(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
-
-
-
Method Detail
-
postProcess
public void postProcess(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
Description copied from interface:TemporaryMessageHandlerPost process the temporary message with the result.Post processing usually means that if the processing status is
validto post the the temporary message to an external system and depending on the system to post it to the conversation.In case the processing status is not
validan error message can be sent to the conversation, or something similar.- Specified by:
postProcessin interfaceTemporaryMessageHandler- Parameters:
temporaryMessage- the temporary message that should be handledprocessResult- the processing result from theTemporaryMessageProcessor
-
handleStatusPassed
protected void handleStatusPassed(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
-
handleNotPassedStatus
protected void handleNotPassedStatus(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
-
temporaryMessageProcessed
protected void temporaryMessageProcessed(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
-
-