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