Data interaction method and device, electronic equipment and storage medium

By configuring interface task nodes in the workflow to determine the interface configuration information, and determining the target interaction interface in the pre-created interaction interface, the problem of cumbersome data interaction operations in the existing technology is solved, and flexible and convenient data interaction is achieved.

CN118733149APending Publication Date: 2024-10-01JINGDONG CITY BEIJING DIGITS TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410874100.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the systems to be interacted with may be different for different work task processes, which results in the need to rewrite the program code. The operation is cumbersome and time-consuming, and data interaction operations cannot be completed flexibly.

Method used

By responding to the configuration trigger operation of the interface task node, the interface configuration information is determined, and the target interactive interface is determined in the pre-created interactive interface to realize data interactive operations and avoid rewriting the code.

Benefits of technology

It improves the flexibility and convenience of data interaction operations, saves a lot of time and resources, and realizes flexible data interaction for different work task processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733149A_ABST
    Figure CN118733149A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data interaction method and device, electronic equipment and a storage medium. The method comprises the steps of determining interface configuration information corresponding to an interface task node in response to a first configuration trigger operation for the interface task node in a to-be-executed workflow; based on the interface configuration information, determining a target interaction interface corresponding to the interface configuration information in at least one pre-created interaction interface, so as to call the target interaction interface to perform data interaction operation when it is detected that the to-be-executed workflow is executed to the interface task node; wherein the to-be-executed workflow is composed of at least one task node, and the interface task node is a task node used for data interaction in the to-be-executed workflow. According to the technical scheme, the target interaction interface can be flexibly determined in the pre-created interaction interfaces through the first configuration triggering operation, and the effect of improving the flexibility and convenience of data interaction operation is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a data interaction method, device, electronic device, and storage medium. Background Art

[0002] As the types of business in the work process become more extensive and complex, effectively interacting the work data generated in the workflow with external systems has become an important part of the work business process.

[0003] In the prior art, for different work task processes, it is necessary to write program codes separately according to the specified interface of the corresponding system to be interacted in each work task process, and complete the data interaction with the corresponding system to be interacted through the written program codes.

[0004] However, in the process of implementing the present invention, it was found that the prior art has at least the following technical problems: since different work task processes may correspond to different systems to be interacted with, and the corresponding designated interfaces are also different, before executing different work task processes, it is necessary to rewrite the program code each time, which makes the operation cumbersome and time-consuming, and it is impossible to flexibly complete the data interaction operations in different work task processes. Summary of the invention

[0005] The embodiments of the present invention provide a data interaction method, device, electronic device and storage medium to achieve the purpose of improving the flexibility and convenience of data interaction operations.

[0006] According to one aspect of the present invention, there is provided a data interaction method, comprising:

[0007] In response to a first configuration triggering operation on an interface task node in a to-be-executed workflow, determining interface configuration information corresponding to the interface task node;

[0008] Based on the interface configuration information, a target interaction interface corresponding to the interface configuration information is determined in at least one pre-created interaction interface, so as to call the target interaction interface to perform a data interaction operation when it is detected that the workflow to be executed reaches the interface task node;

[0009] The workflow to be executed is composed of at least one task node, and the interface task node is a task node used for data interaction in the workflow to be executed.

[0010] According to another aspect of the present invention, there is provided a data interaction device, the device comprising:

[0011] An interface configuration information determination module, configured to determine, in response to a first configuration trigger operation on an interface task node in a to-be-executed workflow, interface configuration information corresponding to the interface task node;

[0012] a target interaction interface determination module, configured to determine, based on the interface configuration information, a target interaction interface corresponding to the interface configuration information from at least one interaction interface created in advance, so as to call the target interaction interface to perform a data interaction operation when it is detected that the workflow to be executed reaches the interface task node;

[0013] The workflow to be executed is composed of at least one task node, and the interface task node is a task node used for data interaction in the workflow to be executed.

