Workflow augmentation method and related equipment

By copying and adjusting the topology and component information of the initial workflow, suitable workflows are generated according to the task requirements of different organizations, solving the problem of low workflow amplification efficiency in the existing technology and achieving efficient and applicable work. flow amplification.

CN114691095BActive Publication Date: 2025-01-21CHINA LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210199886.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-02
Publication Date
2025-01-21
Estimated Expiration
2042-03-02

AI Technical Summary

Technical Problem

Faced with different task needs of different institutions, it is difficult for the existing technology to achieve efficient amplification of workflows through simple replication or splicing, especially when task needs are similar but slightly different, making it difficult to apply to each other.

Method used

By identifying multiple target tasks, extracting and parsing the initial workflow, the initial topology and component information are obtained, copied and adjusted, and different amplification methods are adopted for linear and nonlinear structures to generate workflows suitable for each target task.

Benefits of technology

Efficient expansion of workflow is achieved, which can be applied to similar but slightly different task requirements, improving the efficiency and applicability of workflow expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691095B_ABST
    Figure CN114691095B_ABST
Patent Text Reader

Abstract

The present application provides a workflow expansion method and related equipment; the method includes: determining multiple target tasks, extracting and parsing the initial workflow, obtaining the initial topology structure and initial component information; copying the initial topology structure and the initial component information to obtain the initial topology structure copy and the initial component information copy corresponding to each target task; in response to determining that the initial topology structure is a linear structure, splicing all the initial topology structure copies and the initial component information copies according to the object notation format to generate a first target workflow corresponding to all target tasks; in response to determining that the topology structure is a nonlinear structure, for each target task, splicing the initial topology structure copy and the initial component information copy corresponding to the target task according to the object notation format to generate a second target workflow corresponding to the target task, and obtaining the second target workflow corresponding to each target task. The method realizes that one workflow is applicable to multiple tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the technical field of architecture deployment, and in particular, to a workflow amplification method and related equipment. Background Art

[0002] In related technologies, in the face of different task requirements of different institutions, it is often necessary to develop separate workflows for different institutions. This is especially true when there are multiple institutions with similar task requirements but slight differences between them. It is very costly to develop a workflow for each institution's task requirements. However, simply copying and amplifying the workflows makes them difficult to be applied to each other due to the slight differences between them.

[0003] Based on this, a solution is needed that can expand the workflow to make it suitable for various similar task requirements. Summary of the invention

[0004] In view of this, the purpose of the present application is to propose a workflow augmentation method and related equipment.

[0005] Based on the above purpose, the present application provides a workflow expansion method, which is applied to a server and includes:

[0006] Determine multiple target tasks, extract and parse the initial workflow, and obtain the initial topology structure and initial component information of the initial workflow;

[0007] The initial topology structure and the initial component information are copied to obtain a copy of the initial topology structure and a copy of the initial component information corresponding to each of the target tasks;

[0008] In response to determining that the initial topological structure is a linear structure, all the copies of the initial topological structure and the copies of the initial component information are spliced ​​in an object notation format to generate a first target workflow corresponding to all the target tasks;

[0009] In response to determining that the topological structure is a non-linear structure, for each of the target tasks, the copy of the initial topological structure and the copy of the initial component information corresponding to the target task are spliced ​​in an object notation format to generate a second target workflow corresponding to the target task, thereby obtaining the second target workflow corresponding to each of the target tasks.

[0010] Furthermore, the extracting and parsing the initial workflow to obtain the initial topology structure and initial component information of the initial workflow includes:

[0011] parse the initial workflow using an object notation parsing tool to obtain the initial topological structure and initial component information of the initial workflow, and obtain the initial position information and configuration information in the initial component information, and

[0012] An initial task identifier shared by the initial topology structure, the initial location information, and the configuration information.

[0013] Furthermore, the copying of the initial topology structure and the initial component information to obtain the initial topology structure copy and the initial component information copy corresponding to each of the target tasks includes:

[0014] The initial topology structure, the configuration information, and the initial location information are copied to obtain the same number of copies of the initial topology structure, the same number of copies of the configuration information, and the same number of copies of the initial location information as the total number of the target tasks;

