Class ConversationHolderImpl
java.lang.Object
com.flowable.engage.engine.impl.conversation.ConversationHolderImpl
- All Implemented Interfaces:
ConversationHolder
public class ConversationHolderImpl extends java.lang.Object implements ConversationHolder
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected Conversation
conversation
protected boolean
newConversation
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConversationHolderImpl(Conversation conversation, boolean newConversation)
-
Method Summary
Modifier and Type Method Description static ConversationHolderImpl
forNewConversation(Conversation conversation)
static ConversationHolderImpl
forReusedConversation(Conversation conversation)
Conversation
getConversation()
Returns the underlying conversation this holder is built with.boolean
isNewConversation()
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
-
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
-