actreturn

package module
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Return

This activity allows you to reply to a trigger invocation and map output values. After replying to the trigger, the flow ends (this will be the last actvity in your flow).

Installation

Flogo CLI
flogo install github.com/project-flogo/contrib/activity/actreturn

Configuration

Settings:
Name Type Description
mappings object Set of mappings to execute when the activity runs

Example

The below example allows you to configure the activity to reply and set the output values to literals "name" (a string) and 2 (an integer).

{
  "id": "return",
  "name": "Return",
  "activity": {
    "ref": "github.com/project-flogo/contrib/activity/actreturn",
    "settings": {
      "mappings": {
        "Output1":"name",
        "Output2":2
      }
    }
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Activity

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

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

func (*Activity) Eval

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

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

func (*Activity) Metadata

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

type Settings

type Settings struct {
	Mappings map[string]interface{} `md:"mappings"` // Set of mappings to execute when the activity runs
}

Jump to

Keyboard shortcuts

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