[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data interaction method described in any embodiment of the present invention.

[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data interaction method described in any embodiment of the present invention when executed.

[0019] The technical solution of the embodiment of the present invention, in response to the first configuration trigger operation for the interface task node in the to-be-executed workflow, determines the interface configuration information corresponding to the interface task node; wherein the to-be-executed workflow is composed of at least one task node, and the interface task node is a task node for data interaction in the to-be-executed workflow. Through the interface configuration information, the target interaction interface is determined in at least one pre-created interaction interface, so that for different to-be-executed workflows, the target interaction interface can be flexibly determined in the pre-created interaction interface through the first configuration trigger operation without rewriting the code, so that when executing to the interface task node, the data interaction operation can be completed by directly calling the target interaction interface, saving a lot of time resources, and achieving the effect of improving the flexibility and convenience of data interaction operations.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flow chart of a data interaction method provided according to an embodiment of the present invention;

[0023] Figure 2 is a flow chart of another data interaction method provided according to an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a design page of a workflow to be executed provided in accordance with an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of a configuration page of an interactive interface provided according to an embodiment of the present invention;

[0026] Figure 5 is a structural schematic diagram of a data interaction device provided according to an embodiment of the present invention;

[0027] Figure 6 It is a structural schematic diagram of an electronic device for implementing the data interaction method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "etc." and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Before introducing the technical solution, an exemplary description of the application scenario can be given first. The technical solution can be applied to the scenario of executing data interaction operations in the workflow to be executed on the business processing system. The workflow to be executed may be a workflow of different business types; exemplarily, the business type may be at least one of leave, reimbursement, project application and work report; accordingly, the workflow to be executed may include at least one of the leave process, reimbursement process, project application process and work report process. The data interaction operation may include data push operations and / or data receiving operations between the business processing system and the system to be interacted. Through the technical solution, the target interaction interface can be determined in at least one pre-created interaction interface to call the target interaction interface to complete the data interaction operation. Based on the solution of this embodiment, for different workflows to be executed, there is no need to rewrite the code, and the data interaction operation can be completed by directly calling the pre-created target interaction interface, saving a lot of time resources.

[0031] Figure 1 This is a flow chart of a data interaction method provided according to an embodiment of the present invention. This embodiment is applicable to the case of executing data interaction operations in a workflow to be executed. The method can be executed by a data interaction device, which can be implemented in the form of hardware and / or software.

[0032] like Figure 1 As shown, the method of this embodiment may specifically include:

[0033] S110 . In response to a first configuration triggering operation on an interface task node in a workflow to be executed, determine interface configuration information corresponding to the interface task node.

[0034] The workflow to be executed is a predefined workflow. Exemplarily, the workflow to be executed is a workflow defined by a canvas engine based on the Business Process Modeling Notation (BPMN) standard provided by the Camunda process editor.

[0035] In this embodiment, the workflow to be executed is composed of at least one task node. For example, if the workflow to be executed is an approval workflow, the workflow to be executed may include a task node for information acquisition, a timing task node, and an interface task node. The information acquisition task node is used to obtain information about the approval object; the timing task node is used to time the start time of the workflow to be executed; and the interface task node is a task node for data interaction in the workflow to be executed.

[0036] In a specific implementation, the interactive interface for executing the interface task node may be configured to obtain the interface configuration information, wherein the interface configuration information includes a target interface identifier, such as a target interface name, a target interface code, and the like.

[0037] To facilitate information configuration operations, a workflow configuration interface may be displayed on a display device, and an information configuration control corresponding to an interface task node may be provided on the workflow configuration interface. In response to a first configuration trigger operation on the information configuration control on the workflow configuration interface, interface configuration information is obtained. Exemplarily, the information configuration control may include a selection control and / or an edit box; correspondingly, the first configuration trigger operation may include a selection operation and / or an edit operation.

[0038] Further, when the first configuration trigger operation is a selection operation, the selected information corresponding to the selection operation can be determined, and the selected information is determined as the interface configuration information; or, when the first configuration trigger operation is an editing operation, the information input in the edit box corresponding to the editing operation is obtained, and the information is determined as the interface configuration information.

[0039] S120. Based on the interface configuration information, determine a target interaction interface corresponding to the interface configuration information in at least one pre-created interaction interface, so that when it is detected that the workflow to be executed has been executed to the interface task node, the target interaction interface is called to perform data interaction operations.

[0040] In a specific implementation, at least one interaction interface may be pre-created. It should be noted that the interaction interface may correspond to an external system to be interacted with, so that data interaction operations between the business processing system and the external system to be interacted with can be implemented by calling the interaction interface.

[0041] In order to improve execution efficiency and save operation steps when executing the workflow to be executed, after determining the interface configuration information, an interaction interface corresponding to the interface configuration information can be determined as the target interaction interface from at least one pre-created interaction interface.

[0042] Optionally, the interface configuration information includes a target interface identifier; based on the interface configuration information, a target interaction interface corresponding to the interface configuration information is determined in at least one pre-created interaction interface, including: in at least one pre-created interaction interface, an interaction interface corresponding to an interaction interface identifier that matches the target interface identifier is determined as the target interaction interface.

[0043] It should be noted that each interactive interface may generate a corresponding interface identifier when it is created, and the interface identifier is a unique identifier used to represent the interactive interface.

[0044] In order to quickly determine the target interaction interface among the interaction interfaces, the interface identifier corresponding to each interaction interface may be determined and compared with the target interface identifier, and the interaction interface corresponding to the interface identifier matching the target interface identifier may be used as the target interaction interface.

[0045] This embodiment compares the target interface identifier with the interface identifiers of the pre-created interactive interfaces respectively to quickly determine the target interactive interface in the interactive interfaces, thereby improving the effectiveness and accuracy of determining the target interactive interface.

[0046] Furthermore, when an interface identifier corresponding to the target interface identifier is not detected, a prompt message can be generated and sent to the operation and maintenance terminal to indicate that the target interaction interface configuration has failed. It is recommended to create a target interaction interface corresponding to the target interface identifier, thereby ensuring that the data interaction operation can be completed during the execution of the workflow to be executed.

[0047] To improve the effectiveness of data interaction operations, before calling the target interaction interface to perform data interaction operations, it also includes: determining the interaction task type corresponding to the interface task node; wherein the interaction task type includes a push task and / or a receive task; calling the target interaction interface to perform data interaction operations, including: when the interaction task type is a push task, obtaining the data to be interacted corresponding to the target interaction interface, and calling the target interaction interface to perform a push operation on the data to be interacted.

[0048] In a specific implementation, the target interactive interface can be called to complete the corresponding interactive operation for different interactive task types. When determining the interactive task type corresponding to the interface task node, the interactive task type can be determined based on the type of data to be interacted and the type of workflow to be executed. Exemplarily, if the workflow to be executed is a leave approval process, and the data to be interacted is a leave application form, then the interactive task type corresponding to the interface task node can be determined to be a push task; when the workflow to be executed is a leave application process, and the data to be interacted is the approval result data, then the interactive task type corresponding to the interface task node can be determined to be a receiving task. Furthermore, the interactive task type of the interface task node can also be determined by configuring the task type information of the interface task node when creating the workflow to be executed.

[0049] After determining the interactive task type, for a push task, obtain the data to be interacted corresponding to the target interactive interface, and call the target interactive interface to push the data to be interacted. For a receiving task, the request data obtained can be parsed through the target interactive interface to complete the reception of the data to be interacted.

[0050] This embodiment provides methods for performing data interaction operations for push tasks and receive tasks, respectively, and can ensure that data interaction operations in the workflow to be executed can be effectively completed for different task types.

[0051] In order to improve the flexibility of the data interaction process and accurately complete the data interaction operation between the system to be interacted with, after determining the target interaction interface corresponding to the interface configuration information in at least one pre-created interaction interface, it also includes: responding to the communication configuration trigger operation, obtaining the interaction system information corresponding to the target interaction interface; calling the target interaction interface to push the data to be interacted, including: calling the target interaction interface to push the data to be interacted to the interaction system corresponding to the interaction system information.

[0052] It should be noted that the target interactive interface is pre-connected with the interactive system to complete the binding between the target interactive interface and the interactive system, and the data interaction operation of the connected interactive system can be completed by calling the target interactive interface. In the case that the interactive system that the interface task node actually wants to push is not bound to the target interactive interface, in order to ensure that the workflow to be executed can be executed smoothly, the interactive system corresponding to the target interactive interface can be configured.

[0053] Specifically, a communication configuration control may be displayed on the workflow configuration interface, wherein the communication configuration control is used to configure the system to be interacted with connected to the target interaction interface, so as to complete the data interaction operation with the system to be interacted with when the target interaction interface is called.

[0054] In this embodiment, the communication configuration trigger operation is a trigger operation on the communication configuration control. In response to the communication configuration trigger operation, the interactive system information corresponding to the target interactive interface is obtained, and the target interactive interface is configured to establish a connection with the interactive system corresponding to the interactive system information. The interactive system information includes the name and uniform resource locator of the system to be interacted with. Exemplarily, the communication configuration control includes an edit box, and the communication configuration trigger operation is an input operation on the edit box. By inputting the interactive system information into the communication configuration control, a connection between the interactive system corresponding to the interactive system information and the target interactive interface can be established.

[0055] In a specific implementation, when the target interaction interface is called, the interaction system corresponding to the interaction system information can be determined as the system to be interacted with, and the data to be interacted with can be pushed to the system to be interacted with, so as to complete the interaction operation with the system to be interacted with.

[0056] This embodiment obtains the interactive system information in response to the communication configuration trigger operation, and completes the connection between the target interactive interface and the interactive system based on the interactive system information, so that the system to be interacted with can be flexibly selected to push the data to be interacted with, thereby better meeting the diverse data interaction needs in actual applications.

[0057] When the interaction task type is a push task, in order to ensure that the data to be interacted with can be pushed successfully, before calling the target interaction interface to push the interaction data, it also includes: obtaining the processing method information corresponding to the target interaction interface when the push fails, so that when the push operation fails, the workflow to be executed is executed according to the processing method information.

[0058] The processing method information is used to reflect whether to continue pushing, and the corresponding number of retries and retry interval when continuing pushing.

[0059] In a specific implementation, the method for obtaining the processing method information may be as follows: displaying a continue push display control, a block push display control, a retry times edit box, and an interval time edit box on the workflow configuration interface; in response to the selection of the continue push display control or the block push display control, determining whether to continue pushing when the push fails; if the push continues, obtaining the first input value of the retry times edit box, determining the first input value as the number of retries after the push fails, obtaining the second input value entered in the time interval edit box, and determining the second input value as the retry interval. When executing the workflow to be executed, if the reception success information sent by the system to be interacted with is not received within the preset time period, it is determined that the push fails, and the workflow to be executed may be executed based on the determined processing method information.

[0060] In this embodiment, corresponding processing method information is set for the case of push failure, so that the to-be-executed workflow can continue to be executed according to the processing method information after the push failure, thereby improving the flexibility of executing the to-be-executed workflow.

[0061] The technical solution of the embodiment of the present invention, in response to the first configuration trigger operation for the interface task node in the to-be-executed workflow, determines the interface configuration information corresponding to the interface task node; wherein the to-be-executed workflow is composed of at least one task node, and the interface task node is a task node for data interaction in the to-be-executed workflow. Through the interface configuration information, the target interaction interface is determined in at least one pre-created interaction interface, so that for different to-be-executed workflows, the target interaction interface can be flexibly determined in the pre-created interaction interface through the first configuration trigger operation without rewriting the code, so that when executing to the interface task node, the data interaction operation can be completed by directly calling the target interaction interface, saving a lot of time resources, and achieving the effect of improving the flexibility and convenience of data interaction operations.

[0062] Figure 2 is a flow chart of another data interaction method provided according to an embodiment of the present invention. Based on the above embodiment, this embodiment further includes: in response to the second configuration trigger operation, determining the target attribute information of the data to be interacted corresponding to the target interaction interface; and interacting with the data to be interacted corresponding to the target attribute information by calling the target interaction interface. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Figure 2 As shown, the method includes:

[0063] S210: In response to a first configuration triggering operation on an interface task node in a workflow to be executed, determine interface configuration information corresponding to the interface task node.

[0064] S220: Based on the interface configuration information, determine a target interaction interface corresponding to the interface configuration information from at least one pre-created interaction interface.

[0065] S230. In response to a second configuration trigger operation for the data to be interacted corresponding to the target interaction interface, target attribute information of the data to be interacted corresponding to the target interaction interface is determined, so that when it is detected that the workflow to be executed has been executed to the interface task node, the target interaction interface is called to interact with the data to be interacted corresponding to the target attribute information.

[0066] It should be noted that the data interaction operation may perform data transmission on the data to be interacted with. In order to improve the efficiency of data interaction, the data to be interacted with may be determined before executing the workflow to be executed.

[0067] In a specific implementation, a property configuration control may be displayed on the workflow configuration interface, and the property configuration control may include an edit box and / or a selection control; the second configuration trigger operation may be a trigger operation on the property configuration control; for example, when the property configuration control is a selection control, the second configuration trigger operation may be a selection operation on the property information display sub-control displayed in the drop-down menu corresponding to the selection control. The property information corresponding to the selected property information display sub-control is determined as the target property information. When the property configuration control is an edit box, the second configuration trigger operation may be an input operation on the property configuration control, and the input information is determined as the target property information.

[0068] It should be noted that the data to be interacted refers to the data that needs to be interacted between the business processing system and the system to be interacted in the business process to be executed. The workflow data corresponding to the workflow to be executed can be stored in the form of a data table. In this embodiment, all the data in the data table can be determined as the data to be interacted; or part of the data in the data table can be determined as the data to be interacted.

[0069] In a specific implementation, the data to be interacted can be determined based on the determined target attribute information. Specifically, the target attribute information can be the field type name and / or field name of the data to be interacted. Exemplarily, the field type includes a form field type and / or a system field type; the field name includes an application form name, an application object name, and an application time, etc. Among them, the form field is used to indicate the type of storage field corresponding to the data provided by the business operation object in the workflow to be executed; the system field type is used to indicate the field type of the storage field corresponding to the data generated by the business processing system.

[0070] When executing the workflow to be executed, when the execution reaches the interface task node, the corresponding data to be interacted can be obtained based on the target attribute information. Exemplarily, when the workflow to be executed is a leave process, if the target attribute information is a form field type, all the data provided by the business operation object can be determined as the data to be interacted; if the target attribute information is the application form name, the data corresponding to the application form name field is determined as the data to be interacted. After determining the data to be interacted, the target interaction interface can be called to interact with the data to be interacted.

[0071] In this embodiment, through the second configuration trigger operation of the attribute configuration control for configuring the data to be interacted, the target attribute information of the data to be interacted can be flexibly determined, so that the data to be interacted can be determined based on the target attribute information, and the data to be interacted can be determined quickly and conveniently.

[0072] In this embodiment, the second configuration trigger operation includes a selection operation. In order to be able to filter out the attribute information display sub-control to be triggered from multiple attribute information display sub-controls, before determining the target attribute information of the data to be interacted corresponding to the target interaction interface, it also includes: in response to the third configuration trigger operation of the attribute determination rule for the data to be interacted, obtaining the target determination rule; based on the target determination rule, determining alternative attribute information from at least one pre-set attribute information; in response to the second configuration trigger operation for the data to be interacted corresponding to the target interaction interface, determining the target attribute information of the data to be interacted corresponding to the target interaction interface. The specific implementation method can be: in response to the selection operation for the alternative attribute information, determining the target attribute information from the alternative attribute information.

[0073] The target determination rule is a screening rule for attribute information, which is used to determine candidate attribute information from at least one attribute information.

[0074] Specifically, the third configuration trigger operation may be a selection operation or an editing operation. Exemplarily, a determination rule display control is displayed on the workflow configuration interface for displaying different attribute determination rules. In response to a selection operation on the determination rule display control, the attribute determination rule corresponding to the selected determination rule display control is determined as the target determination rule. Alternatively, a determination rule editing control is displayed on the workflow configuration interface, and in response to an editing operation on the determination rule editing control, the information input in the determination rule editing control is obtained as the target determination rule.

[0075] In a specific implementation, attribute information that satisfies the target determination rule can be determined from at least one pre-set attribute information as candidate attribute information. The attribute information is the field type name and / or field name of the data generated in the workflow to be executed. After the candidate attribute information is determined, the selected candidate attribute information can be determined as the target attribute information in response to a selection operation on the candidate attribute information. Exemplarily, the candidate display control corresponding to the candidate attribute information can be displayed on the workflow configuration interface, and the selection operation of the candidate attribute information is completed by triggering the candidate display control.

[0076] In this embodiment, by determining the target determination rule, alternative attribute information is quickly screened out from at least one attribute information, so that when determining the target attribute information, it is sufficient to select from the alternative attribute information without checking each attribute information one by one, thereby improving the convenience and accuracy of determining the target attribute information.

[0077] In this embodiment, the target determination rule includes a data type determination rule; based on the target determination rule, the implementation method of determining the alternative attribute information in at least one pre-set attribute information can be: determining the attribute information that matches the data type corresponding to the data type determination rule in the attribute information as the alternative attribute information.

[0078] The data type determination rule is a rule for determining candidate attribute information according to the data type of the data to be interacted with; the data type includes at least one of a numerical type, a time type, and a floating point type.

[0079] Specifically, if the target determination rule is determined to be a data type determination rule, it can be determined whether the data type of the data corresponding to each attribute information is the data type required by the data type determination rule. If so, the attribute information can be determined as alternative attribute information; if not, the attribute information does not meet the requirements of the data type determination rule and is not used as alternative attribute information.

[0080] Exemplarily, when the data type required by the data type determination rule is a numeric type, it can be determined whether the data type of the data corresponding to the attribute information is a numeric type. If so, the attribute information can be determined as candidate attribute information.

[0081] In this embodiment, candidate attribute information is screened out from the attribute information by using the data type determination rule, which is beneficial to improving the efficiency of screening the candidate attribute information and quickly determining the candidate attribute information that meets the data type determination rule.

[0082] In this embodiment, the target determination rule includes at least one of a first character determination rule, a same parameter determination rule and a semantic determination rule; based on the target determination rule, a method for determining alternative attribute information from at least one pre-set attribute information may include: determining the parameters to be interacted of the target interaction interface corresponding to the target determination rule; based on the target determination rule, determining attribute information matching the parameters to be interacted from at least one pre-set attribute information as alternative attribute information.

[0083] The target interaction interface usually transmits data in the form of a key-value pair, where the parameter to be interacted with is used as the key and the data to be interacted with is used as the value corresponding to the parameter to be interacted with.

[0084] In a specific implementation, a method for determining the parameters to be interacted with of a target interactive interface may include: in response to a triggering operation on a parameter display control in a workflow configuration interface, determining the configuration parameters displayed by the triggered parameter display control as the parameters to be interacted with; wherein the parameter display control is used to display the configuration parameters corresponding to the target interactive interface.

[0085] Furthermore, when the target determination rule is the first character determination rule, the method for determining the alternative attribute information may be: determine the first character of the parameter to be interacted and the first character of the attribute corresponding to each attribute information, and determine the attribute information corresponding to the first character of the attribute that is the same as the first character of the parameter as the alternative attribute information. Among them, the first character of the attribute may include the first character of the field name corresponding to the data generated by the business processing system. Exemplarily, the parameter to be interacted may be "teamID", and the first character of the parameter is "t"; when the attribute information is a field name, the field name with the first character of the attribute in the field name as "t" is determined as the alternative attribute information.

[0086] When the target determination rule is the same parameter determination rule, the method of determining the candidate attribute information may be: determining the attribute information having the same composition characters as the parameter to be interacted with as the candidate attribute information. Exemplarily, the parameter to be interacted with may be "teamID", and when the attribute information is a field name, the field name containing the "teamID" character is determined as the candidate attribute information.

[0087] When the target determination rule is a semantic determination rule, the method for determining the alternative attribute information may be: semantically analyzing the parameters to be interacted with based on a pre-built semantic determination model, determining the attribute type to be interacted with corresponding to the parameters to be interacted with based on the analysis result, and determining the attribute information corresponding to the attribute type to be interacted with as the alternative attribute information according to the correspondence between the pre-built attribute type and the attribute information. Exemplarily, in the leave approval scenario, the attribute types include name, time, and duration, etc. When the attribute type to be interacted with is determined to be a name, field names such as the applicant name and the application form name can be determined as alternative attribute information.

[0088] In this embodiment, candidate attribute information is determined by using the first character determination rule, the same parameter determination rule and the semantic determination rule, providing a variety of methods for determining candidate attribute information, thereby improving the flexibility and convenience of determining candidate attribute information.

[0089] Optionally, in order to facilitate subsequent tracking and analysis of the process of executing the workflow to be executed, after calling the target interaction interface to perform the data interaction operation, it also includes: generating a target interaction record corresponding to the target interaction interface.

[0090] The target interaction record includes at least one of the interaction time, interaction status, and error information. The interaction status includes interaction success or interaction failure; the error information includes the cause of the failure and the number of failures when the interaction fails. The target interaction record may also include system information of the system to be interacted with corresponding to the target interaction interface.

[0091] In this embodiment, the target interaction record can be divided into a target push record and a target reception record. The target push record is used to store the push time, push status and push error information corresponding to the push operation; the target reception record is used to store the reception time, reception status and reception error information corresponding to the reception operation. After the target interaction record is generated, the target interaction record can be stored and updated according to the subsequent scheduling operation of the target interaction interface.

[0092] In this embodiment, by generating and storing the target interaction record, it can be used for subsequent tracking and analysis of the execution status of the workflow to be executed, which provides convenience for understanding the execution status of the workflow to be executed.

[0093] The embodiments corresponding to the data interaction method are described in detail above. In order to make the technical scheme of the method further clear to those skilled in the art, a specific description is given below in conjunction with an application scenario in which the interaction task type is a push task.

[0094] In a specific implementation, the workflow to be executed can be defined based on the canvas engine based on the Business Process Modeling Notation (BPMN) standard provided by the Camunda process editor. Figure 3 As shown, the workflow to be executed consists of a flowchart and task nodes, and the task nodes include a start node, a reviewer node, a scheduled task node, an interface task node and an end node. Figure 3 The dashed boxes shown in the figure are different design components. You can drag, copy and paste the design components to set the workflow to be executed on the design page.

[0095] In the specific implementation, each task node in the designed workflow to be executed can be configured. Select the interactive interface that provides push service on the interface task node, configure it, and save the interface configuration information of the interactive interface based on the extended attributes of bpmn. For the configuration page of the interactive interface, refer to Figure 4 , the name of the target interaction interface for providing the push service can be selected as the interface configuration information through a pre-set selection control; for example, the name of the target interaction interface is Get Service Details.

[0096] Furthermore, the mapping relationship between the data to be interacted and the parameters to be interacted of the target interactive interface can be established by configuring the attribute determination rules. In addition, the data to be interacted can be configured to determine whether the field to be interacted belongs to the form field type or the system field type, and the field name corresponding to the data to be interacted. Figure 4As shown, the data to be interacted can be divided into two parts. One part is the data corresponding to the ID parameter to be interacted with and the date field in the form field type; the other part is the data corresponding to the teamID parameter to be interacted with and the application form name field in the system field type.

[0097] Optionally, you can also configure how to handle push failures, such as Figure 4 As shown, a continue push display control, a blocked push display control, a retry count edit box and an interval time edit box are displayed on the workflow configuration interface; after the continue push display control is triggered, it means that retries will continue when the push fails, and in response to the triggering operation of the retry count edit box and the interval time edit box, the retry count and interval time when continuing to retry are determined.

[0098] It should be noted that based on the extended function of camunda monitoring, a task listener can be created to detect the task execution action in the workflow to be executed. Based on the task listener, it is determined whether the workflow to be executed has been executed to the interface task node. In the case of executing to the interface task node, if the task type corresponding to the interface task node is a push task, the pre-configured interface configuration information, processing method information, interface input parameters, request method, request path, interface response parameters and configuration information of the data to be interacted are obtained, and the target interaction interface is determined. The push operation of the data to be interacted is performed by calling the target interaction interface. After the interface task node is executed, the next node can be executed until all task nodes of the workflow to be executed are executed.

[0099] Furthermore, after the execution of the workflow to be executed is completed, a target push record can be generated to record the push time, push status and error information, so as to facilitate the subsequent tracking and analysis of the execution status of the workflow to be executed.

[0100] This embodiment realizes a simplified configuration of data push and can flexibly push data, thereby improving the automation level of executing the workflow to be executed, eliminating the need for manual intervention and reducing the complexity of the data push operation.

[0101] Figure 5 1 is a schematic diagram of the structure of a data interaction device provided according to an embodiment of the present invention, and the device is used to execute the data interaction method provided in any of the above embodiments. The device and the data interaction method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the data interaction device can refer to the embodiment of the above data interaction method. Figure 5 As shown, the device comprises:

[0102] An interface configuration information determination module 10, configured to determine interface configuration information corresponding to an interface task node in a to-be-executed workflow in response to a first configuration trigger operation on the interface task node;

[0103] The target interaction interface determination module 11 is used to determine the target interaction interface corresponding to the interface configuration information in at least one interaction interface created in advance based on the interface configuration information, so as to call the target interaction interface to perform data interaction operations when it is detected that the workflow to be executed has been executed to the interface task node;

[0104] The workflow to be executed is composed of at least one task node, and the interface task node is a task node used for data interaction in the workflow to be executed.

[0105] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0106] A target attribute information determination module is used to determine the target attribute information of the data to be interacted corresponding to the target interaction interface in response to a second configuration trigger operation on the data to be interacted corresponding to the target interaction interface after determining the target interaction interface corresponding to the interface configuration information in at least one interaction interface created in advance; wherein the target attribute information includes a field type name and / or a field name to which the data to be interacted belongs;

[0107] The target interaction interface determination module includes:

[0108] The data interaction submodule is used to call the target interaction interface to interact with the data to be interacted corresponding to the target attribute information.

[0109] Based on any optional technical solution in the embodiments of the present invention, optionally, the second configuration triggering operation includes a selection operation; and the device further includes:

[0110] A target determination rule acquisition module, configured to acquire a target determination rule in response to a third configuration trigger operation for an attribute determination rule of the data to be interacted with, before determining target attribute information of the data to be interacted with corresponding to the target interaction interface;

[0111] A candidate attribute information determination module, configured to determine candidate attribute information from at least one preset attribute information based on a target determination rule;

[0112] The target determination rule acquisition module includes:

[0113] The target attribute information determination submodule is used to determine the target attribute information from the candidate attribute information in response to a selection operation on the candidate attribute information.

[0114] Based on any optional technical solution in the embodiments of the present invention, optionally, the target determination rule includes a data type determination rule; the candidate attribute information determination module includes:

[0115] A first candidate attribute information determination submodule is used to determine attribute information that matches a data type corresponding to a data type determination rule in the attribute information as candidate attribute information;

[0116] The data type includes at least one of a numeric type, a time type, and a floating point type.

[0117] Based on any optional technical solution in the embodiments of the present invention, optionally, the target determination rule includes at least one of a first character determination rule, a same parameter determination rule and a semantic determination rule; and the candidate attribute information determination module includes:

[0118] The to-be-interacted parameter determination submodule is used to determine the to-be-interacted parameters of the target interaction interface corresponding to the target determination rule;

[0119] The second candidate attribute information determination submodule is used to determine, based on the target determination rule, attribute information matching the to-be-interacted parameter from at least one preset attribute information as candidate attribute information.

[0120] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0121] An interactive task type determination module is used to determine the interactive task type corresponding to the interface task node before calling the target interactive interface to perform data interactive operations; wherein the interactive task type includes a push task and / or a receive task;