[0015] Replace the initial task identifier corresponding to the initial topology structure copy, the initial location information copy and the configuration information copy having the same initial task identifier with a target task identifier of the target task, wherein the initial task identifier corresponds to the target task identifier one by one, and each target task identifier is different;

[0016] The initial component information copy includes: the initial location information copy and the configuration information copy.

[0017] Furthermore, the steps of splicing all the copies of the initial topology structure and the copies of the initial component information in an object notation format to generate a first target workflow corresponding to all the target tasks include:

[0018] splicing all the topology structure copies into a first target topology structure;

[0019] According to a preset position movement strategy, each copy of the initial position information is adjusted to obtain a plurality of different first target position information;

[0020] When there is a data source in the configuration information copy, the initial data source IDs of all the data sources are replaced with the target data source IDs of the target task corresponding to the configuration information copy;

[0021] splicing all the target location information and all the configuration information copies into a first target component information;

[0022] Determine whether there is a need to add dependent components for each of the target tasks;

[0023] In response to determining that there is a need to add a dependent component, creating an empty dependent component at the forefront of the first target topology structure;

[0024] A first target object simplified musical notation string is generated based on the first target topological structure and the first target component information, and the first target workflow is generated using the first target object simplified musical notation string.

[0025] Further, adjusting each of the initial location information copies according to a preset location movement strategy includes:

[0026] Traversing each of the initial location information copies in sequence according to a predetermined order, wherein the initial location information copies include location information of each component in the initial topological structure;

[0027] For the position information of each component in each copy of the initial position information, moving the vertical coordinate in the position information downward by a predetermined number of pixels;

[0028] The predetermined number of pixels is determined according to the predetermined order of the initial position information copies.

[0029] Furthermore, the initial topology structure copy and the initial component information copy corresponding to the target task are spliced ​​in an object notation format to generate a second target workflow corresponding to the target task, including:

[0030] Using the copy of the initial topology structure corresponding to the target task as a second target topology structure;

[0031] Using a copy of the initial position information corresponding to the target task as second target position information;

[0032] When a data source exists in the configuration information copy corresponding to the target task, the initial data source ID of the data source is replaced with the target data source ID of the target task;

[0033] splicing the target location information and the configuration information copy corresponding to the target task into a second target component information;

[0034] Determine whether there is a need to add dependent components to the target task;

[0035] In response to determining that there is a need to add a dependent component, adding a dependent component to the second target topology structure;

[0036] The target topological structure and the target component information corresponding to the target task are used to generate a target object musical notation string, and the target object musical notation string is used to generate a second target workflow corresponding to the target task.

[0037] Furthermore, the extracting and parsing the initial workflow also includes:

[0038] After extracting the initial workflow, checking whether the initial workflow contains hyperparameters;

[0039] In response to determining that a hyperparameter exists, the hyperparameter is parsed according to the setting rule of the hyperparameter to obtain key-value pairs corresponding to each parameter in the initial workflow.

[0040] Based on the same inventive concept, the present application also provides a workflow augmentation device, characterized in that it is applied to a server, and the device includes:

[0041] The extraction and parsing module is configured to: determine multiple target tasks, extract and parse the initial workflow, and obtain the initial topological structure and initial component information of the initial workflow;

[0042] A copy module is configured to: copy the initial topology structure and the initial component information to obtain a copy of the initial topology structure and a copy of the initial component information corresponding to each of the target tasks;

[0043] The simple workflow expansion module is configured to: in response to determining that the initial topological structure is a linear structure, splice all the copies of the initial topological structure and the copies of the initial component information according to the object notation format to generate a first target workflow corresponding to all the target tasks;

[0044] The complex workflow amplification module is configured as follows: in response to determining that the topological structure is a nonlinear structure, for each of the target tasks, the initial topological structure copy and the initial component information copy corresponding to the target task are spliced ​​in an object notation format to generate a second target workflow corresponding to the target task, and the second target workflow corresponding to each of the target tasks is obtained.

[0045] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the workflow augmentation method as described in any one of the above items is implemented.

[0046] Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the workflow augmentation method as described above.

