namespace FrameworkDAL.DTO.SchedulerTaskGenerator
{
///
/// Fixed EVENTTYPEID used to link a scheduler job's MACTION row(s) into the shared
/// MEVENTTYPEACTION/MEVENTTYPEACTIONDETAIL mapping that EventSubBLL.ProcessEventAsync
/// (via EventSubQB.GET_ACTIONS_BY_EVENT_TYPE) already knows how to resolve. Set on the
/// MACTION/MEVENTTYPEACTION rows by AutoSchedulerDAL when a job's action is saved
/// (AutoSchedulerDAL.cs — INSERT_MACTION/INSERT_EVENTTYPEACTION, EventTypeId sourced
/// from AutoSchedulerDTO.EventTypeId) — this constant is the value the job-scheduler
/// module has standardized on for that field, not something enforced by a DB constraint.
///
public static class SchedulerActionEventConstants
{
public const int SchedulerJobEventTypeId = -1399999739;
/// MACTION.STATUS: 1 = active, 0 = inactive (confirmed live — AutoSchedulerDAL
/// hardcodes Status=1 on insert; EventSubQB/LoadActionsByJobIds both filter STATUS=1).
public const int MActionActive = 1;
/// TJOBQUEUE.MESSAGETYPE for a scheduler job-completion action-dispatch event —
/// see SchedulerActionEventPublishHandler / SchedulerActionEventQueueProcessor.
public const string MessageType = "SCHEDULER_ACTION_EVENT";
}
}