WO2021068692A1 - Method, apparatus and device for workflow migration, and computer-readable storage medium - Google Patents

Method, apparatus and device for workflow migration, and computer-readable storage medium Download PDF

Info

Publication number
WO2021068692A1
WO2021068692A1 PCT/CN2020/113492 CN2020113492W WO2021068692A1 WO 2021068692 A1 WO2021068692 A1 WO 2021068692A1 CN 2020113492 W CN2020113492 W CN 2020113492W WO 2021068692 A1 WO2021068692 A1 WO 2021068692A1
Authority
WO
WIPO (PCT)
Prior art keywords
workflow
file
node
scheduling system
migration
Prior art date
Application number
PCT/CN2020/113492
Other languages
French (fr)
Chinese (zh)
Inventor
刘有
尹强
王和平
黄山
杨峙岳
邸帅
卢道和
Original Assignee
深圳前海微众银行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2021068692A1 publication Critical patent/WO2021068692A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats

Definitions

  • This application relates to the technical field of financial technology (Fintech), and in particular to a workflow migration method, device, equipment, and computer-readable storage medium.
  • workflow definitions of different scheduling systems are not compatible. After a user defines a workflow on a system, if the workflow scheduling system needs to be replaced, the user is often required to redesign the original workflow or manually migrate the workflow. When a system has been used for a long time, the workflow in it has become very complex and huge. The task of workflow migration is very arduous. If the migration is performed manually, the migration efficiency is low. At the same time, the dependence relationship Very complex workflows only rely on manual migration and it is difficult to ensure the correctness of dependencies.
  • the main purpose of this application is to provide a workflow migration method, device, equipment, and computer-readable storage medium, aiming to solve the problems of low migration efficiency and low accuracy of existing workflow migration methods.
  • the workflow migration method includes:
  • the second workflow file is sent to the target scheduling system to implement migration.
  • the method before the step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system, the method further includes:
  • the step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system includes:
  • the third workflow file is converted according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
  • the method before the step of receiving a node editing instruction triggered by a user based on the workflow view, the method further includes:
  • the attribute drop-down box corresponding to the target editing node is displayed, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
  • the step of obtaining a workflow file to be migrated, converting the workflow file to be migrated to obtain a workflow file in a preset format, and recording it as the first workflow file includes:
  • mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition
  • a workflow file in a preset format is generated, which is recorded as the first workflow file.
  • the step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system includes:
  • the step of converting each node based on the scheduling workflow to generate a definition file corresponding to each node includes:
  • each node is converted, and a definition file corresponding to each node is generated.
  • the method before the step of sending the second workflow file to the target scheduling system to implement the migration, the method further includes:
  • workflow migration device which includes:
  • the first conversion module is configured to obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
  • the second conversion module is used to obtain a target scheduling system, and convert the first workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system, which is recorded as a second workflow file;
  • the migration module is used to send the second workflow file to the target scheduling system to implement migration.
  • the present application also provides a workflow migration device
  • the workflow migration device includes: a memory, a processor, and a workflow migration stored in the memory and running on the processor A program that implements the steps of the workflow migration method as described above when the workflow migration program is executed by the processor.
  • this application also provides a computer-readable storage medium having a workflow migration program stored on the computer-readable storage medium, and when the workflow migration program is executed by a processor, the above-mentioned The steps of the workflow migration method.
  • This application provides a workflow migration method, device, equipment, and computer-readable storage medium.
  • the workflow file to be migrated is converted, and a workflow file in a preset format is obtained, which is recorded as the first job Flow file;
  • Obtain the target scheduling system that is, the system to be migrated into, and then convert the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system, which is recorded as the first 2.
  • Workflow file and then send the second workflow file to the target scheduling system to achieve migration.
  • a general workflow format is defined in this application, which can automatically convert the workflow file to be migrated into a workflow file in a preset general format (ie, the first workflow file), and then schedule according to the target
  • the type of the system the first workflow file is converted to obtain the workflow file corresponding to the target scheduling system, and then the migration is performed. Therefore, this application can realize the automatic conversion and migration of the workflow file to be migrated, which can improve the workflow Migration efficiency, at the same time, can realize automatic analysis of the dependencies between workflow nodes during the conversion process, avoid the problem of analytic errors in manual migration in the prior art, thereby improving the accuracy of workflow migration in certain procedures.
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the application;
  • Figure 3 is a schematic diagram of a Json structure directory involved in the workflow migration method of this application.
  • FIG. 4 is a schematic diagram of functional modules of the first embodiment of the workflow migration device of this application.
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the application.
  • the workflow migration device in the embodiment of this application can be a smart phone or a PC (Personal Computer, personal computer), tablet computer, portable computer and other terminal equipment.
  • the workflow migration device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).
  • the memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • the structure of the workflow migration device shown in FIG. 1 does not constitute a limitation on the workflow migration device, and may include more or less components than shown in the figure, or combine certain components, or be different.
  • the layout of the components does not constitute a limitation on the workflow migration device, and may include more or less components than shown in the figure, or combine certain components, or be different. The layout of the components.
  • a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a workflow migration program.
  • the network interface 1004 is mainly used to connect to a back-end server and communicate with the back-end server;
  • the user interface 1003 is mainly used to connect to a client and communicate with the client;
  • the processor 1001 can be used to Call the workflow migration program stored in the memory 1005, and perform the following operations:
  • the second workflow file is sent to the target scheduling system to implement migration.
  • the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
  • the third workflow file is converted according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
  • the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
  • the attribute drop-down box corresponding to the target editing node is displayed, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
  • the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
  • mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition
  • a workflow file in a preset format is generated, which is recorded as the first workflow file.
  • the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
  • the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
  • each node is converted, and a definition file corresponding to each node is generated.
  • the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
  • the second workflow file is sent to the target scheduling system to implement migration.
  • This application provides a workflow migration method.
  • FIG. 2 is a schematic flowchart of a first embodiment of a workflow migration method of this application.
  • the workflow migration method includes:
  • Step S10 obtaining a workflow file to be migrated, and converting the workflow file to be migrated to obtain a workflow file in a preset format, which is recorded as the first workflow file;
  • the workflow migration method in this embodiment is implemented by a workflow migration device, and the device is described by taking a server as an example.
  • a general workflow data structure is defined first, and the workflow file of the scheduling system to be migrated (that is, the workflow file to be migrated) is automatically converted into a workflow file of a preset general format. (That is, the first workflow file).
  • the workflow file to be migrated is obtained first, and the workflow file to be migrated is converted to obtain a workflow file in a preset format, which is recorded as the first workflow file.
  • the preset format can be selected as Json (JavaScript Object Notation, a lightweight data exchange format based on JavaScript language) format.
  • TSS Task Schedule System, task scheduling system
  • SBT file type
  • DWS DataWorkShop, Data workshop
  • step S10 includes:
  • Step a1 reading the workflow file to be migrated, and analyzing the content of the workflow file to be migrated to obtain the first node definition and the first edge definition;
  • Step a2 Perform mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition;
  • step a3 a file directory is constructed based on the second node definition and the second edge definition, and a workflow file in a preset format is generated, which is recorded as the first workflow file.
  • the node object that is, the first node definition
  • converts the definition of the edge into an operable edge object in java that is, the first edge definition.
  • the first node definition and the first edge definition are mapped and converted to obtain the second node definition and the second edge definition, that is, the mapping is the definition corresponding to the preset format, where the second node definition includes Node name, type, attribute information, execution command, dependency definition and other information.
  • the second edge definition includes the starting point and end point information of the edge.
  • a file directory is constructed based on the second node definition and the second edge definition, and a workflow file in a preset format is generated, which is recorded as the first workflow file.
  • each workflow corresponds to a Json file definition.
  • create a new file directory (denoted as a subdirectory) in the current directory, and add subdirectories to the subdirectory.
  • Json file definition of workflow If there are multiple sub-workflows at the same level, you need to create multiple file directories (ie multiple sub-directories). If there is a deeper level of nesting in the sub-workflow, the next-level workflow directory is created in the same way.
  • the final output workflow files in Json format are organized according to hierarchical directories. Refer to Figure 3, which is a schematic diagram of a Json structure directory.
  • the first-level directory corresponds to the top-level workflow of the original workflow file to be migrated, which is the original top-level All workflows of a Group, because there may be multiple parallel workflows in a Group, they can be numbered according to the workflow number; if there are nested sub-workflows under the top-level Group, they will be placed in In the directory with the same name as the workflow, put the second-level directory; the number of the workflow and the number of the directory are defined in the format of the name of the group-the current level-the number of the workflow.
  • Step S20 Obtain a target scheduling system, and convert the first workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system, which is recorded as a second workflow file;
  • the step of "converting the first workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system" includes:
  • Step b1 Determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file to obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, and combine the The workflow is converted into a scheduling workflow;
  • the target scheduling system as the Azkaban system as an example
  • the corresponding conversion plug-in can be called.
  • the conversion plug-in has predefined workflow conversion interface parseFlow (parse flow) and node conversion interface parseNode (parse node), which can be converted
  • the conversion interface parseNode of the nodes in the plug-in parses the first workflow file to obtain the dependencies and hierarchical relationships of the nodes in the corresponding workflow, and converts the workflow into SchedulerFlow (scheduler workflow) through the workflow conversion interface parseFlow.
  • Step b2 converting each node based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory where the definition file is located is determined according to the hierarchical relationship;
  • each node is converted based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory where the definition file is located is determined according to the hierarchical relationship obtained by the above analysis.
  • the format of the definition file can be the .job format.
  • step b2 includes:
  • Step b21 Obtain the node type of each node based on the scheduling workflow, and obtain corresponding parameter information according to the node type;
  • Step b22 Transform each node based on the parameter information, and generate a definition file corresponding to each node.
  • the conversion of nodes needs to be converted according to the type.
  • the conversion of different types of nodes is completely different. Therefore, first obtain the node type of each node based on the scheduling workflow, and obtain the corresponding parameter information according to the node type, for example, for the conversion of the shell type node .
  • the parameter information that needs to be obtained includes node name, node type, node command, agent execution user, variable, parameter, resource file, etc.
  • the parameter information that needs to be obtained includes node name, node type, drive (Drive) parameters, executor (execution) parameters, execution scripts, third-party jars (a software package file format), custom functions, hadoop (distributed system infrastructure) users, cluster addresses, etc. Then, each node is converted based on the parameter information, and a definition file corresponding to each node is generated.
  • Step b3 Set the dependency relationship to the attribute of the corresponding node, download the dependent resource file of each node to the directory where the corresponding definition file is located, and convert the node variable of each node into a feature file and place it in the corresponding definition file. In the directory where it is located, a workflow file corresponding to the target scheduling system is obtained.
  • the dependency relationship obtained by the above analysis is set to the attribute of the corresponding node to be saved as an attribute in the definition file.
  • the dependent resource file of each node needs to be downloaded to the corresponding In the directory where the definition file is located, the node variables of each node are respectively transformed into a characteristic (properties) file and placed in the directory where the corresponding definition file is located to obtain a workflow file corresponding to the target scheduling system.
  • Step S30 Send the second workflow file to the target scheduling system to implement migration.
  • the second workflow file After the workflow file corresponding to the target scheduling system (ie, the second workflow file) is obtained by conversion, the second workflow file is sent to the target scheduling system to implement migration.
  • the project publishing interface of the target scheduling system can be called to upload.
  • the embodiment of the application provides a workflow migration method.
  • the workflow file to be migrated is converted to obtain a workflow file in a preset format, which is recorded as the first workflow file; obtaining a target scheduling system, That is, the system to be migrated into the workflow to be migrated, and then the first workflow file is converted according to the type of the target scheduling system, and the workflow file corresponding to the target scheduling system is obtained, which is recorded as the second workflow file; Second, the workflow file is sent to the target scheduling system to achieve migration.
  • a universal workflow format is defined in the embodiments of this application, which can automatically convert the workflow file to be migrated into a workflow file in a preset universal format (that is, the first workflow file), and then according to For the type of the target scheduling system, the first workflow file is converted to obtain the workflow file corresponding to the target scheduling system, and then the migration is performed. Therefore, the embodiment of the present application can realize the automatic conversion and migration of the workflow file to be migrated. Improve the efficiency of workflow migration. At the same time, it can automatically analyze the dependencies between workflow nodes during the conversion process, avoiding the analytic errors in manual migration in the prior art, thereby improving the accuracy of workflow migration in certain procedures. Sex.
  • the workflow migration method before the step "converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system", the workflow migration method further includes :
  • Step A Import the first workflow file into a preset workflow editing system to generate a corresponding workflow editing page, and the workflow editing page includes a workflow view;
  • nodes Due to the differences in the definition of nodes between different workflow systems, although most systems support Shell-type jobs, they have different definitions and usage methods for signal nodes and big data nodes, such as node definitions and dependencies.
  • the resource file reference method, environment variable definition, variable replacement, property file, etc. are different, which cannot be set in the prior art.
  • a workflow editing system for editing the workflow converted into a preset format (that is, the first workflow file).
  • the first workflow file is imported into the preset work
  • the flow editing system generates a corresponding workflow editing page, where the workflow editing page includes the workflow view, the annotation description of the icon, and the editing icon, etc., and the user performs editing and modification work based on the workflow editing page, For example, modify node attributes.
  • Step B receiving a node editing instruction triggered by the user based on the workflow view, and modifying corresponding node attributes according to the node editing instruction to obtain a third workflow file;
  • the node editing instruction triggered by the user based on the workflow view is received, and the corresponding node attribute is modified according to the node editing instruction to obtain the third workflow file.
  • the workflow migration method further includes:
  • Step C when receiving a node editing request triggered by the user based on the workflow view, obtaining a target editing node according to the node editing request;
  • Step D Display the attribute drop-down box corresponding to the target editing node, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
  • the server When users need to set node attributes, they can click the corresponding node box in the workflow view to trigger a node edit request.
  • the server receives a node edit request triggered by the user based on the workflow view, it will follow the node edit request Obtain the target edit node; then, display the attribute drop-down box corresponding to the target edit node, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
  • the attribute drop-down box may also include manual input options to provide the function of manually inputting node attributes.
  • other function options can be set correspondingly in the attribute drop-down box, such as the upload of resource files, the definition of global variables, etc., which can be set according to actual needs, and there is no specific limitation here.
  • step S20 "converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system" includes:
  • the third workflow file is converted according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
  • the third workflow file is obtained, and then the third workflow file is converted according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system, and the subsequent steps are executed.
  • the specific execution process please refer to The above-mentioned first embodiment will not be repeated here.
  • This embodiment implements visual workflow editing through a preset workflow editing system. It only needs to import the converted Json format workflow (that is, the first workflow file), and then the nodes in the workflow can be checked on the workflow editing page. Attributes are set to solve the problem of node attributes that cannot be automatically converted, such as the parameter setting of signal nodes, the upload of resource files, the definition of global variables, etc., and complex big data core batch business logic can be constructed.
  • the workflow migration method further includes:
  • Step E sending the second workflow file to a preset test terminal, so that the preset test terminal performs a test on the second workflow file;
  • step S30 is executed: the second workflow file is sent to the target scheduling system to implement migration.
  • the corresponding second workflow file is converted according to the type of the target scheduling system, in order to ensure that the converted second workflow file has no problems and can be used normally, it can be used directly by the target scheduling system.
  • the second workflow file is sent to the preset test terminal, so that the preset test terminal tests the second workflow file. Specifically, in the testing process, the tester corresponding to the preset test terminal can debug and execute the second workflow file in the test environment to detect whether there is a problem. After the test is passed, the second workflow file is sent to the target scheduling system to realize the migration. When sending the second workflow file, the project publishing interface of the target scheduling system can be called to upload.
  • the corresponding prompt message can be generated so that the staff can carry out further debugging and modification.
  • the working file after debugging and modification can be sent to the target scheduling system.
  • the second workflow file can be directly sent to the target scheduling system, and the target scheduling system is tested separately, and after the test passes, it is released to the production environment for use.
  • the converted second workflow file is tested in advance to ensure that the second workflow file has no problems and can be released to the production environment for use, which is convenient for direct use by the target scheduling system.
  • the application also provides a workflow migration device.
  • FIG. 4 is a schematic diagram of the functional modules of the first embodiment of the workflow migration device of this application.
  • the workflow migration device includes:
  • the first conversion module 10 is configured to obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
  • the second conversion module 20 is configured to obtain a target scheduling system, convert the first workflow file according to the type of the target scheduling system, and obtain a workflow file corresponding to the target scheduling system, which is recorded as the second job Stream file
  • the migration module 30 is configured to send the second workflow file to the target scheduling system to implement migration.
  • the workflow migration device further includes:
  • a generating module configured to import the first workflow file into a preset workflow editing system to generate a corresponding workflow editing page, and the workflow editing page includes a workflow view;
  • the modification module is configured to receive a node editing instruction triggered by a user based on the workflow view, and modify corresponding node attributes according to the node editing instruction to obtain a third workflow file;
  • the migration module 30 is specifically configured to convert the third workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
  • the workflow migration device further includes:
  • the obtaining module is configured to obtain a target editing node according to the node editing request when a node editing request triggered by the user based on the workflow view is received;
  • the display module is used to display the attribute drop-down box corresponding to the target editing node, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
  • the first conversion module 10 includes:
  • the first parsing unit is configured to read the workflow file to be migrated, and analyze the content of the workflow file to be migrated to obtain the first node definition and the first edge definition;
  • the second conversion unit is configured to perform mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition;
  • the first generating unit is configured to construct a file directory based on the second node definition and the second edge definition, and generate a workflow file in a preset format, which is recorded as the first workflow file.
  • the second conversion module 20 includes:
  • the second parsing unit is configured to determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file, and obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, And convert the workflow into a scheduling workflow;
  • the second conversion unit is configured to convert each node based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory in which the definition file is located is determined according to the hierarchical relationship;
  • the second generating unit is used to set the dependency relationship to the attribute of the corresponding node, download the dependent resource file of each node to the directory where the corresponding definition file is located, and convert the node variable of each node into a feature file and place it Go to the directory where the corresponding definition file is located, and obtain the workflow file corresponding to the target scheduling system.
  • the second conversion unit is specifically configured to:
  • each node is converted, and a definition file corresponding to each node is generated.
  • the workflow migration device further includes:
  • a test module configured to send the second workflow file to a preset test terminal, so that the preset test terminal performs a test on the second workflow file;
  • the migration module 30 is specifically configured to send the second workflow file to the target scheduling system after the test is passed, so as to realize the migration.
  • each module in the above-mentioned workflow migration apparatus corresponds to each step in the above-mentioned workflow migration method embodiment, and the functions and realization processes thereof will not be repeated here.
  • the present application also provides a computer-readable storage medium with a workflow migration program stored on the computer-readable storage medium.
  • the workflow migration program is executed by a processor, the workflow as described in any of the above embodiments is implemented. Steps of the migration method.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disks, optical disks), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present application.
  • a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method, apparatus, and device for workflow migration, and a computer-readable storage medium. The method for workflow migration comprises: acquiring a workflow file to be migrated, converting the workflow file to obtain a workflow file of a preset format, and denoting same as a first workflow file (S10); acquiring a target scheduling system, and according to the category of the target scheduling system, converting the first workflow file to obtain a workflow file corresponding to the target scheduling system, and denoting same as a second workflow file (S20); and sending the second workflow file to the target scheduling system so as to implement migration (S30).