[0047] As can be seen from the above, the workflow amplification method and related equipment provided by the present application, based on the analysis of the initial workflow, comprehensively consider the initial topological structure and initial component information in the initial workflow to replicate the initial topological structure and initial component information, and consider different initial topological structures, and adopt different amplification methods for linear structures and non-linear structures, so that under the linear structure, the first target workflow is obtained by splicing all the copies of the initial topological structure and the copies of the initial component information, and under the non-linear structure, multiple second target workflows for each target task are spliced ​​out by copying and adjusting, thereby improving the efficiency of workflow amplification. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 A flowchart of a workflow expansion method according to an embodiment of the present application;

[0050] Figure 2 This is a schematic diagram of a workflow amplification device module according to an embodiment of the present application;

[0051] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0053] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0054] As described in the background technology section, the related workflow augmentation methods are still difficult to meet the augmentation needs for coping with different target tasks in actual production.

[0055] In the process of implementing this application, the applicant discovered that the main problem with the related workflow expansion method is that when faced with different task requirements of different institutions, especially when faced with multiple different institutions whose task requirements are similar but slightly different from each other, it is often necessary to develop separate workflows for different institutions.

[0056] This situation is very common in multiple branches of the same company or organization. It is very costly to develop a workflow for the task requirements of each organization, but simply copying or splicing the workflows to expand them will make them difficult to apply to each other due to slight differences between them.

[0057] It can be understood that the method can be executed by any device, equipment, platform, or device cluster having computing and processing capabilities.

[0058] The technical method of the present application is described in detail below through specific embodiments.

[0059] refer to Figure 1 A workflow amplification method according to an embodiment of the present application, applied to a server, comprises the following steps:

[0060] Step S101: determine multiple target tasks, extract and parse the initial workflow, and obtain the initial topology structure and initial component information of the initial workflow.

[0061] In an embodiment of the present application, it is necessary to apply the existing workflow that has been developed to 36 different branches, and to enable each branch to operate and meet their respective needs. In this embodiment, the existing workflow is used as the initial workflow. Furthermore, each branch has different project requirements. Therefore, the project requirements of each branch are used as the target tasks of the branch, and the initial workflow is further expanded into a target workflow by expanding the existing workflow, so that the target workflow can be applied to each branch.

[0062] In this embodiment, the workflow expansion method can be applied to a suitable server. First, the server obtains the target tasks of each branch structure, and further extracts the completed initial workflow from the database.

[0063] In the process of extracting the workflow, since the initial workflow is described in a static state using a JOSN (object notation) string, the JOSN string is a field in the workflow definition table. When extracting the initial workflow, the JOSN field can be exported from the database as a JOSN file.

[0064] Furthermore, the extracted initial workflow is parsed using a JOSN parsing tool.

[0065] Specifically, the exported JOSN file describes the initial topology structure and initial component information of the initial workflow. The initial topology structure and initial component information are obtained by parsing the JOSN file.

[0066] The initial topology structure describes the execution sequence relationship between the various components when executing the initial workflow.

[0067] Furthermore, the parsed initial component information includes: configuration information describing the relevant configuration of each component in the initial topology structure, data sources used by each component, and initial position information of each component in the visualization image.

[0068] Furthermore, by parsing the JOSN file, the task ID (initial task identifier) ​​of the initial workflow can also be obtained.

[0069] The initial topology structure of the initial workflow, each component, initial location information of each component, and configuration information of each component all use the same task ID.

[0070] Furthermore, the preprocessing parsing process also includes checking whether the initial workflow contains hyperparameters.

[0071] When developing an initial workflow, since the initial workflow needs to be flexibly configured, hyperparameters can be used to configure the initial workflow. For example, recycleparams that allows a workflow to use different parameters for multiple cycles can be used as a hyperparameter.

[0072] Furthermore, when developing the initial workflow, the recycle params can be set in the parameter description part of the JOSN string.

[0073] The format of recycle params can be: a string separated by the character "|", each separated part describes the parameter list used in each cycle, and the character "," can be used to separate the description of each parameter in the parameter list of each cycle. Each parameter can be described as a key-value pair, that is, a key and a value, and the character ":" is used to separate the key and the value.

[0074] Furthermore, after the server extracts the initial workflow from the database, when it is detected during the parsing process that the initial workflow has hyperparameters, the parameter list of the hyperparameters is parsed, and the key-value pairs that each parameter should correspond to when the initial workflow is started are obtained based on the character "|" separating the character string.

