Dimension-based state updating method and device
Through the dimension-based state update method, the problem of existing software lacking flexibility and universality in office status management is solved, and multiple sets of office status maintenance and flexible state definitions are realized, meeting the needs of different companies.
Patent Information
- Application Number
- CN202411658428.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-14
AI Technical Summary
Existing software lacks flexibility in office status management, is difficult to expand and maintain, and the office status judgment implemented by algorithms is not very versatile and cannot adapt to the needs of different companies.
The dimension-based state update method is adopted, by adding source information to the decision pool, obtaining the current event and matching the preset trigger event, determining the dimension information and priority, and updating the personnel status. This method supports maintenance of multiple sets of office statuses, allowing users to use office status from dimensions that suit them.
It realizes flexible office status management, meets the needs of different companies, provides relatively accurate basic status and customized compound status, and avoids compound status from being deviated from reality.
Smart Images

Figure CN119622453A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of state change, and in particular to a dimension-based state update method and device. Background Art
[0002] Currently, there is no clear and unified standard for office status in the software on the market. Generally, the software simply modifies the office status of personnel through several specific dimensions, or determines the office status based on some algorithm.
[0003] The method of simply modifying the office status of personnel through several specific dimensions is not conducive to expansion. It is not convenient to add and maintain during modification, or it cannot be automatically modified based on certain logic. The method of determining office status based on a certain algorithm requires pre-defining the scope of the status and maintaining the automatic determination of the status through an algorithm or a large model. This method may require certain data training each time a certain status is added, or a certain algorithm may be suitable for one company but not for another company, resulting in the algorithm's low universality. Summary of the invention
[0004] The purpose of the present invention is to provide a dimension-based status update method, which aims to maintain multiple sets of office status based on different dimensions, so that users can use the office status of the dimension from the dimension that suits them.
[0005] In order to achieve the above object, the present invention provides a dimension-based state update method, the method comprising:
[0006] Adding a source to the determination pool, the source information includes: dimension information, priority, and preset trigger events, the dimension information at least includes dimension and status;
[0007] Acquire the current event, and determine the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event;
[0008] Determine the current status priority of the personnel, and compare the corresponding priority in the source with the determined priority of the personnel to be compared;
[0009] When the priority of the source is higher than the priority of the determined person to be compared, the status of the person to be compared is determined based on the priority of the source.
[0010] In one implementation, the database setting of the source information includes:
[0011] Formulate a basic dimension and a composite dimension, wherein the composite dimension is composed of at least two basic dimensions;
[0012] Formulate a basic state corresponding to the basic dimension and a composite state corresponding to the conforming dimension, wherein the conforming state is composed of at least two basic states;
[0013] Set the priority for each basic state separately;
[0014] And at least one preset trigger event is assigned to each basic state.
[0015] In one implementation, the method includes:
[0016] Based on the basic state and the compliance state, defining a preset trigger event related to the basic state and a preset trigger event related to the compliance state;
[0017] The logic of the base state and the conforming state is determined.
[0018] In one implementation, the method further includes:
[0019] When the status of the person to be compared changes to the basic status
[0020] Identify the logic associated with the underlying state of the change;
[0021] Traverse all logics and change the composite state according to the logical judgment results.
[0022] In one implementation, the basic dimension includes: a commuting dimension and a meeting dimension. The commuting dimension includes a working state and an off-duty state. The meeting dimension includes a meeting state and a non-meeting state.
[0023] In one implementation, the step of obtaining the current event and determining the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event includes:
[0024] The current time is obtained, and when the current time matches a preset triggering event for going to work in the preset triggering event, it is determined that the preset triggering event corresponds to the going to work state and the corresponding priority.
[0025] In addition, the present invention also discloses a dimension-based state updating device, the device comprising:
[0026] An adding module, used to add a source to the determination pool, wherein the source information includes: dimension information, priority, and a preset trigger event, wherein the dimension information includes at least dimension and status;
[0027] An acquisition module, used to acquire the current event, and determine the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event;
[0028] A determination module, used to determine the current status priority of the personnel, and compare the corresponding priority in the source with the determined priority of the personnel to be compared;
[0029] An updating module is used to determine the status of the person to be compared based on the priority of the source when the priority of the source is higher than the priority of the determined person to be compared.
[0030] By applying the embodiment of the present invention, multiple sets of office statuses are maintained based on different dimensions, so that users can use the office status of the dimension that suits them.
[0031] The advantages of the present invention are that it has relatively accurate basic states that can meet common office needs, and it also has composite states that can be customized according to the specific conditions of different companies. Compared with the old state definition method, it is more flexible, and based on different logics, different composite states can be defined to meet the needs of different companies. Moreover, the composite state is given based on the change of the basic state, which will not cause the composite state to be out of touch with reality. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of a dimension-based state updating method according to an embodiment of the present invention.
[0033] Figure 2 It is a schematic diagram of a processing result of a dimension-based state updating method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0035] Please refer to the attached drawings. It should be noted that the illustrations provided in this embodiment are only used to illustrate the basic concept of the present invention in a schematic manner, and the drawings only show the components related to the present invention rather than the number, shape and size of the components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0036] like Figure 1 As shown, the present invention provides a dimension-based state update method, the method comprising:
[0037] S101, adding a source to a determination pool, wherein the source information includes: dimension information, priority, and a preset trigger event, wherein the dimension information includes at least a dimension and a state.
[0038] Definition of basic dimensions and basic status. Define basic dimensions according to the types of trigger sources within the company, and define basic status according to the status within each type. For example, if the company has attendance, then you can define the basic dimension of on-duty and off-duty, and the basic status is on-duty and off-duty. If the company has a conference system, you can define the basic dimension of meeting, and the basic status is not in meeting or in meeting.
[0039] Define the weight of the source and put it into the judgment pool. There will be many sources in the judgment pool, and the source will be accompanied by dimension information, status information, weight information and expected trigger time information. When the expected trigger time is reached, the source will be taken out and compared with the current status of the personnel. If the source weight is large and the same, the status of the corresponding dimension of the personnel will be changed to the status attached to the source, otherwise it will remain unchanged.
[0040] In the implementation of the present invention, the source information is added to the determination pool for subsequent operations. The source information is similar to a database, and the priority of the state, basic dimensions and composite dimensions (composite of two or more dimensions) can be obtained through the source information.
[0041] For example, if a meeting is scheduled at 9:00 for 10:00-11:00, two sources will be added to the judgment pool. One source is in a meeting, which contains information: the dimension is meeting status, the status is in a meeting, the preset trigger time is 10:00, the end time of the status is 11:00, and the priority is 2; the other source is not in a meeting, which contains information: the dimension is meeting status, the status is not in a meeting, the preset trigger time is 11:00, the end time of the status is 2999 / 12 / 3123:99, and the priority is 1.
[0042] S102, obtaining a current event, and determining dimension information and priority corresponding to the preset trigger event based on a condition that the preset trigger event matches the current event;
[0043] In the embodiment of the present invention, the current event can be the current time or other events. For example, if the current time is 8:59, the preset trigger event is going to work, and the corresponding time is 9:00, then the current event does not match the working time. If the current time is 9:00 or later, then it is a match.
[0044] S103, determining the current status priority of the personnel, and comparing the corresponding priority in the source with the determined priority of the personnel to be compared;
[0045] It should be noted that when comparing priorities, the end time of the current status of the personnel must be determined first. For example, in the meeting in S101, at 11:00, the source "not in meeting" is taken out. Although the priority of not in meeting is lower than the current status "in meeting", the end time of in meeting is 11:00, and the end time <= current time is an invalid state, and no priority comparison is required.
[0046] Then, based on the example of S101, add the following assumption: there is another meeting from 11:00 to 11:30. Then at 11:00, the current status of the person is "in a meeting", and two events are triggered, corresponding to two sources, one is "not in a meeting" in S101, and the other is the "in a meeting" source assumed in S103. The end time of the current status is <= current time, which is an invalid state. No priority comparison is required. What needs to be compared is "not in a meeting" in S101 and "in a meeting" assumed in S103.
[0047] Based on the example in S101, add the following assumption: there is another meeting from 11:30 to 12:00. Then at 11:30, the current status of the person is "not in a meeting", and the trigger time is "in a meeting". The end time of the "not in a meeting" status is greater than the current time, and a comparison is required. In the end, the comparison is between "not in a meeting" and "in a meeting".
[0048] S104: When the priority of the source is higher than the priority of the determined person to be compared, determine the status of the person to be compared based on the priority of the source.
[0049] For example, in the two newly added assumptions in S103, both "not in meeting" and "in meeting" need to be compared. The priority of "not in meeting" is less than the priority of "in meeting", so the personnel status is changed to the new "in meeting" status, and the end time of the status duration also needs to be updated at the same time.
[0050] The difference between the method of the embodiment of the present invention and other status systems is that the status of a person can be defined by two layers of logic, and the second status determination can be mixed based on the first layer status and other actions.
[0051] It should be noted that dimensions are divided into basic dimensions and composite dimensions, and similarly, states are divided into basic states and composite states. Basic dimensions and composite dimensions are the same in principle, except that basic dimensions are formed based on office event triggers, while composite dimensions are formed based on the combination of basic dimensions. The states defined in basic dimensions are basic states, while the states defined in composite dimensions are composite states.
[0052] In one implementation, the database setting of the source information includes: formulating basic dimensions and composite dimensions, wherein the composite dimension is composed of at least two basic dimensions; formulating basic states corresponding to the basic dimensions and composite states corresponding to the compliance dimensions, wherein the compliance states are composed of at least two basic states; formulating the priority of each basic state respectively; and assigning at least one preset trigger event to each basic state.
[0053] Everyone has a unique working status in every dimension.
[0054] like Figure 2 As shown in the figure, such a definition can meet the needs of different users for different states. For example, Company A can define A composite dimension and composite states A1, A2, A3, and Company B can define B composite dimension and composite states B1, B2. Company A can use the composite states of A1, A2, A3, and Company B can use the composite states of B1, B2.
[0055] The two states are separated and triggered by different types of sources, which can be more flexible. The basic state is generally used to define states that are not easy to change, such as: in the company, not in the company. The composite state is determined by the state of one or several basic dimensions through custom logic. The custom logic is bound to the composite dimension, and the composite state can be determined according to the different situations of different companies.
[0056] In one implementation, the method includes:
[0057] Based on a basic state and a conforming state, a preset trigger event related to the basic state and a preset trigger event related to the conforming state are defined; and logic of the basic state and the conforming state are determined.
[0058] In one implementation, the method further includes: determining logic associated with the changed basic state when the state of the person to be compared changes to a basic state; traversing all logics, and changing the composite state according to the result of the logic determination.
[0059] In one implementation, the basic dimension includes: a commuting dimension and a meeting dimension. The commuting dimension includes a working state and an off-duty state. The meeting dimension includes a meeting state and a non-meeting state.
[0060] The advantages of the present invention are that it has relatively accurate basic states that can meet common office needs, and it also has composite states that can be customized according to the specific conditions of different companies. Compared with the old state definition method, it is more flexible, and based on different logics, different composite states can be defined to meet the needs of different companies. Moreover, the composite state is given based on the change of the basic state, which will not cause the composite state to be out of touch with reality.
[0061] The change of the basic state will trigger the corresponding logical judgment, and one or more composite states will be changed through the logical judgment result. The logical judgment process and the composite dimension state must be self-definable. The state judgment of the composite dimension is generally based on the combination of multiple states. For example, the working state can be triggered by the working state or the meeting state.
[0062] Therefore, in the embodiment of the present invention, a new state can be defined by state change; the state has a weight, and the state with a high weight in the same group can replace the state with a low weight; the change of the state can also be defined by custom logic.
[0063] In one implementation, the step of obtaining the current event and determining the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event includes:
[0064] The current time is obtained, and when the current time matches a preset triggering event for going to work in the preset triggering event, it is determined that the preset triggering event corresponds to the going to work state and the corresponding priority.
[0065] In addition, the present invention also discloses a dimension-based state updating device, the device comprising:
[0066] An adding module, used to add a source to the determination pool, wherein the source information includes: dimension information, priority, and a preset trigger event, wherein the dimension information includes at least dimension and status;
[0067] An acquisition module, used to acquire the current event, and determine the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event;
[0068] A determination module, used to determine the current status priority of the personnel, and compare the corresponding priority in the source with the determined priority of the personnel to be compared;
[0069] An updating module is used to determine the status of the person to be compared based on the priority of the source when the priority of the source is higher than the priority of the determined person to be compared.
[0070] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A dimension-based state update method, characterized in that: The method comprises: Adding a source to the determination pool, the source information includes: dimension information, priority, and preset trigger events, the dimension information at least includes dimension and status; Acquire the current event, and determine the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event; Determine the current status priority of the personnel, and compare the corresponding priority in the source with the determined priority of the personnel to be compared; When the priority of the source is higher than the priority of the determined person to be compared, the status of the person to be compared is determined based on the priority of the source.
2. The dimension-based status update method according to claim 1, characterized in that: Database settings for source information, including: Formulate a basic dimension and a composite dimension, wherein the composite dimension is composed of at least two basic dimensions; Formulate a basic state corresponding to the basic dimension and a composite state corresponding to the conforming dimension, wherein the conforming state is composed of at least two basic states; Set the priority for each basic state separately; And at least one preset trigger event is assigned to each basic state.
3. The dimension-based status update method according to claim 1, characterized in that: The method comprises: Based on the basic state and the compliance state, defining a preset trigger event related to the basic state and a preset trigger event related to the compliance state; The logic of the base state and the conforming state is determined.
4. The dimension-based status update method according to claim 1 or 2, characterized in that: The method further comprises: When the status of the person to be compared is changed to the basic status; Identify the logic associated with the underlying state of the change; Traverse all logics and change the composite state according to the logical judgment results.
5. The dimension-based status update method according to claims 1-3, characterized in that: The basic dimension includes: a get off work-on-duty dimension and a meeting dimension. The get off work-on-duty dimension includes a work-on status and an off-duty status. The meeting dimension includes a meeting status and a non-meeting status.
6. The dimension-based status update method according to claim 1, characterized in that: The step of obtaining the current event and determining the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event includes: The current time is obtained, and when the current time matches a preset triggering event for going to work in the preset triggering event, it is determined that the preset triggering event corresponds to the going to work state and the corresponding priority.
7. A dimension-based state updating device, characterized in that: The device comprises: An adding module, used to add a source to the determination pool, wherein the source information includes: dimension information, priority, and a preset trigger event, wherein the dimension information includes at least dimension and status; An acquisition module, used to acquire the current event, and determine the dimension information and priority corresponding to the preset trigger event based on the condition that the preset trigger event matches the current event; A determination module, used to determine the current status priority of the personnel, and compare the corresponding priority in the source with the determined priority of the personnel to be compared; An updating module is used to determine the status of the person to be compared based on the priority of the source when the priority of the source is higher than the priority of the determined person to be compared.