model

package
v0.0.0-...-561d2ec Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow struct {
	DB *db.DB `inject:""`
}

Flow 流程管理

func (*Flow) CheckFlowInstanceTodo

func (a *Flow) CheckFlowInstanceTodo(flowInstanceID string) (bool, error)

CheckFlowInstanceTodo 检查流程实例待办事项

func (*Flow) CheckNodeCandidate

func (a *Flow) CheckNodeCandidate(nodeInstanceID, userID string) (bool, error)

CheckNodeCandidate 检查节点候选人

func (*Flow) CreateFlow

func (a *Flow) CreateFlow(flow *schema.Flow, nodes *schema.NodeOperating, forms *schema.FormOperating) error

CreateFlow 创建流程数据

func (*Flow) CreateFlowInstance

func (a *Flow) CreateFlowInstance(flowInstance *schema.FlowInstance, nodeInstances ...*schema.NodeInstance) error

CreateFlowInstance 创建流程实例

func (*Flow) CreateNodeInstance

func (a *Flow) CreateNodeInstance(nodeInstance *schema.NodeInstance, nodeCandidates []*schema.NodeCandidate) error

CreateNodeInstance 创建流程节点实例

func (*Flow) CreateNodeTiming

func (a *Flow) CreateNodeTiming(item *schema.NodeTiming) error

CreateNodeTiming 创建定时节点

func (*Flow) DeleteFlow

func (a *Flow) DeleteFlow(flowID string) error

DeleteFlow 删除流程

func (*Flow) GetDoneByID

func (a *Flow) GetDoneByID(nodeInstanceID string) (*schema.FlowDoneResult, error)

GetDoneByID 根据ID获取已办

func (*Flow) GetDoneCount

func (a *Flow) GetDoneCount(userID string) (int64, error)

GetDoneCount 获取已办数量

func (*Flow) GetFlow

func (a *Flow) GetFlow(recordID string) (*schema.Flow, error)

GetFlow 获取流程数据

func (*Flow) GetFlowByCode

func (a *Flow) GetFlowByCode(code string) (*schema.Flow, error)

GetFlowByCode 根据编号查询流程数据

func (*Flow) GetFlowFormByNodeID

func (a *Flow) GetFlowFormByNodeID(nodeID string) (*schema.Form, error)

GetFlowFormByNodeID 获取流程节点表单

func (*Flow) GetFlowInstance

func (a *Flow) GetFlowInstance(recordID string) (*schema.FlowInstance, error)

GetFlowInstance 获取流程实例

func (*Flow) GetFlowInstanceByNode

func (a *Flow) GetFlowInstanceByNode(nodeInstanceID string) (*schema.FlowInstance, error)

GetFlowInstanceByNode 根据节点实例获取流程实例

func (*Flow) GetFlowQueryResultByCodeAndVersion

func (a *Flow) GetFlowQueryResultByCodeAndVersion(code string, version int64) (*schema.FlowQueryResult, error)

GetFlowQueryResultByCodeAndVersion 根据编号和版本获取流程结果 准备废弃,使用(QueryFlowQueryResultByCodesAndVersions)代替

func (*Flow) GetForm

func (a *Flow) GetForm(formID string) (*schema.Form, error)

GetForm 获取流程表单

func (*Flow) GetNode

func (a *Flow) GetNode(recordID string) (*schema.Node, error)

GetNode 获取流程节点

func (*Flow) GetNodeByCode

func (a *Flow) GetNodeByCode(flowID, nodeCode string) (*schema.Node, error)

GetNodeByCode 根据节点编号获取流程节点

func (*Flow) GetNodeByFlowAndTypeCode

func (a *Flow) GetNodeByFlowAndTypeCode(flowID, typeCode string) (*schema.Node, error)

GetNodeByFlowAndTypeCode 根据流程ID和节点类型获取节点数据 准备废弃,请使用(QueryNodeByTypeCodeAndFlowIDs)代替

func (*Flow) GetNodeInstance

func (a *Flow) GetNodeInstance(recordID string) (*schema.NodeInstance, error)

GetNodeInstance 获取流程节点实例

func (*Flow) GetTodoByID

func (a *Flow) GetTodoByID(nodeInstanceID string) (*schema.FlowTodoResult, error)

GetTodoByID 根据ID获取待办

func (*Flow) QueryAllAvailableFlow

func (a *Flow) QueryAllAvailableFlow() (int64, []*schema.FlowQueryResult, error)

QueryAllAvailableFlow 查询流程数据-不区分版本(取得最新版本)

func (*Flow) QueryAllFlow

func (a *Flow) QueryAllFlow(params schema.FlowQueryParam) (int64, []*schema.FlowQueryResult, error)

QueryAllFlow 查询流程数据-不分页

func (*Flow) QueryAllFlowPage

func (a *Flow) QueryAllFlowPage(params schema.FlowQueryParam, pageIndex, pageSize uint) (int64, []*schema.FlowQueryResult, error)

QueryAllFlowPage 查询流程分页数据

func (*Flow) QueryDone

func (a *Flow) QueryDone(typeCode, flowCode, userID string, lastTime int64, count int) ([]*schema.FlowDoneResult, error)

QueryDone 查询用户的已办数据

func (*Flow) QueryDoneIDs

func (a *Flow) QueryDoneIDs(flowCode, userID string) ([]string, error)

QueryDoneIDs 查询已办理的流程实例ID列表