[0075] Step S102: copy the initial topology structure and the initial component information to obtain a copy of the initial topology structure and a copy of the initial component information corresponding to each of the target tasks.

[0076] In the embodiment of the present application, based on the above preprocessing process, each part of the initial workflow can be copied according to the number of target tasks, and a corresponding number of copies of each part can be obtained.

[0077] Specifically, according to the 36 target tasks of the 36 branches predetermined in this embodiment, the initial topology structure is firstly copied to obtain 36 copies of the initial topology structure.

[0078] Furthermore, the initial component information is copied to obtain 36 sets of initial component information copies.

[0079] Each initial component information copy includes a configuration information copy and an initial position information copy, that is, 36 configuration information copies and 36 initial position information copies can be obtained.

[0080] Furthermore, since each initial topology structure, initial location information and configuration information has the same taskID, the 36 initial topology structure copies, 36 configuration information copies and 36 initial location information copies copied at this time also have the same task ID.

[0081] Furthermore, each task ID is replaced with the task ID' (target task identifier) ​​of each target task.

[0082] Specifically, in this embodiment, each target task identifier task ID' can be obtained by concatenating the branch-specific code and task ID corresponding to it, thereby obtaining 36 different task ID's corresponding to the 36 branch structure target tasks.

[0083] Furthermore, the task IDs of the copied 36 initial topology structure copies, 36 configuration information copies and 36 initial location information copies are replaced with 36 different task ID's. At this time, the initial topology structure copies, configuration information copies and initial location information copies using the same task ID' can be matched with the target task to which the task ID' belongs.

[0084] Step S103, in response to determining that the initial topological structure is a linear structure, all the copies of the initial topological structure and the copies of the initial component information are spliced ​​in an object notation format to generate a first target workflow corresponding to all the target tasks.

[0085] In the embodiment of the present application, based on the initial topological structure obtained in the above-mentioned preprocessing process, it can be determined whether the logic of the initial workflow belongs to a simple structure or a complex structure.

[0086] Specifically, when the initial topology structure presents a linear structure, the logic of the initial workflow can be considered to be a simple structure. At this time, 36 copies of various parts of the copied initial workflow, including the initial topology structure copy, the initial component information copy, etc., can be spliced ​​into a first target workflow, and by modifying the relevant configuration, it can be made suitable for the target tasks of the 36 branches.

[0087] When the initial topology structure presents a nonlinear structure, it can be considered that the logic of the initial workflow belongs to a complex structure. At this time, due to the complexity of the logic, if the first target workflow obtained by the above-mentioned splicing method is used, execution errors will often occur when the first target workflow is executed. Therefore, at this time, 36 copies of each part of the copied initial workflow, including the initial topology structure copy, the initial component information copy, etc., can be spliced ​​into 36 second target workflows according to the target tasks corresponding to each copy, and by modifying the relevant configuration, each second target workflow can be applied to the target tasks of the corresponding branch.

[0088] In this embodiment, for an initial workflow with simple logic, 36 copies of the initial topology structure are first concatenated together in JSON format to form a first target topology structure.

[0089] Furthermore, determine whether there is a need to add dependent components in each target task. If there are one or more branches that propose to add dependent components in their target tasks, a randomly generated component identifier can be inserted at the front of the first target topology structure as the dependent component identifier, and a directed edge pointing from the node to the head node of each branch can be added to the first target topology structure.

[0090] In this embodiment, the splicing of the initial component information copies can be divided into the splicing of the initial position information copies and the splicing of the configuration information copies.

[0091] Specifically, in the first target topology structure obtained based on splicing, the initial position information of each component is preset to (x, y), that is, the initial position information in the copy of the initial position information is also (x, y), wherein x represents the horizontal coordinate and y represents the vertical coordinate. In this embodiment, for the convenience of description, for each component with different horizontal coordinates and vertical coordinates in the initial position information, its horizontal coordinate and vertical coordinate are still represented as x and y.

[0092] Furthermore, since the position information of each component in each first target topological structure overlaps, the initial position information needs to be adjusted.

