reply

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

README


title: Reply (Legacy) weight: 4617

Reply (Legacy)

This activity has been deprecated and will be removed in a future release. Please use actreply or actreturn

Installation

Flogo Web

This activity comes out of the box with the Flogo Web UI

Flogo CLI

flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/reply

Schema

Inputs and Outputs:

{
  "input":[
    {
      "name": "code",
      "type": "integer",
      "required": true
    },
    {
      "name": "data",
      "type": "any"
    }
  ],
  "output": [
  ]
}

Settings

Setting Required Description
code True The response code to send back to the trigger
data False The response data to send back to the trigger

Examples

The below example responds with an HTTP success code.

{
  "id": 3,
  "type": 1,
  "activityType": "tibco-reply",
  "name": "Respond OK",
  "attributes": [
    { "name": "code", "value": 200 }
  ]
}

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 ReplyActivity

Types

type ReplyActivity

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

ReplyActivity is an Activity that is used to reply via the trigger inputs : {method,uri,params} outputs: {result} Deprecated

func (*ReplyActivity) Eval

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

Eval implements api.Activity.Eval - Invokes a REST Operation

func (*ReplyActivity) Metadata

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

Metadata returns the activity's metadata

Jump to

Keyboard shortcuts

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