flow

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FLOW_REF = "github.com/TIBCOSoftware/flogo-contrib/action/flow"

	ENV_FLOW_RECORD = "FLOGO_FLOW_RECORD"
)

Variables

This section is empty.

Functions

func GetFlowManager

func GetFlowManager() *support.FlowManager

func SetExtensionProvider

func SetExtensionProvider(provider ExtensionProvider)

Types

type ActionData

type ActionData struct {
	// The flow is a URI
	FlowURI string `json:"flowURI"`

	// The flow is embedded and uncompressed
	//DEPRECATED
	Flow json.RawMessage `json:"flow"`

	// The flow is a URI
	//DEPRECATED
	FlowCompressed json.RawMessage `json:"flowCompressed"`
}

type ActionFactory

type ActionFactory struct {
}

func (*ActionFactory) Init

func (ff *ActionFactory) Init() error

func (*ActionFactory) New

func (ff *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) GetLinkExprManagerFactory

func (fp *DefaultExtensionProvider) GetLinkExprManagerFactory() definition.LinkExprManagerFactory

func (*DefaultExtensionProvider) GetMapperFactory

func (fp *DefaultExtensionProvider) GetMapperFactory() definition.MapperFactory

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
	GetMapperFactory() definition.MapperFactory
	GetLinkExprManagerFactory() definition.LinkExprManagerFactory
}

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() *data.IOMetadata

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]*data.Attribute, handler action.ResultHandler) error

Run implements action.Action.Run func (fa *FlowAction) Run(context context.Context, uri string, options interface{}, handler action.ResultHandler) error {

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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