[0093] Specifically, the node set corresponding to each branch in the first target topological structure is traversed in a predetermined order, and the node set contains the initial position information of each component corresponding to the branch. The predetermined order can be any order set according to requirements, and it is ensured that the node set of each branch structure can be traversed once.

[0094] When traversing to each node set, the initial position information copy of each component in the node set is adjusted to: (x, y+k×delta), where delta can be set as required, for example, it can be set to 100 in this embodiment, and k represents the number of traversed nodes of the set node.

[0095] Furthermore, the adjusted copies of the initial location information are spliced ​​in JOSN format to obtain the first target location information.

[0096] Further, it is checked whether each component in the configuration information uses a data source. If it is determined that there is a component using a data source, the initial data source ID (initial data source identifier) ​​of the data source is parsed, and the initial data source name is obtained using the initial data source ID.

[0097] Furthermore, the initial data source name can be replaced with a target data source name, where the target data source name can be the data source name of each branch. That is, for each configuration information copy, the initial data source name needs to be replaced with the target data source name corresponding to the branch according to task ID'.

[0098] Furthermore, the target data source ID (target data source identifier) ​​may be obtained through the target data source name, and the initial data source ID may be replaced with the target data source ID (target data source identifier).

[0099] Furthermore, the obtained 36 configuration information copies may be spliced ​​in JOSN format to obtain the first target configuration information.

[0100] If there is a need to add a dependent component, an empty dependent component is created using the dependent component identifier generated above, and is added to the first target configuration information.

[0101] Furthermore, the first target configuration information and the first target position information are used as the first target component information.

[0102] Furthermore, in the JOSN format, a first target JOSN string is constructed using the first target topological structure and the first target component information, and the first target JOSN string is saved as a first target workflow file.

[0103] The first target workflow file can be imported into a corresponding database, and when used, the first target workflow is extracted to execute the target tasks of each branch.

[0104] Step S104, in response to determining that the topological structure is a non-linear structure, for each of the target tasks, the copy of the initial topological structure and the copy of the initial component information corresponding to the target task are spliced ​​in an object notation format to generate a second target workflow corresponding to the target task, and the second target workflow corresponding to each of the target tasks is obtained.

[0105] In the embodiment of the present application, as described above, 36 second target workflows corresponding to different target tasks can be generated for a logically complex initial workflow.

[0106] In this embodiment, for an initial workflow with complex logic, the following workflow expansion method is performed for each target task:

[0107] First, a copy of the initial topology structure corresponding to the target task task ID' is used as the second target topology structure.

[0108] Furthermore, determine whether there is a need to add dependent components in the target task. If the branch proposes to add dependent components in its target task, a randomly generated component identifier can be inserted at the front of the second target topology structure as the dependent component identifier, and a directed edge pointing from the node to the head node of each branch can be added to the second target topology structure.

[0109] Furthermore, a copy of the initial location information corresponding to the target task task ID' is used as the second target location information.

[0110] Since the position information of each component in each second target position information does not overlap, the initial position information may not be adjusted.

[0111] Further, it is checked whether each component in the configuration information uses a data source. If it is determined that there is a component using a data source, the initial data source ID (initial data source identifier) ​​of the data source is parsed, and the initial data source name is obtained using the initial data source ID.

[0112] Furthermore, the initial data source name may be replaced with a target data source name, wherein the target data source name may be a data source name corresponding to the branch office.

[0113] Furthermore, the target data source ID (target data source identifier) ​​may be obtained through the target data source name, and the initial data source ID may be replaced with the target data source ID (target data source identifier).

[0114] Furthermore, the adjusted configuration information is used as the second target configuration information.

[0115] If there is a need to add a dependent component, an empty dependent component is created using the dependent component identifier generated above, and added to the second target configuration information.

[0116] Furthermore, the second target configuration information and the second target position information are used as the second target component information.

[0117] Furthermore, in the JOSN format, a second target JOSN string is constructed using the second target topological structure and the second target component information, and the second target JOSN string is saved as a second target workflow file.

[0118] The second target workflow file can be imported into a corresponding database, and when used, the second target workflow is extracted to execute the target task of the branch.

[0119] In this embodiment, for a logically complex initial workflow, if the initial workflow contains dependent components, it is necessary to create a project group for each target task after copying the initial topology structure and initial component information, and for each project group, the project group name of the project group can be created with each corresponding target task.

