dsl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 0 Imported by: 3

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 ActivityDefine

type ActivityDefine struct {
	Id           string                 `json:"id"`
	Name         string                 `json:"name"` //嵌入编排,端口转换成子节点时使用
	Type         string                 `json:"type"`
	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 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 []ActivityDefine `json:"nodes"`
	Lines []LineDefine     `json:"lines"`
}

type PortDefine

type PortDefine struct {
	Id    string `json:"id"`
	Name  string `json:"name"`
	Label string `json:"label"`
}

type PortRef

type PortRef struct {
	NodeId string `json:"nodeId"`
	PortId string `json:"portId"`
}

type SubLogicFlowMeta added in v0.1.0

type SubLogicFlowMeta struct {
	LogicFlowMeta
	Id string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL