runaction

package module
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

README

RunAction

This activity allows you to run flogo actions.

Installation

Flogo CLI
flogo install github.com/AiRISTAFlowInc/fs-contrib/activity/runaction

Configuration

Settings
Name Type Description
actionRef string The 'ref' to the action to be run
actionSettings object The settings of the action
Input

The inputs for this activity should be the inputs for the action you are running

Output
Name Type Description
output object The output of the action.

Examples

The below example logs a message 'test message':

{
    "id": "cmlact",
    "ref": "github.com/AiRISTAFlowInc/fs-contrib/activity/runaction",
    "settings": {
        "actionRef": "github.com/AiRISTAFlowInc/fs-catalystml-flogo/action",
        "actionSettings": { "catalystMlURI" : "file://cml.json" }
    },
    "input": {
        "dataIn": "=$.result"
    }
}          

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
}

func (*Activity) Eval

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

Eval implements api.Activity.Eval - Logs the Message

func (*Activity) Metadata

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

Metadata returns the activity's metadata

type Output

type Output struct {
	Output map[string]interface{} `md:"output"` // The output of the action.
}

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

type Settings

type Settings struct {
	ActionRef      string                 `md:"actionRef,required"`      // The 'ref' to the action to be run
	ActionSettings map[string]interface{} `md:"actionSettings,required"` // The settings of the action
}

Jump to

Keyboard shortcuts

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