using LCU.Library.Internal.DispatcherModels.Enums; using System.Collections.Generic; namespace LCU.Api.Internal.Dispatcher.Services; public interface IWorkItemExecutionService { Task GetByIdAsync(int workItemExecutionId); Task UpdateCompleteWorkItemExecution(WorkItemExecution workItemExecution, StatusType workItemFinalStatus); Task UpdateCompleteWorkItemExecutionWithoutSave(WorkItemExecution workItemExecution, StatusType workItemFinalStatus); Task UpdateAsync(WorkItemExecution workItemExecution); Task CreateWorkItemExecution(int workItemId); Task SaveAsync(WorkItemExecution workItemExecution); Task UpdateProcessingWorkItemExecution(WorkItemExecution workItemExecution); Task UpdateFailedWorkItemExecution(WorkItemExecution workItemExecution); Task> GetAllUnFinishedWorkItemExecutions(int workItemExecutionId); Task> GetAllByWorkItemId(int workItemId); }