Schedule reminding method and system of emergency dispatching system and terminal
By introducing a schedule reminder function in the emergency scheduling system, the problem of lack of schedule reminder in the emergency scheduling system is solved, more effective time management and task completion are achieved, and work efficiency and emergency tasks are improved.
Patent Information
- Application Number
- CN202411444027.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-03-28
AI Technical Summary
The lack of schedule reminder function in the emergency dispatch system has affected the task completion time and effect.
Create a schedule in the rule setting interface of the emergency dispatch system, and set reminder functions through the timing task service, support multiple reminders, use timers and task schedulers to manage tasks, execute tasks through thread pools, and update status and record results after the task is completed.
Effectively arrange and manage time through the agenda reminder function, improve work efficiency, reduce the risk of omissions or delays, and ensure the timely completion of emergency tasks.
Smart Images

Figure CN119722011A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of task reminders, and in particular to a schedule reminder method, system, terminal and computer-readable storage medium for an emergency dispatch system. Background Art
[0002] Emergency dispatch systems are usually a tool used to respond to emergencies and crisis scenarios, which is different from ordinary schedule management services. Although emergency dispatch systems also involve issues such as time management and resource allocation, their main purpose is to help organizations and leaders make quick and accurate decisions in complex and urgent situations.
[0003] Therefore, if there is no schedule reminder in the emergency dispatch system, it may affect the completion time and effect of the task.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a schedule reminder method, system, terminal and computer-readable storage medium for an emergency dispatch system, aiming to solve the problem in the prior art that there is no schedule reminder in the emergency dispatch system, which affects the task completion time and effect.
[0006] To achieve the above object, the present invention provides a schedule reminder method for an emergency dispatch system, the schedule reminder method for the emergency dispatch system comprising the following steps:
[0007] Create a schedule in the rule setting interface of the emergency dispatch system;
[0008] After the schedule is created, a scheduled task service is created, and a reminder function is set through the scheduled task service. The reminder function is used to remind you at a preset time before the task in the schedule starts;
[0009] According to the actual needs of the user, multiple reminders are set through the scheduled task service, and different reminder methods are set in different time periods before the start of the task in the schedule;
[0010] Use a timer to create multiple task classes and task schedulers, and add the tasks in the schedule to the task scheduler;
[0011] Start the thread pool through the scheduled task scheduling framework, and execute all tasks through the thread pool;
[0012] According to the set multiple reminders, a reminder is issued when the task is triggered;
[0013] When the task is completed, the task scheduler updates the task status and records the task execution result.
[0014] Optionally, the schedule reminder method of the emergency dispatch system, wherein after the task is completed, the task status is updated and the task execution result is recorded by the task scheduler, and then further includes:
[0015] When receiving a schedule viewing instruction from the user, the schedule created by the user and the schedule in which the user collaborates in the emergency dispatch system are retrieved and displayed;
[0016] When a department calendar viewing instruction from a user is received, all schedules of the current department and subordinate departments with department viewing authority in the emergency dispatch system are retrieved and displayed.
[0017] Optionally, the schedule reminder method of the emergency dispatch system, wherein after the task is completed, the task status is updated and the task execution result is recorded by the task scheduler, and then further includes:
[0018] When receiving an operation instruction from the user to edit or delete the created schedule, the corresponding task in the emergency dispatch system is deleted, and no reminder notification is issued.
[0019] Optionally, in the schedule reminder method of the emergency dispatch system, the schedule information includes date, time, task name, necessary information of participants and reminder time.
[0020] Optionally, in the schedule reminder method of the emergency dispatch system, the reminder methods in the reminder function include a pop-up window on the offline system page, voice notification, SMS notification and email.
[0021] Optionally, in the schedule reminder method for the emergency dispatch system, the task scheduler is used to manage and schedule various tasks and processes in the emergency dispatch system.
[0022] Optionally, the schedule reminder method of the emergency dispatch system, wherein the thread pool is started through the timed task scheduling framework, and all tasks are executed through the thread pool, specifically including:
[0023] In the task scheduler, whether the task reaches the trigger time is detected by polling or monitoring system events;
[0024] If the task has been triggered, a thread is selected from the thread pool by the task scheduler to execute the triggered task.
[0025] In addition, to achieve the above-mentioned purpose, the present invention further provides a schedule reminder system of an emergency dispatch system, wherein the schedule reminder system of the emergency dispatch system comprises:
[0026] A schedule creation module is used to create a schedule in the rule setting interface of the emergency dispatch system;
[0027] A reminder setting module, which is used to create a scheduled task service after the schedule is created, and to set a reminder function through the scheduled task service, wherein the reminder function is used to remind the user at a preset time before the task in the schedule starts;
[0028] A reminder rule formulation module is used to set multiple reminders through the scheduled task service according to actual needs of the user, and set different reminder methods in different time periods before the start of the task in the schedule;
[0029] A schedule adding module, used to create multiple task classes and task schedulers using a timer, and add the tasks in the schedule to the task scheduler;
[0030] The task execution module is used to start the thread pool through the scheduled task scheduling framework and execute all tasks through the thread pool;
[0031] The task trigger module is used to send reminders when a task is triggered according to the set multiple reminders;
[0032] The task recording module is used to update the task status and record the task execution result through the task scheduler after the task execution is completed.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a schedule reminder program of the emergency dispatch system stored on the memory and run on the processor, and when the schedule reminder program of the emergency dispatch system is executed by the processor, the steps of the schedule reminder method of the emergency dispatch system as described above are implemented.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a schedule reminder program of the emergency dispatch system, and when the schedule reminder program of the emergency dispatch system is executed by the processor, the steps of the schedule reminder method of the emergency dispatch system as described above are implemented.
[0035] In the present invention, a schedule is created in the rule setting interface of the emergency dispatch system; after the schedule creation is completed, a scheduled task service is created, and a reminder function is set through the scheduled task service, and the reminder function is used to remind at a preset time before the task in the schedule starts; according to the actual needs of the user, multiple reminders are set through the scheduled task service, and different reminder methods are set in different time periods before the task in the schedule starts; a timer is used to create multiple task classes and task schedulers, and the tasks in the schedule are added to the task scheduler; a thread pool is started through a scheduled task scheduling framework, and all tasks are executed through the thread pool; according to the set multiple reminders, a reminder is issued when the task is triggered; when the task is executed, the task scheduler is used to update the task status and record the task execution result. The present invention arranges and manages time more effectively through schedule reminders, improves work efficiency, and reduces the risk of omissions or delays, thereby achieving timely processing of work and tasks, while ensuring that emergency tasks can be successfully completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flow chart of a preferred embodiment of the schedule reminder method of the emergency dispatch system of the present invention;
[0037] Figure 2 It is a schematic diagram of the process of creating a schedule in a preferred embodiment of the schedule reminder method of the emergency dispatch system of the present invention;
[0038] Figure 3 It is a flow chart of schedule viewing authority control in a preferred embodiment of the schedule reminder method of the emergency dispatch system of the present invention;
[0039] Figure 4 It is a flowchart of deleting a schedule in a preferred embodiment of the schedule reminder method of the emergency dispatch system of the present invention;
[0040] Figure 5 It is a structural diagram of a preferred embodiment of a schedule reminder system of an emergency dispatch system of the present invention;
[0041] Figure 6 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0043] The schedule reminder method of the emergency dispatch system described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the schedule reminder method of the emergency dispatch system includes the following steps:
[0044] Step S10: Create a schedule in the rule setting interface of the emergency dispatch system.
[0045] Specifically, the schedule information includes date, time, task name, necessary information of participants and reminder time, such as Figure 2 The figure shows the process of creating a schedule. To create a schedule in the rule setting interface of the emergency dispatch system, you need to enter the date, time, task name, necessary information of participants and set the reminder time in the rule setting interface of the auxiliary dispatch system. It supports daily, weekday, weekly and monthly schedule addition.
[0046] Step S20: After the schedule is created, a scheduled task service is created, and a reminder function is set through the scheduled task service. The reminder function is used to remind at a preset time before the task in the schedule starts.
[0047] Specifically, after completing the schedule creation, you also need to set up a reminder function and add it to a scheduled task service (i.e. Figure 2 The scheduled task service mainly adds the corresponding scheduled tasks and the management function of scheduled tasks, so that reminder notifications can be received a certain time before the task starts. The reminder can support various methods, such as offline system page pop-up window, voice notification, SMS notification and email, etc.
[0048] Step S30: according to actual needs of the user, multiple reminders are set through the scheduled task service, and different reminder methods are set in different time periods before the task in the schedule starts.
[0049] Specifically, multiple reminders can be made according to the actual needs of the user. In order to ensure that the user does not miss important tasks, it is recommended to set multiple reminders at the same time. For example, when there is one hour left before the task starts, a reminder window pops up, and then a voice notification is sent 5 minutes before the task actually starts. Different reminder methods are set in different time periods before the task in the schedule starts, so as to prevent the user from missing the execution of the task.
[0050] Step S40: Use a timer to create multiple task classes and a task scheduler, and add the tasks in the schedule to the task scheduler.
[0051] Specifically, to use a timer, first create a job class, then define a task scheduler, and add the task to the task scheduler. The task scheduler is mainly used to manage and schedule various tasks and processes in the system. It can help users and systems automatically perform specific tasks. The timing defined by the Trigger to execute the Job task can be understood as when to do something, it will start the Trigger to execute the Job. A task can be assigned to multiple triggers, each of which defines when the task is triggered. Triggers can be configured based on time intervals, dates, or calendars.
[0052] Step S50: Start the thread pool through the scheduled task scheduling framework, and execute all tasks through the thread pool.
[0053] Specifically, Quartz (a timed task scheduling framework; it consists of three core parts, namely Job, Trigger, and Scheduler) will start a thread pool responsible for executing all tasks; in the task scheduler, it detects whether the task has reached the trigger time by polling or monitoring system events; if the task has been triggered, the task scheduler selects a thread from the thread pool to execute the triggered task.
[0054] In the cluster mode of Quartz, there is no single "main thread" responsible for the scheduling and execution of all jobs, but multiple threads work together, among which the scheduler thread plays a core role, which periodically checks and triggers jobs. These threads are usually daemon threads, ensuring continuous execution in the background while the application is running without preventing the application from closing.
[0055] Step S60: According to the set multiple reminders, a reminder is issued when the task is triggered.
[0056] Specifically, according to the rules (multiple reminders) configured in step S30, the schedule is directly issued, that is, a reminder is issued when the task is triggered.
[0057] Step S70: When the task is completed, the task scheduler updates the task status and records the task execution result.
[0058] Specifically, Quartz provides a listener mechanism, which can obtain the execution status of the job by implementing a specific listener interface. After the task is completed, the task scheduler will update the task status and record the task execution results.
[0059] Furthermore, if Figure 3As shown, it represents the schedule viewing permission control. When the user's schedule viewing instruction is received, the schedule created by the user and the schedule in which the user collaborates in the emergency dispatch system are retrieved and displayed; when the user's department view calendar instruction is received, all schedules of the current department and subordinate departments with department view permission in the emergency dispatch system are retrieved and displayed. That is, when the user enters the calendar, he can only view the schedules created by himself and the schedules in which he collaborates in; when the user selects a department (or all departments within the default permission) to view the calendar: he can view all schedules of the current department and subordinate departments (provided that the current user has these department permissions).
[0060] Furthermore, if Figure 4 As shown, it represents the process of deleting a schedule. When a user's operation instruction to edit or delete a created schedule is received, the corresponding task in the emergency dispatch system is deleted, and no reminder notification is issued; that is, the user can edit or delete the created schedule, and the task of the deleted schedule is to cancel the task, and no reminder notification will be issued.
[0061] In the present invention, the schedule reminder can help users arrange and manage time more effectively and improve work efficiency. It can create schedules for users, set reminders and notifications, help users complete tasks and meetings in a timely manner, and reduce the risk of omissions or delays. In addition, the schedule reminder can also be integrated with other tools, such as email and online calendars, making information management more convenient and efficient. By using the schedule service, time and resources can be better allocated, thereby achieving timely processing of work and tasks, while ensuring that urgent tasks can be completed smoothly.
[0062] Furthermore, if Figure 5 As shown, based on the schedule reminder method of the emergency dispatch system, the present invention also provides a schedule reminder system of the emergency dispatch system, wherein the schedule reminder system of the emergency dispatch system includes:
[0063] A schedule creation module 51 is used to create a schedule in the rule setting interface of the emergency dispatch system;
[0064] A reminder setting module 52 is used to create a scheduled task service after the schedule is created, and to set a reminder function through the scheduled task service, wherein the reminder function is used to remind a preset time before the task in the schedule starts;
[0065] The reminder rule formulation module 53 is used to set multiple reminders through the scheduled task service according to the actual needs of the user, and set different reminder methods in different time periods before the start of the task in the schedule;
[0066] A schedule adding module 54, used to create multiple task classes and task schedulers using a timer, and add the tasks in the schedule to the task scheduler;
[0067] The task execution module 55 is used to start the thread pool through the timed task scheduling framework and execute all tasks through the thread pool;
[0068] The task triggering module 56 is used to send out reminders when a task is triggered according to the set multiple reminders;
[0069] The task recording module 57 is used to update the task status and record the task execution result through the task scheduler after the task execution is completed.
[0070] Furthermore, if Figure 6 As shown, based on the schedule reminder method and system of the emergency dispatch system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 6 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0071] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a schedule reminder program 40 of an emergency dispatch system, and the schedule reminder program 40 of the emergency dispatch system can be executed by the processor 10, thereby realizing the schedule reminder method of the emergency dispatch system in the present application.
[0072] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the schedule reminder method of the emergency dispatch system.
[0073] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0074] In one embodiment, when the processor 10 executes the schedule reminder program 40 of the emergency dispatch system in the memory 20, the following steps are implemented:
[0075] Create a schedule in the rule setting interface of the emergency dispatch system;
[0076] After the schedule is created, a scheduled task service is created, and a reminder function is set through the scheduled task service. The reminder function is used to remind you at a preset time before the task in the schedule starts;
[0077] According to the actual needs of the user, multiple reminders are set through the scheduled task service, and different reminder methods are set in different time periods before the start of the task in the schedule;
[0078] Use a timer to create multiple task classes and task schedulers, and add the tasks in the schedule to the task scheduler;
[0079] Start the thread pool through the scheduled task scheduling framework, and execute all tasks through the thread pool;
[0080] According to the set multiple reminders, a reminder is issued when the task is triggered;
[0081] When the task is completed, the task scheduler updates the task status and records the task execution result.
[0082] When the task is completed, the task scheduler updates the task status and records the task execution result, and then further includes:
[0083] When receiving a schedule viewing instruction from the user, the schedule created by the user and the schedule in which the user collaborates in the emergency dispatch system are retrieved and displayed;
[0084] When a department calendar viewing instruction from a user is received, all schedules of the current department and subordinate departments with department viewing authority in the emergency dispatch system are retrieved and displayed.
[0085] When the task is completed, the task scheduler updates the task status and records the task execution result, and then further includes:
[0086] When receiving an operation instruction from the user to edit or delete the created schedule, the corresponding task in the emergency dispatch system is deleted, and no reminder notification is issued.
[0087] The schedule information includes date, time, task name, necessary information of participants and reminder time.
[0088] Among them, the reminder methods in the reminder function include offline system page pop-up window, voice notification, SMS notification and email.
[0089] The task scheduler is used to manage and schedule various tasks and processes in the emergency dispatch system.
[0090] The process of starting a thread pool through a timed task scheduling framework and executing all tasks through the thread pool specifically includes:
[0091] In the task scheduler, whether the task reaches the trigger time is detected by polling or monitoring system events;
[0092] If the task has been triggered, a thread is selected from the thread pool by the task scheduler to execute the triggered task.
[0093] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a schedule reminder program of an emergency dispatch system, and when the schedule reminder program of the emergency dispatch system is executed by a processor, the steps of the schedule reminder method of the emergency dispatch system as described above are implemented.
[0094] In summary, the present invention provides a schedule reminder method, system, terminal and computer-readable storage medium for an emergency dispatch system, the method comprising: creating a schedule in a rule setting interface of an emergency dispatch system; after the schedule is created, creating a scheduled task service, setting a reminder function through the scheduled task service, the reminder function is used to remind at a preset time before the task in the schedule starts; according to the actual needs of the user, multiple reminders are set through the scheduled task service, and different reminder methods are set in different time periods before the task in the schedule starts; using a timer to create multiple task classes and task schedulers, adding the tasks in the schedule to the task scheduler; starting a thread pool through a scheduled task scheduling framework, and executing all tasks through the thread pool; according to the set multiple reminders, issuing a reminder when the task is triggered; when the task is executed, updating the task status and recording the task execution result through the task scheduler. The present invention arranges and manages time more effectively through schedule reminders, improves work efficiency, reduces the risk of omissions or delays, thereby achieving timely processing of work and tasks, and ensuring that emergency tasks can be completed smoothly.
[0095] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or terminal including the element.
[0096] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0097] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A schedule reminder method for an emergency dispatch system, characterized in that: The schedule reminder method of the emergency dispatch system includes: Create a schedule in the rule setting interface of the emergency dispatch system; After the schedule is created, a scheduled task service is created, and a reminder function is set through the scheduled task service. The reminder function is used to remind you at a preset time before the task in the schedule starts; According to the actual needs of the user, multiple reminders are set through the scheduled task service, and different reminder methods are set in different time periods before the start of the task in the schedule; Use a timer to create multiple task classes and task schedulers, and add the tasks in the schedule to the task scheduler; Start the thread pool through the scheduled task scheduling framework, and execute all tasks through the thread pool; According to the set multiple reminders, a reminder is issued when the task is triggered; When the task is completed, the task scheduler updates the task status and records the task execution result.
2. The schedule reminder method of the emergency dispatch system according to claim 1, characterized in that: When the task is completed, the task scheduler updates the task status and records the task execution result, and then further includes: When receiving a schedule viewing instruction from the user, the schedule created by the user and the schedule in which the user collaborates in the emergency dispatch system are retrieved and displayed; When a department calendar viewing instruction from a user is received, all schedules of the current department and subordinate departments with department viewing authority in the emergency dispatch system are retrieved and displayed.
3. The schedule reminder method of the emergency dispatch system according to claim 1, characterized in that: When the task is completed, the task scheduler updates the task status and records the task execution result, and then further includes: When receiving an operation instruction from the user to edit or delete the created schedule, the corresponding task in the emergency dispatch system is deleted, and no reminder notification is issued.
4. The schedule reminder method of the emergency dispatch system according to claim 1, characterized in that: The schedule information includes date, time, task name, necessary information of participants and reminder time.
5. The schedule reminder method of the emergency dispatch system according to claim 1, characterized in that: The reminder methods in the reminder function include offline system page pop-up window, voice notification, SMS notification and email.
6. The schedule reminder method of the emergency dispatch system according to claim 1, characterized in that: The task scheduler is used to manage and schedule various tasks and processes in the emergency dispatch system.
7. The schedule reminder method of the emergency dispatch system according to claim 1, characterized in that: The thread pool is started through the timed task scheduling framework, and all tasks are executed through the thread pool, specifically including: In the task scheduler, whether the task reaches the trigger time is detected by polling or monitoring system events; If the task has been triggered, a thread is selected from the thread pool by the task scheduler to execute the triggered task.
8. A schedule reminder system for an emergency dispatch system, characterized in that: The schedule reminder system of the emergency dispatch system includes: A schedule creation module is used to create a schedule in the rule setting interface of the emergency dispatch system; A reminder setting module, which is used to create a scheduled task service after the schedule is created, and to set a reminder function through the scheduled task service, wherein the reminder function is used to remind the user at a preset time before the task in the schedule starts; A reminder rule formulation module is used to set multiple reminders through the scheduled task service according to actual needs of the user, and set different reminder methods in different time periods before the start of the task in the schedule; A schedule adding module, used to create multiple task classes and task schedulers using a timer, and add the tasks in the schedule to the task scheduler; The task execution module is used to start the thread pool through the scheduled task scheduling framework and execute all tasks through the thread pool; The task trigger module is used to send reminders when a task is triggered according to the set multiple reminders; The task recording module is used to update the task status and record the task execution result through the task scheduler after the task execution is completed.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a schedule reminder program of the emergency dispatch system stored in the memory and executable on the processor. When the schedule reminder program of the emergency dispatch system is executed by the processor, the steps of the schedule reminder method of the emergency dispatch system as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a schedule reminder program of the emergency dispatch system, and when the schedule reminder program of the emergency dispatch system is executed by the processor, the steps of the schedule reminder method of the emergency dispatch system according to any one of claims 1 to 7 are implemented.