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