Class StartConversationCmd
- java.lang.Object
-
- com.flowable.engage.engine.impl.cmd.StartConversationCmd
-
- All Implemented Interfaces:
Command<ConversationHolder>
public class StartConversationCmd extends Object implements Command<ConversationHolder>
- Author:
- Filip Hrisafov, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected ConversationBuilderImpl
conversationBuilder
protected boolean
reuse
-
Constructor Summary
Constructors Constructor Description StartConversationCmd(ConversationBuilderImpl conversationBuilder, boolean reuse)
-
Method Summary
-
-
-
Field Detail
-
conversationBuilder
protected final ConversationBuilderImpl conversationBuilder
-
reuse
protected final boolean reuse
-
-
Constructor Detail
-
StartConversationCmd
public StartConversationCmd(ConversationBuilderImpl conversationBuilder, boolean reuse)
-
-
Method Detail
-
execute
public ConversationHolder execute(CommandContext commandContext)
- Specified by:
execute
in interfaceCommand<ConversationHolder>
-
findReUsableConversation
protected Conversation findReUsableConversation(CommandContext commandContext)
-
startConversation
protected ConversationEntity startConversation(CommandContext commandContext, ConversationBuilderImpl conversationBuilder)
-
populateConversationRegistryEntries
protected void populateConversationRegistryEntries(CommandContext commandContext, ConversationEntity entity, List<IdentityLinkEntity> identityLinkEntities)
-
handleIdentityLinks
protected List<IdentityLinkEntity> handleIdentityLinks(CommandContext commandContext, ConversationEntity entity, ConversationBuilder builder)
-
createUserScope
protected IdentityLinkEntity createUserScope(IdentityLinkService identityLinkService, String conversationId, String userId, String type)
-
createGroupScope
protected IdentityLinkEntity createGroupScope(IdentityLinkService identityLinkService, String conversationId, String groupId, String type)
-
validateNewConversation
protected void validateNewConversation(CommandContext commandContext, ConversationEntity entity)
-
getParentConversation
protected Conversation getParentConversation(ConversationBuilder builder)
-
validateConversationTypes
protected void validateConversationTypes(String type)
-
validateChannelOrDesk
protected void validateChannelOrDesk(CommandContext commandContext, ConversationEntity conversationEntity)
-
-