Search Results for

    Show / Hide Table of Contents

    Interface IProcessService

    Defines the contract for process and process step management operations in the OEMS system.

    Namespace: OEMS.Core.Application.ApplicationServiceInterfaces
    Assembly: OEMS.Core.dll
    Syntax
    public interface IProcessService

    Methods

    AssignProcessToEventAsync(Guid, Guid)

    Assigns a process to an event.

    Declaration
    Task AssignProcessToEventAsync(Guid processId, Guid eventId)
    Parameters
    Type Name Description
    Guid processId

    The unique identifier of the process to assign.

    Guid eventId

    The unique identifier of the event.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    CheckParticipantCountNotReachedByDateAsync(Guid)

    Checks if the participant count has not been reached by a specified date for an event.

    Declaration
    Task CheckParticipantCountNotReachedByDateAsync(Guid eventId)
    Parameters
    Type Name Description
    Guid eventId

    The unique identifier of the event to check.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    CreateProcessStepAsync(CreateProcessStepDto)

    Creates a new process step.

    Declaration
    Task<Guid> CreateProcessStepAsync(CreateProcessStepDto dto)
    Parameters
    Type Name Description
    CreateProcessStepDto dto

    The process step creation data transfer object.

    Returns
    Type Description
    Task<Guid>

    A task that represents the asynchronous operation. The task result contains the unique identifier of the created process step.

    DeleteProcessStepAsync(Guid)

    Deletes a process step by its unique identifier.

    Declaration
    Task DeleteProcessStepAsync(Guid id)
    Parameters
    Type Name Description
    Guid id

    The unique identifier of the process step to delete.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    GetProcessStepsForEventAsync(Guid)

    Retrieves all process steps associated with a specific event.

    Declaration
    Task<IEnumerable<ProcessStepDto>> GetProcessStepsForEventAsync(Guid eventId)
    Parameters
    Type Name Description
    Guid eventId

    The unique identifier of the event.

    Returns
    Type Description
    Task<IEnumerable<ProcessStepDto>>

    A task that represents the asynchronous operation. The task result contains a collection of process step data transfer objects.

    HandleEventTriggerAsync(Guid, ProzessstepTrigger, string)

    Handles event-based triggers for process steps.

    Declaration
    Task HandleEventTriggerAsync(Guid eventId, ProzessstepTrigger trigger, string reason)
    Parameters
    Type Name Description
    Guid eventId

    The unique identifier of the event that triggered the process.

    ProzessstepTrigger trigger

    The type of trigger that occurred.

    string reason

    The reason or description for the trigger.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    ProcessTimeBasedTriggersAsync()

    Processes all time-based triggers for scheduled process steps.

    Declaration
    Task ProcessTimeBasedTriggersAsync()
    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    TriggerProcessStepAsync(Guid, string)

    Manually triggers execution of a process step.

    Declaration
    Task TriggerProcessStepAsync(Guid stepId, string triggerReason)
    Parameters
    Type Name Description
    Guid stepId

    The unique identifier of the process step to trigger.

    string triggerReason

    The reason for triggering the process step.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    UpdateEventStatusAsync()

    Updates the status of events based on current conditions and time.

    Declaration
    Task UpdateEventStatusAsync()
    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    UpdateProcessStepAsync(UpdateProcessStepDto)

    Updates an existing process step.

    Declaration
    Task UpdateProcessStepAsync(UpdateProcessStepDto dto)
    Parameters
    Type Name Description
    UpdateProcessStepDto dto

    The process step update data transfer object.

    Returns
    Type Description
    Task

    A task that represents the asynchronous operation.

    In this article
    Back to top Generated by DocFX