Description

工作流迁移方法、装置、设备及计算机可读存储介质Workflow migration method, device, equipment and computer readable storage medium
本申请要求2019年10月10日申请的,申请号为201910961072.5,名称为“工作流迁移方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,在此将其全文引入作为参考。This application claims the priority of the Chinese patent application filed on October 10, 2019, with the application number 201910961072.5, titled "Workflow Migration Method, Device, Equipment, and Computer-readable Storage Medium", which is hereby incorporated in its entirety as reference.
技术领域Technical field
本申请涉及金融科技(Fintech)技术领域,尤其涉及一种工作流迁移方法、装置、设备及计算机可读存储介质。This application relates to the technical field of financial technology (Fintech), and in particular to a workflow migration method, device, equipment, and computer-readable storage medium.
背景技术Background technique
随着计算机技术的发展,越来越多的技术(大数据、分布式、区块链Blockchain、人工智能等)应用在金融领域,传统金融业正在逐步向金融科技(Fintech)转变,但由于金融行业的安全性、实时性要求,也对技术提出了更高的要求。With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field. The traditional financial industry is gradually transforming to Fintech. However, due to financial The industry's security and real-time requirements also place higher requirements on technology.
在大数据领域,复杂的业务数据处理场景,尤其在离线批量计算以及报表加工过程中,都离不开解决数据处理流程中错综复杂的依赖关系,作业的执行需要进行统一的管理和调度,我们一般使用分布式可视化DAG(Directed acyclic graph,有向无环图)工作流任务调度系统。目前比较流行的系统有Oozie(任务调度框架)、Azkaban(批量工作流任务调度器)、Airflow(工作流平台)等,他们都支持以DAG图的方式将Task(任务)按照任务的依赖关系关联起来,进行分布式调度执行,且支持丰富的任务类型。In the field of big data, complex business data processing scenarios, especially in offline batch calculation and report processing, are inseparable from solving the intricate dependencies in the data processing process. The execution of jobs requires unified management and scheduling. We generally Use Distributed Visual DAG (Directed acyclic graph, directed acyclic graph) workflow task scheduling system. At present, the more popular systems include Oozie (task scheduling framework), Azkaban (batch workflow task scheduler), Airflow (workflow platform), etc. They all support the DAG diagram to associate Tasks according to their dependencies. Get up, perform distributed scheduling and execution, and support a wealth of task types.
但是,不同调度系统的工作流定义不能兼容。用户在一个系统上定义了工作流后,如需更换工作流调度系统,常常需要用户重新设计原来的工作流或对工作流进行人工迁移。当一个系统使用了很长时间后,其中的工作流已变得非常的复杂和庞大,工作流迁移的任务非常艰巨,通过人工迁移的方式进行迁移,其迁移效率较低,同时,对于依赖关系非常复杂的工作流仅依赖人工迁移难以保证依赖关系的正确性。However, the workflow definitions of different scheduling systems are not compatible. After a user defines a workflow on a system, if the workflow scheduling system needs to be replaced, the user is often required to redesign the original workflow or manually migrate the workflow. When a system has been used for a long time, the workflow in it has become very complex and huge. The task of workflow migration is very arduous. If the migration is performed manually, the migration efficiency is low. At the same time, the dependence relationship Very complex workflows only rely on manual migration and it is difficult to ensure the correctness of dependencies.
技术解决方案Technical solutions
本申请的主要目的在于提供一种工作流迁移方法、装置、设备及计算机可读存储介质,旨在解决现有工作流迁移方式的迁移效率较低、准确性较低的问题。The main purpose of this application is to provide a workflow migration method, device, equipment, and computer-readable storage medium, aiming to solve the problems of low migration efficiency and low accuracy of existing workflow migration methods.
为实现上述目的,本申请提供一种工作流迁移方法,所述工作流迁移方法包括:To achieve the above objective, the present application provides a workflow migration method, the workflow migration method includes:
获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;Obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
获取目标调度系统,根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件,记为第二工作流文件;Acquiring a target scheduling system, converting the first workflow file according to the type of the target scheduling system, and obtaining a workflow file corresponding to the target scheduling system, which is recorded as a second workflow file;
将所述第二工作流文件发送至所述目标调度系统,以实现迁移。The second workflow file is sent to the target scheduling system to implement migration.
在一些实施例中,所述根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件的步骤之前,还包括:In some embodiments, before the step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system, the method further includes:
将所述第一工作流文件导入预设工作流编辑系统,生成对应的工作流编辑页面,所述工作流编辑页面中包括工作流视图;Importing the first workflow file into a preset workflow editing system to generate a corresponding workflow editing page, the workflow editing page including a workflow view;
接收用户基于所述工作流视图触发的节点编辑指令,根据所述节点编辑指令对对应节点属性进行修改,得到第三工作流文件;Receiving a node editing instruction triggered by a user based on the workflow view, and modifying corresponding node attributes according to the node editing instruction to obtain a third workflow file;
所述根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件的步骤包括:The step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system includes:
根据所述目标调度系统的类型对所述第三工作流文件进行转换,得到与所述目标调度系统对应的工作流文件。The third workflow file is converted according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
在一些实施例中,所述接收用户基于所述工作流视图触发的节点编辑指令的步骤之前,还包括:In some embodiments, before the step of receiving a node editing instruction triggered by a user based on the workflow view, the method further includes:
在接收到用户基于所述工作流视图触发的节点编辑请求时,根据所述节点编辑请求获取目标编辑节点;When receiving a node editing request triggered by a user based on the workflow view, acquiring a target editing node according to the node editing request;
显示与所述目标编辑节点对应的属性下拉框,以供用户从所述属性下拉框中选取对应的节点属性、触发对应的节点编辑指令。The attribute drop-down box corresponding to the target editing node is displayed, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
在一些实施例中,所述获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件的步骤包括:In some embodiments, the step of obtaining a workflow file to be migrated, converting the workflow file to be migrated to obtain a workflow file in a preset format, and recording it as the first workflow file includes:
读取待迁移工作流文件,对所述待迁移工作流文件的内容进行解析,得到第一节点定义和第一边定义;Read the workflow file to be migrated, and analyze the content of the workflow file to be migrated to obtain the first node definition and the first edge definition;
基于预设映射关系对所述第一节点定义和所述第一边定义进行映射转换,得到第二节点定义和第二边定义;Performing mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition;
基于所述第二节点定义和所述第二边定义构建文件目录,生成预设格式的工作流文件,记为第一工作流文件。Based on the second node definition and the second edge definition to construct a file directory, a workflow file in a preset format is generated, which is recorded as the first workflow file.
在一些实施例中,所述根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件的步骤包括:In some embodiments, the step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system includes:
根据所述目标调度系统的类型确定目标转换插件,调用所述目标转换插件对所述第一工作流文件进行解析,得到对应工作流中节点的依赖关系和层次关系,并将所述工作流转换成调度工作流;Determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file, obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, and convert the workflow Into a scheduling workflow;
基于所述调度工作流对各节点进行转换,生成各节点对应的定义文件,其中,所述定义文件所在的目录根据所述层次关系确定得到;Converting each node based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory in which the definition file is located is determined according to the hierarchical relationship;
将所述依赖关系设置到对应节点的属性中,将各节点的依赖资源文件分别下载至对应定义文件所在目录中,将各节点的节点变量分别转变成特征文件并放置到对应定义文件所在目录中,得到与所述目标调度系统对应的工作流文件。Set the dependency relationship to the attribute of the corresponding node, download the dependent resource file of each node to the directory where the corresponding definition file is located, and convert the node variable of each node into a feature file and place it in the directory where the corresponding definition file is located. To obtain the workflow file corresponding to the target scheduling system.
在一些实施例中,所述基于所述调度工作流对各节点进行转换,生成各节点对应的定义文件的步骤包括:In some embodiments, the step of converting each node based on the scheduling workflow to generate a definition file corresponding to each node includes:
基于所述调度工作流获取各节点的节点类型,并根据所述节点类型获取对应的参数信息;Obtaining the node type of each node based on the scheduling workflow, and obtaining corresponding parameter information according to the node type;
基于所述参数信息对各节点进行转换,生成各节点对应的定义文件。Based on the parameter information, each node is converted, and a definition file corresponding to each node is generated.
在一些实施例中,所述将所述第二工作流文件发送至所述目标调度系统,以实现迁移的步骤之前,还包括:In some embodiments, before the step of sending the second workflow file to the target scheduling system to implement the migration, the method further includes:
将所述第二工作流文件发送至预设测试端,以使得所述预设测试端对所述第二工作流文件进行测试;Sending the second workflow file to a preset test terminal, so that the preset test terminal performs a test on the second workflow file;
在测试通过之后,执行步骤:将所述第二工作流文件发送至所述目标调度系统,以实现迁移。After the test is passed, perform the step of sending the second workflow file to the target scheduling system to implement migration.
此外,为实现上述目的,本申请还提供一种工作流迁移装置,所述工作流迁移装置包括:In addition, in order to achieve the above objective, the present application also provides a workflow migration device, which includes:
第一转换模块,用于获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;The first conversion module is configured to obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
第二转换模块,用于获取目标调度系统,根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件,记为第二工作流文件;The second conversion module is used to obtain a target scheduling system, and convert the first workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system, which is recorded as a second workflow file;
迁移模块,用于将所述第二工作流文件发送至所述目标调度系统,以实现迁移。The migration module is used to send the second workflow file to the target scheduling system to implement migration.
此外,为实现上述目的,本申请还提供一种工作流迁移设备,所述工作流迁移设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的工作流迁移程序,所述工作流迁移程序被所述处理器执行时实现如上所述的工作流迁移方法的步骤。In addition, in order to achieve the above object, the present application also provides a workflow migration device, the workflow migration device includes: a memory, a processor, and a workflow migration stored in the memory and running on the processor A program that implements the steps of the workflow migration method as described above when the workflow migration program is executed by the processor.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有工作流迁移程序,所述工作流迁移程序被处理器执行时实现如上所述的工作流迁移方法的步骤。In addition, in order to achieve the above objective, this application also provides a computer-readable storage medium having a workflow migration program stored on the computer-readable storage medium, and when the workflow migration program is executed by a processor, the above-mentioned The steps of the workflow migration method.
本申请提供一种工作流迁移方法、装置、设备及计算机可读存储介质,通过获取待迁移工作流文件,对待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;获取目标调度系统,即待迁移工作流所需迁入的系统,进而根据目标调度系统的类型对第一工作流文件进行转换,得到与目标调度系统对应的工作流文件,记为第二工作流文件;进而将第二工作流文件发送至目标调度系统,以实现迁移。通过上述方式,本申请中定义了一种通用的工作流格式,可实现自动将待迁移工作流文件自动转换成预设通用格式的工作流文件(即第一工作流文件),进而根据目标调度系统的类型,对第一工作流文件进行转换,得到与目标调度系统对应的工作流文件,进而进行迁移,因此,本申请可实现待迁移工作流文件的自动转换和迁移,可提高工作流的迁移效率,同时,在转换过程中可实现自动解析工作流节点间的依赖关系,避免现有技术中人工迁移时解析失误的情况,从而在一定程序上提高了工作流迁移的准确性。This application provides a workflow migration method, device, equipment, and computer-readable storage medium. By acquiring the workflow file to be migrated, the workflow file to be migrated is converted, and a workflow file in a preset format is obtained, which is recorded as the first job Flow file; Obtain the target scheduling system, that is, the system to be migrated into, and then convert the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system, which is recorded as the first 2. Workflow file; and then send the second workflow file to the target scheduling system to achieve migration. Through the above method, a general workflow format is defined in this application, which can automatically convert the workflow file to be migrated into a workflow file in a preset general format (ie, the first workflow file), and then schedule according to the target The type of the system, the first workflow file is converted to obtain the workflow file corresponding to the target scheduling system, and then the migration is performed. Therefore, this application can realize the automatic conversion and migration of the workflow file to be migrated, which can improve the workflow Migration efficiency, at the same time, can realize automatic analysis of the dependencies between workflow nodes during the conversion process, avoid the problem of analytic errors in manual migration in the prior art, thereby improving the accuracy of workflow migration in certain procedures.
附图说明Description of the drawings
图1为本申请实施例方案涉及的硬件运行环境的设备结构示意图;FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the application;
图2为本申请工作流迁移方法第一实施例的流程示意图;2 is a schematic flowchart of the first embodiment of the workflow migration method of this application;
图3为本申请工作流迁移方法涉及的一Json结构目录的示意图;Figure 3 is a schematic diagram of a Json structure directory involved in the workflow migration method of this application;
图4为本申请工作流迁移装置第一实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of the first embodiment of the workflow migration device of this application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本发明的实施方式Embodiments of the present invention
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application.
参照图1,图1为本申请实施例方案涉及的硬件运行环境的设备结构示意图。Referring to FIG. 1, FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the application.
本申请实施例工作流迁移设备可以是智能手机,也可以是PC(Personal Computer,个人计算机)、平板电脑、便携计算机等终端设备。The workflow migration device in the embodiment of this application can be a smart phone or a PC (Personal Computer, personal computer), tablet computer, portable computer and other terminal equipment.
如图1所示,该工作流迁移设备可以包括:处理器1001,例如CPU,通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如Wi-Fi接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the workflow migration device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
本领域技术人员可以理解,图1中示出的工作流迁移设备结构并不构成对工作流迁移设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the workflow migration device shown in FIG. 1 does not constitute a limitation on the workflow migration device, and may include more or less components than shown in the figure, or combine certain components, or be different. The layout of the components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及工作流迁移程序。As shown in FIG. 1, a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a workflow migration program.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端,与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的工作流迁移程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to a back-end server and communicate with the back-end server; the user interface 1003 is mainly used to connect to a client and communicate with the client; and the processor 1001 can be used to Call the workflow migration program stored in the memory 1005, and perform the following operations:
获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;Obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
获取目标调度系统,根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件,记为第二工作流文件;Acquiring a target scheduling system, converting the first workflow file according to the type of the target scheduling system, and obtaining a workflow file corresponding to the target scheduling system, which is recorded as a second workflow file;
将所述第二工作流文件发送至所述目标调度系统,以实现迁移。The second workflow file is sent to the target scheduling system to implement migration.
在一些实施例中,处理器1001可以调用存储器1005中存储的工作流迁移程序,还执行以下操作:In some embodiments, the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
将所述第一工作流文件导入预设工作流编辑系统,生成对应的工作流编辑页面,所述工作流编辑页面中包括工作流视图;Importing the first workflow file into a preset workflow editing system to generate a corresponding workflow editing page, the workflow editing page including a workflow view;
接收用户基于所述工作流视图触发的节点编辑指令,根据所述节点编辑指令对对应节点属性进行修改,得到第三工作流文件;Receiving a node editing instruction triggered by a user based on the workflow view, and modifying corresponding node attributes according to the node editing instruction to obtain a third workflow file;
根据所述目标调度系统的类型对所述第三工作流文件进行转换,得到与所述目标调度系统对应的工作流文件。The third workflow file is converted according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
在一些实施例中,处理器1001可以调用存储器1005中存储的工作流迁移程序,还执行以下操作:In some embodiments, the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
在接收到用户基于所述工作流视图触发的节点编辑请求时,根据所述节点编辑请求获取目标编辑节点;When receiving a node editing request triggered by a user based on the workflow view, acquiring a target editing node according to the node editing request;
显示与所述目标编辑节点对应的属性下拉框,以供用户从所述属性下拉框中选取对应的节点属性、触发对应的节点编辑指令。The attribute drop-down box corresponding to the target editing node is displayed, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
在一些实施例中,处理器1001可以调用存储器1005中存储的工作流迁移程序,还执行以下操作:In some embodiments, the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
读取待迁移工作流文件,对所述待迁移工作流文件的内容进行解析,得到第一节点定义和第一边定义;Read the workflow file to be migrated, and analyze the content of the workflow file to be migrated to obtain the first node definition and the first edge definition;
基于预设映射关系对所述第一节点定义和所述第一边定义进行映射转换,得到第二节点定义和第二边定义;Performing mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition;
基于所述第二节点定义和所述第二边定义构建文件目录,生成预设格式的工作流文件,记为第一工作流文件。Based on the second node definition and the second edge definition to construct a file directory, a workflow file in a preset format is generated, which is recorded as the first workflow file.
在一些实施例中,处理器1001可以调用存储器1005中存储的工作流迁移程序,还执行以下操作:In some embodiments, the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
根据所述目标调度系统的类型确定目标转换插件,调用所述目标转换插件对所述第一工作流文件进行解析,得到对应工作流中节点的依赖关系和层次关系,并将所述工作流转换成调度工作流;Determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file, obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, and convert the workflow Into a scheduling workflow;
基于所述调度工作流对各节点进行转换,生成各节点对应的定义文件,其中,所述定义文件所在的目录根据所述层次关系确定得到;Converting each node based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory in which the definition file is located is determined according to the hierarchical relationship;
将所述依赖关系设置到对应节点的属性中,将各节点的依赖资源文件分别下载至对应定义文件所在目录中,将各节点的节点变量分别转变成特征文件并放置到对应定义文件所在目录中,得到与所述目标调度系统对应的工作流文件。Set the dependency relationship to the attribute of the corresponding node, download the dependent resource file of each node to the directory where the corresponding definition file is located, and convert the node variable of each node into a feature file and place it in the directory where the corresponding definition file is located. To obtain the workflow file corresponding to the target scheduling system.
在一些实施例中,处理器1001可以调用存储器1005中存储的工作流迁移程序,还执行以下操作:In some embodiments, the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
基于所述调度工作流获取各节点的节点类型,并根据所述节点类型获取对应的参数信息;Obtaining the node type of each node based on the scheduling workflow, and obtaining corresponding parameter information according to the node type;
基于所述参数信息对各节点进行转换,生成各节点对应的定义文件。Based on the parameter information, each node is converted, and a definition file corresponding to each node is generated.
在一些实施例中,处理器1001可以调用存储器1005中存储的工作流迁移程序,还执行以下操作:In some embodiments, the processor 1001 may call a workflow migration program stored in the memory 1005, and also perform the following operations:
将所述第二工作流文件发送至预设测试端,以使得所述预设测试端对所述第二工作流文件进行测试;Sending the second workflow file to a preset test terminal, so that the preset test terminal performs a test on the second workflow file;
在测试通过之后,将所述第二工作流文件发送至所述目标调度系统,以实现迁移。After the test is passed, the second workflow file is sent to the target scheduling system to implement migration.
基于上述硬件结构,提出本申请工作流迁移方法的各实施例。Based on the above hardware structure, various embodiments of the workflow migration method of the present application are proposed.
本申请提供一种工作流迁移方法。This application provides a workflow migration method.
参照图2,图2为本申请工作流迁移方法第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a workflow migration method of this application.
在本实施例中,该工作流迁移方法包括:In this embodiment, the workflow migration method includes:
步骤S10,获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;Step S10, obtaining a workflow file to be migrated, and converting the workflow file to be migrated to obtain a workflow file in a preset format, which is recorded as the first workflow file;
本实施例的工作流迁移方法是由工作流迁移设备实现的,该设备以服务器为例进行说明。在本实施例中,先定义了一种通用的工作流数据结构,并实现自动将待迁移的调度系统的工作流文件(即待迁移工作流文件)自动转换为预设通用格式的工作流文件(即第一工作流文件)。具体的,先获取待迁移工作流文件,对待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件。其中,预设格式可选为Json(JavaScript Object Notation,基于JavaScript语言的轻量级的数据交换格式)格式。The workflow migration method in this embodiment is implemented by a workflow migration device, and the device is described by taking a server as an example. In this embodiment, a general workflow data structure is defined first, and the workflow file of the scheduling system to be migrated (that is, the workflow file to be migrated) is automatically converted into a workflow file of a preset general format. (That is, the first workflow file). Specifically, the workflow file to be migrated is obtained first, and the workflow file to be migrated is converted to obtain a workflow file in a preset format, which is recorded as the first workflow file. Among them, the preset format can be selected as Json (JavaScript Object Notation, a lightweight data exchange format based on JavaScript language) format.
例如,以对TSS(Task Schedule System,任务调度系统)工作流调度系统中的工作流迁移为例进行说明,可以先导出TSS系统中工作流文件(即待迁移工作流文件),然后,调用对应的自动化转换工具对待迁移工作流文件进行转换,得到Json格式的工作流文件。由于不同的系统的工作流文件格式不同,需调用不同的自动化转换工具进行转换,TSS工作流调度系统导出的是SBT(一种文件类型)格式的工作流文件,可调用TSS转DWS(DataWorkShop,数据车间)工具进行转换,其中,TSS转DWS工具可以实现将SBT格式的待迁移工作流文件转换成Json格式文件,并按文件目录层次结构进行组织,得到第一工作流文件。For example, to TSS (Task Schedule System, task scheduling system) The workflow migration in the workflow scheduling system is explained as an example. You can first export the workflow file in the TSS system (that is, the workflow file to be migrated), and then call the corresponding automated conversion tool to migrate the workflow The file is converted, and the workflow file in Json format is obtained. Because different systems have different workflow file formats, different automated conversion tools need to be called for conversion. The TSS workflow scheduling system exports workflow files in SBT (a file type) format, which can be transferred from TSS to DWS (DataWorkShop, Data workshop) tool for conversion. Among them, the TSS to DWS tool can convert the SBT format to be migrated workflow files into Json format files, and organize them according to the file directory hierarchy to obtain the first workflow file.
具体的,步骤S10包括:Specifically, step S10 includes:
步骤a1,读取待迁移工作流文件,对所述待迁移工作流文件的内容进行解析,得到第一节点定义和第一边定义;Step a1, reading the workflow file to be migrated, and analyzing the content of the workflow file to be migrated to obtain the first node definition and the first edge definition;
步骤a2,基于预设映射关系对所述第一节点定义和所述第一边定义进行映射转换,得到第二节点定义和第二边定义;Step a2: Perform mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition;
步骤a3,基于所述第二节点定义和所述第二边定义构建文件目录,生成预设格式的工作流文件,记为第一工作流文件。In step a3, a file directory is constructed based on the second node definition and the second edge definition, and a workflow file in a preset format is generated, which is recorded as the first workflow file.
先读取待迁移工作流文件,对待迁移工作流文件的内容进行解析,得到第一节点定义和第一边定义,即将待迁移工作流文件内容中对于节点的描述定义转成java中可以操作的节点对象(即第一节点定义),把对于边的定义转换成java中可操作的边对象(即第一边定义)。然后,基于预设映射关系对第一节点定义和第一边定义进行映射转换,得到第二节点定义和第二边定义,即映射为预设格式所对应的定义,其中,第二节点定义包括节点名称、类型、属性信息、执行命令、依赖定义等信息,第二边定义包括边的起点和终点信息等。进而,基于第二节点定义和第二边定义构建文件目录,生成预设格式的工作流文件,记为第一工作流文件。First read the workflow file to be migrated, analyze the content of the workflow file to be migrated, and obtain the first node definition and the first edge definition, that is, the description and definition of the node in the content of the workflow file to be migrated will be converted into java operable The node object (that is, the first node definition), converts the definition of the edge into an operable edge object in java (that is, the first edge definition). Then, based on the preset mapping relationship, the first node definition and the first edge definition are mapped and converted to obtain the second node definition and the second edge definition, that is, the mapping is the definition corresponding to the preset format, where the second node definition includes Node name, type, attribute information, execution command, dependency definition and other information. The second edge definition includes the starting point and end point information of the edge. Furthermore, a file directory is constructed based on the second node definition and the second edge definition, and a workflow file in a preset format is generated, which is recorded as the first workflow file.
具体的,对于文件目录的构建方式如下:每个工作流对应一个Json文件定义,对于存在子工作流的情况,则在当前目录下新建文件目录(记为子目录),在子目录中添加子工作流的Json文件定义。如果有多个同级子工作流,则需要新建多个文件目录(即多个子目录)。如果在子工作流中还有更深层次的嵌套,则按照同样的方式新建下一级工作流目录。最终输出的Json格式的工作流文件按照层次目录进行组织,可参照图3,为一Json结构目录的示意图,其中,第一层目录对应原待迁移工作流文件的顶层工作流,也就是原顶层Group(群组)的所有工作流,由于一个Group内可能存在多个并行的工作流,可以采用按工作流编号的方式进行编号;如果顶层Group下有嵌套的子工作流,则会放到和工作流名字相同的目录中,放入第二层目录;工作流的编号和目录的编号按照Group的名字-当前层次-工作流序号格式进行定义。Specifically, the method of constructing the file directory is as follows: each workflow corresponds to a Json file definition. For the existence of sub-workflows, create a new file directory (denoted as a subdirectory) in the current directory, and add subdirectories to the subdirectory. Json file definition of workflow. If there are multiple sub-workflows at the same level, you need to create multiple file directories (ie multiple sub-directories). If there is a deeper level of nesting in the sub-workflow, the next-level workflow directory is created in the same way. The final output workflow files in Json format are organized according to hierarchical directories. Refer to Figure 3, which is a schematic diagram of a Json structure directory. Among them, the first-level directory corresponds to the top-level workflow of the original workflow file to be migrated, which is the original top-level All workflows of a Group, because there may be multiple parallel workflows in a Group, they can be numbered according to the workflow number; if there are nested sub-workflows under the top-level Group, they will be placed in In the directory with the same name as the workflow, put the second-level directory; the number of the workflow and the number of the directory are defined in the format of the name of the group-the current level-the number of the workflow.
通过上述方式,可实现自动解析工作流节点间的依赖关系,自动拆分工作流子树,并能分层次解析嵌套工作流的依赖关系,尽可能保留原有节点的有用信息并平移到通用的工作流,以将待迁移工作流文件转换为通用Json定义结构的工作流。Through the above method, it is possible to automatically analyze the dependencies between workflow nodes, automatically split the workflow subtrees, and analyze the dependencies of nested workflows hierarchically, keeping the useful information of the original nodes as much as possible and shifting to general Workflow to convert the workflow file to be migrated into a workflow with a common Json-defined structure.
步骤S20,获取目标调度系统,根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件,记为第二工作流文件;Step S20: Obtain a target scheduling system, and convert the first workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system, which is recorded as a second workflow file;
然后,获取目标调度系统,即待迁移工作流所需迁入的系统,进而根据目标调度系统的类型对第一工作流文件进行转换,得到与目标调度系统对应的工作流文件,记为第二工作流文件。Then, obtain the target scheduling system, that is, the system to be migrated into the workflow to be migrated, and then convert the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system, which is recorded as the second Workflow file.
其中,步骤“根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件”包括:Wherein, the step of "converting the first workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system" includes:
步骤b1,根据所述目标调度系统的类型确定目标转换插件,调用所述目标转换插件对所述第一工作流文件进行解析,得到对应工作流中节点的依赖关系和层次关系,并将所述工作流转换成调度工作流;Step b1: Determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file to obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, and combine the The workflow is converted into a scheduling workflow;
先根据目标调度系统的类型确定目标转换插件,调用目标转换插件对第一工作流文件进行解析,得到对应工作流中节点的依赖关系和层次关系,并将工作流转换成调度工作流。以目标调度系统为Azkaban系统为例进行说明,可以调用对应的转换插件,该转换插件中预先定义了工作流的转换接口parseFlow(解析流)和节点的转换接口parseNode(解析节点),可通过转换插件中节点的转换接口parseNode对第一工作流文件进行解析,得到对应工作流中节点的依赖关系和层次关系,通过工作流的转换接口parseFlow将工作流转换成SchedulerFlow(调度工作流)。First determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file, obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, and convert the workflow into a scheduling workflow. Taking the target scheduling system as the Azkaban system as an example, the corresponding conversion plug-in can be called. The conversion plug-in has predefined workflow conversion interface parseFlow (parse flow) and node conversion interface parseNode (parse node), which can be converted The conversion interface parseNode of the nodes in the plug-in parses the first workflow file to obtain the dependencies and hierarchical relationships of the nodes in the corresponding workflow, and converts the workflow into SchedulerFlow (scheduler workflow) through the workflow conversion interface parseFlow.
步骤b2,基于所述调度工作流对各节点进行转换,生成各节点对应的定义文件,其中,所述定义文件所在的目录根据所述层次关系确定得到;Step b2, converting each node based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory where the definition file is located is determined according to the hierarchical relationship;
然后,基于调度工作流对各节点进行转换,生成各节点对应的定义文件,其中,定义文件所在的目录根据上述解析得到的层次关系确定得到。其中,定义文件的格式可以为.job格式。具体的,步骤b2包括:Then, each node is converted based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory where the definition file is located is determined according to the hierarchical relationship obtained by the above analysis. Among them, the format of the definition file can be the .job format. Specifically, step b2 includes:
步骤b21,基于所述调度工作流获取各节点的节点类型,并根据所述节点类型获取对应的参数信息;Step b21: Obtain the node type of each node based on the scheduling workflow, and obtain corresponding parameter information according to the node type;
步骤b22,基于所述参数信息对各节点进行转换,生成各节点对应的定义文件。Step b22: Transform each node based on the parameter information, and generate a definition file corresponding to each node.
节点的转换需要根据类型进行转换,不同类型节点的转换完全不一样,因此,先基于调度工作流获取各节点的节点类型,并根据节点类型获取对应的参数信息,例如,对于shell类型节点的转换,所需获取的参数信息包括节点名称、节点类型、节点命令、代理执行用户、变量、参数、资源文件等,对于Spark类型节点的转换,所需获取的参数信息包括节点名称、节点类型、drive(驱动器)参数、executor(执行)参数、执行脚本、第三方jar(一种软件包文件格式)、自定义函数、hadoop(分布式系统基础架构)用户、集群地址等。然后,基于参数信息对各节点进行转换,生成各节点对应的定义文件。The conversion of nodes needs to be converted according to the type. The conversion of different types of nodes is completely different. Therefore, first obtain the node type of each node based on the scheduling workflow, and obtain the corresponding parameter information according to the node type, for example, for the conversion of the shell type node , The parameter information that needs to be obtained includes node name, node type, node command, agent execution user, variable, parameter, resource file, etc. For the conversion of Spark type nodes, the parameter information that needs to be obtained includes node name, node type, drive (Drive) parameters, executor (execution) parameters, execution scripts, third-party jars (a software package file format), custom functions, hadoop (distributed system infrastructure) users, cluster addresses, etc. Then, each node is converted based on the parameter information, and a definition file corresponding to each node is generated.
步骤b3,将所述依赖关系设置到对应节点的属性中,将各节点的依赖资源文件分别下载至对应定义文件所在目录中,将各节点的节点变量分别转变成特征文件并放置到对应定义文件所在目录中,得到与所述目标调度系统对应的工作流文件。Step b3: Set the dependency relationship to the attribute of the corresponding node, download the dependent resource file of each node to the directory where the corresponding definition file is located, and convert the node variable of each node into a feature file and place it in the corresponding definition file. In the directory where it is located, a workflow file corresponding to the target scheduling system is obtained.
在生成各节点对应的定义文件后,将上述解析得到的依赖关系设置到对应节点的属性中,以当作属性保存到定义文件中,同时,还需将各节点的依赖资源文件分别下载至对应定义文件所在目录中,将各节点的节点变量分别转变成特征(properties)文件并放置到对应定义文件所在目录中,得到与目标调度系统对应的工作流文件。After the definition file corresponding to each node is generated, the dependency relationship obtained by the above analysis is set to the attribute of the corresponding node to be saved as an attribute in the definition file. At the same time, the dependent resource file of each node needs to be downloaded to the corresponding In the directory where the definition file is located, the node variables of each node are respectively transformed into a characteristic (properties) file and placed in the directory where the corresponding definition file is located to obtain a workflow file corresponding to the target scheduling system.
需要说明的是,在具体实施时,只需添加对应调度系统的转换插件,即可通过添加的转换插件完成类似的转换,得到与调度系统对应的工作流文件,即能够支持生成多种类型调度系统所需的工作流文件。It should be noted that in the specific implementation, you only need to add the conversion plug-in corresponding to the scheduling system, and you can complete similar conversions through the added conversion plug-in, and get the workflow file corresponding to the scheduling system, which can support the generation of multiple types of scheduling. Workflow files required by the system.
步骤S30,将所述第二工作流文件发送至所述目标调度系统,以实现迁移。Step S30: Send the second workflow file to the target scheduling system to implement migration.
在转换得到目标调度系统对应的工作流文件(即第二工作流文件)后,将第二工作流文件发送至目标调度系统,以实现迁移。在发送第二工作流文件时,可调用目标调度系统的工程发布接口进行上传。After the workflow file corresponding to the target scheduling system (ie, the second workflow file) is obtained by conversion, the second workflow file is sent to the target scheduling system to implement migration. When sending the second workflow file, the project publishing interface of the target scheduling system can be called to upload.
本申请实施例提供一种工作流迁移方法,通过获取待迁移工作流文件,对待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;获取目标调度系统,即待迁移工作流所需迁入的系统,进而根据目标调度系统的类型对第一工作流文件进行转换,得到与目标调度系统对应的工作流文件,记为第二工作流文件;进而将第二工作流文件发送至目标调度系统,以实现迁移。通过上述方式,本申请实施例中定义了一种通用的工作流格式,可实现自动将待迁移工作流文件自动转换成预设通用格式的工作流文件(即第一工作流文件),进而根据目标调度系统的类型,对第一工作流文件进行转换,得到与目标调度系统对应的工作流文件,进而进行迁移,因此,本申请实施例可实现待迁移工作流文件的自动转换和迁移,可提高工作流的迁移效率,同时,在转换过程中可实现自动解析工作流节点间的依赖关系,避免现有技术中人工迁移时解析失误的情况,从而在一定程序上提高了工作流迁移的准确性。The embodiment of the application provides a workflow migration method. By acquiring the workflow file to be migrated, the workflow file to be migrated is converted to obtain a workflow file in a preset format, which is recorded as the first workflow file; obtaining a target scheduling system, That is, the system to be migrated into the workflow to be migrated, and then the first workflow file is converted according to the type of the target scheduling system, and the workflow file corresponding to the target scheduling system is obtained, which is recorded as the second workflow file; Second, the workflow file is sent to the target scheduling system to achieve migration. Through the above method, a universal workflow format is defined in the embodiments of this application, which can automatically convert the workflow file to be migrated into a workflow file in a preset universal format (that is, the first workflow file), and then according to For the type of the target scheduling system, the first workflow file is converted to obtain the workflow file corresponding to the target scheduling system, and then the migration is performed. Therefore, the embodiment of the present application can realize the automatic conversion and migration of the workflow file to be migrated. Improve the efficiency of workflow migration. At the same time, it can automatically analyze the dependencies between workflow nodes during the conversion process, avoiding the analytic errors in manual migration in the prior art, thereby improving the accuracy of workflow migration in certain procedures. Sex.
进一步的,基于图2所示的第一实施例,提出本申请工作流迁移方法的第二实施例。Further, based on the first embodiment shown in FIG. 2, a second embodiment of the workflow migration method of the present application is proposed.
在本实施例中,在步骤“根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件”之前,该工作流迁移方法还包括:In this embodiment, before the step "converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system", the workflow migration method further includes :
步骤A,将所述第一工作流文件导入预设工作流编辑系统,生成对应的工作流编辑页面,所述工作流编辑页面中包括工作流视图;Step A: Import the first workflow file into a preset workflow editing system to generate a corresponding workflow editing page, and the workflow editing page includes a workflow view;
由于不同的工作流系统之间对于节点的定义存在差异,虽然绝大多数系统都支持Shell类型的作业,但是对于信号节点、大数据节点则有着不同的定义和使用方式,比如节点的定义、依赖的资源文件引用方式、环境变量定义、变量替换、属性文件等都不一样,而现有技术无法设置。Due to the differences in the definition of nodes between different workflow systems, although most systems support Shell-type jobs, they have different definitions and usage methods for signal nodes and big data nodes, such as node definitions and dependencies. The resource file reference method, environment variable definition, variable replacement, property file, etc. are different, which cannot be set in the prior art.
对此,本实施例中提供了一个工作流编辑系统,用于对转换成预设格式的工作流(即第一工作流文件)进行编辑,具体的,将第一工作流文件导入预设工作流编辑系统,生成对应的工作流编辑页面,其中,该工作流编辑页面中包括工作流视图,还可以包括图标的注释说明,以及编辑图标等,用户基于该工作流编辑页面进行编辑修改工作,例如修改节点属性。In this regard, in this embodiment, a workflow editing system is provided for editing the workflow converted into a preset format (that is, the first workflow file). Specifically, the first workflow file is imported into the preset work The flow editing system generates a corresponding workflow editing page, where the workflow editing page includes the workflow view, the annotation description of the icon, and the editing icon, etc., and the user performs editing and modification work based on the workflow editing page, For example, modify node attributes.
步骤B,接收用户基于所述工作流视图触发的节点编辑指令,根据所述节点编辑指令对对应节点属性进行修改,得到第三工作流文件;Step B, receiving a node editing instruction triggered by the user based on the workflow view, and modifying corresponding node attributes according to the node editing instruction to obtain a third workflow file;
进而接收用户基于工作流视图触发的节点编辑指令,根据节点编辑指令对对应节点属性进行修改,得到第三工作流文件。Furthermore, the node editing instruction triggered by the user based on the workflow view is received, and the corresponding node attribute is modified according to the node editing instruction to obtain the third workflow file.
在上述步骤B之前,该工作流迁移方法还包括:Before the above step B, the workflow migration method further includes:
步骤C,在接收到用户基于所述工作流视图触发的节点编辑请求时,根据所述节点编辑请求获取目标编辑节点;Step C, when receiving a node editing request triggered by the user based on the workflow view, obtaining a target editing node according to the node editing request;
步骤D,显示与所述目标编辑节点对应的属性下拉框,以供用户从所述属性下拉框中选取对应的节点属性、触发对应的节点编辑指令。Step D: Display the attribute drop-down box corresponding to the target editing node, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
用户需对节点属性进行设置时,可通过点击工作流视图中对应的节点框,以触发节点编辑请求,此时,服务器在接收到用户基于工作流视图触发的节点编辑请求时,根据节点编辑请求获取目标编辑节点;然后,显示与目标编辑节点对应的属性下拉框,以供用户从属性下拉框中选取对应的节点属性、触发对应的节点编辑指令。当然,属性下拉框中除包括预设好的节点属性外,还可以包括手动输入的选项,以提供手动输入节点属性的功能。当然,在属性下拉框中还可以对应设定其他功能选项,如资源文件的上传、全局变量的定义等,可根据实际需要进行设定,此处不作具体限定。When users need to set node attributes, they can click the corresponding node box in the workflow view to trigger a node edit request. At this time, when the server receives a node edit request triggered by the user based on the workflow view, it will follow the node edit request Obtain the target edit node; then, display the attribute drop-down box corresponding to the target edit node, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction. Of course, in addition to the preset node attributes, the attribute drop-down box may also include manual input options to provide the function of manually inputting node attributes. Of course, other function options can be set correspondingly in the attribute drop-down box, such as the upload of resource files, the definition of global variables, etc., which can be set according to actual needs, and there is no specific limitation here.
此时,步骤S20中“根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件”包括:At this time, in step S20, "converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system" includes:
根据所述目标调度系统的类型对所述第三工作流文件进行转换,得到与所述目标调度系统对应的工作流文件。The third workflow file is converted according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
在编辑修改完,得到第三工作流文件后,再根据目标调度系统的类型对第三工作流文件进行转换,得到与目标调度系统对应的工作流文件,并执行后续步骤,具体执行过程可参照上述第一实施例,此处不作赘述。After editing and modifying, the third workflow file is obtained, and then the third workflow file is converted according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system, and the subsequent steps are executed. For the specific execution process, please refer to The above-mentioned first embodiment will not be repeated here.
本实施例通过预设工作流编辑系统实现可视化工作流编辑,只需要导入转换后的Json格式工作流(即第一工作流文件),即可在工作流编辑页面中对工作流中节点的节点属性进行设置,解决那些不能自动转换的节点属性问题,如信号节点的参数设置、资源文件的上传、全局变量的定义等,就可以构造出复杂的大数据核心批量业务逻辑。This embodiment implements visual workflow editing through a preset workflow editing system. It only needs to import the converted Json format workflow (that is, the first workflow file), and then the nodes in the workflow can be checked on the workflow editing page. Attributes are set to solve the problem of node attributes that cannot be automatically converted, such as the parameter setting of signal nodes, the upload of resource files, the definition of global variables, etc., and complex big data core batch business logic can be constructed.
进一步的,基于上述各实施例,提出本申请工作流迁移方法的第三实施例。Further, based on the foregoing embodiments, a third embodiment of the workflow migration method of the present application is proposed.
在本实施例中,在步骤S30之前,该工作流迁移方法还包括:In this embodiment, before step S30, the workflow migration method further includes:
步骤E,将所述第二工作流文件发送至预设测试端,以使得所述预设测试端对所述第二工作流文件进行测试;Step E, sending the second workflow file to a preset test terminal, so that the preset test terminal performs a test on the second workflow file;
在测试通过之后,执行步骤S30:将所述第二工作流文件发送至所述目标调度系统,以实现迁移。After the test is passed, step S30 is executed: the second workflow file is sent to the target scheduling system to implement migration.
在本实施例中,在根据目标调度系统的类型转换得到对应的第二工作流文件之后,为保证转换后的第二工作流文件没有问题,可正常使用,便于目标调度系统直接使用,可先将第二工作流文件发送至预设测试端,以使得预设测试端对第二工作流文件进行测试。具体的,测试过程可通过预设测试端对应的测试人员在测试环境中对第二工作流文件进行调试执行,以检测是否存在问题。在测试通过之后,再将第二工作流文件发送至目标调度系统,以实现迁移。在发送第二工作流文件时,可调用目标调度系统的工程发布接口进行上传。In this embodiment, after the corresponding second workflow file is converted according to the type of the target scheduling system, in order to ensure that the converted second workflow file has no problems and can be used normally, it can be used directly by the target scheduling system. The second workflow file is sent to the preset test terminal, so that the preset test terminal tests the second workflow file. Specifically, in the testing process, the tester corresponding to the preset test terminal can debug and execute the second workflow file in the test environment to detect whether there is a problem. After the test is passed, the second workflow file is sent to the target scheduling system to realize the migration. When sending the second workflow file, the project publishing interface of the target scheduling system can be called to upload.
在测试未通过时,可生成对应的提示信息,以使得工作人员进行进一步的调试和修改,直至测试通过时,可将调试修改后的工作文件再发送至目标调度系统。When the test fails, the corresponding prompt message can be generated so that the staff can carry out further debugging and modification. When the test passes, the working file after debugging and modification can be sent to the target scheduling system.
当然,可以理解,在具体实施时,可直接将第二工作流文件发送至目标调度系统,目标调度系统各自进行测试,在测试通过后,在发布至生产环境使用。Of course, it can be understood that during specific implementation, the second workflow file can be directly sent to the target scheduling system, and the target scheduling system is tested separately, and after the test passes, it is released to the production environment for use.
通过上述方式,通过预先对转换后的第二工作流文件进行测试,以保证第二工作流文件没有问题,可发布到生产环境中使用,从而可便于目标调度系统直接使用。In the above manner, the converted second workflow file is tested in advance to ensure that the second workflow file has no problems and can be released to the production environment for use, which is convenient for direct use by the target scheduling system.
本申请还提供一种工作流迁移装置。The application also provides a workflow migration device.
参照图4,图4为本申请工作流迁移装置第一实施例的功能模块示意图。Referring to FIG. 4, FIG. 4 is a schematic diagram of the functional modules of the first embodiment of the workflow migration device of this application.
如图4所示,所述工作流迁移装置包括:As shown in Figure 4, the workflow migration device includes:
第一转换模块10,用于获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;The first conversion module 10 is configured to obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
第二转换模块20,用于获取目标调度系统,根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件,记为第二工作流文件;The second conversion module 20 is configured to obtain a target scheduling system, convert the first workflow file according to the type of the target scheduling system, and obtain a workflow file corresponding to the target scheduling system, which is recorded as the second job Stream file
迁移模块30,用于将所述第二工作流文件发送至所述目标调度系统,以实现迁移。The migration module 30 is configured to send the second workflow file to the target scheduling system to implement migration.
在一些实施例中,所述工作流迁移装置还包括:In some embodiments, the workflow migration device further includes:
生成模块,用于将所述第一工作流文件导入预设工作流编辑系统,生成对应的工作流编辑页面,所述工作流编辑页面中包括工作流视图;A generating module, configured to import the first workflow file into a preset workflow editing system to generate a corresponding workflow editing page, and the workflow editing page includes a workflow view;
修改模块,用于接收用户基于所述工作流视图触发的节点编辑指令,根据所述节点编辑指令对对应节点属性进行修改,得到第三工作流文件;The modification module is configured to receive a node editing instruction triggered by a user based on the workflow view, and modify corresponding node attributes according to the node editing instruction to obtain a third workflow file;
所述迁移模块30,具体用于根据所述目标调度系统的类型对所述第三工作流文件进行转换,得到与所述目标调度系统对应的工作流文件。The migration module 30 is specifically configured to convert the third workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
在一些实施例中,所述工作流迁移装置还包括:In some embodiments, the workflow migration device further includes:
获取模块,用于在接收到用户基于所述工作流视图触发的节点编辑请求时,根据所述节点编辑请求获取目标编辑节点;The obtaining module is configured to obtain a target editing node according to the node editing request when a node editing request triggered by the user based on the workflow view is received;
显示模块,用于显示与所述目标编辑节点对应的属性下拉框,以供用户从所述属性下拉框中选取对应的节点属性、触发对应的节点编辑指令。The display module is used to display the attribute drop-down box corresponding to the target editing node, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
在一些实施例中,所述第一转换模块10包括:In some embodiments, the first conversion module 10 includes:
第一解析单元,用于读取待迁移工作流文件,对所述待迁移工作流文件的内容进行解析,得到第一节点定义和第一边定义;The first parsing unit is configured to read the workflow file to be migrated, and analyze the content of the workflow file to be migrated to obtain the first node definition and the first edge definition;
第二转换单元,用于基于预设映射关系对所述第一节点定义和所述第一边定义进行映射转换,得到第二节点定义和第二边定义;The second conversion unit is configured to perform mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition;
第一生成单元,用于基于所述第二节点定义和所述第二边定义构建文件目录,生成预设格式的工作流文件,记为第一工作流文件。The first generating unit is configured to construct a file directory based on the second node definition and the second edge definition, and generate a workflow file in a preset format, which is recorded as the first workflow file.
在一些实施例中,所述第二转换模块20包括:In some embodiments, the second conversion module 20 includes:
第二解析单元,用于根据所述目标调度系统的类型确定目标转换插件,调用所述目标转换插件对所述第一工作流文件进行解析,得到对应工作流中节点的依赖关系和层次关系,并将所述工作流转换成调度工作流;The second parsing unit is configured to determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file, and obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, And convert the workflow into a scheduling workflow;
第二转换单元,用于基于所述调度工作流对各节点进行转换,生成各节点对应的定义文件,其中,所述定义文件所在的目录根据所述层次关系确定得到;The second conversion unit is configured to convert each node based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory in which the definition file is located is determined according to the hierarchical relationship;
第二生成单元,用于将所述依赖关系设置到对应节点的属性中,将各节点的依赖资源文件分别下载至对应定义文件所在目录中,将各节点的节点变量分别转变成特征文件并放置到对应定义文件所在目录中,得到与所述目标调度系统对应的工作流文件。The second generating unit is used to set the dependency relationship to the attribute of the corresponding node, download the dependent resource file of each node to the directory where the corresponding definition file is located, and convert the node variable of each node into a feature file and place it Go to the directory where the corresponding definition file is located, and obtain the workflow file corresponding to the target scheduling system.
在一些实施例中,所述第二转换单元具体用于:In some embodiments, the second conversion unit is specifically configured to:
基于所述调度工作流获取各节点的节点类型,并根据所述节点类型获取对应的参数信息;Obtaining the node type of each node based on the scheduling workflow, and obtaining corresponding parameter information according to the node type;
基于所述参数信息对各节点进行转换,生成各节点对应的定义文件。Based on the parameter information, each node is converted, and a definition file corresponding to each node is generated.
在一些实施例中,所述工作流迁移装置还包括:In some embodiments, the workflow migration device further includes:
测试模块,用于将所述第二工作流文件发送至预设测试端,以使得所述预设测试端对所述第二工作流文件进行测试;A test module, configured to send the second workflow file to a preset test terminal, so that the preset test terminal performs a test on the second workflow file;
所述迁移模块30,具体用于在测试通过之后,将所述第二工作流文件发送至所述目标调度系统,以实现迁移。The migration module 30 is specifically configured to send the second workflow file to the target scheduling system after the test is passed, so as to realize the migration.
其中,上述工作流迁移装置中各个模块的功能实现与上述工作流迁移方法实施例中各步骤相对应,其功能和实现过程在此处不再一一赘述。Among them, the function realization of each module in the above-mentioned workflow migration apparatus corresponds to each step in the above-mentioned workflow migration method embodiment, and the functions and realization processes thereof will not be repeated here.
本申请还提供一种计算机可读存储介质,该计算机可读存储介质上存储有工作流迁移程序,所述工作流迁移程序被处理器执行时实现如以上任一项实施例所述的工作流迁移方法的步骤。The present application also provides a computer-readable storage medium with a workflow migration program stored on the computer-readable storage medium. When the workflow migration program is executed by a processor, the workflow as described in any of the above embodiments is implemented. Steps of the migration method.
本申请计算机可读存储介质的具体实施例与上述工作流迁移方法各实施例基本相同,在此不作赘述。The specific embodiments of the computer-readable storage medium of the present application are basically the same as the embodiments of the above-mentioned workflow migration method, and will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or system. Without more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the foregoing embodiments of the present application are only for description, and do not represent the superiority of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , Magnetic disks, optical disks), including several instructions to make a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the application, and do not limit the scope of the patent for this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of the application, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of this application.

Claims (10)

  1. 一种工作流迁移方法,其中,所述工作流迁移方法包括:A workflow migration method, wherein the workflow migration method includes:
    获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;Obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
    获取目标调度系统,根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件,记为第二工作流文件;以及Acquiring a target scheduling system, converting the first workflow file according to the type of the target scheduling system, and obtaining a workflow file corresponding to the target scheduling system, which is recorded as a second workflow file; and
    将所述第二工作流文件发送至所述目标调度系统,以实现迁移。The second workflow file is sent to the target scheduling system to implement migration.
  2. 如权利要求1所述的工作流迁移方法,其中,所述根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件的步骤之前,还包括:The workflow migration method according to claim 1, wherein before the step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system ,Also includes:
    将所述第一工作流文件导入预设工作流编辑系统,生成对应的工作流编辑页面,所述工作流编辑页面中包括工作流视图;以及Importing the first workflow file into a preset workflow editing system to generate a corresponding workflow editing page, the workflow editing page including a workflow view; and
    接收用户基于所述工作流视图触发的节点编辑指令,根据所述节点编辑指令对对应节点属性进行修改,得到第三工作流文件;Receiving a node editing instruction triggered by a user based on the workflow view, and modifying corresponding node attributes according to the node editing instruction to obtain a third workflow file;
    所述根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件的步骤包括:The step of converting the first workflow file according to the type of the target scheduling system to obtain the workflow file corresponding to the target scheduling system includes:
    根据所述目标调度系统的类型对所述第三工作流文件进行转换,得到与所述目标调度系统对应的工作流文件。The third workflow file is converted according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system.
  3. 如权利要求2所述的工作流迁移方法,其中,所述接收用户基于所述工作流视图触发的节点编辑指令的步骤之前,还包括:3. The workflow migration method according to claim 2, wherein before the step of receiving a node editing instruction triggered by a user based on the workflow view, the method further comprises:
    在接收到用户基于所述工作流视图触发的节点编辑请求时,根据所述节点编辑请求获取目标编辑节点;以及When receiving a node editing request triggered by the user based on the workflow view, acquiring the target editing node according to the node editing request; and
    显示与所述目标编辑节点对应的属性下拉框,以供用户从所述属性下拉框中选取对应的节点属性、触发对应的节点编辑指令。The attribute drop-down box corresponding to the target editing node is displayed, so that the user can select the corresponding node attribute from the attribute drop-down box and trigger the corresponding node editing instruction.
  4. 如权利要求1至3中任一项所述的工作流迁移方法,其中,所述获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件的步骤包括:The workflow migration method according to any one of claims 1 to 3, wherein said obtaining the workflow file to be migrated, converting the workflow file to be migrated to obtain a workflow file in a preset format, and recording The steps for the first workflow file include:
    读取待迁移工作流文件,对所述待迁移工作流文件的内容进行解析,得到第一节点定义和第一边定义;Read the workflow file to be migrated, and analyze the content of the workflow file to be migrated to obtain the first node definition and the first edge definition;
    基于预设映射关系对所述第一节点定义和所述第一边定义进行映射转换,得到第二节点定义和第二边定义;以及Performing mapping conversion on the first node definition and the first edge definition based on a preset mapping relationship to obtain a second node definition and a second edge definition; and
    基于所述第二节点定义和所述第二边定义构建文件目录,生成预设格式的工作流文件,记为第一工作流文件。Based on the second node definition and the second edge definition to construct a file directory, a workflow file in a preset format is generated, which is recorded as the first workflow file.
  5. 如权利要求1至3中任一项所述的工作流迁移方法,其中,所述根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件的步骤包括:The workflow migration method according to any one of claims 1 to 3, wherein the first workflow file is converted according to the type of the target scheduling system to obtain the corresponding to the target scheduling system The steps of the workflow file include:
    根据所述目标调度系统的类型确定目标转换插件,调用所述目标转换插件对所述第一工作流文件进行解析,得到对应工作流中节点的依赖关系和层次关系,并将所述工作流转换成调度工作流;Determine the target conversion plug-in according to the type of the target scheduling system, call the target conversion plug-in to parse the first workflow file, obtain the dependency relationship and hierarchical relationship of the nodes in the corresponding workflow, and convert the workflow Into a scheduling workflow;
    基于所述调度工作流对各节点进行转换,生成各节点对应的定义文件,其中,所述定义文件所在的目录根据所述层次关系确定得到;以及Converting each node based on the scheduling workflow to generate a definition file corresponding to each node, wherein the directory in which the definition file is located is determined according to the hierarchical relationship; and
    将所述依赖关系设置到对应节点的属性中,将各节点的依赖资源文件分别下载至对应定义文件所在目录中,将各节点的节点变量分别转变成特征文件并放置到对应定义文件所在目录中,得到与所述目标调度系统对应的工作流文件。Set the dependency relationship to the attribute of the corresponding node, download the dependent resource file of each node to the directory where the corresponding definition file is located, and convert the node variable of each node into a feature file and place it in the directory where the corresponding definition file is located. To obtain the workflow file corresponding to the target scheduling system.
  6. 如权利要求5所述的工作流迁移方法,其中,所述基于所述调度工作流对各节点进行转换,生成各节点对应的定义文件的步骤包括:8. The workflow migration method according to claim 5, wherein the step of converting each node based on the scheduling workflow to generate a definition file corresponding to each node comprises:
    基于所述调度工作流获取各节点的节点类型,并根据所述节点类型获取对应的参数信息;以及Obtain the node type of each node based on the scheduling workflow, and obtain corresponding parameter information according to the node type; and
    基于所述参数信息对各节点进行转换,生成各节点对应的定义文件。Based on the parameter information, each node is converted, and a definition file corresponding to each node is generated.
  7. 如权利要求1至3中任一项所述的工作流迁移方法,其中,所述将所述第二工作流文件发送至所述目标调度系统,以实现迁移的步骤之前,还包括:The workflow migration method according to any one of claims 1 to 3, wherein before the step of sending the second workflow file to the target scheduling system to implement the migration, the method further comprises:
    将所述第二工作流文件发送至预设测试端,以使得所述预设测试端对所述第二工作流文件进行测试;以及Sending the second workflow file to a preset test terminal, so that the preset test terminal tests the second workflow file; and
    在测试通过之后,执行步骤:将所述第二工作流文件发送至所述目标调度系统,以实现迁移。After the test is passed, perform the step of sending the second workflow file to the target scheduling system to implement migration.
  8. 一种工作流迁移装置,其中,所述工作流迁移装置包括:A workflow migration device, wherein the workflow migration device includes:
    第一转换模块,用于获取待迁移工作流文件,对所述待迁移工作流文件进行转换,得到预设格式的工作流文件,记为第一工作流文件;The first conversion module is configured to obtain a workflow file to be migrated, convert the workflow file to be migrated, and obtain a workflow file in a preset format, which is recorded as the first workflow file;
    第二转换模块,用于获取目标调度系统,根据所述目标调度系统的类型对所述第一工作流文件进行转换,得到与所述目标调度系统对应的工作流文件,记为第二工作流文件;以及The second conversion module is used to obtain a target scheduling system, and convert the first workflow file according to the type of the target scheduling system to obtain a workflow file corresponding to the target scheduling system, which is recorded as a second workflow Files; and
    迁移模块,用于将所述第二工作流文件发送至所述目标调度系统,以实现迁移。The migration module is used to send the second workflow file to the target scheduling system to implement migration.
  9. 一种工作流迁移设备,其中,所述工作流迁移设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的工作流迁移程序,所述工作流迁移程序被所述处理器执行时实现如权利要求1至7中任一项所述的工作流迁移方法的步骤。A workflow migration device, wherein the workflow migration device includes a memory, a processor, and a workflow migration program stored on the memory and running on the processor, and the workflow migration program is The processor implements the steps of the workflow migration method according to any one of claims 1 to 7 when executed.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有工作流迁移程序,所述工作流迁移程序被处理器执行时实现如权利要求1至7中任一项所述的工作流迁移方法的步骤。A computer-readable storage medium, wherein a workflow migration program is stored on the computer-readable storage medium, and when the workflow migration program is executed by a processor, the workflow migration program as described in any one of claims 1 to 7 is realized. The steps of the workflow migration method.
