Files
monorepo/LCU.API.Internal.Dispatcher/LCU.Api.Internal.Dispatcher/Services/IWorkItemExecutionService.cs
T
2026-03-24 15:26:03 -05:00

17 lines
1.1 KiB
C#

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