Class ConversationHolderImpl
java.lang.Object
com.flowable.engage.engine.impl.conversation.ConversationHolderImpl
- All Implemented Interfaces:
ConversationHolder
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConversationHolderImpl(Conversation conversation, boolean newConversation) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationHolderImplforNewConversation(Conversation conversation) static ConversationHolderImplforReusedConversation(Conversation conversation) Returns the underlying conversation this holder is built with.booleanIf this conversation was newly created, this method returnstrue, for an existing one, it will returnfalse.
-
Field Details
-
conversation
-
newConversation
protected final boolean newConversation
-
-
Constructor Details
-
ConversationHolderImpl
-
-
Method Details
-
getConversation
Description copied from interface:ConversationHolderReturns the underlying conversation this holder is built with.- Specified by:
getConversationin interfaceConversationHolder- Returns:
- the conversation object
-
isNewConversation
public boolean isNewConversation()Description copied from interface:ConversationHolderIf this conversation was newly created, this method returnstrue, for an existing one, it will returnfalse.- Specified by:
isNewConversationin interfaceConversationHolder- Returns:
truefor a newly created conversation,falseotherwise
-
forNewConversation
-
forReusedConversation
-