[0120] Furthermore, when the above workflow expansion method is performed for each target task, all workflows including dependent components in the initial workflow may be placed in the project group, and then the above workflow expansion method described in this step may be performed.

[0121] Among them, it is necessary to replace the dependent component workflow identifier of the dependent component design in the initial workflow with task ID'.

[0122] Furthermore, after obtaining the second target workflow for each target task, all second target workflows can be placed in a project list that integrates all project groups. That is, all workflows of the corresponding branches are saved in each project group, and the dependencies between the workflows are sorted out.

[0123] As can be seen from the above, the workflow amplification method and related equipment provided by the present application, based on the analysis of the initial workflow, comprehensively consider the initial topological structure and initial component information in the initial workflow to replicate the initial topological structure and initial component information, and consider different initial topological structures, and adopt different amplification methods for linear structures and non-linear structures, so that under the linear structure, the first target workflow is obtained by splicing all the copies of the initial topological structure and the copies of the initial component information, and under the non-linear structure, multiple second target workflows for each target task are spliced ​​out by copying and adjusting, thereby improving the efficiency of workflow amplification.

[0124] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0125] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0126] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application further provides a workflow amplification device.

[0127] refer to Figure 2 The workflow amplification device comprises: an extraction and analysis module 201, a replication module 202, a simple workflow amplification module 203 and a complex workflow amplification module 204;

[0128] The extraction and analysis module 201 is configured to: determine multiple target tasks, extract and analyze the initial workflow, and obtain the initial topology structure and initial component information of the initial workflow;

[0129] The copy module 202 is configured to: copy the initial topology structure and the initial component information to obtain a copy of the initial topology structure and a copy of the initial component information corresponding to each of the target tasks;

[0130] The simple workflow expansion module 203 is configured to: in response to determining that the initial topological structure is a linear structure, splice all the initial topological structure copies and the initial component information copies according to the object notation format to generate a first target workflow corresponding to all the target tasks;

[0131] The complex workflow expansion module 204 is configured as follows: in response to determining that the topological structure is a non-linear structure, for each of the target tasks, the copy of the initial topological structure and the copy of the initial component information corresponding to the target task are spliced ​​in an object notation format to generate a second target workflow corresponding to the target task, and obtain the second target workflow corresponding to each of the target tasks.

[0132] As an optional embodiment, the extraction and parsing module 201 is specifically configured to: use the object notation parsing tool to parse the initial workflow, obtain the initial topological structure and the initial component information of the initial workflow, and obtain the initial position information and configuration information in the initial component information, as well as the initial task identifier shared by the initial topological structure, the initial position information and the configuration information.

[0133] Furthermore, after extracting the initial workflow, it is checked whether the initial workflow contains hyperparameters; in response to determining that there are hyperparameters, the hyperparameters are parsed according to the setting rules of the hyperparameters to obtain key-value pairs corresponding to the various parameters in the initial workflow.

[0134] As an optional embodiment, the replication module 202 is specifically configured to: replicate the initial topology structure, the configuration information, and the initial position information to obtain the same number of copies of the initial topology structure, the configuration information, and the initial position information as the total number of target tasks.

[0135] Furthermore, the initial task identifier corresponding to the initial topology structure copy, the initial location information copy and the configuration information copy having the same initial task identifier is replaced with a target task identifier of the target task, wherein the initial task identifier corresponds one-to-one to the target task identifier, and each of the target task identifiers is different.

[0136] The initial component information copy includes: the initial location information copy and the configuration information copy.

[0137] As an optional embodiment, the simple workflow expansion module 203 is specifically configured to: splice all the topology structure copies into a first target topology structure.

[0138] Furthermore, each of the initial position information copies is adjusted according to a preset position movement strategy to obtain a plurality of different first target position information.

[0139] Wherein, when there is a data source in the configuration information copy, the initial data source IDs of all the data sources are replaced with the target data source IDs of the target task corresponding to the configuration information copy;

[0140] Furthermore, all of the target location information and all of the configuration information copies are concatenated into one first target component information.

[0141] Furthermore, it is determined whether there is a need to add dependent components to each of the target tasks.

[0142] In response to determining that there is a need to add a dependent component, an empty dependent component is created at the front of the first target topology structure.

