Documentation
¶
Index ¶
Constants ¶
View Source
const AutomationApproval = "automation"
Variables ¶
This section is empty.
Functions ¶
func ToNodeProperty ¶ added in v1.7.0
ToNodeProperty node节点字段解析
Types ¶
type AutomationProperty ¶
type AutomationProperty struct {
Name string `json:"name"`
CodebookUid string `json:"codebook_uid"` // 代码库UID
Tag string `json:"tag"` // runner tags
IsNotify bool `json:"is_notify"` // 是否开始消息通知
Unit uint8 `json:"unit"` // 定时执行:单位
Quantity int64 `json:"quantity"` // 定时执行:数量
ExecMethod string `json:"exec_method"` // 执行方式, template 模版获取,hand 手动指定
TemplateId int64 `json:"template_id"` // 模版ID
TemplateField string `json:"template_field"` // 模版字段
IsTiming bool `json:"is_timing"` // 是否开始定时执行
NotifyMethod []int64 `json:"notify_method"` // 消息通知模式
}
type ConditionProperty ¶
type ConditionProperty struct {
Name string `json:"name"`
}
type Edge ¶
type Edge struct {
Type string `json:"type"`
SourceNodeId string `json:"sourceNodeId"`
TargetNodeId string `json:"targetNodeId"`
Properties interface{} `json:"properties"`
ID string `json:"id"`
StartPoint map[string]interface{} `json:"startPoint"`
EndPoint map[string]interface{} `json:"endPoint"`
PointsList []map[string]interface{} `json:"pointsList"`
Text map[string]interface{} `json:"text"`
}
Edge 定义线字段
type EdgeProperty ¶
type EdgeProperty struct {
Name string `json:"name"`
Expression string `json:"expression"` // 表达式
IsPass bool `json:"is_pass"` // 连线是否通过、为了绘制流程图走向使用
}
func ToEdgeProperty ¶ added in v1.7.0
func ToEdgeProperty(edges Edge) (EdgeProperty, error)
ToEdgeProperty edge连线字段解析
type EndProperty ¶
type EndProperty struct {
Name string `json:"name"`
}
type ExecMethod ¶ added in v1.9.0
type ExecMethod string
const ( // EXEC_TEMPLATE 根据模版 EXEC_TEMPLATE ExecMethod = "template" // HAND 手动方式 HAND ExecMethod = "hand" )
func (ExecMethod) ToString ¶ added in v1.9.0
func (s ExecMethod) ToString() string
type Node ¶
type Node struct {
Type string `json:"type"`
Properties interface{} `json:"properties"`
ID string `json:"id"`
}
Node 节点定义
type ProcessEngineConvert ¶
type ProcessEngineConvert interface {
Deploy(workflow Workflow) (int, error)
Edge(workflow Workflow, tasks []model.Task) ([]string, error)
GetAutomationProperty(workflow Workflow, nodeId string) (AutomationProperty, error)
}
func NewLogicFlowToEngineConvert ¶
func NewLogicFlowToEngineConvert() ProcessEngineConvert
type StartProperty ¶
type UserProperty ¶
Click to show internal directories.
Click to hide internal directories.