event

package
v0.1.19-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (e *MyEvent) MyEvent_End(ProcessInstanceID int, CurrentNode *Node, PrevNode Node) error

节点结束事件

func (*MyEvent) MyEvent_Notify

func (e *MyEvent) MyEvent_Notify(ProcessInstanceID int, CurrentNode *Node, PrevNode Node) error

通知

func (*MyEvent) MyEvent_ResolveRoles

func (e *MyEvent) MyEvent_ResolveRoles(ProcessInstanceID int, CurrentNode *Node, PrevNode Node) error

解析角色

func (*MyEvent) MyEvent_Revoke

func (e *MyEvent) MyEvent_Revoke(ProcessInstanceID int, RevokeUserID string) error

func (*MyEvent) MyEvent_TaskForceNodePass

func (e *MyEvent) MyEvent_TaskForceNodePass(TaskID int, CurrentNode *Node, PrevNode Node) error

任务事件 在示例流程中,"副总审批"是一个会签节点,需要3个副总全部通过,节点才算通过 现在通过任务事件改变会签通过人数,设为只要2人通过,即算通过

Jump to

Keyboard shortcuts

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