[0143] Furthermore, a first target object simplified musical notation string is generated based on the first target topological structure and the first target component information, and the first target workflow is generated using the first target object simplified musical notation string.

[0144] The adjusting each of the initial location information copies according to the preset location movement strategy includes:

[0145] Traversing each of the initial location information copies in sequence according to a predetermined order, wherein the initial location information copies include location information of each component in the initial topological structure;

[0146] For the position information of each component in each copy of the initial position information, moving the vertical coordinate in the position information downward by a predetermined number of pixels;

[0147] The predetermined number of pixels is determined according to the predetermined order of the initial position information copies.

[0148] As an optional embodiment, the complex workflow expansion module 204 is specifically configured to: use the copy of the initial topology structure corresponding to the target task as a second target topology structure.

[0149] Furthermore, the copy of the initial position information corresponding to the target task is used as the second target position information.

[0150] When a data source exists in the configuration information copy corresponding to the target task, the initial data source ID of the data source is replaced with the target data source ID of the target task.

[0151] Furthermore, the target location information and the configuration information copy corresponding to the target task are spliced ​​into a second target component information.

[0152] Furthermore, it is determined whether there is a need to add dependent components to the target task.

[0153] In response to determining that there is a need to add a dependent component, a dependent component is added to the second target topology structure.

[0154] Furthermore, the target topological structure and the target component information corresponding to the target task are used to generate a target object musical notation string, and the target object musical notation string is used to generate a second target workflow corresponding to the target task.

[0155] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0156] The device of the above embodiment is used to implement the corresponding workflow augmentation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0157] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the workflow augmentation method as described in any of the above embodiments is implemented.

[0158] Figure 3 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0159] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0160] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solution provided in the embodiment of the present application is implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0161] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0162] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0163] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0164] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.

[0165] The device of the above embodiment is used to implement the corresponding workflow augmentation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0166] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the workflow augmentation method described in any of the above embodiments.

[0167] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0168] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the workflow augmentation method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0169] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0170] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0171] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0172] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.

Claims

1. A workflow augmentation method, characterized in that: Applied to a server, the method comprises: Determine multiple target tasks, extract and parse the initial workflow, and obtain the initial topology structure and initial component information of the initial workflow; The initial topology structure and the initial component information are copied to obtain a copy of the initial topology structure and a copy of the initial component information corresponding to each of the target tasks; In response to determining that the initial topological structure is a linear structure, all the copies of the initial topological structure and the copies of the initial component information are spliced ​​in an object notation format to generate a first target workflow corresponding to all the target tasks; In response to determining that the topological structure is a nonlinear structure, for each of the target tasks, the initial topological structure copy and the initial component information copy corresponding to the target task are spliced ​​in an object notation format to generate a second target workflow corresponding to the target task, thereby obtaining the second target workflow corresponding to each of the target tasks; The step of splicing all the copies of the initial topology structure and the copies of the initial component information in an object notation format to generate a first target workflow corresponding to all the target tasks includes: splicing all the topology structure copies into a first target topology structure; According to a preset position movement strategy, each copy of the initial position information is adjusted to obtain a plurality of different first target position information; When there is a data source in the configuration information copy, the initial data source IDs of all the data sources are replaced with the target data source IDs of the target task corresponding to the configuration information copy; splicing all the first target location information and all the configuration information copies into one first target component information; Determine whether there is a need to add dependent components for each of the target tasks; In response to determining that there is a need to add a dependent component, creating an empty dependent component at the forefront of the first target topology structure; Generate a first target object musical notation string based on the first target topological structure and the first target component information, and generate the first target workflow using the first target object musical notation string; The step of adjusting each initial location information copy according to a preset location movement strategy includes: Traversing each of the initial location information copies in sequence according to a predetermined order, wherein the initial location information copies include location information of each component in the initial topological structure; For the position information of each component in each copy of the initial position information, moving the vertical coordinate in the position information downward by a predetermined number of pixels; The predetermined number of pixels is determined according to the predetermined order of the initial position information copies.