[0122] The target interaction interface determination module includes:

[0123] The data push submodule is used to obtain the to-be-interacted data corresponding to the target interaction interface when the interaction task type is a push task, and call the target interaction interface to push the to-be-interacted data.

[0124] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0125] The processing method information acquisition module is used to acquire the processing method information corresponding to the target interactive interface when the push fails before calling the target interactive interface to push the interactive data, so as to execute the to-be-executed workflow according to the processing method information when the push operation fails;

[0126] The processing method information is used to reflect whether to continue pushing, and the corresponding number of retries and retry interval when continuing pushing.

[0127] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0128] The target interaction record generation module is used to generate a target interaction record corresponding to the target interaction interface after calling the target interaction interface to perform a data interaction operation; wherein the target interaction record includes at least one of interaction time, interaction status and error information.

[0129] Based on any optional technical solution in the embodiment of the present invention, optionally, the interface configuration information includes a target interface identifier; and the target interactive interface determination module includes:

[0130] The target interaction interface determination submodule is used to determine, from at least one interaction interface created in advance, an interaction interface corresponding to an interaction interface identifier that matches the target interface identifier as the target interaction interface.

[0131] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0132] An interactive system information acquisition module, configured to acquire the interactive system information corresponding to the target interactive interface in response to a communication configuration trigger operation after determining a target interactive interface corresponding to the interface configuration information in at least one interactive interface created in advance;

