actreturn

package
v0.5.2-rc2 Latest Latest
Warning

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

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

README

flogo-return

This activity provides your flogo action/flow the ability to return immediately and set output values.

Installation

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

Schema

Input and Output:

{
  "input":[
    {
      "name": "mappings",
      "type": "array",
      "required": true
    }
  ],
  "output": [
  ]
}

Settings

Setting Description
mappings The mappings to the action/flow ouputs

Configuration Examples

Simple

Configure a activity to return and set the output values to literals "1" and 2.

{
  "id": "reply",
  "type": 1,
  "ref": "github.com/TIBCOSoftware/flogo-contrib/activity/actreturn",
  "name": "Reply",
  "input": { 
  	"mappings":[
      { "type": 2, "value": "1", "mapTo": "Output1" },
      { "type": 2, "value": 2, "mapTo": "Output2" }
    ]
  }
}

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 ReturnActivity

Types

type ReturnActivity

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

ReturnActivity is an Activity that is used to return/return via the trigger inputs : {method,uri,params} outputs: {result}

func (*ReturnActivity) Eval

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

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

func (*ReturnActivity) Metadata

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