flow

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: BSD-3-Clause Imports: 20 Imported by: 0

README

Flows is a simple process flow action for the Project Flogo Ecosystem

Flogo Flow

License

Flogo source code in this repository is under a BSD-style license, refer to LICENSE

Documentation

Index

Constants

View Source
const (
	EnvFlowRecord = "FLOGO_FLOW_RECORD"
)

Variables

This section is empty.

Functions

func SetExtensionProvider

func SetExtensionProvider(provider ExtensionProvider)

Types

type ActionFactory

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

func (*ActionFactory) Initialize

func (f *ActionFactory) Initialize(ctx action.InitContext) error

func (*ActionFactory) New

func (f *ActionFactory) New(config *action.Config) (action.Action, error)

type DefaultExtensionProvider

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

ExtensionProvider is the extension provider for the flow action

func NewDefaultExtensionProvider

func NewDefaultExtensionProvider() *DefaultExtensionProvider

func (*DefaultExtensionProvider) GetDefaultFlowModel

func (fp *DefaultExtensionProvider) GetDefaultFlowModel() *model.FlowModel

func (*DefaultExtensionProvider) GetFlowProvider

func (fp *DefaultExtensionProvider) GetFlowProvider() definition.Provider

func (*DefaultExtensionProvider) GetFlowTester

func (fp *DefaultExtensionProvider) GetFlowTester() *tester.RestEngineTester

todo make FlowTester an interface

func (*DefaultExtensionProvider) GetScriptExprFactory

func (fp *DefaultExtensionProvider) GetScriptExprFactory() expression.Factory

func (*DefaultExtensionProvider) GetStateRecorder

func (fp *DefaultExtensionProvider) GetStateRecorder() instance.StateRecorder

type ExtensionProvider

type ExtensionProvider interface {
	GetStateRecorder() instance.StateRecorder
	GetFlowTester() *tester.RestEngineTester

	GetDefaultFlowModel() *model.FlowModel
	GetFlowProvider() definition.Provider
}

Provides the different extension points to the FlowBehavior Action

type FlowAction

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

func (*FlowAction) IOMetadata

func (fa *FlowAction) IOMetadata() *metadata.IOMetadata

func (*FlowAction) Info

func (fa *FlowAction) Info() *action.Info

func (*FlowAction) Metadata

func (fa *FlowAction) Metadata() *action.Metadata

Metadata get the Action's metadata

func (*FlowAction) Run

func (fa *FlowAction) Run(context context.Context, inputs map[string]interface{}, handler action.ResultHandler) error

Run implements action.Action.Run

type Settings

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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