flow

package
v0.5.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 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 added in v0.5.2

func GetFlowManager() *support.FlowManager

func SetExtensionProvider

func SetExtensionProvider(provider ExtensionProvider)

Types

type ActionData added in v0.5.2

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 added in v0.5.2

type ActionFactory struct {
}

func (*ActionFactory) Init added in v0.5.2

func (ff *ActionFactory) Init() error

func (*ActionFactory) New added in v0.5.2

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

type DefaultExtensionProvider added in v0.5.2

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

ExtensionProvider is the extension provider for the flow action

func NewDefaultExtensionProvider added in v0.5.2

func NewDefaultExtensionProvider() *DefaultExtensionProvider

func (*DefaultExtensionProvider) GetDefaultFlowModel added in v0.5.2

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

func (*DefaultExtensionProvider) GetFlowProvider added in v0.5.2

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

func (*DefaultExtensionProvider) GetFlowTester added in v0.5.2

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

todo make FlowTester an interface

func (*DefaultExtensionProvider) GetLinkExprManagerFactory added in v0.5.2

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

func (*DefaultExtensionProvider) GetMapperFactory added in v0.5.2

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

func (*DefaultExtensionProvider) GetStateRecorder added in v0.5.2

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 added in v0.5.2

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