[0133] Data push submodule, including:

[0134] The data pushing unit is used to call the target interaction interface to push the data to be interacted to the interaction system corresponding to the interaction system information.

[0135] The technical solution of the embodiment of the present invention, in response to the first configuration trigger operation for the interface task node in the to-be-executed workflow, determines the interface configuration information corresponding to the interface task node; wherein the to-be-executed workflow is composed of at least one task node, and the interface task node is a task node for data interaction in the to-be-executed workflow. Through the interface configuration information, the target interaction interface is determined in at least one pre-created interaction interface, so that for different to-be-executed workflows, the target interaction interface can be flexibly determined in the pre-created interaction interface through the first configuration trigger operation without rewriting the code, so that when executing to the interface task node, the data interaction operation can be completed by directly calling the target interaction interface, saving a lot of time resources, and achieving the effect of improving the flexibility and convenience of data interaction operations.

[0136] It is worth noting that in the embodiment of the above-mentioned data interaction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0137] Figure 6 Schematic diagram of the structure of an electronic device that implements the data interaction method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0138] like Figure 6 As shown, the electronic device 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In RAM23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, ROM22 and RAM23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.

[0139] A number of components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0140] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 21 executes the various methods and processes described above, such as the data interaction method.

[0141] In some embodiments, the data interaction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 28. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the data interaction method described above may be performed. Alternatively, in other embodiments, the processor 21 may be configured to perform the data interaction method in any other appropriate manner (e.g., by means of firmware).

