Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // ListTodoTasks 查看todo任务 ListTodoTasks(ctx context.Context, userId, processName string, sortByAse bool, offset, limit int) ( []domain.Instance, int64, error) ListByStartUser(ctx context.Context, userId, processName string, offset, limit int) ( []domain.Instance, int64, error) // TaskRecord 工单任务变更记录 TaskRecord(ctx context.Context, processInstId, offset, limit int) ([]model.Task, int64, error) IsReject(ctx context.Context, taskId int) (bool, error) // UpdateIsFinishedByPreNodeId 系统修改 finished 状态 UpdateIsFinishedByPreNodeId(ctx context.Context, nodeId string, status int, comment string) error // Pass 通过 Pass(ctx context.Context, taskId int, comment string) error // Reject 驳回 Reject(ctx context.Context, taskId int, comment string) error // ListPendingStepsOfMyTask 列出我的任务待处理步骤 ListPendingStepsOfMyTask(ctx context.Context, processInstIds []int, starter string) ([]domain.Instance, error) // GetAutomationTask 获取自动化完成任务 GetAutomationTask(ctx context.Context, currentNodeId string, processInstId int) (model.Task, error) // GetTasksByInstUsers 获取指定流程 + 用户的任务 GetTasksByInstUsers(ctx context.Context, processInstId int, userIds []string) ([]model.Task, error) // GetOrderIdByVariable 获取工单ID,进行流程绑定 GetOrderIdByVariable(ctx context.Context, processInstId int) (string, error) // Revoke 撤销工单 Revoke(ctx context.Context, instanceId int, userId string, force bool) error // Upstream 获取所有上游节点 Upstream(ctx context.Context, taskId int) ([]model.Node, error) }
func NewService ¶
func NewService(repo repository.ProcessEngineRepository) Service
Click to show internal directories.
Click to hide internal directories.