Channel

flogo-channel

This trigger provides your flogo application the ability to start an action via a named engine channel

Installation

flogo install github.com/TIBCOSoftware/flogo-contrib/trigger/channel

Schema

Settings, Outputs and Endpoint:

{
  "settings": [
  ],
  "output": [
    {
      "name": "value",
      "type": "any"
    }
  ],
  "handler": {
    "settings": [
      {
        "name": "channel",
        "type": "string",
        "required" : true
      }
    ]
  }
}

Settings

Handler:

Setting Description
channel The internal engine channel

Example Configurations

Triggers are configured via the triggers.json of your application. The following are some example configuration of the CHANNEL Trigger.

Run Flow

Configure the Trigger to handle an event recieved on the ‘test’ channel

{
  "triggers": [
    {
      "name": "flogo-channel",
      "channel": [
        {
          "settings": {
            "channel": "test"
          },
          "action": {
            "ref": "github.com/TIBCOSoftware/flogo-contrib/action/flow",
            "data": {
                "flowURI": "res://flow:testflow"
            }       
          }
        }
      ]
    }
  ]
}