[0142] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0143] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0144] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0145] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0146] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0147] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0148] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0149] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data interaction method, characterized in that: include: In response to a first configuration triggering operation on an interface task node in a to-be-executed workflow, determining interface configuration information corresponding to the interface task node; Based on the interface configuration information, a target interaction interface corresponding to the interface configuration information is determined in at least one interaction interface created in advance, so as to call the target interaction interface to perform a data interaction operation when it is detected that the workflow to be executed reaches the interface task node; The workflow to be executed is composed of at least one task node, and the interface task node is a task node used for data interaction in the workflow to be executed.

2. The method according to claim 1, characterized in that After determining the target interaction interface corresponding to the interface configuration information in the at least one interaction interface created in advance, the method further includes: In response to a second configuration trigger operation for the data to be interacted corresponding to the target interaction interface, target attribute information of the data to be interacted corresponding to the target interaction interface is determined; wherein the target attribute information includes a field type name and / or a field name to which the data to be interacted belongs; The calling of the target interaction interface to perform data interaction operation includes: The target interaction interface is called to interact with the to-be-interacted data corresponding to the target attribute information.

3. The method according to claim 2, characterized in that The second configuration triggering operation includes a selection operation; before determining the target attribute information of the to-be-interacted data corresponding to the target interaction interface, the second configuration triggering operation includes: In response to a third configuration triggering operation for the attribute determination rule of the to-be-interacted data, acquiring a target determination rule; Based on the target determination rule, determining candidate attribute information from at least one preset attribute information; The determining, in response to a second configuration triggering operation on the to-be-interacted data corresponding to the target interaction interface, target attribute information of the to-be-interacted data corresponding to the target interaction interface includes: In response to the selection operation on the candidate attribute information, the target attribute information is determined from the candidate attribute information.