2. The method according to claim 1, characterized in that The extracting and parsing the initial workflow to obtain the initial topology structure and initial component information of the initial workflow includes: parse the initial workflow using an object notation parsing tool to obtain the initial topological structure and initial component information of the initial workflow, and obtain the initial position information and configuration information in the initial component information, and An initial task identifier shared by the initial topology structure, the initial location information, and the configuration information.

3. The method according to claim 2, characterized in that The copying of the initial topology structure and the initial component information to obtain the initial topology structure copy and the initial component information copy corresponding to each of the target tasks includes: The initial topology structure, the configuration information, and the initial location information are copied to obtain the same number of copies of the initial topology structure, the same number of copies of the configuration information, and the same number of copies of the initial location information as the total number of the target tasks; Replace the initial task identifier corresponding to the initial topology structure copy, the initial location information copy and the configuration information copy having the same initial task identifier with a target task identifier of the target task, wherein the initial task identifier corresponds to the target task identifier one by one, and each target task identifier is different; The initial component information copy includes: the initial location information copy and the configuration information copy.

4. The method according to claim 1, characterized in that: The initial topology structure copy and the initial component information copy corresponding to the target task are spliced ​​in an object notation format to generate a second target workflow corresponding to the target task, including: Using the copy of the initial topology structure corresponding to the target task as a second target topology structure; Using a copy of the initial position information corresponding to the target task as second target position information; When a data source exists in the configuration information copy corresponding to the target task, the initial data source ID of the data source is replaced with the target data source ID of the target task; splicing the second target location information and the configuration information copy corresponding to the target task into a second target component information; Determine whether there is a need to add dependent components to the target task; In response to determining that there is a need to add a dependent component, adding a dependent component to the second target topology structure; The second target topological structure and the second target component information corresponding to the target task are used to generate a target object simple musical notation string, and the target object simple musical notation string is used to generate a second target workflow corresponding to the target task.

5. The method according to claim 2, characterized in that: The extracting and parsing of the initial workflow also includes: After extracting the initial workflow, checking whether the initial workflow contains hyperparameters; In response to determining that a hyperparameter exists, the hyperparameter is parsed according to a setting rule of the hyperparameter to obtain key-value pairs corresponding to each parameter in the initial workflow.

6. A workflow amplification device, characterized in that: Applied to a server, the device comprises: The extraction and parsing module is configured to: determine multiple target tasks, extract and parse the initial workflow, and obtain the initial topological structure and initial component information of the initial workflow; A copy module is configured to: copy the initial topology structure and the initial component information to obtain a copy of the initial topology structure and a copy of the initial component information corresponding to each of the target tasks; The simple workflow expansion module is configured to: in response to determining that the initial topological structure is a linear structure, splice all the copies of the initial topological structure and the copies of the initial component information according to the object notation format to generate a first target workflow corresponding to all the target tasks; The complex workflow expansion module is configured to: in response to determining that the topological structure is a nonlinear structure, for each of the target tasks, splice the initial topological structure copy and the initial component information copy corresponding to the target task in an object notation format, generate a second target workflow corresponding to the target task, and obtain the second target workflow corresponding to each of the target tasks; The simple workflow expansion module is specifically configured to: splice all the topology structure copies into a first target topology structure; According to a preset position movement strategy, each copy of the initial position information is adjusted to obtain a plurality of different first target position information; When there is a data source in the configuration information copy, the initial data source IDs of all the data sources are replaced with the target data source IDs of the target task corresponding to the configuration information copy; splicing all the first target location information and all the configuration information copies into one first target component information; Determine whether there is a need to add dependent components for each of the target tasks; In response to determining that there is a need to add a dependent component, creating an empty dependent component at the forefront of the first target topology structure; Generate a first target object musical notation string based on the first target topological structure and the first target component information, and generate the first target workflow using the first target object musical notation string; The step of adjusting each initial location information copy according to a preset location movement strategy includes: Traversing each of the initial location information copies in sequence according to a predetermined order, wherein the initial location information copies include location information of each component in the initial topological structure; For the position information of each component in each copy of the initial position information, moving the vertical coordinate in the position information downward by a predetermined number of pixels; The predetermined number of pixels is determined according to the predetermined order of the initial position information copies.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Parallel processing method for reconfigurable processor with multilayer heterogeneous structure

    CN105302525A

  • Workflow generation method and device, computer equipment and storage medium

    CN111142933A