Package com.flowable.engage.engine.impl
Class ConversationDefinitionRegistrationBuilderImpl
java.lang.Object
com.flowable.engage.engine.impl.ConversationDefinitionRegistrationBuilderImpl
- All Implemented Interfaces:
ConversationDefinitionRegistrationBuilder
public class ConversationDefinitionRegistrationBuilderImpl
extends Object
implements ConversationDefinitionRegistrationBuilder
- Author:
- Tijs Rademakers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<ConversationDefinitionRegistrationObject>
protected final ConversationDefinitionServiceImpl
protected final com.fasterxml.jackson.databind.ObjectMapper
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionConversationDefinitionRegistrationBuilderImpl
(ConversationDefinitionServiceImpl conversationDefinitionService, CommandContext commandContext) -
Method Summary
Modifier and TypeMethodDescriptionaddInputStream
(String resourceName, InputStream inputStream) Register the static conversation definitions defined in theinputStream
with aresourceName
void
addModelObject
(com.fasterxml.jackson.databind.JsonNode modelNode) register()
Perform the registration of all registered definitions within the resourcesRegister the converations definitions with the giventenantId
-
Field Details
-
conversationDefinitionService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
conversationDefinitionModels
-
tenantId
-
-
Constructor Details
-
ConversationDefinitionRegistrationBuilderImpl
public ConversationDefinitionRegistrationBuilderImpl(ConversationDefinitionServiceImpl conversationDefinitionService, CommandContext commandContext)
-
-
Method Details
-
addInputStream
public ConversationDefinitionRegistrationBuilder addInputStream(String resourceName, InputStream inputStream) Description copied from interface:ConversationDefinitionRegistrationBuilder
Register the static conversation definitions defined in theinputStream
with aresourceName
- Specified by:
addInputStream
in interfaceConversationDefinitionRegistrationBuilder
- Parameters:
resourceName
- the name of the resourceinputStream
- the stream containing the conversation definition schema- Returns:
- the builder for chaining
-
addModelObject
- Throws:
IOException
-
tenantId
Description copied from interface:ConversationDefinitionRegistrationBuilder
Register the converations definitions with the giventenantId
- Specified by:
tenantId
in interfaceConversationDefinitionRegistrationBuilder
- Parameters:
tenantId
- the tenant id for the definitions
-
register
Description copied from interface:ConversationDefinitionRegistrationBuilder
Perform the registration of all registered definitions within the resources- Specified by:
register
in interfaceConversationDefinitionRegistrationBuilder
- Returns:
- the list of all registered
ConversationDefinition
(s)
-
getConversationDefinitionModels
-
getTenantId
-