PCT/CN2020/113492 2019-10-10 2020-09-04 Method, apparatus and device for workflow migration, and computer-readable storage medium WO2021068692A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910961072.5 2019-10-10
CN201910961072.5A CN110674083B (en) 2019-10-10 2019-10-10 Workflow migration method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021068692A1 true WO2021068692A1 (en) 2021-04-15

Family

ID=69081314

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113492 WO2021068692A1 (en) 2019-10-10 2020-09-04 Method, apparatus and device for workflow migration, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN110674083B (en)
WO (1) WO2021068692A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674083B (en) * 2019-10-10 2023-11-28 深圳前海微众银行股份有限公司 Workflow migration method, device, equipment and computer readable storage medium
CN113298331A (en) * 2020-02-21 2021-08-24 北京金山云网络技术有限公司 Work order processing method, device and system and electronic equipment
CN112231378A (en) * 2020-10-13 2021-01-15 中移(杭州)信息技术有限公司 Data processing method, system, server and storage medium
CN115017096B (en) * 2021-12-30 2023-10-31 荣耀终端有限公司 Data migration method, readable medium and electronic device
CN116340411B (en) * 2023-05-31 2024-02-27 物产中大数字科技有限公司 Data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996356A (en) * 2006-12-13 2007-07-11 华中科技大学 Method for converting XPDL format into BPEL format for workflow model
CN101795237A (en) * 2010-03-25 2010-08-04 国网电力科学研究院 Workflow integration method and device based on data exchange
CN106600226A (en) * 2016-12-13 2017-04-26 泰康保险集团股份有限公司 Method and device used for optimizing flow management system
US20190012401A1 (en) * 2013-08-08 2019-01-10 Oshyn, Inc. Migrating data for web content management systems
CN110674083A (en) * 2019-10-10 2020-01-10 深圳前海微众银行股份有限公司 Workflow migration method, device, equipment and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002203086A (en) * 2000-12-28 2002-07-19 Sumitomo Electric Ind Ltd Workflow management device and method thereof, and recording medium with workflow management program recorded thereon
CN102043625A (en) * 2010-12-22 2011-05-04 中国农业银行股份有限公司 Workflow operation method and system
US10452371B2 (en) * 2016-06-17 2019-10-22 International Business Machines Corporation Automating enablement state inputs to workflows in z/OSMF
US10223176B1 (en) * 2017-10-13 2019-03-05 Amazon Technologies, Inc. Event handler nodes for visual scripting

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996356A (en) * 2006-12-13 2007-07-11 华中科技大学 Method for converting XPDL format into BPEL format for workflow model
CN101795237A (en) * 2010-03-25 2010-08-04 国网电力科学研究院 Workflow integration method and device based on data exchange
US20190012401A1 (en) * 2013-08-08 2019-01-10 Oshyn, Inc. Migrating data for web content management systems
CN106600226A (en) * 2016-12-13 2017-04-26 泰康保险集团股份有限公司 Method and device used for optimizing flow management system
CN110674083A (en) * 2019-10-10 2020-01-10 深圳前海微众银行股份有限公司 Workflow migration method, device, equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁世伦 等 (YUAN, SHILUN ET AL.): "一种基于规则的工作流模型互操作的实现方法 (Design of Workflow Model Interoperation based on Rule)", 计算机应用 (JOURNAL OF COMPUTER APPLICATIONS), vol. 27, no. 2, 28 February 2007 (2007-02-28), XP033530032 *

