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 IdentityLinkEntitycreateGroupScope(IdentityLinkService identityLinkService, String conversationId, String groupId, String type) protected IdentityLinkEntitycreateUserScope(IdentityLinkService identityLinkService, String conversationId, String userId, String type) execute(CommandContext commandContext) protected ConversationfindReUsableConversation(CommandContext commandContext) protected ConversationgetParentConversation(ConversationBuilder builder) protected List<IdentityLinkEntity>handleIdentityLinks(CommandContext commandContext, ConversationEntity entity, ConversationBuilder builder) protected voidpopulateConversationRegistryEntries(CommandContext commandContext, ConversationEntity entity, List<IdentityLinkEntity> identityLinkEntities) protected ConversationEntitystartConversation(CommandContext commandContext, ConversationBuilderImpl conversationBuilder) protected voidvalidateChannelOrDesk(CommandContext commandContext, ConversationEntity conversationEntity) protected voidprotected voidvalidateNewConversation(CommandContext commandContext, ConversationEntity entity)
-
Field Details
-
conversationBuilder
-
reuse
protected final boolean reuse
-
-
Constructor Details
-
StartConversationCmd
-
-
Method Details
-
execute
- Specified by:
executein 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)
-