channel

package
v0.5.8-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

README


title: Channel weight: 4603

Channel

This activity allows you to put a value on a named channel in the flogo engine.

Installation

Flogo CLI

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

Schema

Inputs and Outputs:

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

Settings

Setting Required Description
channel True The channel to put the value on

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new AppActivity

Types

type ChannelActivity

type ChannelActivity struct {
	// contains filtered or unexported fields
}

ChannelActivity is an Activity that is used to Channel a message to the console

func (*ChannelActivity) Eval

func (a *ChannelActivity) Eval(ctx activity.Context) (done bool, err error)

Eval implements api.Activity.Eval - Channels the Message

func (*ChannelActivity) Metadata

func (a *ChannelActivity) Metadata() *activity.Metadata

Metadata returns the activity's metadata

type Settings

type Settings struct {
	Channel string `md:"required"`
}

we can generate json from this! - we could also create a "validate-able" object from this

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL