error

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

README

tibco-rest

This activity provides your flogo application the ability to cause an explicit error in the flow.

Installation

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

Schema

Inputs and Outputs:

{
  "inputs":[
    {
      "name": "message",
      "type": "string"
    },
    {
      "name": "data",
      "type": "object"
    }
  ],
  "outputs": [
  ]
}

Settings

Setting Description
message The error message
data The error data

Configuration Examples

Configure a task in flow cause a simple error with a message:

{
  "id": 3,
  "type": 1,
  "activityType": "tibco-error",
  "name": "Throw Error",
  "attributes": [
    { "name": "message", "value": "Unexpected Threshold Value" }
  ]
}

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 ErrorActivity

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

ErrorActivity is an Activity that used to cause an explicit error in the flow inputs : {message,data} outputs: node

func (*ErrorActivity) Eval

func (a *ErrorActivity) Eval(context activity.Context) (done bool, err error)

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

func (*ErrorActivity) Metadata

func (a *ErrorActivity) 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