Data combination device and data combination method
Through data combination devices and methods, component instances are automatically matched and encapsulated, solving the problem of high difficulty in developing traditional business processing processes and achieving a more flexible and reusable business processing process design.
Patent Information
- Application Number
- CN202310210237.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional business processing processes are difficult to develop and cannot be flexibly adjusted and reused. Frequent coding is required, resulting in complexity and inflexibility.
Design a data combination device and method that automatically matches component instances through combination instructions and encapsulates them into executable encapsulated data, simplifying business processing process design and improving reusability.
It greatly simplifies the design complexity of business processing processes, improves the breadth and reusability of applications, and allows the generation of tasks or process instances based on custom parameter adjustments.
Smart Images

Figure CN118626077A
Abstract
Description
Technical Field
[0001] The present invention relates to a hierarchical data management technology, and in particular to a data combination device and a data combination method. Background Art
[0002] Traditional business process flows require software developers to individually write multiple sets of fixed processes, and each execution step in the fixed process needs to be recoded into new logic according to different situations and scenarios. Therefore, traditional business process processing has the problems of high development difficulty and inability to achieve flexible adjustment and reuse. Summary of the invention
[0003] The present invention is directed to a data combination device and a data combination method, which can automatically match corresponding component instances according to combination instructions, and package multiple component instances into executable packaged data.
[0004] According to an embodiment of the present invention, the data combination device of the present invention includes a storage device and a processor. The storage device is used to store multiple component instances. The processor is coupled to the storage device and is used to receive a combination instruction. The processor parses the component description and data type in the combination instruction. The processor obtains multiple matching instances of the corresponding component description from the multiple component instances. And the processor encapsulates the multiple matching component instances into encapsulated data.
[0005] According to an embodiment of the present invention, the data combination method of the present invention includes the following steps: receiving a combination instruction; parsing the component description and data type in the combination instruction; obtaining multiple matching instances of corresponding component descriptions from multiple component instances; and encapsulating multiple matching component instances into encapsulated data.
[0006] Based on the above, the data combination device and data combination method of the present invention can automatically match the corresponding component instance according to the combination instruction input by the user, and package the component instance into executable packaged data, and simulate the execution of the packaged data to generate a simulation execution result.
[0007] In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a circuit diagram of a data combination device according to an embodiment of the present invention;
[0009] Figure 2 is a flow chart of a data combination method according to an embodiment of the present invention;
[0010] Figure 3is a schematic diagram of modules of a data combination device according to an embodiment of the present invention;
[0011] Figure 4 is a schematic diagram of an execution of a data combination device according to an embodiment of the present invention;
[0012] Figure 5 is a schematic diagram of a process instance, a task instance, a kit instance, and a component instance of an exemplary embodiment of the present invention;
[0013] Figure 6 It is a schematic diagram of a matching component instance and a matching plug-in instance according to an exemplary embodiment of the present invention.
[0014] Description of Reference Numerals
[0015] 100: data combining device;
[0016] 101: Combined instructions;
[0017] 102: Encapsulate data;
[0018] 110: processor;
[0019] 120: storage device;
[0020] 121: component instance library;
[0021] 122: Component instance library;
[0022] 123: Suite Example Library;
[0023] 124: Task instance library;
[0024] 125: process instance library;
[0025] 126: component type library;
[0026] 401: Combined instruction;
[0027] 402: data interface;
[0028] 403: Encapsulated data;
[0029] 501, 502, 503, 504, 505, 506: component instances;
[0030] 507, 508: Suite instances;
[0031] 509: Task instance;
[0032] 510: process instance;
[0033] 601: Parts;
[0034] 602: API component;
[0035] 603: Sign off on the component;
[0036] 604: Determine component;
[0037] 605: Parts;
[0038] 606: End component;
[0039] 620: plugin instance;
[0040] 621: judgment component;
[0041] 622: End component;
[0042] S210~S240, S410, S420: steps. DETAILED DESCRIPTION
[0043] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0044] First, it is explained that the data combination device and data combination method of the present invention can simplify the design difficulty and complexity of the business processing flow, and improve the breadth of application and reusability. The component instance described in each embodiment of the present invention can include at least one of a process instance, a task instance, a kit instance, and a component instance.
[0045] In this embodiment, the content of component instance data is determined by the user or the system by default. Component instance refers to a component that can complete basic logical operations, such as: data source component (e.g., used to call an application programming interface (API)), execution component (e.g., logic data for executing a script), control component (e.g., logic data for determining whether a condition is met (e.g., determining whether a value is greater than 5 or determining whether a field includes "success")), storage component, display component (e.g., data of style components on a page (e.g., field position, field color, button position, and number of cases, etc.)), etc. In this embodiment, a suite instance refers to a processing logic composed of at least one component instance, and includes a connection relationship (i.e., sequence) between at least one component instance. The connection relationship may be a data source component, a control component, and a storage component in sequence. In other words, a suite instance can execute more complex logic data after being combined with at least one component instance. A suite instance may be a judgment suite composed of first calling data from an API (i.e., a data source component), then retrieving a specific value (i.e., an execution component), and finally determining the specific value (i.e., a control component).
[0046] A task instance includes at least one of a suite instance and a component instance. In other words, a task instance can be composed of at least one suite instance and / or at least one component instance. A task instance can be a logical unit that can accomplish specific business significance, such as a task of generating a purchase requisition based on purchase requisition data or a task of converting a purchase requisition into a purchase order. A process instance includes at least one of a task instance, a suite instance, and a component instance. A process instance refers to a process that can accomplish more complex data processing than a task instance. A process instance can be a service process or a processing process composed of multiple task instances. Process instances are, for example, business processes such as a work order dispatching process, a purchase requisition conversion, and a recording process.
[0047] Component instances contain data contents such as data types, states, features, and parameters. Moreover, different types of component instances will have corresponding series of processing logics in different states (i.e., data types), so the present invention can encapsulate these component instances and logics into task instances, suite instances, or process instances. When encapsulating data flows, only data related to the core logic needs to be encapsulated (i.e., minus the data contents related to the page style), and the data combination device of the present invention can automatically match appropriate component instances and connection relationships according to the combination instructions, and encapsulate the matched component instances and connection relationships into encapsulated data. In this way, the present invention can greatly simplify the complexity of developing new processing flows and improve the reusability of existing logic data, and when running executable data, more task instances or process instances can be generated for execution according to the adjustment of custom parameters.
[0048] Figure 1 FIG. 1 is a circuit diagram of a data combination device according to an embodiment of the present invention. Figure 1, the data combination device 100 includes a processor 110 and a storage device 120. The processor 110 is coupled to the storage device 120. The data combination device 100 may also include an input device, a user interface, a communication interface or a data transmission interface with actual circuit components, so that the processor 110 can receive instructions or signals of matching requests from a data source or an external device or according to user operations. In this embodiment, the processor 110 receives a combination instruction 101 and outputs corresponding packaged data 102. In this embodiment, the data combination device 100 may be, for example, a personal computer, a workstation computer or other electronic device with data computing capabilities. In one embodiment, the data combination device 100 may also be integrated in a cloud server or a private server within an enterprise. In one embodiment, the data combination device 100 may be used, for example, to implement an enterprise resource planning (ERP) system, and may execute multiple application programming interfaces (APIs) to call multiple task modules and task instances. In one embodiment, component instances, kit instances, task instances, and process instances refer to task logic (or programs) or task flows used to perform specific task functions based on business data, such as task logic that can be used to generate purchase orders based on procurement data, or task logic that can be used to generate purchase requisitions based on purchase request data, but the present invention is not limited thereto.
[0049] In this embodiment, the processor 110 of the business data processing system 100 may include, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSP), application specific integrated circuits (ASIC), programmable logic devices (PLD), other similar processing circuits, or a combination of these devices.
[0050] In this embodiment, the storage device 120 may be a remote cloud storage service or a local data storage service. The storage device 120 may include a memory and / or a database, wherein the memory may be, for example, a non-volatile memory (NVM). The storage device 120 may store relevant programs, modules, systems or algorithms for implementing the various embodiments of the present invention, so that the processor 110 can access and execute them to implement the relevant functions and operations described in the various embodiments of the present invention. The storage device 120 may also be used, for example, to cache the packaged data, component instances and selected component instances described in the various embodiments of the present invention.
[0051] Figure 2 FIG. 1 is a flow chart of a data combination method according to an embodiment of the present invention. Figure 1 to Figure 2 , the data combination device 100 may execute the following steps S210 to S240. In step S210, the processor 110 may receive the combination instruction 101. In this embodiment, the processor 110 of the data combination device 100 may receive the combination instruction 101 from a data source. In this regard, the data source may be, for example, original business data or data obtained through an application port. Alternatively, the encapsulated data 102 may also be artificially set data. In another embodiment, the data combination device 100 further includes a data interface, which is used to receive the combination instruction 101. The data interface may be set in the user's terminal device, and then receive the user's combination instruction 101, matching instructions, and encapsulation output instructions.
[0052] In one embodiment, the data combination device 100 further includes a display, which is disposed on the user's terminal device and is used to display the execution results of multiple component instances and the packaged data 102, thereby improving the convenience of user operation. The combination instruction 101 includes a component description and a data type. The component description is at least one of the process purpose (e.g., converting a purchase requisition to a purchase order), the selection of component instances (e.g., selecting component instance A, component instance B, and component instance C in sequence), multiple component definitions (e.g., a purchase requisition processing component, a signing component, and a data review component), and data content.
[0053] In step S220, the processor 110 parses the component description and data type in the combined instruction 101. In this embodiment, the processor 110 parses the component description and data type to obtain a corresponding component instance list and a component instance association relationship. In step S230, the processor 110 obtains multiple matching instances corresponding to the component description from the multiple component instances. In other words, the processor 110 searches for the component instance corresponding to the component description from the storage device 120 according to the parsed component description. For example, the component description may be "converting a purchase requisition to a purchase order, and reviewing the contents of the purchase order", and the data type is a purchase requisition. Then, the processor 110 parses the component description into a purchase requisition, conversion, purchase order, and review. Therefore, the processor 110 can match matching component instances from the storage device 120 in sequence according to the parsed component description. In this example, the matching component instances may be: checking the purchase requisition component (e.g., API component), the purchase order component, the purchase requisition to purchase order task, and the review judgment kit.
[0054] In one embodiment, the storage device 120 further stores a component description matching table. Furthermore, the component description matching table includes the description content of each component instance. In other words, the component description matching table is a comparison table of description content and component instance. Thus, the processor 110 can find multiple component instances that match the component description according to the component description matching table. Thus, the compiling module 121 can find the corresponding matching instance in the component description matching table according to each component description in the combined instruction 101.
[0055] In step S240, the processor 110 encapsulates the multiple matching component instances into encapsulated data 102. In the present embodiment, the encapsulated data 102 refers to mapping the transactions and processing logic in the real world into the digital domain and encapsulating them into data. In the present embodiment, the encapsulated data 102 may include a record data type field, a data feature field, and an original data field (a field refers to a field described and implemented by the language of the corresponding coding program). In the present embodiment, the encapsulated data 102 may also include other information such as environmental information and page style.
[0056] For example, the packaged data 102 includes an API call component instance (i.e., a data source component instance), a judgment component instance, and processing logic and execution data of the execution component instance. Next, when the processor 110 executes the packaged data 102, the processor 110 sequentially executes the API call (e.g., calling the purchase order API), makes judgments based on parameter values (e.g., judging whether the inventory of original A is greater than 10), and executes the corresponding judgment result (e.g., if the inventory is less than 10, outputs the purchase order information) according to the process of the packaged data 102.
[0057] Figure 3FIG. 1 is a schematic diagram of a module of a data combination device according to an embodiment of the present invention. Figure 3 As shown, the storage device 120 stores a component instance library 121 and a component type library 126. The component instance library 121 includes a component instance library 122, a suite instance library 123, a task instance library 124, and a process instance library 125. The component instance library 122 stores a plurality of component instances. The suite instance library 123 stores a plurality of suite instances. The task instance library 124 stores a plurality of task instances. The process instance library 125 stores a plurality of process instances.
[0058] Figure 4 It is a schematic diagram of the execution of a data combination device according to an embodiment of the present invention. Figure 5 A schematic diagram of a process instance, a task instance, a kit instance, and a component instance of an exemplary embodiment of the present invention is provided. Figures 2 to 5 , the data combination device 100 may further perform the following steps S410 and S420. In one embodiment, the data combination device 100 further includes a data interface 402, the data interface 403 receives the combination instruction 401, wherein the data interface 402 inputs the combination instruction 401 to the processor 110, wherein the data interface 403 outputs the encapsulated data 403 and the execution result corresponding to the encapsulated data 403.
[0059] In other words, the processor 110 receives the combination instruction 401 through the data interface 402. In one embodiment, the data interface 402 is an application data interface 402 or a communication device. Then, the processor 110 executes step S410 to parse the component description and data type in the combination instruction 401. In step S410, the processor 110 sequentially compares the component description with multiple component instances to obtain multiple matching instances that conform to the component description in the process instance, task instance, suite instance, and component instance. Specifically, component instances, suite instances, task instances, and process instances can all be referred to as component instances, and the processor 110 can assemble the component instances into various business logics, and then perform different levels of encapsulation according to the user's combination instruction 401.
[0060] Next, in step S420, the processor 110 obtains a matching instance corresponding to the component description by comparing the component instance and the component description in the storage device 120. Furthermore, the processor 110 encapsulates the matching instance into encapsulated data 403. In this embodiment, the processor 110 outputs the encapsulated data 403 to the user's terminal device through the data interface 402. In one embodiment, the processor 110 encapsulates multiple matching instances and data types into encapsulated data 403. The data type is data related to the industry field. For example, the data type is an order, a purchase order, a purchase requisition, an attendance list, and the like. Specifically, the storage device 120 also stores a data type processing table, which is a data type and processing rule comparison table.
[0061] In one embodiment, the encapsulated data 403 includes directional parameters. The directional parameters include node parameters and link parameters. The node parameters are related to the node code, node type and node program code. The link parameters are related to the connection direction of the node (i.e., the previous node code and the next node code). For example, a component (component instance 501) can be a component instance including an execution instruction. The component instances (501, 502, 503, 504, 505, 506), the suite instances (507, 508), the task instance 509 and the process instance 510 have the characteristic of being able to be assembled with each other, so the user can select multiple component instances (501, 502, 503, 504, 505, 506) according to the current business scenario to combine into a suite instance (507, 508), or the user can select at least one component instance and a suite instance to combine into a task instance 509.
[0062] like Figure 5 As shown, process instance 510 includes task instance 509 and kit instance 508. Furthermore, task instance 509 includes kit instance 507 and component instance 503. Kit instance 507 includes component instance 501 and component instance 502. Kit instance 508 includes component instance 505 and component instance 506. In this embodiment, encapsulation data (102, 403) can be process instance 510. Furthermore, the directional parameter in encapsulation data (102, 403) is the connection direction between component instance 501 and component instance 502, and the order and connection relationship between multiple component instances in encapsulation data (102, 403). The connection parameter is related to the connection relationship between multiple matching instances in encapsulation data (102, 403).
[0063] In one embodiment, multiple component instances are related to program codes, and each of the multiple component instances includes a component structure. In other words, the component instance is constructed by the program code and corresponds to different logical processing. The component structure includes definition data and connection relationships of at least one of a component instance, a package instance, a task instance, and a process instance. The definition data is the definition of each component instance, such as purchase requisition data, purchase order data, review package, conversion component, judgment task, or delivery confirmation process. For example, the definition data of the component structure in task instance A is component instance B, component instance C, and package instance D, and the connection relationship is the execution order between component instance B, component instance C, and package instance D.
[0064] In one embodiment, the data combination device 100 is used to execute the packaged data 403 to generate an execution result of the packaged data 403. And the processor 110 can output the execution result through the data interface 402. In one embodiment, the processor 110 can also receive a creation instruction through the data interface 402. And the processor 110 generates a new component instance according to the creation instruction, wherein the processor 110 stores the new component instance in the storage device 120. For example, a user can create different new component instances according to the component instance and data type, such as a data document of a purchase requisition, an API component for converting a purchase requisition to a purchase order, and an executable component supporting digital addition, subtraction, and multiplication operations.
[0065] For example, a component instance includes: API type, field name, address, method, message header, message type, and message body. In the process of creating a new component instance, the user selects the component instance and enters the data type and data content respectively. The data type and data content may include: obtaining logistics information, JSON, order001 and other fields. In this way, when the processor 110 executes the packaged data, the processor 110 can execute the corresponding API processing logic, and then retrieve data information (such as purchase request information) from the corresponding address according to the custom parameters.
[0066] Figure 61 is a schematic diagram of a matching component instance and a matching plug-in instance of an exemplary embodiment of the present invention. The storage device 120 also stores a plurality of plug-in instances 620. The processor 110 obtains at least one matching plug-in instance corresponding to the plurality of matching instances from the storage device 120. The processor 110 combines the matching plug-in instance 620 with the package data according to the component description. Specifically, the plug-in instance 620 is a plug-in module of the component instance, and the plug-in instance 620 can be applied to the component instance by plugging and unplugging, thereby affecting the execution or display of the component. In this embodiment, the component 601, the purchase requisition to purchase order task 602, the approval component 603, the delivery date confirmation component 604, the establishment component 605, the end component 606 and the plug-in instance 620 can also form a procurement process 610. In another embodiment, the component 601, the purchase requisition to purchase order task 602, the approval component 603, the delivery date confirmation component 604, the establishment component 605, the end component 606 and the plug-in instance 620 can also form a procurement process 610. The plug-in instance 620 may be composed of multiple component instances, such as a determination component instance 621 and an end component 622 .
[0067] For example, component 601 may be execution instruction data that triggers the task of converting a purchase requisition to a purchase order, and then component 602 of converting a purchase requisition to a purchase order may convert the purchase requisition into a purchase order and then output the purchase order to component 603 for approval. Next, component 604 of confirming the delivery date confirms the purchase order data, and after the confirmation is passed, component 605 of establishing a material recovery is executed. Component instance 621 of the plug-in instance 620 of determining may check whether the inventory quantity of the purchase order is greater than a threshold value, and when the inventory quantity is greater than the threshold value, component 622 of ending may end the purchase process 610.
[0068] Therefore, the data combination device 100 and the data combination method of the present invention can encapsulate multiple matching component instances into encapsulated data according to the combination instruction, thereby reducing the difficulty of data logic development and improving the reusability of data. In addition, the user can generate a component instance combination (i.e., encapsulated data) that meets the current business scenario by inputting component descriptions and data types according to different usage environments and situations.
[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data combination device, characterized in that: include: A storage device for storing a plurality of component instances; as well as A processor, coupled to the storage device, and configured to receive a combined instruction, The combined instruction includes a component description and a data type, and the processor parses the component description and the data type in the combined instruction. wherein the processor obtains a plurality of matching instances corresponding to the component description from the plurality of component instances, The processor packages the plurality of matching component instances into packaged data.
2. The data combination device according to claim 1, characterized in that: The plurality of component instances include at least one of a part instance, a suite instance, a task instance, and a process instance. wherein the kit instance includes a plurality of the component instances, wherein the task instance includes at least one of the kit instance and the component instance, The process instance includes at least one of the task instance, the kit instance and the component instance.
3. The data combination device according to claim 1, characterized in that: The storage device further stores a plurality of plug-in instances, wherein the processor obtains at least one matching plug-in instance corresponding to the plurality of matching instances from the storage device, wherein the processor combines the matching plug-in instance with the packaging data according to the component description.
4. The data combination device according to claim 2, characterized in that: The storage device stores a component description matching table, and the processor sequentially compares the component description with the multiple component instances to obtain the multiple matching instances that match the component description in the process instance, the task instance, the kit instance, and the component instance. The processor encapsulates the multiple matching instances and the data type into the encapsulated data.
5. The data combination device according to claim 1, characterized in that: The processor executes the encapsulated data to generate an execution result of the encapsulated data, The processor outputs the execution result.
6. The data combination device according to claim 1, characterized in that: Also includes a data interface, the data interface receives the combined instruction, wherein the data interface inputs the combined instruction to the processor, The data interface outputs the encapsulated data and the execution result corresponding to the encapsulated data.
7. The data combination device according to claim 1, characterized in that: The encapsulation data includes directional parameters, and the directional parameters include node parameters and connection parameters. The connection parameter is related to the connection relationship between the multiple matching instances in the encapsulated data. The multiple component instances are related to program codes, and each of the multiple component instances includes a component structure, which includes definition data and connection relationships of at least one of a part instance, a suite instance, a task instance, and a process instance.
8. The data combination device according to claim 1, characterized in that: The processor receives a creation instruction, and the processor generates a new component instance according to the creation instruction, wherein the processor stores the new component instance in the storage device.
9. A data combination method, characterized in that: include: Receive combination instructions; Parsing component descriptions and data types in the combined instruction; Obtaining multiple matching instances corresponding to the component description from multiple component instances; as well as The plurality of matching component instances are packaged into package data.
10. The data combination method according to claim 9, characterized in that: The plurality of component instances include at least one of a part instance, a suite instance, a task instance, and a process instance. The suite instance includes a plurality of component instances, the task instance includes at least one of the suite instance and the component instance, and the process instance includes at least one of the task instance, the suite instance and the component instance.
11. The data combination method according to claim 9, characterized in that: Also includes: Obtaining at least one matching plug-in instance corresponding to the plurality of matching instances from a storage device; as well as The matching plug-in instance is bound to the encapsulated data according to the component description.
12. The data combination method according to claim 10, characterized in that: The step of obtaining the plurality of matching instances corresponding to the component description from the plurality of component instances also includes: Compare the component description with the multiple component instances in sequence to obtain the multiple matching instances in the process instance, the task instance, the kit instance, and the component instance that conform to the component description, The step of encapsulating the plurality of matching component instances into the encapsulated data further comprises: The multiple matching instances and the data type are encapsulated into the encapsulated data.
13. The data combination method according to claim 9, characterized in that: Also includes: Executing the encapsulated data to generate an execution result of the encapsulated data; The execution result is outputted.
14. The data combination method according to claim 9, characterized in that: Also includes: receiving the combined instruction via a data interface, Inputting the combined instruction into the processor via the data interface: The encapsulated data and the execution result corresponding to the encapsulated data are outputted through the data interface.
15. The data combination method according to claim 9, characterized in that: The encapsulation data includes directional parameters, and the directional parameters include node parameters and connection parameters, The directional parameter is related to the connection relationship between the multiple matching instances in the encapsulation data, wherein the multiple component instances are related to the program code, and each of the multiple component instances includes a component structure, wherein the component structure includes definition data and a connection relationship of at least one of a part instance, a suite instance, a task instance, and a process instance.
16. The data combination method according to claim 9, characterized in that: Also includes: Receive creation instructions; Generate a new component instance according to the creation instruction; as well as The new component instance is stored in a storage device.
