Azure plug-in structure
In this topic you can find information about configuring AzureEvents event sources and AzureEvents event conditions.
Configuring a Azure event source
A ServiceBusQueue event source that receives Azure event types can be configured in
the following way:
- connectionString
-
- Type: string
- minlength: 1
- maxlength: 1000
- isPassword
- Required*
- namespace
-
- Type: string
- minlength: 1
- maxlength: 1000
- Required*
Note: While neither the connectionString
or namespace values are individually required, you need to
provide at least one of them.
- queueName
-
- Type: string
- minlength: 1
- maxlength: 1000
- Required
Example
The following is an example of a generic type event source configured to receive
Azure event types:
$eventsource
EVENT_SOURCE /Azure1
DESCRIPTION "Azure testing"
PLUGIN AzureEvents
TYPE ServiceBusQueueEvent
CONFIGURATION {
"connectionString": "connectionStringvalue",
"namespace": "namespacevalue",
"queueName": "queueNamevalue",
}
ENDAzure event condition
Azure event type conditions can be configured in workflows specifying
the following required properties:
- NameRestriction: If you want to start the event condition name with the prefix "in", ensure that the name is enclosed within double quotes.
- Type
- Event source
Note: When defining event conditions, all the relative
fields are case insensitive
You can also specify any number of
properties that filter the events received from the event source:- Message
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- contentType
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- partitionKey
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- messageId
- Filtering allowed
- Subject
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- correlationId
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- to
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- applicationProperties
- Type: map
- Operator:
KEY_VALUE("keyvalue") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: false
- Case sensitive: false
- replyTo
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- enqueuedSequenceNumber
- Filtering allowed
- expireAt
- Filtering allowed
- timeToLive
- Filtering allowed
- State
- Type: string
- Operator:
EQ("=")orNE("!=") - minlength: 1
- maxlength: 1000
- Wildcard allowed: true
- Multiple filters: false
- Single predicate: true
- Case sensitive: false
- scheduledEnqueueTime
- Filtering allowed
- sequenceNumber
-
- Filtering allowed
Example
The following is an example of a workflow with two
Azure event conditions:
$jobstream
WORKFLOW /WS_AGT_1#/WF_EVT_TRIGGER_AZURE
DESCRIPTION "Event driven workflow azure"
TRIGGER TRIGGER_2 DESCRIPTION "Sample event trigger" TIMEOUT PT1M CONDITIONS
NAME EC_AZURE TYPE "AzureEvents/ServiceBusQueueEvent" SOURCE /AZURE1 FILTERS partitionKey = keyExample
NAME EC_AZURE2 TYPE "AzureEvents/ServiceBusQueueEvent" SOURCE /AZURE1 FILTERS message = hello
ENDTRIGGER
:
END