subflow

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

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

Go to latest
Published: Sep 9, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Subflow

This activity allows you to start a subflow.

Installation

Flogo Web

This activity comes out of the box with the Flogo Web UI

Flogo CLI
flogo install github.com/project-flogo/flow/activity/subflow

Metadata

{
  "settings":[
    {
      "name": "flowURI",
      "type": "string",
      "required": true
    }
  ]
}

The Input/Output metadata is determined from the Input/Output metadata of the sub-flow that is being executed

Settings

Setting Required Description
flowURI true The URI of the flow to execute

Examples

The below example executes "mysubflow" and set its input values to literals "foo" and "bar".

{
  "id": "RunSubFlow",
  "activity": {
    "ref": "github.com/project-flogo/flow/activity/subflow",
    "settings" : {
      "flowURI" : "res://flow:mysubflow"
    },
    "input": {
      "flowIn1":"foo",
      "flowIn2":"bar" 
    }
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Settings

type Settings struct {
	FlowURI string `md:"flowURI,required"`
}

type SubFlowActivity

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

SubFlowActivity is an Activity that is used to start a sub-flow, can only be used within the context of an flow settings: {flowURI} input : {sub-flow's input} output: {sub-flow's output}

func (*SubFlowActivity) Eval

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

Eval implements api.Activity.Eval

func (*SubFlowActivity) Metadata

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