func (*Flow) QueryExpiredNodeTiming

func (a *Flow) QueryExpiredNodeTiming() ([]*schema.NodeTiming, error)

QueryExpiredNodeTiming 查询到期的定时节点

func (*Flow) QueryFlowByCode

func (a *Flow) QueryFlowByCode(flowCode string) ([]*schema.Flow, error)

QueryFlowByCode 根据流程编号查询流程数据

func (*Flow) QueryFlowByIDs

func (a *Flow) QueryFlowByIDs(flowIDs []string) ([]*schema.FlowQueryResult, error)

QueryFlowByIDs 根据流程ID查询流程数据

func (*Flow) QueryFlowIDsByType

func (a *Flow) QueryFlowIDsByType(typeCodes ...string) ([]string, error)

QueryFlowIDsByType 根据类型查询流程ID列表

func (*Flow) QueryFlowQueryResultByCodesAndVersions

func (a *Flow) QueryFlowQueryResultByCodesAndVersions(codes []string, versions []int64) ([]*schema.FlowQueryResult, error)

QueryFlowQueryResultByCodesAndVersions 根据编号和版本列表查询流程结果数据

func (*Flow) QueryFlowVersion

func (a *Flow) QueryFlowVersion(code string) ([]*schema.FlowQueryResult, error)

QueryFlowVersion 查询流程版本数据

func (*Flow) QueryGroupFlowPage

func (a *Flow) QueryGroupFlowPage(params schema.FlowQueryParam, pageIndex, pageSize uint) (int64, []*schema.FlowQueryResult, error)

QueryGroupFlowPage 查询流程分组分页数据

func (*Flow) QueryHandleFlowInstanceResult

func (a *Flow) QueryHandleFlowInstanceResult(processor, typeCode, flowCode string, lastID int64, count int) ([]*schema.FlowInstanceResult, error)

QueryHandleFlowInstanceResult 查询处理的流程实例结果

func (*Flow) QueryHistory

func (a *Flow) QueryHistory(flowInstanceID string) ([]*schema.FlowHistoryResult, error)

QueryHistory 查询流程实例历史数据

func (*Flow) QueryLastNodeInstance

func (a *Flow) QueryLastNodeInstance(flowInstanceID string) (*schema.NodeInstance, error)

QueryLastNodeInstance 查询节点实例

func (*Flow) QueryLastNodeInstances

func (a *Flow) QueryLastNodeInstances(flowInstanceIDs []string) ([]*schema.NodeInstance, error)

QueryLastNodeInstances 查询流程实例的最后一个节点实例

func (*Flow) QueryLaunchFlowInstanceResult

func (a *Flow) QueryLaunchFlowInstanceResult(launcher, typeCode, flowCode string, lastID int64, count int) ([]*schema.FlowInstanceResult, error)

QueryLaunchFlowInstanceResult 查询发起的流程实例数据

func (*Flow) QueryNodeAssignments

func (a *Flow) QueryNodeAssignments(nodeID string) ([]*schema.NodeAssignment, error)

QueryNodeAssignments 查询节点指派

func (*Flow) QueryNodeByTypeCodeAndFlowIDs

func (a *Flow) QueryNodeByTypeCodeAndFlowIDs(typeCode string, flowIDs ...string) ([]*schema.Node, error)

QueryNodeByTypeCodeAndFlowIDs 根据节点类型和流程ID列表查询节点数据

func (*Flow) QueryNodeCandidates

func (a *Flow) QueryNodeCandidates(nodeInstanceID string) ([]*schema.NodeCandidate, error)

QueryNodeCandidates 查询节点候选人

func (*Flow) QueryNodeProperty

func (a *Flow) QueryNodeProperty(nodeID string) ([]*schema.NodeProperty, error)

QueryNodeProperty 查询节点属性

func (*Flow) QueryNodeRouters

func (a *Flow) QueryNodeRouters(sourceNodeID string) ([]*schema.NodeRouter, error)

QueryNodeRouters 查询节点路由

func (*Flow) QueryTodo

func (a *Flow) QueryTodo(typeCode, flowCode, userID string, count int) ([]*schema.FlowTodoResult, error)

QueryTodo 查询用户的待办数据

func (*Flow) QueryTodoFlowInstanceResult

func (a *Flow) QueryTodoFlowInstanceResult(userID, typeCode, flowCode string, lastID int64, count int) ([]*schema.FlowInstanceResult, error)

QueryTodoFlowInstanceResult 查询待办的流程实例数据

func (*Flow) QueryTodoPaginate

func (a *Flow) QueryTodoPaginate(typeCode, flowCode, userID string, page int, pageSize int) (int, []*schema.FlowTodoResult, error)

QueryTodoPaginate 分页查询用户的待办数据

func (*Flow) Update

func (a *Flow) Update(recordID string, info map[string]interface{}) error

Update 更新流程信息

func (*Flow) UpdateFlowInstance

func (a *Flow) UpdateFlowInstance(recordID string, info map[string]interface{}) error

UpdateFlowInstance 更新流程实例信息

func (*Flow) UpdateNodeInstance

func (a *Flow) UpdateNodeInstance(recordID string, info map[string]interface{}) error

UpdateNodeInstance 更新节点实例信息

func (*Flow) UpdateNodeTiming

func (a *Flow) UpdateNodeTiming(nodeInstanceID string, info map[string]interface{}) error

UpdateNodeTiming 更新定时节点

Jump to

Keyboard shortcuts

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