public interface InboundChannelModelBuilder
InboundChannelModel instance,
which represents a channel from the 'outside world' to receive events.
An inbound channel consists of the following parts:
- An adapter that defines how/where the events are received, each with specific configurations.
- An event processing pipeline, which transforms the incoming event and extracts data and metadata:
- deserialization (from the 'raw' event to something else)
- event key detection: detects the 'key' which will define the EventModel to be used.
- tenant detection (only relevant when using multi-tenant): detects a 'tenantId' which is used to determine
the correct EventDefinition.
- payload extraction: with the EventModel determined,
the definition is used to extract the payload from the event data.
- transformation: transforms the event to an internal representation,
ready to be passed to the EventRegistry.
- (Optionally) custom steps (or override any of the above)| Modifier and Type | Method and Description |
|---|---|
InboundChannelModelBuilder |
category(String category)
Set the category for the channel deployment.
|
InboundChannelModelBuilder.InboundEventProcessingPipelineBuilder |
channelAdapter(String delegateExpression)
Sets a custom
InboundEventChannelAdapter via a delegate expression. |
EventDeployment |
deploy()
Creates the
InboundChannelModel instance based on the configuration
and registers it with the EventRepositoryService. |
InboundChannelModelBuilder |
deploymentName(String deploymentName)
Set the name for the channel deployment.
|
InboundChannelModelBuilder |
deploymentTenantId(String deploymentTenantId)
Set the tenant id for the channel deployment.
|
InboundChannelModelBuilder.InboundJmsChannelBuilder |
jmsChannelAdapter(String destinationName)
Configures an adapter which will receive events using JMS.
|
InboundChannelModelBuilder.InboundKafkaChannelBuilder |
kafkaChannelAdapter(String topic)
Configures an adapter which receives events using Kafka.
|
InboundChannelModelBuilder |
key(String key)
Each channel needs to have a unique key to identity it.
|
InboundChannelModelBuilder |
parentDeploymentId(String parentDeploymentId)
Set the parent deployment id for the channel deployment.
|
InboundChannelModelBuilder.InboundRabbitChannelBuilder |
rabbitChannelAdapter(String queue)
Configures an adapter which will receive events using a RabbitMQ.
|
InboundChannelModelBuilder |
resourceName(String resourceName)
Set the resource name for the channel model.
|
InboundChannelModelBuilder key(String key)
InboundChannelModelBuilder deploymentName(String deploymentName)
InboundChannelModelBuilder resourceName(String resourceName)
InboundChannelModelBuilder category(String category)
InboundChannelModelBuilder deploymentTenantId(String deploymentTenantId)
InboundChannelModelBuilder parentDeploymentId(String parentDeploymentId)
InboundChannelModelBuilder.InboundEventProcessingPipelineBuilder channelAdapter(String delegateExpression)
InboundEventChannelAdapter via a delegate expression.InboundChannelModelBuilder.InboundJmsChannelBuilder jmsChannelAdapter(String destinationName)
InboundChannelModelBuilder.InboundRabbitChannelBuilder rabbitChannelAdapter(String queue)
InboundChannelModelBuilder.InboundKafkaChannelBuilder kafkaChannelAdapter(String topic)
EventDeployment deploy()
InboundChannelModel instance based on the configuration
and registers it with the EventRepositoryService.Copyright © 2022 Flowable. All rights reserved.