Class ConversationHolderImpl
java.lang.Object
com.flowable.engage.engine.impl.conversation.ConversationHolderImpl
- All Implemented Interfaces:
ConversationHolder
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConversationHolderImpl
(Conversation conversation, boolean newConversation) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationHolderImpl
forNewConversation
(Conversation conversation) static ConversationHolderImpl
forReusedConversation
(Conversation conversation) Returns the underlying conversation this holder is built with.boolean
If 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:ConversationHolder
Returns the underlying conversation this holder is built with.- Specified by:
getConversation
in interfaceConversationHolder
- Returns:
- the conversation object
-
isNewConversation
public boolean isNewConversation()Description copied from interface:ConversationHolder
If this conversation was newly created, this method returnstrue
, for an existing one, it will returnfalse
.- Specified by:
isNewConversation
in interfaceConversationHolder
- Returns:
true
for a newly created conversation,false
otherwise
-
forNewConversation
-
forReusedConversation
-