This trigger provides your flogo application the ability to start an action via a named engine channel
flogo install github.com/project-flogo/contrib/trigger/channel
Name | Type | Description |
---|---|---|
channel | string | The internal engine channel - REQUIRED |
Name | Type | Description |
---|---|---|
data | any | The data pulled from the channel |
Triggers are configured via the triggers.json of your application. The following are some example configuration of the Channel Trigger.
Configure the Trigger to handle an event received on the 'test' channel
{
"triggers": [
{
"id": "flogo-channel",
"ref": "github.com/project-flogo/contrib/trigger/channel",
"handlers": [
{
"settings": {
"channel": "test"
},
"action": {
"ref": "github.com/project-flogo/flow",
"settings": {
"flowURI": "res://flow:testflow"
}
}
}
]
}
]
}
Note: a channel must be defined in the app in order to use it in a trigger or activity. A channel is specified by "<name>:<buffer size>"
"channels": [
"test:5"
]