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 void
handleNotPassedStatus(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
protected void
handleStatusPassed(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
void
postProcess(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
Post process the temporary message with the result.protected void
temporaryMessageProcessed(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
-
-
-
Method Detail
-
postProcess
public void postProcess(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
Description copied from interface:TemporaryMessageHandler
Post process the temporary message with the result.Post processing usually means that if the processing status is
valid
to 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
valid
an error message can be sent to the conversation, or something similar.- Specified by:
postProcess
in 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)
-
-