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 Details

    • conversationBuilder

      protected final ConversationBuilderImpl 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 interface org.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

      protected org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity createUserScope(org.flowable.identitylink.service.IdentityLinkService identityLinkService, String conversationId, String userId, String type)
    • createGroupScope

      protected org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity createGroupScope(org.flowable.identitylink.service.IdentityLinkService identityLinkService, String conversationId, String groupId, String type)
    • validateNewConversation

      protected void validateNewConversation(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ConversationEntity entity)
    • getParentConversation

      protected Conversation getParentConversation(ConversationBuilder builder)
    • validateConversationTypes

      protected void validateConversationTypes(String type)
    • validateChannelOrDesk

      protected void validateChannelOrDesk(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, ConversationEntity conversationEntity)