Permission determination method and apparatus, and device and storage medium
By obtaining and utilizing the workflow identifiers and characteristics sent by the information sharing platform, the characteristics of the stakeholders are obtained from the storage spaces of different business systems, which solves the problem of high resource consumption in the existing technology, realizes the determination of permissions across business systems, and improves for compatibility and efficiency.
Patent Information
- Application Number
- PCT/CN2024/079958
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-03-04
- Publication Date
- 2024-09-26
AI Technical Summary
In the existing technology, in order to determine the permissions of associated objects on target workflow information, it is necessary to build process engines for different business systems, resulting in a large consumption of resources, especially when the number of business systems is large, the problem becomes more obvious.
By obtaining the identity of the workflow to which the target workflow information belongs and the characteristics of the associated objects sent by the information sharing platform before presenting the target workflow information to the target object, the corresponding stored workflow identifications of different business systems and the characteristics of the stakeholders are stored. Obtain the characteristics of the corresponding stakeholders in the space, and determine the permissions of the associated objects based on these characteristics to achieve permission determination across business systems.
There is no need to build a process engine for each business system, which saves resource consumption, achieves permission compatibility across business systems, and avoids waste of resources.
Smart Images

Figure CN2024079958_26092024_PF_FP
Abstract
Description
A method, device, equipment and storage medium for determining authority
[0001] This application claims priority to the Chinese invention patent application entitled “A method, apparatus, device and storage medium for determining authority” and application number 2023102726464, filed on March 20, 2023. The entire contents of that application are incorporated herein by reference. Technical Field
[0002] The present disclosure relates to the field of computer technology, and in particular to a permission determination method, device, information sharing platform, preview platform, electronic device, and computer-readable storage medium. Background Art
[0003] Currently, one type of workflow-related demand is the sharing of workflow information. For example, you might want to share workflow information with a specific user for review. To prevent information leakage, before presenting the information to the user, you need to check whether the user has the required permissions.
[0004] In the prior art, to determine user permissions for workflow information, it is necessary to build separate process engines for different business systems, which results in significant resource consumption. This problem becomes more pronounced when there are a large number of business systems.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide a method for determining permissions to solve the problem in the prior art that determining permissions of an associated object for target workflow information consumes a lot of resources.
[0007] The embodiments of the present disclosure also provide a permission determination device, an information sharing platform, a preview platform, a computing device, and a computer-readable storage medium.
[0008] The embodiments of the present disclosure adopt the following technical solutions:
[0009] A method for determining permissions includes: before presenting target workflow information to a target object, obtaining an identifier of the workflow to which the target workflow information belongs, as well as characteristics of an associated object of the target workflow information, which are sent to the target object by an information sharing platform; obtaining characteristics of a stakeholder corresponding to the identifier of the workflow from a storage space correspondingly storing identifiers of workflows of different business systems and characteristics of stakeholders of the workflows; and determining the permissions of the associated object with respect to the target workflow information based on the characteristics of the associated object and the characteristics of the corresponding stakeholder.
[0010] A method for determining permissions, which is applied to an information sharing platform, comprises: receiving target workflow information; sending a new message event notification to an information acquirer to instruct the information acquirer to execute: obtaining, before presenting the target workflow information to a target object, an identifier of a workflow to which the target workflow information belongs, and characteristics of an associated object of the target workflow information, which are sent by the information sharing platform to the target object; the identifier of the workflow to which the information belongs and the characteristics of the associated object are used to determine the permissions of the associated object with respect to the target workflow information.
[0011] A method for determining permissions, which is applied to a preview middle platform, and includes: receiving a new message event notification sent by an information sharing platform; in response to the new message event notification, obtaining an identifier of a workflow to which the target workflow information sent by the information sharing platform belongs, and characteristics of an associated object of the target workflow information, before presenting the target workflow information to the target object; and sending the identifier of the workflow to which the target belongs and the characteristics of the associated object to a permission determination party for determining the permissions of the associated object to the target workflow information.
[0012] A permission determination device includes: an acquisition unit for obtaining, before presenting target workflow information to a target object, an identifier of a workflow to which the target workflow information belongs, and features of an associated object of the target workflow information, which are sent to the target object by an information sharing platform; a feature determination unit for obtaining, from a storage space that should store identifiers of workflows of different business systems and features of stakeholders of workflows, features of stakeholders of workflows corresponding to the identifier of the associated workflow; and a permission determination unit for determining the permissions of the associated object for the target workflow information based on the features of the associated object and the features of the stakeholders of the associated workflow.
[0013] An information sharing platform includes: an information receiving unit for receiving target workflow information; a notification sending unit for sending a new message event notification to an information acquirer to instruct the information acquirer to execute: before presenting the target workflow information to a target object, obtaining an identifier of the belonging workflow sent by the information sharing platform to the target object, and characteristics of an associated object of the target workflow information; the identifier of the belonging workflow and the characteristics of the associated object are used to determine the associated object's authority over the target workflow information.
[0014] A preview middle platform includes: a notification receiving unit for receiving a new message event notification sent by an information sharing platform; an acquisition unit for obtaining, in response to the new message event notification, an identifier of the belonging workflow sent to the target object by the information sharing platform, and characteristics of an associated object of the target workflow information, before presenting the target workflow information to the target object; a sending unit for sending the identifier of the belonging workflow and the characteristics of the associated object to a permission determination party for determining the permission of the associated object to the target workflow information.
[0015] An electronic device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned permission determination method when executed by the processor.
[0016] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned permission determination method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation of the present disclosure. In the drawings:
[0018] FIG1 is a schematic diagram of a process for determining the authority of an associated object to share approval information in the prior art;
[0019] FIG2 is a schematic diagram of a specific implementation flow of a method for determining authority provided in Example 1 of the present disclosure;
[0020] FIG3 is a schematic diagram of an application scenario of a method for determining authority provided in Example 1 of the present disclosure;
[0021] FIG4 is a schematic diagram of information content of a typical approval information in an embodiment of the present disclosure;
[0022] FIG5 is a schematic diagram of a readable permission adjustment button displayed on a user terminal of a sharing party according to an embodiment of the present disclosure;
[0023] FIG6 a is a timing diagram of the application process of the permission determination method provided by an embodiment of the present disclosure in an actual scenario;
[0024] FIG6 b is a simplified schematic diagram of the application process of the permission determination method provided by an embodiment of the present disclosure in an actual scenario;
[0025] FIG7 is a schematic diagram of the specific structure of a permission determination device provided in Example 3 of the present disclosure;
[0026] FIG8 is a schematic diagram of the specific structure of an electronic device provided in Embodiment 4 of the present disclosure. DETAILED DESCRIPTION
[0027] To make the objectives, technical solutions, and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below in conjunction with the specific embodiments of the present disclosure and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present disclosure.
[0028] At least one of the above technical solutions adopted in the embodiments of the present disclosure can achieve the following beneficial effects:
[0029] After obtaining the identifier of the workflow to which the target workflow information sent to the target object by the information sharing platform belongs, and the characteristics of the associated objects of the target workflow information, the characteristics of the stakeholders corresponding to the identifier of the workflow can be obtained from the storage space that stores the identifiers of workflows of different business systems and the characteristics of the stakeholders of the workflows; and then, based on the characteristics of the associated objects and the obtained characteristics of the stakeholders, the permissions of the associated objects to the target workflow information are determined. In this way, the permission determination of the associated objects can be realized across business systems, with strong compatibility, and there is no need to build a process engine for each business system. Therefore, compared with the existing technology, resources are saved and large resource consumption is avoided.
[0030] The technical solutions provided by various embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0031] Example 1
[0032] In order to solve the problem that according to the prior art, determining the authority of the associated object to the target workflow information consumes a lot of resources, Example 1 of the present disclosure provides a method for determining authority. The execution subject of the method can be, but is not limited to, at least one of user terminals such as mobile phones, tablet computers, personal computers (PCs), wearable devices, etc., or it can be software running on the user terminal; or the execution subject of the method can also be a server or a server cluster, or it can be software running on the server; or the execution subject of the method can also be a workflow processing platform, etc. The execution subject does not constitute a limitation of the present disclosure. For the sake of convenience of description, Example 1 of the present disclosure takes the execution subject being a workflow processing platform as an example for explanation.
[0033] It can be understood that the execution subject of the method being a workflow processing platform is only an exemplary description and should not be understood as a limitation of the method.
[0034] FIG2 is a flow chart showing a specific implementation of a method for determining permissions according to an embodiment of the present disclosure, including the following steps:
[0035] Step 21: Before presenting the target workflow information to the target object, the workflow processing platform obtains the identifier of the workflow to which the target workflow information belongs, and the characteristics of the associated objects of the target workflow information, which are sent to the target object by the information sharing platform;
[0036] Workflow refers to the automation of part or all of a business process in a computer application environment. It is an abstract and general description of the workflow and the business rules between its various steps. There are generally three types of workflows: process workflow, project workflow, and case workflow.
[0037] The process engine is a tool used to drive the workflow to flow according to the set flow method.
[0038] For example, the approval flow is a typical workflow, the essence of which is the flow of information to be reviewed and the decision-making process.
[0039] The target workflow information described in step 21 refers to the workflow information shared by the sharing party to the target object (i.e., the shared party). For example, it can be information describing the specific work content of a workflow, or it can be information about all the people involved in the workflow, or it can be information about the storage address of the workflow's related historical data, etc. Any information related to the workflow, as long as it is shared by the sharing party to the target object, falls within the scope of the "target workflow information" described in the embodiments of the present disclosure.
[0040] The associated object of the target workflow information includes at least one of a sharing party of the target workflow information and a target object.
[0041] The information sharing platform refers to a platform that has the function of sharing information between different users, such as but not limited to: an instant messaging server, a server corresponding to a social client, etc.
[0042] To help readers better understand the solution provided by the embodiment of the present disclosure, the permission determination method shown in FIG2 can be understood in conjunction with the approval flow scenario shown in FIG3. In FIG3:
[0043] The approval flow processing platform is a type of workflow processing platform. It is a platform deployed in the embodiment of the present disclosure for uniformly determining the permissions of sharing stakeholders (ie, the associated objects).
[0044] The approval flow processing platform may be, for example but not limited to, a process engine, or may be a business system set up in the scenario for uniformly determining the permissions of sharing stakeholders.
[0045] The information sharing platform is a platform for supporting users to share approval information. Specifically, it can accept approval information sharing requests and, in response to the request, send the approval information to be shared to the shared party (i.e., the target object).
[0046] The business process management client is generally installed in the user terminal and provides various approval function modules, such as financial affairs approval module, test affairs approval module, leave approval module, etc., so that users (such as corporate employees) can initiate the approval process through a certain approval function module according to their actual approval needs;
[0047] Corresponding to the above-mentioned approval function module, Figure 3 also includes a business system, which may include a financial system, a test transaction processing system, a leave system, etc., which is used to receive approval requests initiated by users using the corresponding approval function module, and forward the approval requests to the approval flow processing platform for processing.
[0048] Based on the scenario shown in Figure 3, assume that user A uses the financial affairs approval module to initiate an expense reimbursement approval request to the corresponding financial system. After receiving the request, the financial system will forward the request to the approval flow processing platform. The approval flow processing platform will drive the expense reimbursement approval flow to flow in accordance with the set flow method based on the components of the expense reimbursement approval flow, such as the approver, approval rules, and operation actions.
[0049] For the specific implementation process of the approval flow processing platform driving the approval flow to flow according to the set flow method, please refer to the relevant mature technologies. Since this part of the content is not the focus of the embodiment of this disclosure, it will not be repeated here.
[0050] In the embodiment of the present disclosure, it is important to note that for the expense reimbursement approval process, if user A wishes to share the approval information (which may be pending approval information and / or approved information) of the expense reimbursement approval process with user B, then as shown in FIG3 , the following steps a to d may be performed:
[0051] Step a: User A uses the financial affairs approval module to send an approval information acquisition request to the approval flow processing platform. The approval information acquisition request may include the identifier of the approval flow corresponding to the approval information (such as the expense reimbursement approval flow described above).
[0052] The identifier of the approval flow can specifically be a unique identifier generated by the financial affairs approval module for the approval flow, and the identifier is carried in the expense reimbursement approval request and synchronized to the financial system and the approval flow processing platform; or, the identifier of the approval flow can also be generated by the approval flow processing platform for the approval flow, and the approval flow is synchronized to the financial system and the financial affairs approval module.
[0053] Step b: The approval flow processing platform responds to the approval information acquisition request and, based on the approval flow identifier included in the request, obtains the approval information and sends it to the financial affairs approval module of user A;
[0054] Among them, when the approval information is pending information, the approval information obtained by the approval flow processing platform can be at least one of the information contents contained in the pending information, such as at least one of the approval form name, applicant name, applicant's department, approval reason, document number, remarks and current approval status, etc.
[0055] When the approval information is reviewed information, the approval information obtained by the approval flow processing platform may also include the above-mentioned information contents.
[0056] The information content of a typical approval information can be shown in FIG4 .
[0057] In an optional embodiment, the approval information obtained by the approval flow processing platform may be at least one of the above-mentioned information contents; or, the approval information obtained by the approval flow processing platform may be the storage address of the approval information - for example, the approval information may be a Uniform Resource Locator (URL) used to indicate the storage address of at least one of the above-mentioned information contents.
[0058] In the approval flow processing platform, the approval flow identifier and approval information can be stored accordingly, so that the corresponding stored approval information can be queried and obtained based on the approval flow identifier contained in the approval information acquisition request.
[0059] Step c: After receiving the approval information fed back by the approval flow processing platform, user A's financial affairs approval module carries the approval information as the approval information to be shared in the approval information sharing request; and sends the approval information sharing request to the information sharing platform;
[0060] In addition to the approval information to be shared, the approval information sharing request may also include the identifier of the approval flow to which the approval information to be shared belongs, as well as information about the stakeholders involved in the sharing. The stakeholders include at least the user B who is being shared with. In addition, the stakeholders may also include the sharing party.
[0061] The information of the shared user B included in the approval information sharing request at least includes information that can represent the information receiving address of the shared user B, such as the IP address, account number or unique identity ID of the shared user B.
[0062] Step d: The information sharing platform sends the approval information to be shared to user B (specifically, it can be user B's business process management client) based on the information of the information receiving address that can represent the shared person user B contained in the approval information sharing request.
[0063] In step d, in addition to sending the approval information to be shared to user B, the information sharing platform will also send the identifier of the approval flow to which the approval information to be shared belongs and the characteristics of the sharing stakeholders of the approval information to be shared to user B to facilitate the subsequent determination of the permissions of the sharing stakeholders.
[0064] The characteristics of a shared stakeholder are used to represent the shared stakeholder's permissions in the approval flow to which the shared approval information belongs. For example, the characteristics of a shared stakeholder can be the shared stakeholder's name and position, the shared stakeholder's name, the shared stakeholder's position, or the shared stakeholder's permission identifiers in different approval flows, etc.
[0065] Among them, the approval information to be shared, the identifier of the approval flow to which the approval information to be shared belongs, and the characteristics of the sharing stakeholders of the approval information to be shared can be carried in the information sharing notification and sent to user B by the information sharing platform.
[0066] By executing steps a through d above, user A can send the approval information to be shared, the identifier of the approval flow to which the approval information to be shared belongs, and the characteristics of the stakeholders with whom the approval information to be shared is shared, to user B via the information sharing platform. However, to prevent information leakage, before the approval information to be shared is presented to the recipient, it is necessary to check whether the sharer has the permission to share the approval information to be shared, and / or whether the recipient has the permission to read the approval information to be shared.
[0067] To achieve the above-mentioned purpose, the method provided in the embodiment of the present disclosure is that before the approval flow processing platform presents the approval information to be shared to the shared party, it obtains the identifier of the approval flow to which the approval information to be shared belongs, as well as the characteristics of the sharing stakeholders of the approval information to be shared, which are sent by the information sharing platform to the shared party.
[0068] The obtained identification of the approval flow to which the approval information to be shared belongs and the characteristics of the sharing stakeholders of the approval information to be shared are used to determine the sharing stakeholders' authority over the approval information to be shared in subsequent steps.
[0069] In an optional embodiment, in step 21, the workflow processing platform obtains the identifier of the workflow to which the target workflow information sent by the information sharing platform belongs, and the characteristics of the object associated with the target workflow information, which may specifically include:
[0070] The workflow processing platform obtains the identifier of the workflow to which the target workflow information intercepted by the information interception method and sent to the target object by the information sharing platform belongs, and the characteristics of the associated objects of the target workflow information.
[0071] In the embodiments of the present disclosure, at least two optional implementations are provided to achieve the above-mentioned interception.
[0072] Still taking the scenario shown in FIG3 as an example, two specific interception methods are described as follows.
[0073] The first implementation method: the approval flow processing platform directly intercepts information.
[0074] The specific implementation of this method includes the following steps 1 and 2:
[0075] Step 1: The approval flow processing platform receives a new message event notification from the information sharing platform;
[0076] This new message event notification is used to indicate that the information sharing platform is about to send the approval information to be shared to the shared party.
[0077] Step 2: In response to the new message event notification, the approval flow processing platform intercepts the information sent by the information sharing platform to the shared party, obtains the identification of the approval flow to which the approval information to be shared belongs, and the characteristics of the sharing stakeholders of the approval information to be shared, sent by the information sharing platform.
[0078] The second implementation method: the preview platform intercepts information.
[0079] The specific implementation of this method includes the following steps I to III:
[0080] Step I: The preview platform receives new message event notifications sent by the information sharing platform;
[0081] This new message event notification is used to indicate that the information sharing platform is about to send the approval information to be shared to the shared party.
[0082] The preview platform is used to control the presentation of the approval information to be shared on the shared party. The presentation methods may include, but are not limited to: no presentation, full presentation, and partial presentation.
[0083] The preview platform can be a platform independent of the information sharing platform or a component of the information sharing platform. For example, the preview platform can be an instant messaging application, an instant messaging client, instant messaging software, or an instant messaging module that can be embedded in other platforms.
[0084] Step II: In response to the new message event notification, the preview platform intercepts the information sent by the information sharing platform to the shared party, obtains the identification of the approval flow to which the approval information to be shared belongs, and the characteristics of the sharing stakeholders of the approval information to be shared, sent by the information sharing platform;
[0085] Step III: The preview center sends the received approval flow identifier of the approval information to be shared and the characteristics of the stakeholders of the approval information to be shared to the approval flow processing platform.
[0086] It should be noted that for user B who is being shared, when the approval information to be shared is presented at user B, the identifier of the approval flow to which the approval information to be shared belongs, and the characteristics of the sharing stakeholders of the approval information to be shared, may not play a role - for example, if the approval information to be shared is in the form of a URL, subsequently, user B can obtain and present the approval information based on the URL if he has the permission to read the approval information to be shared.
[0087] Therefore, in the disclosed embodiment, intercepting the information sharing platform's identification of the approval flow to which the approval information to be shared belongs, as well as the characteristics of the stakeholders involved in the approval information, sent to the recipient, does not have a decisive impact on the presentation of the approval information to be shared to User B. Ultimately, the factor influencing the presentation of the approval information to be shared to User B remains the stakeholder's authority over the approval information to be shared.
[0088] In the embodiment of the present disclosure, when the above information is intercepted, the approval information to be shared can be released so that the approval information to be shared can reach user B.
[0089] In the embodiment of the present disclosure, before sending the approval information to be shared to the sharee, the information sharing platform notifies the information acquirer (approval flow processing platform, or preview middle platform) to intercept the information by sending a new message event notification, so that the information acquirer can timely intercept the identifier of the approval flow to which the approval information to be shared belongs, as well as the characteristics of the sharing stakeholders of the approval information to be shared.
[0090] Of course, in the embodiments of the present disclosure, it is not limited to using this method to intercept the identification of the approval flow and the characteristics of the sharing stakeholders. Any method that enables the approval flow processing platform to obtain the identification of the approval flow and the characteristics of the sharing stakeholders before presenting the approval information to be shared to the shared party falls within the protection scope of the embodiments of the present disclosure.
[0091] In an optional embodiment, the phrase "before presenting the target workflow information to the target object" in the embodiments of the present disclosure may refer to the information sharing platform presenting the target workflow information to the target object, or may refer to another device / component capable of "presenting the target workflow information to the target object" presenting the target workflow information to the target object. It is understood that the information sharing platform / device / component capable of such a function may wait to determine whether the target object has permission to read the target workflow information before presenting the target workflow information to the target object.
[0092] The specific implementation method of presenting the target workflow information to the target object can be to directly send the target workflow information to the target object for presentation, or it can be based on the target workflow information, such as generating an information preview card containing the target workflow information, and then sending the information preview card to the target object for presentation.
[0093] The presentation may be to display the target workflow information (or information preview card) in a visual manner, or to voice broadcast the information content of the target workflow information, and so on.
[0094] Step 22: The approval flow processing platform obtains the stakeholder characteristics corresponding to the workflow identifier obtained by executing step 21 from the storage space corresponding to the workflow identifiers of different business systems and the characteristics of the workflow stakeholders;
[0095] Considering that the purpose of building separate process engines for different business systems in the prior art is to encapsulate the information of the permissions of each stakeholder of the corresponding workflow in the workflow to which they belong in different process engines, and this approach will result in a large consumption of resources, therefore, in the embodiment of the present disclosure, a storage space is pre-constructed to store the identification of workflows of different business systems and the characteristics of the stakeholders of the workflows.
[0096] The stakeholders of a workflow may include all or some of the people involved in the work content of the workflow. For example, if the workflow is an approval flow, the stakeholders of the approval flow may include the applicant and approver of the approval flow.
[0097] The characteristics of a workflow stakeholder are the characteristics that characterize the stakeholder's permissions within the workflow. These characteristics can be the stakeholder's name and position, a shared stakeholder's name, a shared stakeholder's position, or a stakeholder's permission identifier within the workflow, among other things.
[0098] Continuing with the scenario shown in Figure 3, in one example, it is assumed that the approval flow processing platform obtains the approval information to be shared by executing step 21, and the identification of the approval flow to which it belongs is "Video Review Department-Financial Reimbursement". The identification of the approval flow and the characteristics of the stakeholders of the approval flow stored in the storage space are shown in Table 1 below:
[0099] Table 1:
[0100] Based on this storage space, after obtaining the identification of the approval flow to which the approval information to be shared belongs, the approval flow processing platform can, based on the identification of the approval flow, query the identifications of the approval flows of different business systems and the characteristics of the stakeholders of the approval flow stored in the storage space, and obtain the characteristics of the stakeholders of the approval flow corresponding to the identification of the approval flow to which the approval information to be shared belongs.
[0101] In an example, based on Table 1, the approval flow processing platform can obtain the characteristics of the stakeholders of the approval flow stored corresponding to the approval flow identifier "Video Review Department-Financial Reimbursement", including the "Department-Position" label, and specifically [Video Review Department-Employee] and [Video Review Department-Department Manager].
[0102] [Video Review Department - Employee] and [Video Review Department - Department Manager] are the characteristics of the stakeholders of the approval flow corresponding to the obtained approval flow identifier obtained by the approval flow processing platform.
[0103] In another example, if the approval flow identification obtained by the approval flow processing platform is "Software Testing Department-First Group Online Testing Affairs", then by querying Table 1, the approval flow processing platform can obtain the characteristics of the stakeholders of the approval flow stored corresponding to the identification of the approval flow, including the "Department-Name" label and the "Department-Position" label, and specifically: [Software Testing Department-Zhang San], [Software Testing Department-Li Si], [Software Testing Department-Department Manager].
[0104] [Software Testing Department - Zhang San], [Software Testing Department - Li Si], and [Software Testing Department - Department Manager] are the characteristics of the stakeholders of the approval flow corresponding to the obtained approval flow identifiers obtained by the approval flow processing platform.
[0105] Step 23: The workflow processing platform determines the authority of the associated object to the target workflow information based on the characteristics of the associated object of the target workflow information obtained by executing step 21 and the characteristics of the stakeholder corresponding to the identifier of the workflow to which the target workflow information belongs determined by executing step 22.
[0106] For example, the workflow processing platform can compare the characteristics of the acquired associated object with the characteristics of the stakeholder determined by executing step 22; and then determine whether the associated object is the stakeholder based on the comparison result; further, based on the judgment result, determine the authority of the associated object to the target workflow information.
[0107] In an optional implementation, if the sharing party and the target object included in the associated object are both stakeholders, the preset read permission of the target object in the workflow can be obtained as the target object's permission for the work information to be shared.
[0108] Continuing with the scenario shown in Figure 3, a specific example is as follows:
[0109] If the acquired shared stakeholder characteristics are "Software Testing Department - Zhang San" (the characteristics of the sharer) and "Software Testing Department - Li Si" (the characteristics of the shared party, i.e., the characteristics of the target object); and the stakeholder characteristics of the approval flow determined by executing step 22 are "[Software Testing Department - Zhang San], [Software Testing Department - Li Si], [Software Testing Department - Department Manager]", then, by comparison, it can be determined that "Software Testing Department - Zhang San" and "Software Testing Department - Li Si" are both stakeholders of the approval flow. Therefore, it can be directly determined that the shared stakeholders have the permission to read the approval information to be shared.
[0110] In this case, the recipient, Li Si, can directly obtain the "Read and Share Permission" preset for Li Si from the "Stakeholder Permissions" field shown in Table 1 as Li Si's permission for the approval information to be shared. This permission indicates that Li Si has the permission to read the approval information to be shared.
[0111] In an optional embodiment, if the characteristics of the associated object of the target workflow information match the characteristics of the stakeholder corresponding to the identifier of the workflow to which the target workflow information belongs, indicating that the associated object is a stakeholder of the workflow, then it can be directly assumed that the associated object has the right to read the target workflow information without obtaining the content in the "Stakeholder Rights" field.
[0112] Continuing with the scenario shown in Figure 3, a specific example is as follows:
[0113] If the characteristics of the shared stakeholders obtained are "Human Resources Department-Li Yi" (characteristics of the sharing party) and "Software Testing Department-Department Manager" (characteristics of the shared party); and based on Table 1, the characteristics of the stakeholders of the approval flow determined by executing step 22 are "[Software Testing Department-Wang Wu], [Software Testing Department-Zhao Liu], [Software Testing Department-Department Manager]". Since "Human Resources Department-Li Yi" does not match the characteristics of the stakeholders of the approval flow, it can be determined that the sharing party in the sharing stakeholder does not have the sharing authority for the approval information to be shared. In such a case, the authority of the sharing party in the sharing stakeholder for the approval information to be shared can be directly determined as "no read authority" by default, thereby ending the process without confirming the authority of the shared party in the sharing stakeholder for the approval information to be shared.
[0114] From the above, it can be seen that in an optional implementation, the authority of the sharing party in the associated object of the target workflow information to the target workflow information can be determined first, and then based on the determination result, it is determined whether to further determine the authority of the target object to the target workflow information or to end the process.
[0115] Continuing with the scenario shown in Figure 3, a specific example is as follows:
[0116] If the characteristics of the shared stakeholders obtained are "Software Testing Department-Zhang San" (characteristics of the sharing party) and "Human Resources Department-Li Yi" (characteristics of the shared party); and the characteristics of the stakeholders of the approval flow determined by executing step 22 are "[Software Testing Department-Zhang San], [Software Testing Department-Li Si], [Software Testing Department-Department Manager]". Then, by comparison, it can be known that "Software Testing Department-Zhang San" is a stakeholder of the approval flow, and thus, it can be determined that the sharing parties in the sharing stakeholders all have the permission to read the approval information to be shared. In this case, for the shared party Li Yi, although his characteristics do not match the characteristics of the stakeholders of the approval flow, the preset permission to read of the sharing party Zhang San in the approval flow can be assigned to the shared party Li Yi, so that Li Yi can subsequently view the approval information that can be seen from Zhang San's perspective.
[0117] Generally, when assigning the preset read permission of the sharing party to the target workflow information to the target object, only the read permission of the sharing party to the target workflow information can be assigned to the target object, without assigning the sharing permission of the sharing party to the target workflow information to the target object.
[0118] In an optional implementation, considering that the sharing party is in a dominant position of "active sharing" of the target workflow information, that is, the sharing party has a higher say in the "readable permission" of the target workflow information, it can allow / not allow the target workflow information to be presented at the target object. Therefore, the embodiment of the present disclosure also provides a solution for the sharing party to conveniently control the target object's permission to the target workflow information: that is, the workflow processing platform can support responding to the adjustment request of the readable permission sent by the sharing party.
[0119] The adjustment request is used to request activation or deactivation of the target object's permission to read the target workflow information.
[0120] For example, if the target object has read permission for the target workflow information, the adjustment request sent by the sharing party to the workflow processing platform can be used to request the workflow processing platform to deactivate the read permission. In response to the adjustment request, the workflow processing platform can delete the read permission for the target object, so that the target object no longer has read permission for the target workflow information.
[0121] For example, if the target object has been deactivated from reading permission for a certain target workflow information, the adjustment request sent by the sharing party to the workflow processing platform can be used to request the workflow processing platform to reactivate the reading permission. In response to the adjustment request, the workflow processing platform can reactivate the target object's reading permission for the target workflow information, that is, reassign the target object to the reading permission for the target workflow information.
[0122] In an optional embodiment, the workflow processing platform may respond to the adjustment request only when it determines that the sharing party is a stakeholder of the workflow to which the target workflow information belongs; if the sharing party is not a stakeholder of the workflow to which the target workflow information belongs, the workflow processing platform may not respond to the adjustment request.
[0123] In an optional implementation, the adjustment request may be triggered based on an operation on a readable permission adjustment button displayed on the user terminal of the sharing party.
[0124] As shown in Figure 5, it is a schematic diagram of the read permission adjustment button displayed on the user terminal of the sharing party. By clicking this button, the read permission of the shared "Li Si" to the approval information (i.e., the target workflow information) shared by the sharing party can be triggered.
[0125] In an optional implementation, the authority of the associated object to the target workflow information determined by executing step 23 is used to control the presentation manner of the target workflow information on the target object.
[0126] In one example, if it is determined that both the sharing party and the target party included in the associated object are stakeholders of the workflow to which the target workflow information belongs, the target object can display the information content of the target workflow information on the target object's end according to the information readability scope that matches the target object's preset readability permissions in the workflow. For example, if the information readability scope is "can read all information content included in any approval information of the workflow," then the entire information content of the target workflow information can be displayed on the sharing party's end.
[0127] In one example, if the sharing party's preset read permissions in the workflow are assigned to the target object, the target object can display the target workflow information on the target object's end according to the information readability range that matches the sharing party's preset read permissions in the workflow. For example, if the information readability range is "can read the applicant and approval reason included in any approval item in the workflow, but cannot read other information," then the sharing party can subsequently display the applicant and approval reason included in the target workflow information on the target object's end, while other information is not displayed.
[0128] In an optional implementation, the presentation mode of the target workflow information on the target object can be controlled by a preview platform, which can be a module included in the workflow processing platform or a platform independent of the workflow processing platform.
[0129] In an optional embodiment, the preview center can determine the information readability range corresponding to the target object's permission for the target workflow information by querying the pre-saved preset correspondence between different information readability ranges and corresponding permissions based on the target object's permission for the target workflow information. Furthermore, based on the determined information readability range and the target workflow information, a preview page for the target workflow information is generated, and the preview page is sent to the target object's client for display. The information content of the target workflow information displayed on the preview page satisfies the following conditions: it matches the determined information readability range.
[0130] In an optional implementation, the target workflow information obtained by the preview center may be obtained by the preview center by intercepting the target workflow information sent to the target object by the information sharing platform.
[0131] In an optional implementation, the target workflow information obtained by the preview center may be the target workflow information sent to the target object by the information sharing platform after being intercepted by the workflow processing platform.
[0132] By adopting the above method provided by the embodiment of the present disclosure, after obtaining the identifier of the workflow to which the target workflow information sent to the target object by the information sharing platform belongs, and the characteristics of the associated object of the target workflow information, the characteristics of the stakeholder corresponding to the identifier of the workflow can be obtained from the storage space that stores the identifiers of workflows of different business systems and the characteristics of the stakeholders of the workflow; and then, based on the characteristics of the associated object and the obtained characteristics of the stakeholder, the authority of the associated object to the target workflow information is determined. In this way, the authority determination of the associated object can be realized across business systems, with strong compatibility, and there is no need to build a process engine for each business system. Therefore, compared with the existing technology, resources are saved and large resource consumption is avoided.
[0133] Based on the same inventive concept, Example 1 of the present disclosure further provides a method for determining permissions, which can be applied to an information sharing platform and includes the following steps:
[0134] receiving target workflow information;
[0135] Sending a new message event notification to the information acquirer to instruct the information acquirer to: before presenting the target workflow information to the target object, obtain the identifier of the workflow to which the target workflow information belongs, and the characteristics of the objects associated with the target workflow information, sent by the information sharing platform to the target object;
[0136] The identifier of the workflow and the characteristics of the associated object are used to determine the authority of the associated object to the target workflow information.
[0137] Based on the same inventive concept, embodiment 1 of the present disclosure further provides a method for determining permissions, which can be applied to the preview platform and includes the following steps:
[0138] Receive new message event notifications from information sharing platforms;
[0139] In response to a new message event notification, before presenting the target workflow information to the target object, obtaining an identifier of the workflow to which the target workflow information belongs, and features of an associated object of the target workflow information, sent by the information sharing platform to the target object;
[0140] The identifier of the approval flow and the characteristics of the associated object are sent to a permission determination party for determining the permission of the associated object to the target workflow information.
[0141] In an optional implementation, to facilitate the sharing party to adjust the target object's permissions on the target workflow information, the method may further include:
[0142] Generate an information preview card containing the target workflow information and a button for adjusting readability based on the target workflow information;
[0143] Send the information preview card to the target workflow information sharing party;
[0144] If a read permission adjustment request triggered by operating the button is received, the read permission of the target object with respect to the target workflow information is adjusted in response to the adjustment request.
[0145] The adjustment request is used to request activation or deactivation of the target object's permission to read the target workflow information.
[0146] By adopting any of the above methods provided in Example 1 of the present disclosure, after obtaining the identifier of the workflow to which the target workflow information sent to the target object by the information sharing platform belongs, and the characteristics of the associated object of the target workflow information, the characteristics of the stakeholder corresponding to the identifier of the workflow can be obtained from the storage space that stores the identifiers of workflows of different business systems and the characteristics of the stakeholders of the workflow; and then, based on the characteristics of the associated object and the obtained characteristics of the stakeholder, the authority of the associated object to the target workflow information is determined. In this way, the authority determination of the associated object can be realized across business systems, with strong compatibility, and there is no need to build a process engine for each business system. Therefore, compared with the existing technology, resources are saved and large resource consumption is avoided.
[0147] The above method is imperceptible to the business system. Compared with the existing technology, it can also avoid the problem of excessive participation of the business system in the target workflow information sharing process, which leads to excessive load on the business system, allowing the business system to manage business data more focusedly.
[0148] It should be noted that the steps of the method provided in Example 1 can be performed by the same execution subject, or can also be performed by different execution subjects. In addition, the embodiments of the present disclosure do not limit the execution order of the steps of the above method. The numbering of each step in the embodiments of the present disclosure is for the purpose of describing each step in an orderly manner, and does not limit the execution order of the steps. That is, the numbering of each step in the embodiments of the present disclosure cannot be regarded as limiting the execution order of the steps.
[0149] Example 2
[0150] In order to enable readers to more clearly understand the permission determination method provided by the embodiment of the present disclosure, a specific application process of the permission determination method provided by the embodiment of the present disclosure in an actual scenario is described below.
[0151] Please refer to Figure 6, which is a timing diagram of this specific application process. The parties involved in this timing diagram include:
[0152] 1. User 1: is the initiator of the approval process and the sharer of the approval form;
[0153] In the sequence diagram shown in FIG6 , it is assumed that the pending approval transaction corresponding to the approval request initiated by user 1 is: user 1 applies for an online test of the software function currently developed by user 1.
[0154] 2. User 2: The person to whom the approval form is shared;
[0155] 3. Third-party system: This is the business system used by user 1 to initiate the approval process. For example, it can be the company's leave application system for processing leave requests, the expense reimbursement system for processing employee expense reimbursements, the testing system for processing testing transactions, etc.
[0156] 4. Message service: This is the instant messaging server used by user 1 to share approval forms with user 2, or a functional component of the instant messaging server;
[0157] 5. Preview middle-end service: a server or a functional component of a server that provides user 1 and / or user 2 with an approval form for preview on the approval client of user 1 and / or user 2;
[0158] 6. Approval service is a server or a functional component of a server that checks and adjusts the permissions of process stakeholders. At the same time, the approval service can create approval forms for preview by the sharer and the sharee;
[0159] 7. The authority service is a server or a functional component of a server that is used to store the identification of business flows of different business systems and the authority information of the process stakeholders of the business flows.
[0160] In particular, the above-mentioned approval service and permission service can both be functional components of the process engine.
[0161] The timing diagram shown in Figure 6 mainly includes three main links. As shown in Figure 6, they are as follows:
[0162] Step 1: Initiate the process and synchronize data to approval;
[0163] Step 2: User 1 views the invoice details and shares the link;
[0164] Step 3: The shared user views the document.
[0165] The following describes the steps involved in each link.
[0166] The steps in step 1, "Initiate process, synchronize data to approval," are as follows:
[0167] Step 1: User 1 initiates an approval request to the third-party system, which also initiates the process;
[0168] Specifically, user 1 can send an approval request to the third-party system through the client of the third-party system installed on his mobile phone.
[0169] The approval request may include the following information input or selected by user 1 based on the approval transaction input interface presented by the client:
[0170] The identifier of the approval flow of the pending approval transaction, such as "Online Test";
[0171] The name of the requester, such as "User 1";
[0172] Notes on pending matters, such as "The company's key project must be completed by February 18, 2023."
[0173] In addition, the approval request may also include a request ID for uniquely representing the approval request. The ID may be generated by the client according to a set ID generation algorithm.
[0174] Step 2: After receiving the approval request, the third-party system sends a confirmation message of "Process initiated successfully" to the client of user 1;
[0175] Step 3: The third-party system sends the received approval request to the approval service. After receiving the approval request, the approval service, on the one hand, stores the approval flow identifier of the pending approval matter, the name of the requester, and the remarks of the pending approval matter contained in the approval request in correspondence with the request ID contained in the approval request. On the other hand, the approval service drives the approval flow corresponding to the approval request to flow according to the set flow method.
[0176] By executing steps 1 to 3 above, the relevant data of the pending approval transaction can be synchronized to the approval service, thus completing step one.
[0177] The following describes the steps involved in step 2, "User 1 views document details and shares the link," as follows:
[0178] Step 4: User 1 sends a request to the approval service to obtain process details;
[0179] Specifically, user 1 may use the client of the approval service to send a request for obtaining process details to the approval service, and the request may include the aforementioned request ID.
[0180] In an optional embodiment, the client of the third-party system and the client of the approval service may be the same client. That is, the server (or functional components of the server) corresponding to the same client may include the third-party system and the approval service.
[0181] Step 5: After receiving the request for obtaining process details, the approval service obtains the approval flow identifier, the name of the requester, and the access address (in the form of a URL) of the pending approval transaction's notes stored corresponding to the request ID, based on the request ID included in the request. The obtained URL is then sent to the approval service client of User 1.
[0182] In addition to sending the URL to the client of the approval service of user 1, the other information (detailed information) stored corresponding to the request ID may also be sent to the client of the approval service of user 1.
[0183] Step 6: After receiving the URL, User 1 wants to share the approval form with User 2 by sending an instant messaging message. User 1 then uses the approval service client to share the approval form. Specifically, User 1's approval service client sends an approval form sharing request to the instant messaging service.
[0184] The approval form sharing request includes the URL, the identifier of user 1 (specifically, the user ID of user 1 registered in the approval service), and the identifier of user 2 (specifically, the user ID of user 2 registered in the approval service).
[0185] The identifier of user 1 may be carried in the "sharer" field included in the approval form sharing request; the identifier of user 2 may be carried in the "shared with" field included in the approval form sharing request.
[0186] Step 7: After receiving the approval form sharing request, the instant messaging service sends an approval form sharing notification to the approval service client of user 2 based on the user 2's identifier in the approval form sharing request;
[0187] The approval form sharing notification includes the identifier of user 1, the identifier of user 2, and the URL.
[0188] Step 8: In response to the received approval form sharing request, the instant messaging service sends a new message event notification to the preview middle office service;
[0189] The new message event notification may include the identifier of User 2. This new message event notification is used to notify the preview service that the instant messaging service is about to send a notification about sharing the approval form to User 2. This triggers the preview service to intercept the notification.
[0190] Step 9: In response to the received new message event notification, the preview middle-end service can learn that the instant messaging service is about to send an approval form sharing notification to user 2, and thus intercept the approval form sharing notification sent by the instant messaging service to user 2, thereby intercepting the approval form sharing notification sent by the instant messaging service; after intercepting the approval form sharing notification, the preview middle-end service sends the intercepted approval form sharing notification to the approval service, thereby triggering the approval service to create a preview callback;
[0191] Among them, callback is a function, which can be called a callback function. The functions implemented by the callback function include: passing a function as a parameter to another function, and executing the passed function after the other function is executed.
[0192] In the disclosed embodiment, the preview middle-office service triggers the "preview callback" created by the approval service, and the functions implemented include: passing the "preview creation function" as a parameter to the "authority check and add function", and when the "authority check and add function" is executed, the "preview creation function" is executed.
[0193] After creating a preview callback, the approval service can execute the created preview callback. The process of executing the preview callback by the approval service can specifically include the following steps 10 to 16:
[0194] Step 10: The approval service checks the process stakeholder permissions of the sharer through the permission query service;
[0195] In step 10, the approval service can obtain the ID of User 1, the ID of User 2, and the URL from the approval form sharing notification. Furthermore, based on the "Shared By" field and the "Shared With" field where the IDs of User 1 and User 2 are located, the approval service can determine that User 1 is the sharer and User 2 is the shared with.
[0196] Based on the URL, the approval service can obtain the approval flow identifier from the storage space indicated by the URL, that is, obtain the identifier of the approval flow to which the approval form to be shared belongs; based on the approval flow identifier, the approval service can query the approval flow identifiers and approval flow stakeholder identifiers of different business systems pre-stored in the authority service, thereby determining the approval flow stakeholder identifier stored corresponding to the approval flow identifier;
[0197] Based on the identifier of the sharer user 1 and the identifier of the approval flow stakeholder determined to be stored corresponding to the identifier of the approval flow, the approval service can determine whether the sharer user 1 is an approval flow stakeholder of the approval flow;
[0198] If the judgment result is yes, it is determined that the sharing user 1 has the process stakeholder authority of the approval flow, and step 11 is executed;
[0199] If the judgment result is no, it is determined that the sharing user 1 does not have the process stakeholder authority of the approval flow, and the process can be ended.
[0200] Step 11: The approval service checks the process stakeholder permissions of the shared person through the query permission service;
[0201] Based on the ID of user 2, the approval service can determine whether user 2 is an approval flow stakeholder of the approval flow based on the ID of the approval flow determined by the permission query service.
[0202] If the judgment result is yes, it is determined that the shared user 2 has the process stakeholder authority of the approval flow, and step 13 is executed;
[0203] If the judgment result is no, go to step 12;
[0204] Step 12: The approval service checks whether the person being shared with has been assigned "read permissions that match the sharer's approval information reading scope for this approval flow" by querying the permission service. If so, proceed to step 13; otherwise, proceed to step 14.
[0205] Step 13: The permission service feeds back the permission query result to the approval service, which includes the permission of the shared user 2 for the approval form (depending on the actual situation, it may be the process stakeholder permission, or it may be "the read permission that matches the sharer's approval information reading scope for the approval flow"); based on the query result, the approval service generates an approval form for the shared user 2 to preview based on the information such as the requester's name and the remarks of the pending approval matter obtained from the storage space indicated by the URL. The information content in the approval form meets the following requirements: it matches the permission of the shared user 2 for the approval form.
[0206] Step 14: The permission service assigns the sharee "read permissions that match the sharee's approval information reading scope for the approval flow" to the sharee, and then executes step 15;
[0207] Step 15: The permission service sends a notification of successful permission addition to the approval service. The notification includes the permission assigned to the sharee: "Read permission that matches the sharee's approval information reading scope for this approval flow"; based on this permission, the approval service generates an approval form for the sharee user 2 to preview. The information content in the approval form meets the following requirements: it matches the permission of the sharee user 2 for the approval form.
[0208] The approval form previewed by the shared user 2 can be stored in the approval service in correspondence with the approval flow ID.
[0209] In the disclosed embodiments, assigning permissions to a sharee can specifically involve adding a tag to the sharee indicating the permissions the sharee possesses. Different permissions are typically represented by different tags. The tag can be stored in a corresponding manner with the sharee's identifier in the permissions service.
[0210] Step 16: The approval service sends a preview creation success notification message to the preview middle office service;
[0211] Step 17: The preview middleware service forwards the preview creation success notification message to the client of the approval service of user 1;
[0212] Step 18: The preview middleware service forwards the preview creation success notification message to the client of the approval service of user 2;
[0213] Step 19: User 1 uses his / her own approval service client to request the preview service to obtain the shared preview result of the approval form, and carries the request ID of the approval request mentioned above;
[0214] Step 20: The preview service requests the approval service to obtain the shared preview result of the approval form, and carries the request ID of the approval request;
[0215] Step 21: The approval service obtains the generated preview approval form based on the request ID of the approval request and sends it to the preview middle-end service;
[0216] Step 22: The preview middleware service sends the generated preview approval form to the client of the approval service of user 1, so that the client can display the approval form;
[0217] It should be noted that when user 1 requests a preview result, they can include their ID. Based on this ID, the approval service can provide the preview form to the preview middleware service based on the user's permissions for the form, generating a preview form for user 1 that matches their permissions. In other words, the information displayed on the approval service client for user 1 matches the information reading scope indicated by their permissions.
[0218] When generating the approval form, the approval service can obtain the information stored corresponding to the request ID of the approval request, such as the name of the requester and the remarks of the matter to be approved, and based on this information and the authority of user 1 for the approval form, generate an approval form that matches the authority of user 1 for preview by user 1.
[0219] Step 23: User 2 uses his / her own approval service client to request the preview service to obtain the shared preview result of the approval form;
[0220] Step 24: The preview service requests the approval service to obtain the preview result of the shared approval form;
[0221] Step 25: The approval service sends the generated preview approval form to the preview middle-end service;
[0222] Step 26: The preview service sends the generated approval form for preview by user 2 to the client of the approval service of user 2, so that the client can display the approval form;
[0223] Step 27: User 2 uses his / her own approval service client to request the approval service to obtain the details of the shared approval form, and provides the user 2's ID and the approval flow ID;
[0224] Among them, the ID of the approval flow can be sent to user 2 synchronously when the preview middle-end service sends the approval form generated for preview by shared user 2 to user 2.
[0225] Step 28: The approval service checks whether user 2 has the stakeholder permissions for the approval flow to which the approval form belongs; if so, execute step 30; if not, execute step 29;
[0226] For the specific inspection method, please refer to the relevant description above and will not be repeated here.
[0227] Step 29: Based on the ID of User 2, the Approval Service checks whether User 2 has been assigned "Read permissions that match the sharer's approval information reading scope for this approval flow" by querying the Permission Service. If so, the process proceeds to Step 30; otherwise, the process ends.
[0228] Step 30: The permission service returns the permission query result to the approval service;
[0229] Depending on the actual situation, the permission query result may be that user 2 has the process stakeholder permission for the business flow to which the approval information belongs, or it may be that user 2 has "read permission that matches the sharer's approval information reading scope for the approval flow."
[0230] Step 31: Based on the query results, the approval service determines that user 2 has the process stakeholder authority for the business flow to which the approval information belongs, or has "read permissions that match the sharer's reading scope of approval information for the approval flow". It obtains various detailed information stored corresponding to the ID of the approval flow, such as the name of the requester and the remarks information of the pending approval matter, and sends it to the client of the approval service of user 2.
[0231] The simplified flow chart of the application process provided in Example 2 of the present disclosure can be seen in Figure 6b.
[0232] Example 3
[0233] Based on the same inventive concept as Embodiments 1 and 2 of the present disclosure, Embodiment 3 of the present disclosure provides a permission determination device to solve the problem in the prior art that determining the permission of an associated object to target workflow information consumes a lot of resources.
[0234] FIG7 is a schematic diagram showing a specific structure of the permission determination device provided in an embodiment of the present disclosure, including:
[0235] The acquisition unit 71 is configured to acquire, before presenting the target workflow information to the target object, an identifier of the workflow to which the target workflow information belongs and features of an object associated with the target workflow information, which are sent to the target object by the information sharing platform;
[0236] The feature determination unit 72 is configured to obtain the feature of the stakeholder corresponding to the identifier of the workflow from a storage space storing identifiers of workflows of different business systems and features of stakeholders of the workflows;
[0237] The authority determination unit 73 is configured to determine the authority of the associated object with respect to the target workflow information according to the characteristics of the associated object and the characteristics of the corresponding stakeholder.
[0238] In an optional embodiment, the acquisition unit 71 can be specifically used to: obtain the identifier of the workflow to which the target workflow information intercepted by the information interception method and sent to the target object by the information sharing platform belongs, and the characteristics of the associated object of the target workflow information.
[0239] In an optional implementation, the acquiring unit 71 may include:
[0240] A notification receiving module, configured to receive a new message event notification sent by the information sharing platform; the new message event notification is used to indicate that the information sharing platform is about to send the target workflow information to the target object;
[0241] An interception execution module is used to respond to the new message event notification by intercepting the information sent by the information sharing platform to obtain the identifier of the workflow to which the target workflow information sent by the information sharing platform to the target object belongs, as well as the characteristics of the associated object of the target workflow information.
[0242] In an optional implementation, the acquiring unit 71 may include:
[0243] The receiving module is used to receive the identifier of the workflow to which the target workflow information belongs and the characteristics of the associated object of the target workflow information sent by the preview center.
[0244] The preview center uses information acquisition to intercept the identifier of the workflow to which the target workflow information sent by the information sharing platform belongs and the features of the associated objects of the target workflow information.
[0245] In an optional implementation, the permission determined by the permission determination unit 73 is used to control the presentation manner of the target workflow information on the target object.
[0246] In an optional implementation, the authority determination unit 73 can be specifically used to: determine whether the associated object is a stakeholder of the workflow based on the characteristics of the associated object and the characteristics of the corresponding stakeholder; and determine the authority of the associated object to the target workflow information based on the judgment result.
[0247] In an optional implementation, the authority determination unit 73 may be specifically configured to:
[0248] If both the sharing party included in the associated object and the target object are stakeholders of the workflow, obtaining the preset read permission of the target object in the workflow as the permission of the target object to the target workflow information;
[0249] If the sharing party is a stakeholder of the workflow, and the target object is not a stakeholder of the workflow, the target object is assigned a permission to read the target workflow information as the target object's permission to the target workflow information.
[0250] In an optional implementation, the authority determination unit 73 may be specifically configured to:
[0251] Determine the preset reading permission of the sharing party in the corresponding workflow;
[0252] The target object is assigned the preset reading permission of the sharing party in the corresponding workflow.
[0253] In an optional implementation, the device provided by the embodiment of the present disclosure may further include:
[0254] a request receiving unit, configured to receive a read permission adjustment request sent by the sharing party; the adjustment request is used to request activation or deactivation of the read permission of the target object for the target workflow information;
[0255] An adjusting unit is configured to adjust the target object's permission to read the target workflow information in response to the adjustment request if the sharing party is a stakeholder of the workflow.
[0256] In an optional implementation, the adjustment request is triggered based on an operation on a readable permission adjustment button displayed on a user terminal of the sharing party.
[0257] Based on the same inventive concept as the aforementioned embodiments, the present disclosure also provides an information sharing platform. The information sharing platform includes: an information receiving unit and a notification sending unit.
[0258] An information receiving unit, configured to receive target workflow information;
[0259] A notification sending unit is used to send a new message event notification to the information acquirer to instruct the information acquirer to execute: before presenting the target workflow information to the target object, obtain the identifier of the workflow to which the target workflow information sent by the information sharing platform to the target object belongs, and the characteristics of the associated objects of the target workflow information.
[0260] The identifier of the workflow and the characteristics of the associated object are used to determine the authority of the associated object to the target workflow information.
[0261] Based on the same inventive concept as the above embodiments, the embodiment of the present disclosure also provides a preview middle platform, including: a notification receiving unit, an acquisition unit and a sending unit.
[0262] Notification receiving unit, used to receive new message event notifications sent by the information sharing platform;
[0263] an acquiring unit, configured to acquire, in response to the new message event notification, an identifier of a workflow to which the target workflow information belongs, and features of an object associated with the target workflow information, sent by the information sharing platform to the target object, before presenting the target workflow information to the target object;
[0264] The sending unit is configured to send the identifier of the workflow and the characteristics of the associated object to a permission determining party for determining the permission of the associated object to the target workflow information.
[0265] In an optional embodiment, the device may further include:
[0266] a card generating unit, configured to generate, according to the target workflow information, an information preview card including the target workflow information and a readable permission adjustment button;
[0267] A card sending unit, configured to send the information preview card to a sharing party of the target workflow information;
[0268] A permission adjustment unit is used to adjust the target object's permission to read the target workflow information in response to a request for adjusting the permission to read triggered by operating the button, wherein the adjustment request is used to request activation or deactivation of the target object's permission to read the target workflow information.
[0269] By adopting the above-mentioned permission determination device provided by the embodiment of the present disclosure, after obtaining the identifier of the workflow to which the target workflow information sent to the target object by the information sharing platform belongs, and the characteristics of the associated object of the target workflow information, the characteristics of the stakeholder corresponding to the identifier of the workflow can be obtained from the storage space that stores the identifiers of workflows of different business systems and the characteristics of the stakeholders of the workflow; and then, based on the characteristics of the associated object and the obtained characteristics of the stakeholder, the permission of the associated object to the target workflow information is determined. Thus, the permission determination of the associated object can be realized across business systems, with strong compatibility, and there is no need to build a process engine for each business system. Therefore, compared with the existing technology, resources are saved and large resource consumption is avoided.
[0270] Example 4
[0271] Based on the same inventive concept as the embodiments described above, embodiment 4 of the present disclosure provides an electronic device.
[0272] As shown in FIG8 , the electronic device includes a memory 81 and a processor 82. The memory 81 can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device. The memory 81 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.
[0273] The processor 82 is coupled to the memory 81 and is configured to execute a program stored in the memory 81 to execute a permission determination method described in an embodiment of the present disclosure.
[0274] When the processor 82 executes the program in the memory 81 , in addition to the above functions, it can also implement other functions. For details, please refer to the description of the previous embodiments.
[0275] Furthermore, as shown in Figure 8 , the electronic device also includes other components such as a display 84, a communication component 83, a power supply component 85, and an audio component 86. Figure 8 only schematically illustrates some components, which does not mean that the electronic device only includes the components shown in Figure 8 .
[0276] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements the steps of any of the method embodiments described in the above embodiments and can achieve the same technical effects. To avoid repetition, the details are not described here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0277] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0278] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0279] 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 various embodiments of the present disclosure.
Claims
1. A method for determining authority, characterized in that: include: Before presenting the target workflow information to the target object, obtaining an identifier of the workflow to which the target workflow information belongs and features of an object associated with the target workflow information, which are sent to the target object by the information sharing platform; Acquire the stakeholder feature corresponding to the identifier of the workflow from a storage space corresponding to the identifiers of workflows of different business systems and the features of the stakeholders of the workflows; The authority of the associated object to the target workflow information is determined according to the characteristics of the associated object and the characteristics of the corresponding stakeholder.
2. The method according to claim 1, characterized in that Acquiring the identifier of the workflow to which the target workflow information sent by the information sharing platform to the target object belongs and the characteristics of the object associated with the target workflow information includes: The identifier of the workflow to which the target workflow information intercepted by the information interception method and sent to the target object by the information sharing platform belongs and the characteristics of the object associated with the target workflow information are obtained.
3. The method according to claim 2, characterized in that Acquiring the identifier of the workflow to which the target workflow information intercepted by the information interception method and sent by the information sharing platform to the target object belongs, and the characteristics of the object associated with the target workflow information, including: Receiving a new message event notification sent by the information sharing platform; the new message event notification is used to indicate that the information sharing platform is about to send the target workflow information to the target object; In response to the new message event notification, the information sent by the information sharing platform is intercepted to obtain the identifier of the workflow to which the target workflow information sent by the information sharing platform to the target object belongs and the characteristics of the associated object of the target workflow information.
4. The method according to claim 2, characterized in that Acquiring the identifier of the workflow to which the target workflow information sent by the information sharing platform to the target object belongs and the characteristics of the object associated with the target workflow information includes: Receive an identifier of the workflow to which the target workflow information belongs and features of an associated object of the target workflow information sent by the preview center; The preview center uses information acquisition to intercept the identifier of the workflow to which the target workflow information sent by the information sharing platform belongs and the characteristics of the associated object of the target workflow information.
5. The method according to claim 1, characterized in that The determined permission is used to control the presentation manner of the target workflow information on the target object.
6. The method according to claim 5, characterized in that Determining the authority of the associated object for the target workflow information according to the characteristics of the associated object and the characteristics of the corresponding stakeholder includes: According to the characteristics of the associated object and the characteristics of the corresponding stakeholder, determining whether the associated object is a stakeholder of the workflow; According to the judgment result, the authority of the associated object to the target workflow information is determined.
7. The method according to claim 6, characterized in that Determining the authority of the associated object to the target workflow information according to the judgment result includes: If the sharing party included in the associated object and the target object are both stakeholders of the workflow, obtaining the preset read permission of the target object in the workflow as the permission of the target object to the target workflow information; If the sharing party is a stakeholder of the workflow, and the target object is not a stakeholder of the workflow, a permission to read the target workflow information is allocated to the target object as the target object's permission to the target workflow information.
8. The method according to claim 7, characterized in that Allocating the target object with the permission to read the information to be shared, including: Determine the preset reading permission of the sharing party in the corresponding workflow; The target object is assigned the preset reading permission of the sharing party in the corresponding workflow.
9. The method according to claim 7 or 8, characterized in that The method further comprises: receiving a read permission adjustment request sent by the sharing party; the adjustment request is used to request activation or deactivation of the read permission of the target object for the target workflow information; If the sharing party is a stakeholder of the workflow, the read permission of the target object to the target workflow information is adjusted in response to the adjustment request.
10. The method according to claim 9, characterized in that The adjustment request is triggered based on an operation on a readable permission adjustment button displayed on a user terminal of the sharing party.
11. A method for determining authority, characterized in that: The method is applied to an information sharing platform, and the method comprises: receiving target workflow information; Sending a new message event notification to the information acquirer to instruct the information acquirer to execute: obtaining an identifier of the workflow to which the target workflow information sent by the information sharing platform to the target object belongs, and features of an object associated with the target workflow information, before presenting the target workflow information to the target object; The identifier of the workflow to which the associated object belongs and the characteristics of the associated object are used to determine the authority of the associated object to the target workflow information.
12. A method for determining authority, characterized in that: The method is applied to the preview platform, and the method includes: Receive new message event notifications from information sharing platforms; In response to the new message event notification, before presenting the target workflow information to the target object, obtaining an identifier of the workflow to which the target workflow information belongs, and a feature of an object associated with the target workflow information, sent by the information sharing platform to the target object; The identifier of the workflow and the characteristics of the associated object are sent to a permission determination party for determining the permission of the associated object to the target workflow information.
13. The method according to claim 12, characterized in that The method further comprises: Generate an information preview card including the target workflow information and a readable permission adjustment button according to the target workflow information; Sending the information preview card to a sharing party of the target workflow information; If a request for adjusting the read permission triggered by operating the button is received, the read permission of the target object to the target workflow information is adjusted in response to the adjustment request; wherein the adjustment request is used to request activation or deactivation of the read permission of the target object to the target workflow information.
14. A permission determination device, characterized in that: include: An acquisition unit, used for acquiring, before presenting the target workflow information to the target object, an identifier of the workflow to which the target workflow information belongs and a feature of an object associated with the target workflow information, which is sent by the information sharing platform to the target object; A feature determination unit, configured to obtain, from a storage space that should store the identifiers of workflows of different business systems and the features of the stakeholders of the workflows, the features of the stakeholders of the workflows corresponding to the identifier of the workflow to which the workflow belongs; The authority determination unit is used to determine the authority of the associated object to the target workflow information according to the characteristics of the associated object and the characteristics of the stakeholders of the workflow.
15. An information sharing platform, characterized in that: include: An information receiving unit, used for receiving target workflow information; A notification sending unit, configured to send a new message event notification to an information acquirer to instruct the information acquirer to execute: before presenting the target workflow information to the target object, obtaining an identifier of the workflow to which the information sharing platform belongs and a feature of an associated object of the target workflow information; The identifier of the workflow to which the associated object belongs and the characteristics of the associated object are used to determine the authority of the associated object to the target workflow information.
16. A preview platform, characterized in that: include: A notification receiving unit, used to receive new message event notifications sent by the information sharing platform; an acquisition unit, configured to acquire, in response to the new message event notification, an identifier of the workflow to which the information sharing platform belongs and sent to the target object before presenting the target workflow information to the target object, and characteristics of an associated object of the target workflow information; The sending unit is used to send the identifier of the workflow and the characteristics of the associated object to a permission determining party used to determine the permission of the associated object to the target workflow information.
17. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the authority determination method according to any one of claims 1 to 13 are implemented.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the permission determination method according to any one of claims 1 to 13 are implemented.
Citation Information
Patent Citations
Media information sharing processing method and device
CN106022009A
Work order task co-processing method, device and computer readable storage medium
CN107146074A
Instant messaging method, communication terminal and computer readable medium
CN107579911A
Office system and work task management method and device
CN113988801A
Permission determination method and device, equipment and storage medium
CN116361831A
