Documentation
¶
Index ¶
Constants ¶
View Source
const ( ACTIVITY_TYPE_START = "Start" ACTIVITY_TYPE_END = "End" ACTIVITY_TYPE_ACTIVITY = "Activity" ACTIVITY_TYPE_LOGICFLOWACTIVITY = "LogicFlowActivity" ACTIVITY_TYPE_EMBEDDEDFLOW = "EmbeddedFlow" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineDefine ¶
type LineDefine struct {
Id string `json:"id"`
//源节点
Source PortRef `json:"source"`
//目标节点
Target PortRef `json:"target"`
}
连线定义
type LogicFlowMeta ¶ added in v0.1.0
type LogicFlowMeta struct {
//所有节点
Nodes []NodeDefine `json:"nodes"`
//所有连线
Lines []LineDefine `json:"lines"`
}
一段逻辑编排
type NodeDefine ¶ added in v0.1.1
type NodeDefine struct {
Id string `json:"id"`
//名称
Name string `json:"name"` //嵌入编排,端口转换成子节点时使用
//节点类型,对应Typescript的枚举
Type string `json:"type"`
//元件对应Activity名称
ActivityName string `json:"activityName"`
//标题
Label string `json:"label"`
//配置
Config map[string]interface{} `json:"config"`
//入端口
InPorts []PortDefine `json:"inPorts"`
//出端口
OutPorts []PortDefine `json:"outPorts"`
//子节点,嵌入式节点用,比如自定义循环节点、事务节点
Children LogicFlowMeta `json:"children"`
}
节点定义
type PortDefine ¶
type PortDefine struct {
//ID
Id string `json:"id"`
//名称
Name string `json:"name"`
//标题
Label string `json:"label"`
}
端口定义
type SubLogicFlowMeta ¶ added in v0.1.0
type SubLogicFlowMeta struct {
LogicFlowMeta
Id string
}
子编排,可以被其它编排调用
Click to show internal directories.
Click to hide internal directories.