Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Settings ¶
type Settings struct {
FlowURI string `md:"flowURI,required"`
DetachedInvocation bool `md:"detached"`
ExecTimeout int64 `md:"execTimeout"`
Transactional bool `md:"transactional"`
// Connection is deliberately interface{} and NOT connection.Manager.
//
// activity.ToMetadata -> metadata.StructToTypedMap -> NewFieldDetails maps a
// connection.Manager field to data.TypeConnection, which makes BOTH metadata.MapToStruct
// and metadata.ResolveSettingValue - the latter at flow-DEFINITION-LOAD time - call
// coerce.ToConnection BEFORE New() can see Transactional. A dangling conn://<uuid>, which
// the designtime leaves behind when the box is unticked and which a removed app.json
// connection also produces, would then turn an app that starts today into one that fails
// to start.
//
// interface{} maps to data.TypeAny, whose coercion is a passthrough. We resolve explicitly
// in New(), and only when Transactional is set.
TransactionConnection interface{} `md:"transactionConnection"`
}
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