using MyCode.Project.Domain.Model;
using MyCode.Project.Infrastructure.Enumeration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyCode.Project.Services
{
public interface IWorkProcessService
{
///
/// 批量添加
///
///
void Add(List workProcess);
///
/// 清空历史数据
///
///
//void ExecuteSingle(Guid processId);
void ClearHistoryTask();
List SelectInitWorkProcess(int top);
///
/// 执行,每次执行10条数据
///
void Execute();
///
/// 重启失败调度
///
void RestratStopProcess();
///
/// 重新启用某个暂停了的调度
///
///
void RestartStopProcess(long workprocessId);
///
/// 添加调度
///
/// 命名空间类
/// 执行方法
/// 备注
/// 传参
/// 默认为函数
void Add(string methodName,long companyId,object entity = null, string remark = "", FuncType funcType = FuncType.Function, Priority priority = Priority.Low);
///
/// 取得进程
///
///
///
///
///
///
///
void AddQueue(string methodName, long companyId, object entity = null, FuncType funcType = FuncType.Function, Priority priority = Priority.Low);
///
/// 进程执行超时
///
void ProcessHandleExpire();
}
}