4. The method according to claim 3, characterized in that The target determination rules include data type determination rules; The determining of candidate attribute information from at least one preset attribute information based on the target determination rule includes: Determining, from the attribute information, attribute information that matches the data type corresponding to the data type determination rule as the candidate attribute information; The data type includes at least one of a numerical type, a time type and a floating point type.

5. The method according to claim 3, characterized in that: The target determination rule includes at least one of a first character determination rule, a same parameter determination rule, and a semantic determination rule; The determining of candidate attribute information from at least one preset attribute information based on the target determination rule includes: Determine the to-be-interacted parameters of the target interaction interface corresponding to the target determination rule; Based on the target determination rule, attribute information matching the to-be-interacted parameter is determined from at least one preset attribute information as the candidate attribute information.

6. The method according to claim 1, characterized in that Before calling the target interaction interface to perform the data interaction operation, the method further includes: Determine the interactive task type corresponding to the interface task node; wherein the interactive task type includes a push task and / or a receive task; The calling of the target interaction interface to perform data interaction operation includes: In the case where the interaction task type is the push task, the to-be-interacted data corresponding to the target interaction interface is acquired, and the target interaction interface is called to perform a push operation on the to-be-interacted data.

7. The method according to claim 6, characterized in that Before calling the target interaction interface to push the to-be-interacted data, the method further includes: Acquire the processing method information corresponding to the target interactive interface when the push operation fails, so as to execute the to-be-executed workflow according to the processing method information when the push operation fails; The processing method information is used to reflect whether to continue pushing, and the corresponding number of retries and retry interval when continuing pushing.

