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 java.lang.Object implements org.flowable.common.engine.impl.interceptor.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
Modifier and Type Method Description protected org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity
createGroupScope(org.flowable.identitylink.service.IdentityLinkService identityLinkService, java.lang.String conversationId, java.lang.String groupId, java.lang.String type)
protected org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity
createUserScope(org.flowable.identitylink.service.IdentityLinkService identityLinkService, java.lang.String conversationId, java.lang.String userId, java.lang.String type)
ConversationHolder
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 java.util.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, java.util.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
validateConversationTypes(java.lang.String type)
protected void
validateNewConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ConversationEntity entity)
-
Field Details
-
conversationBuilder
-
reuse
protected final boolean reuse
-
-
Constructor Details
-
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, java.util.List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> identityLinkEntities) -
handleIdentityLinks
protected java.util.List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> handleIdentityLinks(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ConversationEntity entity, ConversationBuilder builder) -
createUserScope
protected org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity createUserScope(org.flowable.identitylink.service.IdentityLinkService identityLinkService, java.lang.String conversationId, java.lang.String userId, java.lang.String type) -
createGroupScope
protected org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity createGroupScope(org.flowable.identitylink.service.IdentityLinkService identityLinkService, java.lang.String conversationId, java.lang.String groupId, java.lang.String type) -
validateNewConversation
protected void validateNewConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ConversationEntity entity) -
getParentConversation
-
validateConversationTypes
protected void validateConversationTypes(java.lang.String type) -
validateChannelOrDesk
protected void validateChannelOrDesk(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ConversationEntity conversationEntity)
-