Documentation
¶
Index ¶
- func AddFlowins(flowname, flowid, user string) error
- func AddStepins(flowinsid, nodeid string) error
- func AddTask(stepins *Stepins, users ...string) error
- func CheckTask(taskid, user, msg, nodeid string, check int) error
- func InitWF(dbpath string) error
- type CommitSession
- type Flow
- type Flowins
- type Node
- type Nodelink
- type Stepins
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitSession ¶
func NewCS ¶
func NewCS() *CommitSession
func (*CommitSession) Close ¶
func (cs *CommitSession) Close()
type Flowins ¶
type Flowins struct {
Id string `xorm:"pk notnull unique 'id'"`
Name string
User string
FlowId string
CreateDate time.Time
FinishDate time.Time
Status int
}
========
type Node ¶
type Node struct {
Id string `xorm:"pk notnull unique 'id'"`
FlowId string
Name string
ActType string
Approvers []string
Operations []int
}
func (*Node) AddFlowLink ¶
添加一个节点连接---线(名称,向后的一个节点)
type Nodelink ¶
Click to show internal directories.
Click to hide internal directories.