Also Published As

Publication number Publication date
CN110674083B (en) 2023-11-28
CN110674083A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
WO2021068692A1 (en) Method, apparatus and device for workflow migration, and computer-readable storage medium
JP5607743B2 (en) Generate automated test execution plans
CN111241454B (en) Method, system and device for generating webpage codes
US9218269B2 (en) Testing multiple target platforms
US8706771B2 (en) Systems and methods for analyzing and transforming an application from a source installation to a target installation
US20060041539A1 (en) Method and apparatus for organizing, visualizing and using measured or modeled system statistics
CN104778124A (en) Automatic testing method for software application
CN104123227A (en) Method for automatically generating testing cases
US11645438B2 (en) Generating a template-driven schematic from a netlist of electronic circuits
CN112287013B (en) Data conversion method and adapter
CN104375934A (en) Method for testing reliability of Android mobile phone software
JP5398213B2 (en) Generating device, program, and generating method
CN113806429A (en) Canvas type log analysis method based on large data stream processing framework
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
WO2016131295A1 (en) Northbound data conversion method and device
CN112306622A (en) VNF template construction method and device
JP6988997B2 (en) Information processing equipment, test management methods and programs
CN114185871A (en) Data migration method, data migration device, medium, and electronic device
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
JP4972997B2 (en) Program analysis method for asset diagnosis
CN110442331B (en) Method and system for automatically building code frame
CN112328281A (en) Server firmware refreshing method and device
WO2011041246A1 (en) Systems and methods for analyzing and transforming an application from a source installation to a target installation
JP6981124B2 (en) System construction support device, system construction support method, and program
CN112130841B (en) SQL development method and device and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20875538

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20875538

Country of ref document: EP

Kind code of ref document: A1