Documentation ¶
Index ¶
- type Flow
- func (a *Flow) CheckFlowInstanceTodo(flowInstanceID string) (bool, error)
- func (a *Flow) CheckNodeCandidate(nodeInstanceID, userID string) (bool, error)
- func (a *Flow) CreateFlow(flow *schema.Flow, nodes *schema.NodeOperating, forms *schema.FormOperating) error
- func (a *Flow) CreateNodeInstance(flowInstanceID, nodeID string, inputData []byte, candidates []string) (string, error)
- func (a *Flow) CreateNodeTiming(item *schema.NodeTiming) error
- func (a *Flow) DeleteFlow(flowID string) error
- func (a *Flow) DeleteNodeTiming(nodeInstanceID string) error
- func (a *Flow) DoneFlowInstance(flowInstanceID string) error
- func (a *Flow) DoneNodeInstance(nodeInstanceID, processor string, outData []byte) error
- func (a *Flow) GetDoneByID(nodeInstanceID string) (*schema.FlowDoneResult, error)
- func (a *Flow) GetDoneCount(userID string) (int64, error)
- func (a *Flow) GetFlow(recordID string) (*schema.Flow, error)
- func (a *Flow) GetFlowByCode(code string) (*schema.Flow, error)
- func (a *Flow) GetFlowFormByNodeID(nodeID string) (*schema.Form, error)
- func (a *Flow) GetFlowInstance(recordID string) (*schema.FlowInstance, error)
- func (a *Flow) GetFlowInstanceByNode(nodeInstanceID string) (*schema.FlowInstance, error)
- func (a *Flow) GetForm(formID string) (*schema.Form, error)
- func (a *Flow) GetNode(recordID string) (*schema.Node, error)
- func (a *Flow) GetNodeByFlowAndTypeCode(flowID, typeCode string) (*schema.Node, error)
- func (a *Flow) GetNodeInstance(recordID string) (*schema.NodeInstance, error)
- func (a *Flow) GetNodeProperty(nodeID string) (map[string]string, error)
- func (a *Flow) GetTodoByID(nodeInstanceID string) (*schema.FlowTodoResult, error)
- func (a *Flow) LaunchFlowInstance(flowCode, nodeCode, launcher string, inputData []byte) (*schema.NodeInstance, error)
- func (a *Flow) LaunchFlowInstance2(flowID, userID string, status int, inputData []byte) (*schema.FlowInstance, *schema.NodeInstance, error)
- func (a *Flow) QueryAllFlowPage(params schema.FlowQueryParam, pageIndex, pageSize uint) (int64, []*schema.FlowQueryResult, error)
- func (a *Flow) QueryDone(typeCode, flowCode, userID string, lastTime int64, count int) ([]*schema.FlowDoneResult, error)
- func (a *Flow) QueryDoneIDs(flowCode, userID string) ([]string, error)
- func (a *Flow) QueryExpiredNodeTiming() ([]*schema.NodeTiming, error)
- func (a *Flow) QueryFlowByCode(flowCode string) ([]*schema.Flow, error)
- func (a *Flow) QueryFlowByIDs(flowIDs []string) ([]*schema.FlowQueryResult, error)
- func (a *Flow) QueryFlowIDsByType(typeCodes ...string) ([]string, error)
- func (a *Flow) QueryFlowVersion(recordID string) ([]*schema.FlowQueryResult, error)
- func (a *Flow) QueryGroupFlowPage(params schema.FlowQueryParam, pageIndex, pageSize uint) (int64, []*schema.FlowQueryResult, error)
- func (a *Flow) QueryHandleFlowInstanceResult(processor, typeCode, flowCode string, lastID int64, count int) ([]*schema.FlowInstanceResult, error)
- func (a *Flow) QueryHistory(flowInstanceID string) ([]*schema.FlowHistoryResult, error)
- func (a *Flow) QueryLastNodeInstance(flowInstanceID string) (*schema.NodeInstance, error)
- func (a *Flow) QueryLastNodeInstances(flowInstanceIDs []string) (map[string]*schema.NodeInstance, error)
- func (a *Flow) QueryLaunchFlowInstanceResult(launcher, typeCode, flowCode string, lastID int64, count int) ([]*schema.FlowInstanceResult, error)
- func (a *Flow) QueryNodeAssignments(nodeID string) ([]*schema.NodeAssignment, error)
- func (a *Flow) QueryNodeByTypeCodeAndFlowIDs(typeCode string, flowIDs ...string) ([]*schema.Node, error)
- func (a *Flow) QueryNodeCandidates(nodeInstanceID string) ([]*schema.NodeCandidate, error)
- func (a *Flow) QueryNodeRouters(sourceNodeID string) ([]*schema.NodeRouter, error)
- func (a *Flow) QueryTodo(typeCode, flowCode, userID string, count int) ([]*schema.FlowTodoResult, error)
- func (a *Flow) QueryTodoFlowInstanceResult(userID, typeCode, flowCode string, lastID int64, count int) ([]*schema.FlowInstanceResult, error)
- func (a *Flow) QueryTodoPaginate(typeCode string, flowCode string, userID string, page int, pageSize int) (int, []*schema.FlowTodoResult, error)
- func (a *Flow) StopFlowInstance(flowInstanceID string) error
- func (a *Flow) UpdateFlowInfo(recordID string, info map[string]interface{}) error
- func (a *Flow) UpdateFlowStatus(recordID string, status int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flow ¶
Flow 流程管理
func (*Flow) CheckFlowInstanceTodo ¶
CheckFlowInstanceTodo 检查流程实例待办事项
func (*Flow) CheckNodeCandidate ¶
CheckNodeCandidate 检查节点候选人
func (*Flow) CreateFlow ¶
func (a *Flow) CreateFlow(flow *schema.Flow, nodes *schema.NodeOperating, forms *schema.FormOperating) error
CreateFlow 创建流程数据
func (*Flow) CreateNodeInstance ¶
func (a *Flow) CreateNodeInstance(flowInstanceID, nodeID string, inputData []byte, candidates []string) (string, error)
CreateNodeInstance 创建节点实例
func (*Flow) CreateNodeTiming ¶
func (a *Flow) CreateNodeTiming(item *schema.NodeTiming) error
CreateNodeTiming 创建定时节点
func (*Flow) DeleteNodeTiming ¶
DeleteNodeTiming 删除定时节点
func (*Flow) DoneFlowInstance ¶
DoneFlowInstance 完成流程实例
func (*Flow) DoneNodeInstance ¶
DoneNodeInstance 完成节点实例
func (*Flow) GetDoneByID ¶
func (a *Flow) GetDoneByID(nodeInstanceID string) (*schema.FlowDoneResult, error)
GetDoneByID 根据ID获取已办
func (*Flow) GetDoneCount ¶
GetDoneCount 获取已办数量
func (*Flow) GetFlowByCode ¶
GetFlowByCode 根据编号查询流程数据
func (*Flow) GetFlowFormByNodeID ¶
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) GetNodeByFlowAndTypeCode ¶
GetNodeByFlowAndTypeCode 根据流程ID和节点类型获取节点数据
func (*Flow) GetNodeInstance ¶
func (a *Flow) GetNodeInstance(recordID string) (*schema.NodeInstance, error)
GetNodeInstance 获取流程节点实例
func (*Flow) GetNodeProperty ¶
GetNodeProperty 获取节点属性
func (*Flow) GetTodoByID ¶
func (a *Flow) GetTodoByID(nodeInstanceID string) (*schema.FlowTodoResult, error)
GetTodoByID 根据ID获取待办
func (*Flow) LaunchFlowInstance ¶
func (a *Flow) LaunchFlowInstance(flowCode, nodeCode, launcher string, inputData []byte) (*schema.NodeInstance, error)
LaunchFlowInstance 发起流程实例
func (*Flow) LaunchFlowInstance2 ¶
func (a *Flow) LaunchFlowInstance2(flowID, userID string, status int, inputData []byte) (*schema.FlowInstance, *schema.NodeInstance, error)
LaunchFlowInstance2 发起流程实例(基于流程ID),返回流程实例、开始事件节点实例
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 ¶
QueryDoneIDs 查询已办理的流程实例ID列表
func (*Flow) QueryExpiredNodeTiming ¶
func (a *Flow) QueryExpiredNodeTiming() ([]*schema.NodeTiming, error)
QueryExpiredNodeTiming 查询到期的定时节点
func (*Flow) QueryFlowByCode ¶
QueryFlowByCode 根据流程编号查询流程数据
func (*Flow) QueryFlowByIDs ¶
func (a *Flow) QueryFlowByIDs(flowIDs []string) ([]*schema.FlowQueryResult, error)
QueryFlowByIDs 根据流程ID查询流程数据
func (*Flow) QueryFlowIDsByType ¶
QueryFlowIDsByType 根据类型查询流程ID列表
func (*Flow) QueryFlowVersion ¶
func (a *Flow) QueryFlowVersion(recordID 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) (map[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) 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 string, flowCode string, userID string, page int, pageSize int) (int, []*schema.FlowTodoResult, error)
QueryTodoPaginate 分页查询用户待办节点实例数据
func (*Flow) StopFlowInstance ¶
StopFlowInstance 停止流程实例
func (*Flow) UpdateFlowInfo ¶
UpdateFlowInfo 更新流程