Information processing method, information processing system, electronic device and storage medium
By selecting target timing tasks in the information display technology for updates, thread crashes and network congestion caused by intensive update events are solved, and the update success rate and accuracy of the event list are improved.
Patent Information
- Application Number
- CN202210708156.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-06-21
AI Technical Summary
In information display technology, intensive update events lead to thread crashes and network congestion, affecting the update accuracy and success rate of the event list.
By determining the next timing task to be triggered before each timing task is triggered, and selecting the target timing task according to the trigger time interval and the order of occurrence time period, update the event list on the terminal at its trigger time point to avoid dense update event.
Reduces the frequency of update events, avoids thread crashes and network congestion, and improves the success rate and accuracy of item list updates.
Smart Images

Figure CN115081419B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to an information processing method, an information processing system, an electronic device and a storage medium. Background Art
[0002] In the field of information display technology, it is generally necessary to display the event information of some events in the form of an event list on the terminal. When displaying, it is also necessary to continuously update the event list displayed on the terminal in the order of the time period of the events, so that users can know what events are happening and what events are about to happen. For example, the flight information of each flight is displayed on a large screen, and for another example, the meeting reservation list of a physical conference room is displayed on a smaller flat-panel display screen. The meeting reservation list can help users know what meetings are scheduled in which time periods in the physical conference room.
[0003] In the related art, since the list of items displayed on the terminal needs to be updated in a timely manner, the server is required to update the list of items displayed on the terminal according to the occurrence time of each item information. However, when the occurrence time of the items is very close, the server will frequently update the list of items displayed on the terminal. In this case, there will be intensive update events with a close time interval between the server and the terminal. On the one hand, the intensive update events will cause thread crashes, resulting in update failures. On the other hand, the intensive update events will bring about network congestion and delays, resulting in inaccurate updates. Summary of the invention
[0004] The present disclosure provides an information processing method, the information processing method comprising:
[0005] Receive multiple items of event information sent by a client, each item of event information including an occurrence period of the item and a corresponding scheduled task; the scheduled task is used to trigger the server to update the item list displayed on the terminal at a triggering time point, the item list including item information of items that are occurring and / or to occur;
[0006] Before triggering the current scheduled task to be triggered, determine the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered;
[0007] Based on the trigger time interval and the order of the occurrence time periods, a target scheduled task is determined from the current scheduled task to be triggered and the next scheduled task to be triggered, and at the triggering time of the target scheduled task, the list of items displayed on the terminal is updated.
[0008] In an optional embodiment, based on the trigger time interval and the order of the occurrence time periods, determining the target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered includes:
[0009] If the trigger time interval is greater than a first preset threshold, determining that the current scheduled task to be triggered and the next scheduled task to be triggered are both the target scheduled tasks;
[0010] If the trigger time interval is not greater than the first preset threshold, it is determined that the target scheduled task is the one that occurs later in the current scheduled task to be triggered and the next scheduled task to be triggered.
[0011] In an optional embodiment, the method further includes:
[0012] If the trigger time interval is greater than or equal to the second preset threshold, the interval between the first occurrence period and the second occurrence period is determined; the first occurrence period is the occurrence period of the event corresponding to the current scheduled task to be triggered, and the second occurrence period is the occurrence period of the event corresponding to the next scheduled task to be triggered;
[0013] In the case where the interval duration is greater than or equal to the target interval duration, generating event idle information based on the first occurrence time period and the second occurrence time period; the event idle information is used to indicate that the time period between the first occurrence time period and the second occurrence time period can be reserved;
[0014] The event availability information is added to the event list displayed on the terminal to display the time periods that can be reserved in the event list.
[0015] In an optional embodiment, the item list is generated by the following steps:
[0016] Receiving a task list template sent by the client;
[0017] The task list is generated based on the task list template and the task information of the tasks that are occurring and / or to occur.
[0018] In an optional embodiment, the step of updating the list of items displayed on the terminal at the triggering time of the target scheduled task includes:
[0019] At the triggering time point of the target scheduled task, obtaining first event information and second event information corresponding to the target scheduled task, wherein the occurrence time period of the second event information is after the occurrence time period of the event corresponding to the target scheduled task;
[0020] updating the status of the first event information and the status of the second event information, wherein the status includes an ongoing status and a non-occurring status;
[0021] Generate a new item list based on the first item information and the second item information, and their respective updated states;
[0022] The new task list is sent to the terminal to update the task list displayed on the terminal.
[0023] In an optional embodiment, after the step of updating the list of items currently displayed on the terminal at the triggering time of the target scheduled task, the method further includes:
[0024] When it is detected that any third item information among the plurality of item information is updated, generating a corresponding updated item list based on the updated first item information and the item list currently displayed on the terminal;
[0025] The updated event list is sent to the terminal so that the terminal refreshes the displayed event list.
[0026] In an optional embodiment, the triggering time point of the scheduled task corresponding to each event information is determined according to the occurrence time period of the event information; the method further includes:
[0027] When it is detected that the occurrence time period of any fourth event information among the plurality of event information is updated, the triggering time point of the scheduled task corresponding to the second event information is updated according to the updated occurrence time period.
[0028] In an optional embodiment, after the step of determining the target timed task, the method further includes:
[0029] When the occurrence period of the event corresponding to the target scheduled task arrives, the event information corresponding to the target scheduled task is sent to the display device, so that the display device refreshes the displayed event information.
[0030] In an optional embodiment, comprising a plurality of terminals, the method further comprises:
[0031] receiving a current performance parameter sent by each of the plurality of terminals, wherein the current performance parameter includes but is not limited to at least one of remaining power and signal strength;
[0032] The step of updating the list of items displayed on the terminal at the triggering time of the target scheduled task includes:
[0033] At the triggering time of the target scheduled task, the list of items currently displayed on the target terminal is updated; wherein the current performance parameter of the target terminal is greater than or equal to the target performance parameter.
[0034] The present disclosure also provides an information processing method, which is applied to a client, and the method includes:
[0035] In response to an event entry on the event reservation interface, the entered event information is obtained; wherein the event information includes the event occurrence period and the corresponding scheduled task; the scheduled task is used to trigger the server to update the event list displayed on the terminal at the triggering time point, and the event list includes the event information of the events that are occurring and / or to occur;
[0036] The event information is sent to the server so that the server determines the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered before triggering the current scheduled task to be triggered; and based on the triggering time interval and the sequence of the occurrence time periods, determines the target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered, and updates the event list displayed on the terminal at the triggering time of the target scheduled task.
[0037] In an optional embodiment, before the step of sending the event information to the server, the method further includes:
[0038] In response to a drawing completion operation of a task list template on a template setting interface, obtaining the drawn task list template;
[0039] After exporting the task list template as object notation JSON type data, the data is uploaded to the server, so that the server generates the task list based on the acquired task list template and the task information of the tasks that are occurring and / or to occur.
[0040] In an optional embodiment, the template setting interface includes a table configuration item, and the step of obtaining the drawn item list template in response to the drawing operation of the item list template performed on the template setting interface includes:
[0041] generating a table in response to table attribute parameters input in the table configuration item, wherein the table attribute parameters include at least one of table size, number of rows and number of columns;
[0042] Receive text input into a cell as a table header in the table configuration item, and a table header text attribute of the text;
[0043] Based on the header text attributes, the corresponding text is added to the cell serving as the header to obtain the item list template.
[0044] In an optional embodiment, before the step of adding the corresponding text to the cell serving as the header based on the header text attribute to obtain the item list template, the method further includes:
[0045] Receiving a table body text attribute input for a non-table header cell in the table configuration item;
[0046] Based on the header text attribute, the corresponding text is added to the cell serving as the header to obtain the item list template, including:
[0047] Based on the header text attribute, the corresponding text is added to the cell serving as the header, and the body text attribute is bound to the corresponding cell to obtain the item list template.
[0048] In an optional embodiment, the step of generating a table in response to the table attribute parameters input in the table configuration item includes:
[0049] In response to the table attribute parameters input in the table configuration item, obtaining a table coordinate system of the display screen to be displayed;
[0050] Based on the table attribute parameters and the table coordinate system, determine the position coordinates of each cell in the table coordinate system;
[0051] The table is generated based on the position coordinates of each cell in the table coordinate system.
[0052] In an optional embodiment, uploading the task list template to the server includes:
[0053] After exporting the item list template into object notation JSON type data, upload it to the server.
[0054] In an optional embodiment, the template setting interface includes a drawing canvas, and before the step of obtaining the drawn task list template in response to the drawing completion operation of the task list template performed on the template setting interface, the method further includes:
[0055] For each drawing operation occurring on the template setting interface, the template element generated by the drawing operation is recorded, and one template element represents a modified item list template; the drawing operation includes but is not limited to any of the following: drawing operation on graphics in the item list template, editing operation on table attribute parameters;
[0056] In response to the triggered undo / redo operation, a target template element corresponding to the undo / redo operation among the recorded template elements is rendered to the drawing canvas.
[0057] In an optional embodiment, for each drawing operation occurring on the template setting interface, recording the template elements generated by the drawing operation includes:
[0058] For each drawing operation occurring on the template setting interface, exporting the current content on the drawing canvas into data in JSON format;
[0059] The exported data in JSON format is snapshotted as the template element of the record.
[0060] In an optional embodiment, in response to the triggered undo / redo operation, the step of rendering the target template element corresponding to the undo / redo operation among the recorded template elements to the drawing canvas includes:
[0061] Determining the operation step length of the undo / redo operation;
[0062] Based on the operation step, a target template element corresponding to the operation step is searched starting from the last recorded template element, and the target template element is rendered to the drawing canvas; wherein the operation step includes an undo type step and a redo type step.
[0063] In an optional embodiment, the method further includes:
[0064] Create a global state object corresponding to the drawing canvas;
[0065] When recording each template element, the template element and the number of operation steps corresponding to the template element are recorded in the global state object; the number of operation steps represents the drawing operation corresponding to the template element;
[0066] Based on the operation step length, searching for a template element corresponding to the operation step length from the last recorded template element includes:
[0067] Based on the operation step length, searching the global state object for a template element whose operation step number corresponds to the operation step length.
[0068] In an optional embodiment, the template elements in the global state object are arranged in the order of operation steps, and the method further includes:
[0069] When the target template element is not the last template element recorded, delete the template elements after the target template element; and / or when the number of template elements of the global state object exceeds the target number, delete the template elements arranged in front;
[0070] When each template element is recorded, the template element and the number of operation steps corresponding to the template element are recorded in the global state object, including:
[0071] Every time a template element is recorded, the template element is added to the tail of the queue of the template elements, and the operation step number of the template element is updated.
[0072] The present disclosure also provides an information processing system, comprising:
[0073] The client is used to send a plurality of event information to the server; each event information includes an event occurrence period and a corresponding scheduled task; the scheduled task is used to trigger the server to update the event list displayed on the terminal, and the event list includes event information of events that are occurring and / or to occur;
[0074] The server is used to determine the next second scheduled task to be triggered before triggering the first scheduled task to be triggered currently; and based on the order of the occurrence time periods and the time interval between the triggering time points of the first scheduled task and the second scheduled task, determine the target scheduled task in the first scheduled task and the second scheduled task, and update the list of items displayed on the terminal at the triggering time point of the target scheduled task;
[0075] The terminal is used to refresh the currently displayed item list based on the item list sent by the server.
[0076] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the information processing method as described above when executing the computer program.
[0077] The present disclosure also provides a non-transitory computer-readable storage medium, which stores a computer program that enables a processor to execute the information processing method.
[0078] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings without creative work. It should be noted that the size and shape of each figure in the drawings do not reflect the actual proportion, and the purpose is only to illustrate the content of the present invention. The same or similar numbers in the drawings represent the same or similar elements or elements with the same or similar functions.
[0080] Figure 1 Schematically, the present disclosure provides an implementation environment diagram of an information processing method;
[0081] Figure 2 A flowchart schematically shows a step of an information processing method in an embodiment provided by the present disclosure;
[0082] Figure 3 A flowchart schematically shows a step of an information processing method provided by the present disclosure;
[0083] Figure 4 The schematic diagram shows a template for a list of items in a conference reservation scenario provided by the present disclosure.
[0084] Figure 5 A flowchart of steps for obtaining a drawn task list template provided by the present disclosure is schematically shown;
[0085] Figure 6 A schematic diagram of calculating the position coordinates of each cell based on a table coordinate system provided by the present disclosure is schematically shown;
[0086] Figure 7 The overall process diagram of how to obtain a conference list template in a conference reservation scenario provided by the present disclosure is schematically shown;
[0087] Figure 8 The schematic diagram schematically shows the framework of the information processing system provided by the present disclosure. DETAILED DESCRIPTION
[0088] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0089] Taking the example of displaying a meeting reservation list of a physical meeting room on a small-sized flat-panel display screen (hereinafter referred to as a meeting reservation scenario), the problems existing in the related art are explained as follows:
[0090] Generally, in an enterprise, multiple physical conference rooms are set up for offline meetings. Generally, various business departments in an enterprise can share physical conference rooms. When there are many business departments, there may also be many meetings, so it is necessary to make reservations for physical conference rooms in advance. For this reason, a conference system will be provided to meet the reservation service for physical conference rooms in the enterprise. Among them, the reservation information for the physical conference room can include the time period of the meeting, the host, the participating departments, the participants and other information. One physical conference room may correspond to multiple reservation information. Of course, in order to avoid conflicts in the reservation time periods of the same physical conference room, the time periods in the reservation information do not overlap.
[0091] In actual scenarios, the meeting reservation information of a physical conference room will be displayed on the electronic doorplate of the physical conference room. The electronic doorplate is a small display screen that displays a meeting list, which lists the meeting reservation information of the physical conference room. Generally, corporate employees can use the electronic doorplate to determine when there are meetings in the physical conference room, as well as meetings that have not been held and meetings that are being held.
[0092] Therefore, it is necessary to update the meeting list on the electronic doorplate in real time according to the appointment time period corresponding to the meeting appointment information. In the related art, two scheduled tasks are bound to each meeting appointment information, one is a scheduled task before the meeting, which is used to trigger the update of the meeting list before the meeting, and the other is a scheduled task near the end time during the meeting, which is used to trigger the update of the meeting list when the meeting is about to end. In this way, when the appointment time periods of two meeting appointment information are very close, multiple meeting list update events will be generated in a very short time. On the one hand, such intensive update events will cause thread crashes, resulting in update failures. On the other hand, intensive update events will cause network congestion and update delays, resulting in inaccurate updates.
[0093] Of course, the above is only an example of the technical problems caused by the relevant technology. In practice, similar technical problems also exist in other application scenarios. For example, the same problem may also occur in the display of flight or train schedule information.
[0094] In view of this, the present disclosure proposes a technical concept for solving the above-mentioned problems, specifically: before each scheduled task is triggered, the next scheduled task to be triggered is determined, and the target scheduled task to be triggered is selected according to the sequence of the occurrence time periods of the two scheduled tasks and the time interval between the triggering time points (hereinafter referred to as the triggering time point interval), so as to update the task list on the terminal at the triggering time point of the target scheduled task. In this way, if the time interval between the triggering time points of two adjacent triggered scheduled tasks is short, one of the scheduled tasks can be selected from the two adjacent triggered scheduled tasks according to the sequence of the occurrence time periods to be triggered, and the other scheduled task does not need to be triggered. In this way, frequent and large-scale update events in the network caused by the triggering of scheduled tasks that are very close to each other can be avoided, thereby reducing update events, avoiding thread crashes, and thus improving the success rate of updating the task list. Furthermore, the reduction of update events can avoid network bandwidth congestion, reduce update delays, and thus improve the success rate and accuracy of updating the task list.
[0095] Reference Figure 1 As shown, an implementation environment diagram of the information processing method of the present disclosure is shown, such as Figure 1 As shown, it includes a server, a client, multiple terminals and multiple display devices, wherein the client is linked to the server in communication, and the server is linked to multiple terminals and multiple display devices in communication; specifically, multiple terminals are connected to the server via HTTP protocol, and multiple display devices communicate with the server via near-network protocols such as Bluetooth, wherein the display device can communicate with the server via a Bluetooth gateway, and the terminal can communicate with the server via a router. When the terminal is scanned by the router, the router reports the basic information of the terminal to the server, and when the display device is scanned by the Bluetooth gateway, the Bluetooth gateway reports the basic information of the display device to the server. Among them, the basic information may include remaining power, identification, signal strength, etc. In the scenario of conference reservation, the client is used to reserve a meeting and upload the reservation information obtained by the reservation to the server. The server is used to generate a meeting list based on the reservation information, and at the triggering point of the scheduled task bound to the reservation information, the meeting list generated based on the corresponding reservation information is sent to the terminal. The terminal can be the electronic doorplate described above, which is used to display the meeting list sent by the server.
[0096] Depend on Figure 1 It can also be seen that the server may need to initiate conference list update events to multiple terminals in a short period of time. Such frequent and large number of update events in the network will cause network congestion, and the probability of conference list update errors will be greatly increased. A large number of update events can easily cause thread crashes, resulting in list update failures.
[0097] Combination Figure 1 The implementation environment shown in the figure takes the application scenario of conference reservation as an example to introduce the information processing method disclosed in the present invention. Figure 2As shown, a flowchart of the steps of an information processing method in an embodiment is shown. In this embodiment, how to execute the information processing method is described from the server side. Of course, this embodiment is only exemplified by the application scenario of conference reservation, and it can still be applicable to other similar scenarios, such as the shift information display scenario. Figure 2 As shown, the following steps may be specifically included:
[0098] Step S201: receiving multiple event information sent by the client, each event information includes the occurrence time period of the event and the corresponding scheduled task.
[0099] The scheduled task is used to trigger the server to update the event list displayed on the terminal at the triggering time, and the event list displays event information of events that are occurring and / or to occur.
[0100] In this embodiment, the client can be a web client, and the user can log in to the client in the browser, so as to enter the event information of the event to be scheduled in the event booking interface provided by the client, and upload the event information to the server. Among them, each event information includes the event occurrence time period, and the occurrence time period refers to the time period in which the event is carried out. The scheduled task can be carried in the event information, or the scheduled task can be bound to the event information and sent separately with the event information. Among them, the binding can be to associate the identifier of the designated time task with the identifier of the event information, as long as the association relationship between the individual event information and the scheduled task is determined.
[0101] The terminal is used to display a list of events, and the list of events includes event information of events that are happening and / or are to happen. Specifically, in some scenarios, the list of events may include events that are happening, and events that are happening refer to events that have a time period at the current time. In other scenarios, the list of events may include events that are to happen, and events that are to happen refer to events that have not started after the current time. In other scenarios, the list of events may include events that are to happen and events that are happening.
[0102] In this embodiment, each scheduled task corresponding to each matter information will have its own triggering time point, which can be set according to the occurrence period. Generally speaking, the triggering time point can be set before the occurrence period, at the end of the occurrence period, during the occurrence period, or in all three cases. Specifically, it can be done according to user needs. Among them, different matter information is allowed to personalize different triggering time points for scheduled tasks. For example, the triggering time point of the scheduled tasks of some matter information is set at the end of the occurrence period, while the triggering time point of the scheduled tasks of other matter information is set before the occurrence period. Among them, it is also possible to allow one matter information to correspond to one scheduled task or to correspond to multiple scheduled tasks.
[0103] In specific implementation, the scheduled task can be triggered at its own triggering point. When the scheduled task is triggered at the triggering point, the event information corresponding to the scheduled task needs to be displayed on the terminal, or needs to be cleared from the event list displayed on the terminal; thus, the server will respond to the trigger, determine the event information that currently needs to be displayed on the terminal, and then update the event list displayed on the terminal according to the event information that currently needs to be displayed on the terminal, so that the event list displayed on the terminal only includes events that are occurring, or only includes events to be occurred, or includes both events to be occurred and events that are occurring.
[0104] In an optional example, when applied to the application scenario of meeting reservation, the matter information may be the meeting reservation information, which includes the reservation period, which is the occurrence period, and can be understood as the meeting period. In this case, the scheduled task can be used to trigger the server to update the meeting list on the terminal to display the meeting reservation information that is currently being carried out and to be carried out in the future. When applied to the application scenario of shift information display, the matter information may be the shift information, which includes the departure time and arrival time. The period between the departure time and the arrival time is called the occurrence period, and the scheduled task can be used to trigger the server to update the shift information list (i.e., the matter list) displayed on the large screen to display the shift information that has not yet departed.
[0105] Step S202: before triggering the current scheduled task to be triggered, determining the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered.
[0106] In this embodiment, since each scheduled task has its own triggering time point, the triggering time point interval between the current scheduled task to be triggered and the next scheduled task to be triggered can be determined before each scheduled task is triggered at its corresponding triggering time point.
[0107] Example #, event information 1 corresponds to scheduled task 1, event information 2 corresponds to scheduled task 2, event information 3 corresponds to scheduled task 3, wherein the triggering time of scheduled task 1 is 12:55, the triggering time of scheduled task 2 is 12:50, and the triggering time of scheduled task 3 is 13:01, then scheduled task 2 is triggered at 12:50, wherein before the triggering time of scheduled task 2, i.e. before 12:50, for example, 12:49, the next scheduled task to be triggered, i.e. scheduled task 1, can be determined. Then the triggering time interval between the two adjacent triggered scheduled tasks can be determined.
[0108] Among them, if the trigger time point interval is small, for example, 1 minute apart, then when there is a large amount of event information in the server, multiple intensive update events will be generated. If the trigger time point interval is large, for example, 10 minutes apart, multiple intensive update events will generally not be generated.
[0109] Of course, in some scenarios, the event information corresponding to the current scheduled task to be triggered and the event information corresponding to the next scheduled task to be triggered need to belong to the same project. For example, in the meeting reservation scenario, the current scheduled task to be triggered and the next scheduled task to be triggered need to correspond to a physical meeting room. For example, in the shift information display scenario, the current scheduled task to be triggered and the next scheduled task to be triggered need to correspond to the same line, or the same route, or the same waiting room.
[0110] Step S203: Based on the trigger time interval and the order of the occurrence time periods, determine the target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered, and update the list of items displayed on the terminal at the triggering time of the target scheduled task.
[0111] In this embodiment, the trigger time interval and the order of occurrence time periods can be combined to determine which scheduled task to retain between the current scheduled task to be triggered and the next scheduled task to be triggered. The retained scheduled task is called the target scheduled task.
[0112] Specifically, when the interval between triggering time points is small, you can choose to keep the current scheduled task to be triggered or the next scheduled task to be triggered. It should be noted that since different event information can be used to personalize the different triggering time points of scheduled tasks, the time period of the event corresponding to the scheduled task with an earlier triggering time point is not necessarily earlier than the time period of the event corresponding to the scheduled task with a later triggering time point. Therefore, when the interval between triggering time points is small, which scheduled task to keep can be determined based on the order of the time periods. For example, in some scenarios, the scheduled tasks with a later time period are kept, and in other scenarios, the scheduled tasks with an earlier time period are kept.
[0113] Among them, when the trigger time interval is large, generally no intensive multiple update events will be generated. Therefore, the current scheduled task to be triggered and the next scheduled task to be triggered can be retained. Of course, in some other scenarios with needs, in this case, one of the scheduled tasks can be retained according to the order of occurrence time periods.
[0114] Taking the above example # as an example, before scheduled task 2 is triggered at 12:50, it is determined that the next trigger is scheduled task 1. The interval between the triggering time points is 5 minutes, and the interval between the triggering time points is small. Therefore, the scheduled task with a later occurrence period can be retained. Among them, the occurrence period corresponding to scheduled task 1 is 12:00-13:00, and the occurrence period corresponding to scheduled task 2 is 13:00-14:00. It can be seen that the occurrence period of scheduled task 1 is earlier. Therefore, scheduled task 1 is canceled and scheduled task 2 is retained. Scheduled task 2 is used as the target scheduled task. When scheduled task 2 is triggered at 12:50, the server can update the list of items displayed on the terminal. As a result, there will be no scheduled task triggered at 12:55, which will not lead to an outbreak of intensive update events.
[0115] By adopting the technical solution of the disclosed embodiment, for the triggering of the scheduled task, one of the scheduled tasks can be retained as the target scheduled task based on the interval between the triggering time points of each two adjacent triggered scheduled tasks and the order of the corresponding occurrence time periods, and the list of items displayed on the terminal is updated at the triggering time point of the target scheduled task. In this way, frequent and large update events caused by the triggering of scheduled tasks that are very close to each other can be avoided. For the server, reducing the update events can avoid thread crashes and improve the success rate of updating the list of items; and for the network environment where the server and the terminal are located, reducing the update events in a short period of time can avoid network congestion, reduce update delays, and ensure the accuracy of updates.
[0116] In an optional embodiment, the process of determining a target timed task is shown:
[0117] Among them, when determining the target scheduled task, when the trigger time point interval is small, the scheduled task with a later occurrence period can be selected as the target scheduled task, and when the trigger time point interval is large, the current scheduled task to be triggered and the next scheduled task to be triggered are both retained as target scheduled tasks.
[0118] Specifically, if the trigger time point interval is greater than the first preset threshold, it is determined that the current scheduled task to be triggered and the next scheduled task to be triggered are both target scheduled tasks; if the time interval is not greater than the first preset threshold, it is determined that the current scheduled task to be triggered and the next scheduled task to be triggered, the one with a later occurrence period is the target scheduled task.
[0119] In this embodiment, the first preset threshold can be determined according to the performance of the server and the network environment, for example, it can be determined as 10 minutes, or as a shorter 5 minutes. When the trigger time interval is greater than the first preset threshold, it indicates that the interval between update events sent by the server is longer, which will not lead to the occurrence of intensive update events, so both scheduled tasks can be retained as target scheduled tasks.
[0120] When the interval between triggering time points is not greater than the first preset threshold, it indicates that the interval between update events sent by the server is short, which will lead to the occurrence of intensive update events. Therefore, the one with a later occurrence period of the two scheduled tasks can be used as the target scheduled task. Among them, using the one with a later occurrence period as the target scheduled task can prompt the server to update the event information of the upcoming events to the terminal list, meeting the needs of users in scenarios such as meeting reservations. In an optional example, the case where the interval between triggering time points is not greater than the first preset threshold may include the case where the triggering time points of the two scheduled tasks are different, and may also include the case where the triggering time points of the two scheduled tasks are the same; in the case where the triggering time points are the same, the scheduled task corresponding to the event information with a later occurrence period of the two scheduled tasks with the same triggering time points can be canceled.
[0121] The following is an illustrative description of the process of determining a target scheduled task in the present disclosure in combination with three specific examples of conference reservation scenarios.
[0122] Specific example 1: On a certain day of a certain month of a certain year, four meetings were scheduled for the physical conference room 1 that afternoon, as shown in Table 1 below. Table 1 is the meeting list corresponding to the physical conference room 1.
[0123] Table 1 Meeting list corresponding to physical conference room 1
[0124] Meeting Room Name Meeting Name Meeting Time The triggering time of the scheduled task Meeting Room 1 Session 1 13:00-14:00 5 minutes before the meeting + 5 minutes before the end Meeting Room 1 Session 2 14:00-15:00 10 minutes before the meeting + 10 minutes before the end of the meeting Meeting Room 1 Session 3 16:00-17:00 10 minutes before the meeting + 10 minutes before the end of the meeting Meeting Room 1 Session 4 17:00-17:30 10 minutes before the meeting + 10 minutes before the end of the meeting
[0125] As shown in Table 1, there are four meetings in the afternoon. Meeting 1 has two scheduled tasks, and the triggering time points are: 12:55 and 13:55. The triggering time points of the two scheduled tasks of Meeting 2 are: 13:50 and 14:50. Among them, the scheduled task of 13:50 of Meeting 2 is triggered first, and the next one to be triggered is the scheduled task of 13:55 of Meeting 1. The interval between the triggering time points is small, and the meeting time corresponding to the scheduled task of 13:50 (Meeting 2) is after the meeting time corresponding to the scheduled task of 13:55 (Meeting 1). In this case, the scheduled task of 13:55 will be automatically canceled, and the server will update the meeting list at 13:50. When updating, the meeting reservation information of Meeting Room 1 will no longer be sent to the terminal. After the update, the meeting list displayed on the terminal includes the meeting reservation information of Meeting 2-Meeting 4.
[0126] Specific example 2: On a certain day of a certain month of a certain year, four meetings were scheduled in the physical conference room 2 that afternoon, as shown in Table 2 below. Table 2 is the meeting list corresponding to the physical conference room 2.
[0127] Table 2 Meeting list corresponding to entity conference room 2
[0128] Meeting Room Name Meeting Name Meeting Time The triggering time of the scheduled task Meeting Room 2 Session 1 13:00-14:00 10 minutes before the meeting + 10 minutes before the end of the meeting Meeting Room 2 Session 2 14:00-15:00 5 minutes before the meeting + 5 minutes before the end Meeting Room 2 Session 3 16:00-17:00 10 minutes before the meeting + 10 minutes before the end of the meeting Meeting Room 2 Session 4 17:00-17:30 10 minutes before the meeting + 10 minutes before the end of the meeting
[0129] As shown in Table 2, there are four meetings in Conference Room 2 that afternoon, and Conference 1 has two scheduled tasks, with the triggering time points being 12:50 and 13:50 respectively. The triggering time points of the two scheduled tasks of Conference 2 are 13:55 and 14:55 respectively. When the scheduled task at 13:50 is about to be triggered, it can be determined that the next scheduled task to be triggered is the scheduled task at 13:55, and the triggering time points are very close. Moreover, the meeting time corresponding to the scheduled task at 13:55 (Conference 2) is after the meeting time corresponding to the scheduled task at 13:50 (Conference 1). In this case, the scheduled task at 13:50 will not be triggered and will be automatically canceled, waiting for the scheduled task at 13:55 to be triggered. The server updates the meeting list at 13:55, and the meeting list displayed on the terminal after the update includes the meeting reservation information of Conference 2-Conference 4.
[0130] Specific example 3: On a certain day of a certain month of a certain year, four meetings were scheduled for the physical conference room 3 that afternoon, as shown in Table 3 below. Table 3 is the meeting list corresponding to the physical conference room 3.
[0131] Table 3 Meeting list corresponding to entity conference room 3
[0132] Meeting Room Name Meeting Name Meeting Time The triggering time of the scheduled task Meeting Room 3 Session 1 13:00-14:00 5 minutes before the meeting + 5 minutes before the end Meeting Room 3 Session 2 14:00-15:00 5 minutes before the meeting + 5 minutes before the end Meeting Room 3 Session 3 16:00-17:00 10 minutes before the meeting + 10 minutes before the end of the meeting Meeting Room 3 Session 4 17:00-17:30 10 minutes before the meeting + 10 minutes before the end of the meeting
[0133] As shown in Table 3, there are four meetings in Conference Room 3 that afternoon. Conference 1 has two scheduled tasks, and the triggering time points are: 12:55 and 13:55. The triggering time points of the two scheduled tasks of Conference 2 are: 13:55 and 14:55. When the scheduled task at 13:55 is about to be triggered, it can be determined that there is another scheduled task at 13:55 at the same time, with the same triggering time point. In this case, the occurrence time of Conference 1 is earlier, so the scheduled task corresponding to Conference 1 is canceled, and according to the triggering of the scheduled task of Conference 2, the meeting list is updated. After the update, the meeting list displayed on the terminal includes the meeting reservation information of Conference 2-Conference 4.
[0134] In an optional embodiment, when determining the target scheduled task, it is possible to determine whether the trigger time point interval is sufficient to satisfy the occurrence of an event when the trigger time point interval is large. If so, the terminal can be instructed to display information about the free time within the interval to inform the user that events can be scheduled during this time period.
[0135] In specific implementation, if the trigger time interval is greater than or equal to the second preset threshold, the interval between the first occurrence period and the second occurrence period is determined; the first occurrence period is the occurrence period of the event corresponding to the current scheduled task to be triggered, and the second occurrence period is the occurrence period of the event corresponding to the next scheduled task to be triggered.
[0136] When the interval duration is greater than or equal to the target interval duration, based on the first occurrence period and the second occurrence period, event idle information is sent to the terminal and / or client; the event idle information is used to indicate that the time period between the first occurrence period and the second occurrence period can be reserved.
[0137] Of course, in specific implementation, the item idle information can be added to the item list displayed on the terminal to display the time period that can be booked in the item list. In this case, the item idle information can be added to the implementation list, located between the item information corresponding to the current scheduled task to be triggered and the item information corresponding to the next scheduled task to be triggered.
[0138] In this embodiment, if the interval between the triggering time points is large and greater than the second preset threshold, it indicates that there is a long interval between the occurrence time periods of the events corresponding to the two scheduled tasks. In this case, the interval between the first occurrence time period of the event corresponding to the currently to-be-triggered scheduled task and the second occurrence time period of the event corresponding to the next to-be-triggered scheduled task can be determined. The second preset threshold is greater than the first preset threshold.
[0139] Among them, when the first occurrence period occurs earlier, the interval duration may refer to the interval time between the end time of the first occurrence period and the start time of the second occurrence period; when the first occurrence period occurs later, the interval duration may refer to the interval time between the end time of the second occurrence period and the start time of the first occurrence period.
[0140] Among them, when the interval duration is greater than or equal to the target interval duration, matter idle information can be sent to the terminal and / or client, and the matter idle information can be generated based on the time period between the first occurrence time period and the second occurrence time period. The time period between the first occurrence time period and the second occurrence time period can be called an idle time period. The matter idle information is mainly used to characterize that the idle time period can be reserved.
[0141] In the meeting reservation scenario, the event availability information may also include a meeting room identifier to identify which time period of a physical meeting room can be reserved for meetings. The target interval duration may be set according to actual needs, for example, to a duration greater than 30 minutes.
[0142] Specific example 4: On a certain day of a certain month of a certain year, four meetings were scheduled in the physical conference room 4 that afternoon, as shown in Table 4 below. Table 4 is a meeting list corresponding to the physical conference room 4.
[0143] Table 4 Meeting list corresponding to physical meeting room 4
[0144] Meeting Room Name Meeting Name Meeting Time The triggering time of the scheduled task Meeting Room 4 Session 1 13:00-14:00 5 minutes before the meeting + 5 minutes before the end Meeting Room 4 Session 2 14:00-15:00 5 minutes before the meeting + 5 minutes before the end Meeting Room 4 Session 3 17:00-17:30 10 minutes before the meeting + 10 minutes before the end of the meeting Meeting Room 4 Session 4 17:30-18:00 10 minutes before the meeting + 10 minutes before the end of the meeting
[0145] As shown in Table 4, taking Meeting 2 and Meeting 3 as an example, when the scheduled task at 14:55 when Meeting 2 ends is triggered, the next scheduled task is the scheduled task at 16:50 of Meeting 3. The triggering time interval of the two scheduled tasks is 1 hour and 50 minutes, which is large enough. Therefore, the interval between Meeting 2 and Meeting 3 can be further determined. It can be seen that the interval is 2 hours, which can be used for reservations of one or more meetings. Therefore, the idle information of the event between 15:00-17:00 can be generated, indicating that this time period can be reserved. Specifically, a piece of idle information of the event can be inserted between Meeting 2 and Meeting 3 in Table 4, and "Idle" can be marked in the meeting name column, so that "Idle" will be displayed before Meeting 3 in the meeting list on the terminal.
[0146] In an optional embodiment, the updating process of the item list is shown:
[0147] The updating of the task list includes: updating the task list according to the scheduled task, and updating the task list according to the modified task information or the newly added task information. The process of updating the task list according to the scheduled task is as follows:
[0148] Among them, the event list can be generated by the server based on the event information of the current event to occur, and the event information of the current event to occur can be determined based on the triggering of the corresponding scheduled task, that is, it can include the event information corresponding to the triggered scheduled task and the event information corresponding to the scheduled task to be triggered.
[0149] In a specific example, a task list template sent by a client may be received; and a task list may be generated based on the task list template and task information of tasks that are occurring and / or to occur.
[0150] During specific implementation, the item list template can be prepared by the client and uploaded to the server. The preparation of the item list template can be detailed in the following client-side embodiments, which will not be repeated here. Among them, the item list template can specify that the item information of the items that are occurring and / or to be occurring is displayed in the form of a list. In an optional example, the item list template can be understood as a table-type template, including rows and columns, wherein the name of the table as the header, such as the table in the first row, can be pre-set, and each item information is the table body content in the table. As shown in Tables 1-4 above, the item list template can be understood as a table that does not contain meeting appointment information in the table body.
[0151] As described above, the event information of events that are occurring and / or to occur can be displayed in the event list as needed. Therefore, when updating the event list displayed on the terminal, the event information corresponding to the currently triggered scheduled task can be added to the event list template. Taking specific example 1 as an example, the event information of meeting 2 can be added to the event list template at 13:50.
[0152] Alternatively, add the event information of the event that occurs after the event corresponding to the currently triggered scheduled task to the event list template. Taking specific example 1 as an example, the event information of meeting 3 and meeting 4 can be added to the event list template at 13:50.
[0153] Alternatively, add the event information corresponding to the currently triggered scheduled task and the event information whose occurrence period is after the event corresponding to the currently triggered scheduled task to the event list template. Taking specific example 1 as an example, the event information of meeting 2, meeting 3 and meeting 4 can be added to the event list template at 13:50.
[0154] In a specific implementation, in an optional example, a process of updating a display list on a terminal is shown. Specifically, at the triggering time point of the target scheduled task, the first item information and the second item information corresponding to the target scheduled task can be obtained, and a new item list can be generated based on the first item information and the second item information; and the new item list can be sent to the terminal to update the item list displayed on the terminal.
[0155] The occurrence period of the second event information is after the occurrence period of the event corresponding to the target scheduled task.
[0156] In this optional example, the first matter information can be understood as matter information that is about to occur, and the second matter information can be understood as matter information to be occurred, wherein the first matter information and the second matter information can be added to the matter list template line by line, and when adding line by line, they can be added to the matter list in the order of the occurrence time periods of the first matter information and the second matter information, thereby obtaining a new matter list, and sending the new matter list to the terminal. After receiving the new matter list, the terminal can refresh the displayed matter list, thereby realizing an update of the displayed list on the terminal.
[0157] Of course, in another embodiment, the item list may include the current status of each item information. When the item list is updated, the status of each item information in the item list to be displayed may be updated at the same time.
[0158] In specific implementation, when generating a new item list, the status of the first item information and the status of the second item information may be updated, and a new item list may be generated based on the first item information and the second item information, and their respective updated statuses. The status includes an ongoing status and a non-occurring status.
[0159] The status of the first event information can be determined according to the occurrence period of the event corresponding to the target timed task. If the occurrence period is after the current time and very close to the current time, it means that the event is about to occur, so its status can be changed from the non-occurring state to the occurring state, and the status of the second event information can remain as the non-occurring state. Accordingly, when generating a new event list, the status of each event information can be marked in the list.
[0160] Taking Tables 1 to 4 above as an example, a new column may be added to identify the status of each meeting. Of course, in a meeting reservation scenario, the status of a meeting may include a starting status and a to-be-held status.
[0161] When this implementation is adopted, the status of each item information in the item list can be updated and marked to help users obtain which items are happening and which items are waiting to happen, thereby optimizing the user experience.
[0162] The process of updating the item list according to the modified item information or the newly added item information is as follows:
[0163] When it is detected that any third item information among multiple item information is updated, a corresponding updated item list is generated based on the updated first item information and the item list currently displayed on the terminal; and the updated item list is sent to the terminal so that the terminal refreshes the displayed item list.
[0164] In this embodiment, if the client updates one of the third item information, the item list displayed on the terminal can be updated in real time based on the updated third item information. Specifically, an updated item list can be generated based on the updated third item information and each item information in the item list currently displayed on the terminal, and the updated item list can be sent to the terminal. After receiving the new item list, the terminal can refresh the displayed item list, thereby realizing real-time updating of the displayed list on the terminal.
[0165] The update of event information may include the update of the occurrence period and other attributes. For example, in a meeting reservation scenario, it may also include the update of the reserved meeting room.
[0166] In the case where the trigger time point is generated based on the occurrence period of event information, when it is detected that the occurrence period of a certain event information is updated, the trigger time point of the corresponding scheduled task can also be updated.
[0167] In specific implementation, when it is detected that the occurrence period of any fourth event information among the multiple event information is updated, the triggering time point of the scheduled task corresponding to the fourth event information may be updated according to the updated occurrence period.
[0168] Among them, a strategy can be set according to the updated occurrence period and the triggering time point of the fourth matter information to obtain a new triggering time point, and then the scheduled task of the fourth matter information is triggered at the new triggering time point.
[0169] Specific example 5: When the time of meeting 3 is changed from 16:00-17:00 to 17:00-17:30, on the one hand, a new meeting list is generated based on the new meeting 3 and the originally displayed meetings 1, 2, and 4, and then displayed on the terminal. On the other hand, the two scheduled tasks of meeting 3 are updated from the original 15:50 and 16:50 to 16:50 and 17:20.
[0170] By adopting the technical solution of the embodiment of the present disclosure, the event list will be updated as long as it is detected that the event information is updated, or the occurrence time period of the event information is updated. When the occurrence time period is updated, the triggering time point of the scheduled task corresponding to the event information can also be updated, thereby ensuring the accuracy of the event list displayed on the terminal.
[0171] In one embodiment, if Figure 1In the illustrated implementation environment, the multiple terminals may include a ticket-type terminal and an electronic table card-type display device; wherein the ticket-type terminal is used to display the meeting list of the entire conference room, and the electronic table card-type display device is used to display the meeting reservation information of the currently ongoing meeting. In addition to updating the event list on the terminal, the server may also update the event information displayed on the electronic table card-type display device, so that the electronic table card-type display device displays the event information of the ongoing event.
[0172] In specific implementation, after determining the target scheduled task, when the occurrence period of the event corresponding to the target scheduled task arrives, the event information corresponding to the target scheduled task can be sent to multiple display devices, so that the display devices refresh the displayed event information.
[0173] Among them, when the occurrence period of the event corresponding to the target scheduled task arrives, it can mean: in the occurrence period of the event corresponding to the target scheduled task, specifically it can be the starting time of the occurrence period, or any time after the starting time, the event information corresponding to the target scheduled task is sent to the display device, and when the display device receives the event information sent by the server, it can refresh the displayed event information.
[0174] In an optional embodiment, if Figure 1 The implementation environment shown, such as MAC address, remaining power, signal strength, etc. The server stores this information in the database and displays it on the web page. Users can choose to schedule a meeting in a certain conference room and a certain time period through the web page (the minimum duration of the meeting is 30 minutes). After the meeting is successfully scheduled, the meeting reservation information is transmitted to the server.
[0175] Among them, the event information corresponding to the target scheduled task can be sent to the display device after a preset time after the start time of the occurrence period of the event corresponding to the target scheduled task. This is because the event information can be sent after a period of time after the trigger time point to avoid the trigger time point, thereby avoiding the event of sending the updated event information and the event of updating the event list to be sent very close to each other, thereby further reducing network congestion.
[0176] Among them, the user of the client can decide whether to bind the terminal based on various information of the terminal (such as power, signal strength, etc.). The meaning of the binding operation is that the bound terminal and display device can be used by the conference system, and the conference reservation information will be sent and the conference list will be updated.
[0177] In order to further reduce the density of update events, when updating the item list, the item list on the terminal with better current performance can be updated. In specific implementation, the current performance parameters sent by multiple terminals are received, and the current performance parameters include at least one of the remaining power and the signal strength. Then, the item list currently displayed on the target terminal can be updated; wherein the current performance parameter of the target terminal is greater than or equal to the target performance parameter.
[0178] In this embodiment, the target terminal may be a terminal whose remaining power is greater than the target remaining power, or the target terminal may be a terminal whose signal strength is greater than the target signal strength, or the target terminal may be a terminal whose remaining power is greater than the target remaining power and whose signal strength is greater than the target signal strength.
[0179] In an optional example, the scheme based on the current performance parameters is also applicable to the update of matter information on the display device. Accordingly, the matter information corresponding to the target scheduled task can be sent to the display devices among multiple display devices whose current performance parameters are greater than or equal to the target performance parameters to refresh the displayed matter information.
[0180] In the conference reservation scenario, the display device is an electronic table sign. Generally, a conference room has multiple electronic table signs, and the number of electronic table signs is greater than the number of electronic door signs. Therefore, when choosing to update the event information of an electronic table sign with high signal strength and high remaining power, the update events of sending event information can be reduced, thereby further reducing the information's occupancy of network bandwidth.
[0181] By adopting the technical solution of this embodiment, the update events sent by the server to the terminal can be reduced, thereby further avoiding network congestion and improving the accuracy of the item list for the target terminal.
[0182] Below is a specific example of a conference reservation scenario. Figure 1 The implementation environment shown is used to introduce the information processing method of the embodiment of the present disclosure:
[0183] S1: After the terminal is scanned by the router through the HTTP protocol, the router reports the basic information of the terminal to the server. After the display device is scanned by the Bluetooth gateway through the Bluetooth protocol, the Bluetooth gateway reports the basic information of the display device to the server, including MAC address, power, signal strength, etc. The server stores the basic information of each terminal and display device in the database and displays it through the Web page.
[0184] S2: The client user can decide whether to bind the terminal and display device based on their basic information. The bound terminal can receive a conference list from the server, and the bound display device can receive conference reservation information from the server.
[0185] S3: The client user schedules a meeting in the conference room and binds some terminals to display the meeting list and meeting reservation information in this conference room. The electronic doorplate displays the meeting list, and the electronic tableplate displays the meeting reservation information.
[0186] S4: The server receives the conference reservation information sent by the client, and generates a scheduled task corresponding to the conference reservation information based on the occurrence period of the conference reservation information and the preset trigger time point setting strategy.
[0187] Among them, a meeting reservation information includes two scheduled tasks, namely, a scheduled task before the meeting starts, and a scheduled task when the meeting is about to end. Each meeting reservation information and the corresponding scheduled task are stored in the database waiting to be triggered.
[0188] S5: Before each scheduled task to be triggered is triggered, determine the triggering time interval between the scheduled task and the next scheduled task to be triggered. If the triggering time interval is greater than 5 minutes, execute step S6, otherwise, execute step S7.
[0189] S6: Of the two scheduled tasks, the scheduled task corresponding to the meeting reservation information with a later occurrence period is retained, and the other scheduled task is canceled. At the triggering time of the retained scheduled task, the meeting reservation information corresponding to the retained scheduled task and the meeting list generated by the meeting reservation information to be occurred are sent to the terminal. After receiving the meeting list, the terminal refreshes the displayed meeting list.
[0190] After updating the displayed meeting list, some time after the meeting corresponding to the reserved scheduled task starts, the meeting reservation information corresponding to the reserved scheduled task is sent to the bound display device, which may specifically include information such as participants, hosts and meeting topics.
[0191] S7: Both scheduled tasks are retained. At the triggering time of each scheduled task, a conference list is generated based on the conference reservation information corresponding to the triggered scheduled task and the conference reservation information to be generated. After receiving the conference list, the terminal refreshes the displayed conference list.
[0192] The interval duration between the occurrence periods of the events corresponding to the two scheduled tasks may be determined. If the interval duration is greater than the target interval duration, step S8 is executed; otherwise, step S9 is executed.
[0193] S8: The client sends the event idle information and sends an event list including the event idle information to the terminal to indicate that the time period between the two meetings can be reserved.
[0194] Among them, the above-mentioned item list and item information can be packaged by the server through the HTTP protocol and then sent to the terminal.
[0195] The information processing method implemented by the present disclosure has the following advantages:
[0196] First, it avoids the intensive occurrence of update events in a short period of time, avoids congestion of network bandwidth, and reduces the probability of thread crashes, thereby improving the accuracy and success rate of the update list.
[0197] Secondly, when the interval between two adjacent events exceeds a certain time, the time interval containing the interval can be actively displayed in the event list of the terminal, thereby enriching the update mechanism of the event list and allowing users to directly view the time periods that can be booked from the event list displayed on the terminal, thereby optimizing the user experience.
[0198] Thirdly, while updating the event list displayed on the terminal, the event information of the event that is occurring can be displayed on the display device, thereby realizing a two-dimensional display of the event information, enriching the information display scenario and optimizing the user experience.
[0199] Fourthly, when the occurrence period of the event information is updated, the triggering time point of the corresponding scheduled task can be updated, thereby ensuring the accuracy of updating the event list of the terminal.
[0200] Based on the same inventive concept, the inventor conceived and proposed an improvement of the client, on which matter information and scheduled tasks corresponding to the matter information can be provided to the server, so that the server can select the target scheduled task from the scheduled task and the next scheduled task to be triggered before each scheduled task to be triggered based on the triggering time of the scheduled task and the occurrence time period included in the matter information, so as to cancel the triggering of a scheduled task when the interval between the triggering time points is small, so as to avoid the occurrence of intensive update events in a short period of time, avoid network congestion and thread crashes, thereby improving the update accuracy and update success rate of the matter list displayed on the terminal.
[0201] Still combined Figure 1 The implementation environment shown is used to introduce an information processing method in an embodiment of the present disclosure, which can be applied to the client side. Figure 3 As shown, a flowchart of the steps of an information processing method in an embodiment is shown. Figure 3 As shown, the following steps may be specifically included:
[0202] Step S301: In response to an entry of an event on the event reservation interface, the entered event information is obtained.
[0203] Among them, the event information includes the time period of occurrence of the event and the corresponding scheduled task; the scheduled task is used to trigger the server to update the event list displayed on the terminal at the triggering time, and the event list includes event information of events that are occurring and / or to occur.
[0204] Step S302: Send the event information to the server so that the server can determine the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered before triggering the current scheduled task to be triggered; and based on the triggering time interval and the sequence of the occurrence time periods, determine the target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered, and update the event list displayed on the terminal at the triggering time of the target scheduled task.
[0205] In this embodiment, the event appointment interface can be understood as a web page provided by the client for users to schedule events. As described in the above server-side embodiment, the event appointment interface can include basic information reported by the terminal to the server. Users can select the terminal on which to display the event list and enter event information in the event appointment interface.
[0206] In an optional example, when entering the event information, the trigger time of the scheduled task can be set at the same time. When the trigger time of the scheduled task is set, the client can generate a scheduled task corresponding to the event information. In another optional example, when entering the event information, the trigger time setting strategy of the scheduled task can be set at the same time, for example, set five minutes before the occurrence period and / or set five minutes before the end of the occurrence period. Among them, several different trigger time setting strategies can be provided for users to choose from in the event appointment interface. In this case, the server can generate the corresponding scheduled task according to the event information and the trigger time setting strategy.
[0207] The process of how the server updates the list of items displayed on the terminal according to the scheduled tasks of each item information can be referred to the above-mentioned server-side embodiment, which will not be repeated here.
[0208] Accordingly, as described in the above-mentioned embodiment of the information processing method on the server side, the event list is generated based on the event information of the events that are occurring and / or to occur, and the event list template, wherein the event list template can be provided on the client side.
[0209] In specific implementation, before uploading the matter information, the client side can respond to the completion operation of drawing the matter list template on the template setting interface, obtain the drawn matter list template; upload the matter list template to the server, so that the server generates a matter list based on the matter list template and the matter information of matters that are occurring and / or to occur.
[0210] Reference Figure 4 As shown, a schematic diagram of a task list template in a conference reservation scenario is shown. Figure 4 The task list template shown illustrates the process of how to obtain the task list template in the present invention.
[0211] Among them, Figure 4 As shown, the task list template is a template containing a table, which includes a table header and a table body, which is composed of rows and columns, and also includes other information, such as the attribute information of the conference room, etc. In the related art, the task list template is generally drawn in the drawing interface provided by Canvas, wherein Canvas is a method provided by HTML5 to draw graphics on a web page using scripts, but the native canvas has some shortcomings, such as the lack of an interactive object model, graphic combination, drag and zoom of objects, etc. In this case, when drawing the task list template, only one cell can be drawn, that is, the user needs to draw multiple cells separately and then combine the multiple cells to form a table. This method is time-consuming and results in a very low efficiency in drawing the task list template.
[0212] Therefore, when the inventors conceived the technical solution to solve the above technical problems, they regarded the table graphics as a combination of multiple cells, and the cells as a combination of rectangles and texts. Based on this idea, they customized a method for drawing a list of items template. The specific implementation goal is: a table graphic can be drawn in batches in the canvas at one time, and each cell in the table can be configured with a separate text style. When using this implementation method, the user only needs to set the table attribute parameters to generate multiple cells in batches to obtain a table.
[0213] To achieve the above goals, one way is to use the fabric.js open source library and port it to a canvas-based drawing library to implement various visualization operations on window graphics. Its advantage lies in the overall operation of graphic combinations. If fabric.js is not used, the drawing and interaction of 2D plane graphics on the web page can also use native canvas and SVG (Scalable Vector Graphics) technology.
[0214] Among them, SVG is a language that uses XML to describe 2D graphics. Its biggest advantages over canvas are: first, each drawn graphic is regarded as an object, and relevant event handlers can be added to it; second, the graphic quality of SVG images will not be lost when they are enlarged or resized.
[0215] Reference Figure 5As shown, a flowchart of the steps of obtaining the drawn item list template is shown, such as Figure 5 As shown, the following steps may be specifically included:
[0216] Step S501: generating a table in response to the table attribute parameters input in the table configuration item.
[0217] The table attribute parameters include at least one of table size, number of rows and number of columns.
[0218] Among them, the table configuration item can be used to receive table attribute parameters input by the user. Specifically, the table configuration item can include the height parameter and width parameter of the table. Then, according to the table coordinate system, the number of cells under the table attribute parameters can be calculated, and the coordinate value of each cell can be calculated, so as to generate multiple cells in a loop according to the coordinate value of each cell to obtain a table.
[0219] In specific implementation, when implementing step S501, the following process may be adopted:
[0220] First, in response to the table attribute parameters input in the table configuration item, the table coordinate system of the display screen to be displayed is obtained; then, based on the table attribute parameters and the table coordinate system, the position coordinates of each cell in the table coordinate system are determined, and based on the position coordinates of each cell in the table coordinate system, a table is generated.
[0221] In an optional embodiment, the table attribute parameters include table size, number of rows and number of columns. The table size includes the length and width of the table. The table coordinate system may be a display coordinate system based on a display screen. The number of rows and columns may be used to determine the number of cells under the table size, and then determine the coordinates of each cell based on the display coordinate system. Figure 6 As shown, a schematic diagram of calculating the position coordinates of each cell based on a table coordinate system is shown.
[0222] Among them, the table width is width, the height is height, the number of table columns is n, the cell width is tw, the height is th, index is the i-th column, and rowIndex is the i-th row. Among them, tw = width / n left = width / 2+tw*(index-1), the height of the table header is calculated as follows: th = -height / 2, and the th of the table body is th = -height / 2+th*(rowIndex+1).
[0223] Among them, the maximum number of display rows of the item list template is calculated dynamically. When calculating the number of table rows, the height of the entire canvas is taken, and the number of rows is calculated based on the row height.
[0224] Thus, the position of each cell in the table coordinate system, that is, the length and width of each cell, can be obtained, so as to generate the corresponding cell at each corresponding position in a loop, and then obtain the table.
[0225] Step S502: receiving the text input into the cell serving as the table header in the table configuration item, and the table header text attribute of the text.
[0226] The header text attributes include one or more attributes of the text font size, color, position, etc. In practice, the header text attributes can be entered or selected in the table configuration items. For details, the similar implementation process of selecting the font style in the related art can be referred to. For the header cell, the configured text can be entered.
[0227] Step S503: Based on the header text attributes, the corresponding text is added to the cell serving as the header to obtain the item list template.
[0228] In this embodiment, in the generated table, the corresponding text can be added to the cell of the header according to the header text attribute, so as to obtain the following: Figure 4 To-do list template shown.
[0229] Accordingly, a step flow chart for drawing a task list template is also proposed. In this embodiment, before step S503, it may also include a process of setting text attributes in the table body. Specifically, it may receive the table body text attributes entered for non-header cells in the table configuration items; accordingly, in step S503, based on the table header text attributes, the corresponding text may be added to the cell serving as the table header, and the table body text attributes may be bound to the corresponding cell to obtain the task list template.
[0230] Among them, the table body text attributes may also include one or more attributes such as the font size, color, position, etc. The table body text attributes are used to specify the text style configured in the table body cells. Since the text in the table body cells is added by the server later based on the event information, the table body text attributes can be carried in the event list template and bound to the corresponding cells.
[0231] Among them, both the table body text attribute and the table header text attribute may include the text position attribute, and the position attribute may indicate whether the text is centered, left, right, top, bottom, etc. in the cell. Therefore, in an optional example, the position coordinates of the text in each cell may also be determined based on the position attribute.
[0232] Specifically, for each cell, since the position coordinates of each cell are obtained, the position coordinates of the text in the cell can be calculated based on the position attributes of the cell and the position coordinates are used as a parameter of the cell.
[0233] When the item list template is drawn, it can be exported as object notation JSON type data and uploaded to the server. Therefore, when generating the item list, the server can add each item information to the corresponding position of the JSON type data, thereby obtaining the JSON type of data to be rendered, and then send the JSON type of data to be rendered to the server. On the terminal side, the item list can be rendered based on the JSON type of data to be rendered.
[0234] Reference Figure 7 As shown, it shows the overall process diagram of how to obtain the meeting list template (corresponding to the event list template) in the meeting reservation scenario, such as Figure 7 As shown, the specific process may include the following:
[0235] First, select the meeting list component on the template setting interface. If there is already a drawing canvas, directly drag the cell component to the drawing canvas. If there is no drawing canvas, you need to create a new drawing canvas.
[0236] Next, enter the table attribute parameters and header text attributes in the table configuration item ( Figure 7 The number of rows, columns and font style of the table are calculated according to the table attribute parameters.
[0237] After that, click the cell component with the mouse and drag it on the drawing canvas, and release the cell component to render the table.
[0238] Next, complete the input of the header text attributes, the body text attributes, and the header text, thereby completing the configuration of the table component style.
[0239] Finally, click the export control to export the meeting list template in JSON format, synchronize it to the backend (server), and finally send it to the terminal by the server.
[0240] In one embodiment, in the process of drawing a task list template, frequent modification and editing may be required. At this time, undo / redo becomes particularly necessary to facilitate the user to modify the task list template.
[0241] In the related art, when drawing a task list template in the drawing interface provided by Canvas, the Canvas-based drawing interface does not support undo / redo very well. In view of this, the inventor transplanted the fabric.js open source library into the canvas-based drawing library to use the export and import methods of the content on the canvas to implement the "undo / redo" function.
[0242] The overall implementation idea is as follows: First, maintain an undo and restore data set and a pointer to the current index; when the data on the canvas and the editing area in the canvas is modified, export its data content. When performing undo and restore operations, it is possible to monitor changes in the data object and import the data to restore the content on the canvas.
[0243] Specifically, in one embodiment, before the step of obtaining the drawn item list template, the template elements generated by each drawing operation occurring on the template setting interface can be recorded, and in response to the triggered undo / redo operation, the target template elements corresponding to the undo / redo operation among the recorded template elements can be rendered to the drawing canvas.
[0244] Among them, a template element represents a modified task list template; the drawing operation includes but is not limited to any of the following: drawing operations on graphics in the task list template, and editing operations on table attribute parameters.
[0245] In this embodiment, each drawing operation can be understood as a data modification operation, which includes drawing operations on graphics on the canvas and editing operations on text in the editing area. The editing operation of table attribute parameters may include: modifying operations on table attribute parameters in table configuration items, modifying operations on header text attributes and table body text attributes, and modifying operations on header text. Among them, the drawing operation of graphics may refer to: drawing of cell components, such as selecting the style of cell components, scaling operations of cell components, etc.
[0246] In this embodiment, when the elements in the editing area (including the drawing canvas and configuration bars such as table configuration items) change, such as the user adds a graphic control, moves the graphic position, or modifies the properties of the graphic, the content on the canvas when the drawing operation is completed can be exported for each drawing operation. As a template element, the template element can be roughly understood as an unfinished task list template, that is, as long as the user does not click to upload the task list template, each previous drawing operation corresponds to a version of the task list template, and each version of the task list template is called a template element.
[0247] For example, a drawing operation is: changing the height of the table from 220mm to 210mm in the table attribute parameters. All data content on the canvas will be exported for this modification. The exported data content may be a task list template with a height of 210mm. The height of the table in the template element exported before the modification is 210mm.
[0248] When the undo / redo operation is triggered on the template setting interface, the corresponding target template element can be selected from the stored multiple template elements and rendered to the drawing canvas. Specifically, the method of importing canvas content provided by fabric.js, such as canvas.loadFromJSON(canvasData), can be used to restore the content of the drawing canvas.
[0249] The undo in undo / restore may mean that the user wants to restore to the data state before modification, and the restore may mean that after the user returns to the data state of a certain modification, he wants to restore to the data state of the next modification.
[0250] For example, in the nth modification, the user changes the height of the table from 220mm to 210mm, in the n+1th modification, from 210mm to 200mm, and in the n+2th modification, from 210mm to 215mm. Undo can mean that the user wants to restore to the state of the nth modification in the n+2th modification, and restore can mean that when the user returns to the state of the nth modification, he wants to restore to the state of the n+1th modification or the n+2th modification. It can also be seen that the restore operation is performed on the basis of the undo operation.
[0251] Among them, when rendering the target template element corresponding to the undo / redo operation in each recorded template element to the drawing canvas, the target template element can be determined based on the operation step. Specifically, the operation step of the undo / redo operation can be determined; based on the operation step, the target template element corresponding to the operation step is searched from the last recorded template element, and the target template element is rendered to the drawing canvas; wherein the operation step includes the step of the undo type and the step of the undo type.
[0252] As described in the above embodiment, the restore operation is performed on the basis of the undo operation, and therefore, the operation step may include an undo type step and a restore type step, wherein the undo type step is for the undo operation and can also be understood as a backward type step, and the restore type step is for the restore operation and can also be understood as a forward type step.
[0253] In an optional embodiment, when an undo operation is performed, the target template element can be determined starting from the last recorded template element according to the operation step of the undo operation, such as the number of times a back-type undo control is clicked (the back-type operation step); when the user performs a restore operation, the final target template element can be determined from between the target template element corresponding to the undo operation and the last recorded template element according to the operation step of the restore operation, such as the number of times a forward-type undo control is clicked (the foreground type operation step).
[0254] In an optional embodiment, a global state object may be maintained, so that the template elements are saved in the global state object. In specific implementation, a global state object corresponding to the drawing canvas may be created; and when each template element is recorded, the template element and the number of operation steps corresponding to the template element are recorded in the global state object; the number of operation steps represents the drawing operation corresponding to the template element.
[0255] Of course, if a global state object is maintained, the template element whose operation step number corresponds to the operation step length can be searched from the global state object based on the operation step length.
[0256] Among them, the global state object includes the array StepArr for recording template elements; and Current for recording the number of operation steps. The number of operation steps can represent the number of drawing operations under which the template element is obtained, and is used to represent the total number of drawing operations; stepLength for recording the operation step length of the undo / redo operation; canvasData for recording the data on the current drawing canvas, which refers to the page data to be updated and is a string in JSON format; each time an undo / redo operation is performed, the corresponding template element will be taken out from the array StepArr and the data object will be updated.
[0257] When each drawing operation is detected, the template element corresponding to the drawing operation may be recorded in an array of the global state object.
[0258] In one embodiment, each template element in the global state object can be arranged in the order of the number of operation steps. In this way, in order to improve the accuracy of finding the target template element from the array, when the target template element is determined in each undo / redo operation, if the target template element is not the last template element recorded, the template elements after the target template element are deleted. Accordingly, when each template element is recorded, the template element and the number of operation steps corresponding to the template element can be recorded in the global state object, the template element can be appended to the end of the queue of template elements, and the number of operation steps of the template element can be updated.
[0259] For example, during the nth modification, the user changed the height of the table from 220mm to 210mm, during the n+1th modification, from 210mm to 200mm, and during the n+2th modification, from 210mm to 215mm. The undo operation indicates that during the n+2th modification, the state of the nth modification is restored, and when Save is clicked (indicating that the n+1th and n+2nd modifications are not wanted), the n+1st and n+2nd modifications are deleted in the global state object. During the n+3rd modification, the height of the table is changed to 208mm, and the data after the n+3th modification is added to the data after the nth modification as the new n+1th template element. Then, the number of operation steps of the drawing operation in the global state object is changed from the n+3th to the n+1th.
[0260] In this case, if the user wants to restore the table height to 210mm after the n+3th modification, that is, the data of the nth modification, the undo operation step is 1, and in the global state object, counting forward 1 from the last template element, the operation step is the data corresponding to the nth modification, that is, the height of the table is 210mm.
[0261] When this implementation is adopted, the data after the target template element located by the undo / redo operation is deleted. In this way, the data can be deleted in time to release the storage space of the global state object. At the same time, the operation step number of the global state object is updated to ensure that the operation step length of subsequent undo / redo operations correctly corresponds to the operation step number of each template element maintained in the global state object, thereby improving the accuracy of the target template elements found.
[0262] Accordingly, in an optional embodiment, when the number of template elements of the global state object exceeds the target number, the template element arranged in front may be deleted.
[0263] In specific implementation, after appending the template element of the global state object, if the array size after appending the template element has exceeded the maximum number of steps, that is, the target number, it is necessary to arrange the first element to be deleted, that is, delete the template element in the global state object according to the first-in-first-out principle.
[0264] Of course, for the restore operation, if the operation step of the restore operation has pointed to the last template element, it will no longer move, and a prompt will be displayed on the drawing canvas that it is the last step.
[0265] As described above, the task list template can be exported as object notation JSON type data and uploaded to the server, wherein the corresponding template element can be snapshotted when recording each drawing operation occurring on the template setting interface. When undoing / recovering, the corresponding snapshot can be extracted, and then the template element can be restored based on the snapshot.
[0266] In specific implementation, for each drawing operation occurring on the template setting interface, the current content on the drawing canvas may be exported as data in JSON format; and a snapshot of the exported data in JSON format may be taken as a recorded template element.
[0267] In this way, when the target template element is rendered to the drawing canvas, the data of the corresponding target template element in JSON format can be imported into the drawing canvas to display the item list template corresponding to the template element on the drawing canvas.
[0268] By adopting the implementation method of this client, using the data snapshot implementation idea, a set of template elements for undo and restore and a pointer indicating the current operation step can be maintained to help locate the corresponding template element; for each drawing operation, the content on the drawing canvas can be exported as a JSON format data; when performing the undo / redo operation, the corresponding JSON format data is imported to restore the content on the canvas. Since the JSON format data is used as a snapshot to restore the content on the drawing canvas, the convenience of undo / redo can be improved.
[0269] Based on the same inventive concept, the present disclosure also provides an information processing system, referring to Figure 8 As shown, a schematic diagram of the framework of the information processing system is shown. Figure 8 As shown, including:
[0270] The client is used to send a plurality of event information to the server; each event information includes an event occurrence period and a corresponding scheduled task; the scheduled task is used to trigger the server to update the event list displayed on the terminal, and the event list includes event information of events that are occurring and / or to occur;
[0271] The server is used to determine the next second scheduled task to be triggered before triggering the first scheduled task to be triggered currently; and based on the order of the occurrence time periods and the time interval between the triggering time points of the first scheduled task and the second scheduled task, determine the target scheduled task in the first scheduled task and the second scheduled task, and update the list of items displayed on the terminal at the triggering time point of the target scheduled task;
[0272] The terminal is used to refresh the currently displayed item list based on the item list sent by the server.
[0273] The server can be used to execute the information processing method described in the above server-side embodiment, and the client can be used to execute the information processing method described in the above client-side embodiment. It can include multiple terminals and multiple display devices, the display device can be an electronic table card, the terminal can be an electronic door card, and of course, other types of terminals can also be included, such as a large-size display screen.
[0274] The following is an explanation of the actual application process of the information processing system:
[0275] Step 1: Template design The user logs in to the client and uses the canvas-based drawing library provided by the client to design the to-do list template. The canvas drawing library uses the fabric.js open source library.
[0276] Step 2: Template design The user selects the meeting list component on the template setting interface, selects a style of cell component and drags it to the drawing canvas, and then enters the table attribute parameters, header text, header text attributes, and body text attributes in the configuration bar;
[0277] Step 3: In response to the user's dragging and moving operation on the cell component on the drawing canvas, the client generates multiple cells in batches based on the cell component selected by the user, table attribute parameters, header text, header text attributes, and body text attributes, thereby obtaining a table.
[0278] During the second and third steps, the client will record each drawing operation of the user and save snapshots of the template elements drawn at each step. When the user's undo / redo operation is detected, the target snapshot is determined from the saved snapshots, and then the target snapshot is imported into the drawing canvas to facilitate the user's editing of the involved meeting list template.
[0279] Step 4: In response to the user's confirmation operation, the client exports the data on the current drawing canvas as list data in JSON format and then uploads it to the server. The list data in JSON format is the conference list template.
[0280] Among them, the template design user can draw a variety of different styles of meeting list templates based on the process from the first step to the fourth step for the meeting reservation users to choose and use.
[0281] In the fifth step, the conference reservation user logs in to the client, enters the conference reservation interface, enters the conference reservation information, selects the trigger time setting strategy, and selects a conference list template from several provided drawn conference list templates; the client sends the user-entered conference reservation information, the selected trigger time setting strategy and the conference list template to the server.
[0282] In the sixth step, the server sets a strategy based on the conference reservation information and the selected trigger time point, generates a scheduled task for the conference reservation information, and thus determines the trigger time point for the scheduled task.
[0283] Step 7: The server updates the conference list displayed on the terminal based on the triggering time of the scheduled task. The specific process can be found in the exemplary description of the server side above, which will not be repeated here.
[0284] This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the information processing method when executing the computer program.
[0285] The present disclosure also provides a non-transitory computer-readable storage medium, which stores a computer program that enables a processor to execute the information processing method.
[0286] As for the information processing system embodiment, since it is basically similar to the information processing method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the information processing method embodiment.
[0287] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0288] Based on the same inventive concept, the present application proposes an information processing device applied to a server side, the device comprising the following modules:
[0289] An information receiving module, used to receive multiple event information sent by a client, each event information including an event occurrence period and a corresponding scheduled task; the scheduled task is used to trigger the server to update the event list displayed on the terminal at a triggering time point, the event list including event information of events that are occurring and / or to occur;
[0290] The timing trigger module is used to determine the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered before triggering the current scheduled task to be triggered;
[0291] The list update module is used to determine the target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered based on the trigger time interval and the order of the occurrence time periods, and update the list of items displayed on the terminal at the triggering time of the target scheduled task.
[0292] Optionally, the list update module includes:
[0293] A first determining unit, configured to determine that the current scheduled task to be triggered and the next scheduled task to be triggered are both the target scheduled tasks if the trigger time interval is greater than a first preset threshold;
[0294] The second determining unit is used to determine, if the trigger time point interval is not greater than the first preset threshold, that the one with a later occurrence period between the current scheduled task to be triggered and the next scheduled task to be triggered is the target scheduled task.
[0295] Optionally, the device further comprises:
[0296] An interval duration determination module is used to determine the interval duration between the first occurrence period and the second occurrence period if the trigger time interval is greater than or equal to a second preset threshold; the first occurrence period is the occurrence period of the event corresponding to the current scheduled task to be triggered, and the second occurrence period is the occurrence period of the event corresponding to the next scheduled task to be triggered;
[0297] an idle information generating module, configured to generate event idle information based on the first occurrence time period and the second occurrence time period when the interval duration is greater than or equal to the target interval duration; the event idle information is used to indicate that the time period between the first occurrence time period and the second occurrence time period can be reserved;
[0298] The idle information sending module is used to add the idle information of the event to the event list displayed on the terminal, so as to display the time period that can be reserved in the event list.
[0299] Optionally, the item list is generated by the following steps:
[0300] Receiving a task list template sent by the client;
[0301] The task list is generated based on the task list template and the task information of the tasks that are occurring and / or to occur.
[0302] Optionally, the list updating module includes:
[0303] An information acquisition unit, configured to acquire, at a triggering time point of the target scheduled task, first event information corresponding to the target scheduled task and second event information, wherein an occurrence period of the second event information is after an occurrence period of the event information corresponding to the target scheduled task;
[0304] A status updating unit, configured to update the status of the first event information and the status of the second event information, wherein the status includes an ongoing status and a non-occurring status;
[0305] A list generating unit, configured to generate a new item list based on the first item information and the second item information, and their respective updated states;
[0306] The list sending unit is used to send the new item list to the terminal to update the item list displayed on the terminal.
[0307] Optionally, the device further comprises:
[0308] an information update detection module, configured to generate a corresponding updated item list based on the updated third item information and the item list currently displayed on the terminal when detecting that any third item information among the plurality of item information is updated;
[0309] The information update sending module is used to send the updated event list to the terminal so that the terminal can refresh the displayed event list.
[0310] Optionally, the triggering time point of the scheduled task corresponding to each item of event information is determined according to the occurrence period of the item of event information; the device further includes:
[0311] The trigger time point update module is used to update the trigger time point of the scheduled task corresponding to the fourth event information according to the updated occurrence time period when it is detected that the occurrence time period of any fourth event information among the multiple event information is updated.
[0312] Optionally, the device includes a plurality of terminals, and further includes:
[0313] a performance parameter acquisition module, configured to receive current performance parameters sent by each of the plurality of terminals, wherein the current performance parameters include but are not limited to at least one of remaining power and signal strength;
[0314] The list updating module is specifically used to update the item list displayed on the target terminal at the triggering point of the target scheduled task; wherein the current performance parameter of the target terminal is greater than or equal to the target performance parameter.
[0315] Based on the same inventive concept, the present application proposes an information processing device applied to a client side, the device comprising the following modules:
[0316] An event information receiving module is used to obtain the event information entered in response to the event entry on the event reservation interface; wherein the event information includes the event occurrence period and the corresponding scheduled task; the scheduled task is used to trigger the server to update the event list displayed on the terminal at the triggering time point, and the event list includes the event information of the event that is occurring and / or to be occurring;
[0317] An information sending module is used to send the matter information to the server so that the server can determine the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered before triggering the current scheduled task to be triggered; and based on the triggering time interval and the sequence of the occurrence time periods, determine the target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered, and update the matter list displayed on the terminal at the triggering time of the target scheduled task.
[0318] Optionally, the device further comprises:
[0319] An item list acquisition module, for acquiring the drawn item list template in response to a drawing completion operation of the item list template on the template setting interface;
[0320] The export module is used to export the item list template into object notation JSON type data and upload it to the server, so that the server generates the item list based on the item list template and the item information of the items that are occurring and / or to occur.
[0321] Optionally, the template setting interface includes a table configuration item, and the item list acquisition module includes:
[0322] a table generating unit, configured to generate a table in response to table attribute parameters input in the table configuration item, wherein the table attribute parameters include at least one of table size, number of rows and number of columns;
[0323] A first text attribute acquisition unit, used for receiving text input into a cell serving as a table header in the table configuration item, and a table header text attribute of the text;
[0324] The template generation unit is used to add the corresponding text to the cell serving as the header based on the header text attribute to obtain the item list template.
[0325] Optionally, the device further comprises:
[0326] A second text attribute acquisition unit, used for receiving a table body text attribute input for a non-table header cell in the table configuration item;
[0327] The template generation unit is specifically used to add the corresponding text to the cell serving as the table header based on the table header text attribute, and bind the table body text attribute to the corresponding cell to obtain the item list template.
[0328] Optionally, the table generating unit includes:
[0329] A coordinate system acquisition subunit, used to acquire a table coordinate system of the display screen to be displayed in response to the table attribute parameters input in the table configuration item;
[0330] A position coordinate determining subunit, used for determining the position coordinates of each cell in the table coordinate system based on the table attribute parameters and the table coordinate system;
[0331] The table generating subunit is used to generate the table based on the position coordinates of each cell in the table coordinate system.
[0332] Optionally, the template setting interface includes a drawing canvas, and the device further includes:
[0333] A data recording module is used to record the template elements generated by each drawing operation on the template setting interface, wherein one template element represents a modified item list template; the drawing operation includes but is not limited to any of the following: drawing operation on graphics in the item list template, and editing operation on table attribute parameters;
[0334] The data recovery module is used to render the target template element corresponding to the undo / redo operation among the recorded template elements to the drawing canvas in response to the triggered undo / redo operation.
[0335] Optionally, the data recording module includes:
[0336] An export unit, configured to export the current content on the drawing canvas into data in JSON format for each drawing operation occurring on the template setting interface;
[0337] The snapshot unit is used to take a snapshot of the exported data in JSON format as the template element of the record.
[0338] Optionally, the data recovery module includes:
[0339] An operation step length determining unit, used to determine the operation step length of the undo / redo operation;
[0340] An element search unit is used to search for a target template element corresponding to the operation step based on the operation step, starting from the last recorded template element, and render the target template element to the drawing canvas; wherein the operation step includes an undo type step and a redo type step.
[0341] Optionally, the device further comprises:
[0342] An object creation module, used to create a global state object corresponding to the drawing canvas;
[0343] A recording module, used for recording the template element and the number of operation steps corresponding to the template element into the global state object each time a template element is recorded; the number of operation steps is used to indicate the drawing operation corresponding to the template element;
[0344] The element search unit is specifically configured to search, based on the operation step, from the global state object for a template element whose operation step number corresponds to the operation step.
[0345] Optionally, the device further comprises:
[0346] a deleting module, configured to delete the template elements after the target template element if the target template element is not the last template element recorded; and / or to delete the template elements arranged in front if the number of template elements of the global state object exceeds the target number;
[0347] The recording module is specifically used to append a template element to the tail of the queue of the template elements each time a template element is recorded, and to update the number of operation steps of the template element.
[0348] Among them, the specific implementation process of the information processing device embodiment is similar to that of the information processing method embodiment, and it can refer to the process of the above-mentioned information processing method embodiment, which will not be repeated here.
[0349] Finally, it should be noted that, unless otherwise defined, the words "first", "second" and similar terms used in this article do not indicate any order, quantity or importance, but are only used to distinguish different components. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device 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, commodity or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0350] The above is a detailed introduction to an information processing method, an information processing system and an electronic device provided by the present disclosure. Specific examples are used in this article to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method of the present disclosure and its core idea. At the same time, for a person skilled in the art, according to the idea of the present disclosure, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
[0351] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0352] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0353] References herein to "one embodiment," "embodiment," or "one or more embodiments" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present disclosure. In addition, please note that examples of the term "in one embodiment" do not necessarily all refer to the same embodiment.
[0354] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0355] In the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present disclosure may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.
[0356] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. An information processing method, characterized in that: Applied to a server, the method comprises: Receive multiple items of event information sent by a client, each item of event information including an occurrence period of the item and a corresponding scheduled task; the scheduled task is used to trigger the server to update the item list displayed on the terminal at a triggering time point, the item list including item information of items that are occurring and / or to occur; Before triggering the current scheduled task to be triggered, determine the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered; Based on the trigger time interval and the order of the occurrence time periods, a target scheduled task is determined from the current scheduled task to be triggered and the next scheduled task to be triggered, and at the triggering time of the target scheduled task, the list of items displayed on the terminal is updated.
2. The method according to claim 1, characterized in that Based on the trigger time interval and the order of the occurrence time periods, determining a target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered includes: If the trigger time interval is greater than a first preset threshold, determining that the current scheduled task to be triggered and the next scheduled task to be triggered are both the target scheduled tasks; If the trigger time interval is not greater than the first preset threshold, it is determined that the target scheduled task is the one that occurs later in the current scheduled task to be triggered and the next scheduled task to be triggered.
3. The method according to claim 1, characterized in that: The method further comprises: If the trigger time interval is greater than or equal to the second preset threshold, the interval between the first occurrence period and the second occurrence period is determined; the first occurrence period is the occurrence period of the event corresponding to the current scheduled task to be triggered, and the second occurrence period is the occurrence period of the event corresponding to the next scheduled task to be triggered; In the case where the interval duration is greater than or equal to the target interval duration, generating event idle information based on the first occurrence time period and the second occurrence time period; the event idle information is used to indicate that the time period between the first occurrence time period and the second occurrence time period can be reserved; The event availability information is added to the event list displayed on the terminal to display the time periods that can be reserved in the event list.
4. The method according to claim 1, characterized in that: The list of items is generated by the following steps: Receiving a task list template sent by the client; The task list is generated based on the task list template and the task information of the tasks that are occurring and / or to occur.
5. The method according to any one of claims 1 to 4, characterized in that: The step of updating the list of items displayed on the terminal at the triggering time of the target scheduled task includes: At the triggering time point of the target scheduled task, obtaining first event information and second event information corresponding to the target scheduled task, wherein the occurrence time period of the second event information is after the occurrence time period of the event information corresponding to the target scheduled task; updating the status of the first event information and the status of the second event information, wherein the status includes an ongoing status and a non-occurring status; Generate a new item list based on the first item information and the second item information, and their respective updated states; The new task list is sent to the terminal to update the task list displayed on the terminal.
6. The method according to claim 1, characterized in that After the step of updating the list of items currently displayed on the terminal at the triggering time of the target scheduled task, the method further includes: When it is detected that any third item information among the plurality of item information is updated, generating a corresponding updated item list based on the updated third item information and the item list currently displayed on the terminal; The updated event list is sent to the terminal so that the terminal refreshes the displayed event list.
7. The method according to claim 1, characterized in that The triggering time point of the scheduled task corresponding to each event information is determined according to the occurrence period of the event information; the method further includes: When it is detected that the occurrence time period of any fourth event information among the plurality of event information is updated, the triggering time point of the scheduled task corresponding to the fourth event information is updated according to the updated occurrence time period.
8. The method according to claim 1, characterized in that Including a plurality of the terminals, the method further comprises: receiving a current performance parameter sent by each of the plurality of terminals, wherein the current performance parameter includes but is not limited to at least one of remaining power and signal strength; The step of updating the list of items displayed on the terminal at the triggering time of the target scheduled task includes: At the triggering time of the target scheduled task, the list of items displayed on the target terminal is updated; wherein the current performance parameter of the target terminal is greater than or equal to the target performance parameter.
9. An information processing method, characterized in that: Applied to a client, the method comprises: In response to an event entry on the event reservation interface, the entered event information is obtained; wherein the event information includes the event occurrence period and the corresponding scheduled task; the scheduled task is used to trigger the server to update the event list displayed on the terminal at the triggering time point, and the event list includes the event information of the events that are occurring and / or to occur; The event information is sent to the server so that the server determines the triggering time interval between the current scheduled task to be triggered and the next scheduled task to be triggered before triggering the current scheduled task to be triggered; and based on the triggering time interval and the sequence of the occurrence time periods, determines the target scheduled task from the current scheduled task to be triggered and the next scheduled task to be triggered, and updates the event list displayed on the terminal at the triggering time of the target scheduled task.
10. The method according to claim 9, characterized in that Before the step of sending the event information to the server, the method further includes: In response to a drawing completion operation of a task list template on a template setting interface, obtaining the drawn task list template; After exporting the task list template as object notation JSON type data, the data is uploaded to the server, so that the server generates the task list based on the acquired task list template and the task information of the tasks that are occurring and / or to occur.
11. The method according to claim 10, characterized in that The template setting interface includes a table configuration item, and the step of obtaining the drawn item list template in response to the drawing operation of the item list template performed on the template setting interface includes: generating a table in response to table attribute parameters input in the table configuration item, wherein the table attribute parameters include at least one of table size, number of rows and number of columns; Receive text input into a cell as a table header in the table configuration item, and a table header text attribute of the text; Based on the header text attributes, the corresponding text is added to the cell serving as the header to obtain the item list template.
12. The method according to claim 11, characterized in that Before the step of adding the corresponding text to the cell serving as the header based on the header text attribute to obtain the item list template, the method further includes: Receiving a table body text attribute input for a non-table header cell in the table configuration item; Based on the header text attribute, the corresponding text is added to the cell serving as the header to obtain the item list template, including: Based on the header text attribute, the corresponding text is added to the cell serving as the header, and the body text attribute is bound to the corresponding cell to obtain the item list template.
13. The method according to claim 11, characterized in that The step of generating a table in response to the table attribute parameters input in the table configuration item includes: In response to the table attribute parameters input in the table configuration item, obtaining a table coordinate system of the display screen to be displayed; Based on the table attribute parameters and the table coordinate system, determine the position coordinates of each cell in the table coordinate system; The table is generated based on the position coordinates of each cell in the table coordinate system.
14. The method according to any one of claims 10 to 13, characterized in that: The template setting interface includes a drawing canvas. Before the step of obtaining the drawn task list template in response to the drawing completion operation of the task list template on the template setting interface, the method further includes: For each drawing operation occurring on the template setting interface, the template element generated by the drawing operation is recorded, and one template element represents a modified item list template; the drawing operation includes but is not limited to any of the following: drawing operation on graphics in the item list template, editing operation on table attribute parameters; In response to the triggered undo / redo operation, a target template element corresponding to the undo / redo operation among the recorded template elements is rendered to the drawing canvas.
15. The method according to claim 14, characterized in that The step of recording the template elements generated by each drawing operation occurring on the template setting interface comprises: For each drawing operation occurring on the template setting interface, exporting the current content on the drawing canvas into data in JSON format; The exported data in JSON format is snapshotted as the template element of the record.
16. The method according to claim 14 or 15, characterized in that The step of rendering, in response to the triggered undo / redo operation, a target template element corresponding to the undo / redo operation among the recorded template elements to the drawing canvas comprises: Determining the operation step length of the undo / redo operation; Based on the operation step, a target template element corresponding to the operation step is searched starting from the last recorded template element, and the target template element is rendered to the drawing canvas; wherein the operation step includes an undo type step and a redo type step.
17. The method according to claim 16, characterized in that The method further comprises: Create a global state object corresponding to the drawing canvas; When recording each template element, the template element and the number of operation steps corresponding to the template element are recorded in the global state object; the number of operation steps is used to indicate the drawing operation corresponding to the template element; Based on the operation step length, searching for a template element corresponding to the operation step length from the last recorded template element includes: Based on the operation step length, searching the global state object for a template element whose operation step number corresponds to the operation step length.
18. The method according to claim 17, characterized in that In the global state object, each of the template elements is arranged in the order of operation steps, and the method further includes: When the target template element is not the last template element recorded, delete the template elements after the target template element; and / or when the number of template elements of the global state object exceeds the target number, delete the template elements arranged in front; When each template element is recorded, the template element and the number of operation steps corresponding to the template element are recorded in the global state object, including: Every time a template element is recorded, the template element is added to the tail of the queue of the template elements, and the operation step number of the template element is updated.
19. An information processing system, characterized in that: include: The client is used to send a plurality of event information to the server; each of the event information includes an occurrence period of the event and a corresponding scheduled task; The scheduled task is used to trigger the server to update the event list displayed on the terminal, wherein the event list includes event information of events that are occurring and / or to occur; The server is used to determine the next second scheduled task to be triggered before triggering the first scheduled task to be triggered currently; Based on the sequence of the occurrence time periods and the time interval between the triggering time points of the first scheduled task and the second scheduled task, a target scheduled task is determined in the first scheduled task and the second scheduled task, and at the triggering time point of the target scheduled task, the list of items displayed on the terminal is updated; The terminal is used to refresh the currently displayed item list based on the item list sent by the server.
20. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the information processing method according to any one of claims 1 to 8 or the information processing method according to any one of claims 9 to 18 is implemented.
21. A non-transitory computer-readable storage medium, characterized in that The computer program stored therein enables the processor to execute the information processing method described in any one of claims 1-8 or the information processing method described in any one of claims 9-18.
