Documentation ¶
Index ¶
- Variables
- type MyEvent
- func (e *MyEvent) MyEvent_End(ProcessInstanceID int, CurrentNode *Node, PrevNode Node) error
- func (e *MyEvent) MyEvent_Notify(ProcessInstanceID int, CurrentNode *Node, PrevNode Node) error
- func (e *MyEvent) MyEvent_ResolveRoles(ProcessInstanceID int, CurrentNode *Node, PrevNode Node) error
- func (e *MyEvent) MyEvent_Revoke(ProcessInstanceID int, RevokeUserID string) error
- func (e *MyEvent) MyEvent_TaskForceNodePass(TaskID int, CurrentNode *Node, PrevNode Node) error
Constants ¶
This section is empty.
Variables ¶
View Source
var RoleUser = make(map[string][]string)
这里创建了一个角色-用户的人员库,用来模拟数据库中存储的角色-用户对应关系
Functions ¶
This section is empty.
Types ¶
type MyEvent ¶
type MyEvent struct{}
示例事件
func (*MyEvent) MyEvent_End ¶
节点结束事件
func (*MyEvent) MyEvent_Notify ¶
通知
func (*MyEvent) MyEvent_ResolveRoles ¶
func (e *MyEvent) MyEvent_ResolveRoles(ProcessInstanceID int, CurrentNode *Node, PrevNode Node) error
解析角色
func (*MyEvent) MyEvent_Revoke ¶
func (*MyEvent) MyEvent_TaskForceNodePass ¶
任务事件 在示例流程中,"副总审批"是一个会签节点,需要3个副总全部通过,节点才算通过 现在通过任务事件改变会签通过人数,设为只要2人通过,即算通过
Click to show internal directories.
Click to hide internal directories.