mapper

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: 3 Imported by: 0

README

flogo-mapper

This activity provides your flogo application the ability to map values on to the action/flow working attribute set.

Installation

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

Schema

Input and Output:

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

Settings

Setting Description
mappings The mappings to the action/flow working data

Configuration Examples

Simple

Configure a activity to set the flow attributes to literals "1" and 2.

{
  "id": "mapper",
  "type": 1,
  "ref": "github.com/TIBCOSoftware/flogo-contrib/activity/mapper",
  "name": "Mapper",
  "input": { 
  	"mappings":[
      { "type": 2, "value": "1", "mapTo": "FlowAttr1" },
      { "type": 2, "value": 2, "mapTo": "FlowAttr2" }
    ]
  }
}

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 MapperActivity

Types

type MapperActivity

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

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

func (*MapperActivity) Eval

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

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

func (*MapperActivity) Metadata

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