actreply

package module
v0.0.0-...-d725791 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Reply

This activity allows you to reply to a trigger invocation and map output values. After replying to the trigger, this activity will allow the action to continue further.

Installation

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

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": "reply",
  "name": "Reply",
  "description": "Simple Reply Activity",
  "activity": {
    "ref": "github.com/project-flogo/contrib/activity/actreply",
    "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 reply/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,required"` // 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