8. The method according to any one of claims 1 to 7, characterized in that: After calling the target interaction interface to perform the data interaction operation, the method further includes: A target interaction record corresponding to the target interaction interface is generated; wherein the target interaction record includes at least one of interaction time, interaction status, and error information.

9. The method according to claim 1, characterized in that: The interface configuration information includes a target interface identifier; The step of determining, based on the interface configuration information, a target interaction interface corresponding to the interface configuration information from at least one pre-created interaction interface comprises: Among at least one pre-created interactive interface, an interactive interface corresponding to an interactive interface identifier matching the target interface identifier is determined as the target interactive interface.

10. The method according to claim 6, characterized in that After determining the target interaction interface corresponding to the interface configuration information in the at least one interaction interface created in advance, the method further includes: In response to a communication configuration triggering operation, acquiring interaction system information corresponding to the target interaction interface; The calling of the target interaction interface to push the data to be interacted with includes: The target interaction interface is called to push the data to be interacted with to the interaction system corresponding to the interaction system information.

11. A data interaction device, characterized in that: include: An interface configuration information determination module, configured to determine, in response to a first configuration trigger operation on an interface task node in a to-be-executed workflow, interface configuration information corresponding to the interface task node; a target interaction interface determination module, configured to determine, based on the interface configuration information, a target interaction interface corresponding to the interface configuration information from at least one interaction interface created in advance, so as to call the target interaction interface to perform a data interaction operation when it is detected that the workflow to be executed reaches the interface task node; The workflow to be executed is composed of at least one task node, and the interface task node is a task node used for data interaction in the workflow to be executed.

12. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data interaction method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data interaction method according to any one of claims 1 to 10 when executed.

Citation Information

Cited By

  • Task processing method and device

    CN119127353A