/*
 * Copyright 2006-2022 DLR, Germany
 * 
 * SPDX-License-Identifier: EPL-1.0
 * 
 * https://rcenvironment.de/
 */

package de.rcenvironment.core.component.execution.internal;

/**
 * Available event types for the {@link ComponentStateMachine}.
 * 
 * @author Doreen Seider
 */
enum ComponentStateMachineEventType {
    
    // requests
    PREPARE_REQUESTED,
    START_REQUESTED,
    PROCESSING_INPUT_DATUMS_REQUESTED,
    CANCEL_REQUESTED,
    DISPOSE_REQUESTED,
    PAUSE_REQUESTED,
    RESUME_REQUESTED,
    RESET_REQUESTED,
    IDLE_REQUESTED,
    RESULT_APPROVAL_REQUESTED,

    // successful attempts
    PREPARATION_SUCCESSFUL,
    START_SUCCESSFUL,
    START_AS_RUN_SUCCESSFUL,
    RESET_SUCCESSFUL,
    PROCESSING_INPUTS_SUCCESSFUL,
    RESULTS_APPROVED_COMPLETED,
    RESULTS_REJECTED_COMPLETED,
    CANCEL_ATTEMPT_SUCCESSFUL,
    DISPOSE_ATTEMPT_SUCCESSFUL,
    RESULTS_APPROVED,

    // failed attempts
    PREPARATION_FAILED,
    START_FAILED,
    RESET_FAILED,
    PROCESSING_INPUTS_FAILED,
    HANDLE_VERIFICATION_TOKEN_FAILED,
    VERIFICATION_COMPLETION_FAILED,
    SCHEDULING_FAILED,
    CANCEL_ATTEMPT_FAILED,
    PAUSE_ATTEMPT_FAILED,
    WF_CRTL_CALLBACK_FAILED,
    RESULTS_REJECTED,

    NEW_SCHEDULING_STATE,
    RUNNING,
    FINISHED,
    TEARED_DOWN
}
