Documentation
¶
Index ¶
- Constants
- func AttachSubFlowsToContext(flowMetas *[]dsl.SubLogicFlowMeta, ctx context.Context) context.Context
- func FirstUpper(s string) string
- func RegisterActivity(name string, activity interface{})
- type Activity
- type ActivityJointers
- func (j *ActivityJointers) GetInput(name string) *Jointer
- func (j *ActivityJointers) GetInputById(id string) *Jointer
- func (j *ActivityJointers) GetOutput(name string) *Jointer
- func (j *ActivityJointers) GetOutputById(id string) *Jointer
- func (j *ActivityJointers) GetSingleInput() *Jointer
- func (j *ActivityJointers) GetSingleOutput() *Jointer
- type BaseActivity
- type InputHandler
- type Jointer
- type LogicFlow
Constants ¶
View Source
const CONTEXT_KEY_SUBMETAS = "submetas"
Variables ¶
This section is empty.
Functions ¶
func AttachSubFlowsToContext ¶
func RegisterActivity ¶
func RegisterActivity(name string, activity interface{})
func RegisterActivity[Config any, T Activity[Config]](name string, factory func(meta *dsl.NodeDefine) *T) {
Types ¶
type Activity ¶ added in v0.1.0
type Activity[Config any] struct { BaseActivity BaseActivity }
为了处理Config添加的一层,这个在反射时不能被显式类型转换
type ActivityJointers ¶
type ActivityJointers struct {
// contains filtered or unexported fields
}
func (*ActivityJointers) GetInput ¶
func (j *ActivityJointers) GetInput(name string) *Jointer
func (*ActivityJointers) GetInputById ¶
func (j *ActivityJointers) GetInputById(id string) *Jointer
func (*ActivityJointers) GetOutput ¶
func (j *ActivityJointers) GetOutput(name string) *Jointer
func (*ActivityJointers) GetOutputById ¶
func (j *ActivityJointers) GetOutputById(id string) *Jointer
func (*ActivityJointers) GetSingleInput ¶ added in v0.1.0
func (j *ActivityJointers) GetSingleInput() *Jointer
func (*ActivityJointers) GetSingleOutput ¶ added in v0.1.0
func (j *ActivityJointers) GetSingleOutput() *Jointer
type BaseActivity ¶
type BaseActivity struct {
Id string
Jointers *ActivityJointers
Meta *dsl.NodeDefine
Ctx context.Context
}
func (*BaseActivity) Init ¶
func (b *BaseActivity) Init(meta *dsl.NodeDefine, ctx context.Context)
func (*BaseActivity) Next ¶
func (b *BaseActivity) Next(inputValue interface{}, outputName string)
type InputHandler ¶
type LogicFlow ¶
type LogicFlow struct {
//Id string
Jointers *ActivityJointers
// contains filtered or unexported fields
}
func NewLogicflow ¶
func NewLogicflow(flowMeta dsl.LogicFlowMeta, ctx context.Context) *LogicFlow
ctx用于传递value,minions.CONTEXT_KEY_SUBMETAS 对应*[]dsl.LogicFlowDefine, 子编排metas
Click to show internal directories.
Click to hide internal directories.