Documentation
¶
Index ¶
Constants ¶
This section is empty.
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.ActivityDefine) *T) {
Types ¶
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
type BaseActivity ¶
type BaseActivity[Config any] struct { Id string Jointers *ActivityJointers Meta *dsl.ActivityDefine Ctx context.Context }
func (*BaseActivity[Config]) GetConfig ¶
func (b *BaseActivity[Config]) GetConfig() Config
func (*BaseActivity[T]) Init ¶
func (b *BaseActivity[T]) Init(meta *dsl.ActivityDefine, ctx context.Context)
func (*BaseActivity[Config]) Next ¶
func (b *BaseActivity[Config]) 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.LogicFlowDefine, ctx context.Context) *LogicFlow
ctx用于传递value,minions.CONTEXT_KEY_SUBMETAS 对应*[]dsl.LogicFlowDefine, 子编排metas
Click to show internal directories.
Click to hide internal directories.