Movatterモバイル変換


[0]ホーム

URL:


CN112712298A - Workflow engine, scheduling method, device, equipment and storage medium - Google Patents

Workflow engine, scheduling method, device, equipment and storage medium
Download PDF

Info

Publication number
CN112712298A
CN112712298ACN202110080667.7ACN202110080667ACN112712298ACN 112712298 ACN112712298 ACN 112712298ACN 202110080667 ACN202110080667 ACN 202110080667ACN 112712298 ACN112712298 ACN 112712298A
Authority
CN
China
Prior art keywords
workflow
sdk
business
task
business component
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110080667.7A
Other languages
Chinese (zh)
Other versions
CN112712298B (en
Inventor
刘家卿
陈鑫
范新生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ccb Life Insurance Co ltd
Original Assignee
CCB Finetech Co Ltd
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 CCB Finetech Co LtdfiledCriticalCCB Finetech Co Ltd
Priority to CN202110080667.7ApriorityCriticalpatent/CN112712298B/en
Publication of CN112712298ApublicationCriticalpatent/CN112712298A/en
Application grantedgrantedCritical
Publication of CN112712298BpublicationCriticalpatent/CN112712298B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供一种工作流引擎、调度方法、装置、设备及存储介质,涉及数据处理技术领域。工作流引擎包括中央工作流引擎、至少一个工作流SDK;每个工作流SDK对应嵌入一个业务组件中,且包含工作流流转操作所需的通用应用程序接口API;业务组件包括流程数据简易副本;工作流SDK用于从中央工作流引擎同步任务的信息至对应业务组件的流程数据简易副本中;业务组件用于根据流程简易副本中同步的任务的信息执行任务;工作流SDK还用于将对应的业务组件执行的当前任务的状态同步给中央工作流引擎。本发明中在集中式工作流的基础上,使用少量副本数据完美解决了流程数据与业务数据集合的痛点,工作流引擎与业务数据基本解耦,无需关心业务数据复杂的状态变化。

Figure 202110080667

The present invention provides a workflow engine, a scheduling method, an apparatus, a device and a storage medium, and relates to the technical field of data processing. The workflow engine includes a central workflow engine and at least one workflow SDK; each workflow SDK is correspondingly embedded in a business component, and includes the general application program interface API required for workflow transfer operations; the business component includes a simple copy of the process data; The workflow SDK is used to synchronize the task information from the central workflow engine to the simple copy of the process data of the corresponding business component; the business component is used to execute tasks according to the information of the synchronized tasks in the simple copy of the process; the workflow SDK is also used to convert the corresponding The status of the current tasks executed by the business components is synchronized to the central workflow engine. On the basis of centralized workflow, the present invention uses a small amount of duplicate data to perfectly solve the pain point of process data and business data collection, the workflow engine is basically decoupled from business data, and there is no need to care about complex state changes of business data.

Figure 202110080667

Description

Workflow engine, scheduling method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a workflow engine, a scheduling method, a scheduling device, equipment and a storage medium.
Background
The main problems mainly solved by the workflow are as follows: to achieve a business goal, documents, information, or tasks are automatically communicated between multiple participants using a computer according to some predetermined rule. In the implementation of the workflow, the workflow engine is used as a part of an application system, can provide a reusable and flexibly configurable flow solution for each business system, and can determine flow and jump according to different roles, division of labor and conditions.
Existing workflow-based engines typically include embedded workflow engines and centralized workflow engines. In a distributed system, an embedded workflow engine cannot present a unified global workflow view. The flows between the components cannot be directly connected, and all the service systems are mutually communicated in pairs to form a complex mesh communication structure, so that the reliability and maintainability all have risks.
And the centralized workflow engine is independently deployed from the database and is isolated from the service component database, so that the workflow data is difficult to be combined with the service data. The centralized workflow engine cannot directly combine the service data to perform association query, and cannot perform various complex sequencing and screening on the task set of the required nodes according to the service requirements.
Disclosure of Invention
Based on the problems in the prior art, embodiments of the present invention provide a workflow engine, a workflow scheduling method, a workflow scheduling apparatus, a workflow scheduling device, and a workflow storage medium, which can implement a global task view, unified arrangement and management of task flows of different components, do not need to define service flows among components separately, and can solve pain points of association query between process data and service data, and a service system can associate process data to implement complex association query.
In a first aspect, an embodiment of the present invention provides a workflow engine, including: a central workflow engine, at least one workflow software development kit SDK; each workflow SDK is correspondingly embedded into a service component and comprises a general application program interface API required by workflow circulation operation; each business component comprises a simple copy of the process data; the workflow SDK is used for synchronizing the information of the task from the central workflow engine to the simple copy of the process data included in the service component corresponding to the workflow SDK; the business component is used for executing tasks according to the information of the tasks synchronized in the simple process copy; the workflow SDK is also used for synchronizing the state of the current task executed by the service component corresponding to the workflow SDK to the central workflow engine.
Optionally, the simple process data copy included in each business component includes information of an effective task of the business component, and complete definition information and flow conditions of no workflow.
Optionally, the service component includes a service component application server and a service component database; embedding the workflow SDK corresponding to the service component into the service component application server; and the simple copy of the process data included by the business component is a business database table newly built in the business component database.
Optionally, the service database table is a WF _ TASK table, and the WF _ TASK table only contains information of valid TASKs of the service component where the service component is located, and has no complete definition information and flow conditions of the workflow.
Optionally, each of the workflow SDKs is a jar packet.
Optionally, the state of the current task includes: completion, failure, and suspension.
Optionally, the service components and the workflow SDKs are in a one-to-one correspondence, and the service components corresponding to different workflow SDKs are different.
The embodiment of the invention realizes the unified management and check of the service workflow processes of the distributed system, and different processes of each service system can be all dispatched by the central workflow engine. On the basis of a centralized workflow, pain points of process data and business data sets are perfectly solved by using a small amount of duplicate data, a workflow engine is basically decoupled from the business data, and complex state changes of the business data do not need to be concerned.
In addition, based on the workflow engine provided by the embodiment of the invention, the unified management of the flows of different versions of the multi-service component can be realized, and the flow data of different versions of different service components can coexist and be uniformly handed over to the central flow engine to manage the task flow.
In a second aspect, an embodiment of the present invention provides a scheduling method, where the method is applied to a workflow engine, where the workflow engine includes: a central workflow engine, at least one workflow software development kit SDK; each workflow SDK is correspondingly embedded into a service component and comprises a general application program interface API required by workflow circulation operation; each business component comprises a simple copy of the process data; the method comprises the following steps:
the central workflow engine synchronizes the information of the task to a simple copy of process data included in a first service component corresponding to a first workflow SDK through the first workflow SDK; the first workflow SDK is one of the at least one workflow SDK; the central workflow engine receives a status of a current task executed by the first business component from the first workflow SDK.
Optionally, the simple process data copy included in each business component includes information of an effective task of the business component, and complete definition information and circulation conditions of no workflow; the service component comprises a service component application server and a service component database; embedding the workflow SDK corresponding to the service component into the service component application server; and the simple copy of the process data included by the business component is a business database table newly built in the business component database.
Optionally, the service database table is a WF _ TASK table, and the WF _ TASK table only contains information of valid TASKs of the service component where the service component is located, and has no complete definition information and flow conditions of the workflow.
Optionally, each of the workflow SDKs is a jar packet.
Optionally, the service components and the workflow SDKs are in a one-to-one correspondence, and the service components corresponding to different workflow SDKs are different.
In a third aspect, an embodiment of the present invention provides a scheduling apparatus, where the scheduling apparatus is applied to a central workflow engine included in a workflow engine, where the workflow engine further includes at least one workflow software development kit SDK; each workflow SDK is correspondingly embedded into a service component and comprises a general application program interface API required by workflow circulation operation; each business component comprises a simple copy of the process data; the device comprises: the system comprises a task synchronization module and a task state updating module; the task synchronization module is used for synchronizing the information of the task to a simple process data copy included in a first service component corresponding to a first workflow SDK through the first workflow SDK; the first workflow SDK is one of the at least one workflow SDK; the task state updating module is used for receiving the state of the current task executed by the first service component from the first workflow SDK.
Optionally, the scheduling device is further configured to implement other functions implemented by a central workflow engine in the workflow engines described in the first aspect, which are not described herein any more.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method according to the second aspect.
In a fifth aspect, the present invention provides a storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the second aspect.
The beneficial effects described in the second to fifth aspects above can be referred to the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic diagram illustrating a workflow engine according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a workflow engine;
FIG. 3 is a diagram illustrating a task execution flow provided by an embodiment of the invention;
fig. 4 is a flowchart illustrating a scheduling method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram illustrating a scheduling apparatus according to an embodiment of the present invention;
fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it should be understood that the drawings in the present invention are for illustrative and descriptive purposes only and are not used to limit the scope of the present invention. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this disclosure illustrate operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the direction of this summary, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments of the present invention are only some embodiments of the present invention, and not all embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the term "comprising" will be used in the embodiments of the invention to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features. It should also be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. In the description of the present invention, it should also be noted that the terms "first", "second", "third", and the like are used for distinguishing the description, and are not intended to indicate or imply relative importance.
The concept of workflow originates from the field of production organization and office automation, and is a concept proposed for having fixed program activities in daily work. Generally, work is divided into defined tasks or roles, the tasks are executed according to certain rules and processes, and the tasks are monitored, so that the purposes of improving the work efficiency, better controlling the processes, enhancing the service to customers, effectively managing business processes and the like are achieved.
The main problems mainly solved by the workflow are as follows: to achieve a business goal, documents, information, or tasks are automatically communicated between multiple participants using a computer according to some predetermined rule. In the implementation of the workflow, the workflow engine is used as a part of an application system, can provide a reusable and flexibly configurable flow solution for each business system, and can determine flow and jump according to different roles, division of labor and conditions. For example, the workflow engine may include important functions for node management, flow direction management, process sample management, etc. of the process.
Existing workflow-based engines typically include embedded workflow engines and centralized workflow engines.
The embedded workflow engine is a workflow engine main body program and an application system program which are packaged together for deployment, and a database table and business data required by the workflow engine share one database and are mostly used for single application. In a distributed system, an embedded workflow engine cannot present a unified global workflow view. The flows between the components cannot be directly connected, and all the service systems are mutually communicated in pairs to form a complex mesh communication structure, so that the reliability and maintainability all have risks.
The centralized workflow engine refers to a workflow engine program and a database which are independently deployed and serve as independent components to provide services for the outside, and each business component is uniformly connected with the workflow engine in an abutting mode and calls the workflow engine through network interaction. The scheme can integrate the task flow data of each service component and uniformly connect the work flows of each component in series. Because the centralized workflow engine is deployed independently of the database, and is isolated from the business component database, workflow data is difficult to integrate with business data. The centralized workflow engine cannot directly combine the service data to perform association query, and cannot perform various complex sequencing and screening on the task set of the required nodes according to the service requirements. A certain amount of data is generally pushed to a workflow engine by a business system, and the workflow engine uses a copy of the data to perform association query in combination with information of a process task, but this may face the problem of timeliness of business data synchronization. Due to real-time change of business data, data needs to be synchronized to a workflow engine at multiple buried points in a business process, high coupling between the workflow engine and a business component can be caused, and workload of demand analysis and development is greatly increased.
In this background, an embodiment of the present invention provides a workflow engine, which is a centralized workflow engine based on process data synchronization, and can implement a global task view, unified arrangement and management of task flows of different components, and a service process between the components does not need to be separately defined. The jump of the cross-component flow in the operation process does not need to customize a special interface. The program writing mode is not different from the flow circulation in the component. The complexity of task flow between the components is shielded, so that the cross-component task is completely transparent to the service system.
In addition, the workflow engine provided by the embodiment of the invention can also solve the pain point of the correlation query of the process data and the service data, and the service system can correlate the process data to realize the complex correlation query. The process engine does not store business data in principle, and is decoupled from the business system.
Fig. 1 shows a schematic structural diagram of a workflow engine provided by an embodiment of the present invention.
As shown in fig. 1, the workflow engine includes: a central workflow engine and n workflow Software Development Kit (SDK), n being an integer greater than or equal to 1. Each workflow SDK in the n workflow SDKs is embedded into one service component, each workflow SDK includes an Application Programming Interface (API) required by the workflow circulation operation, and service components corresponding to different workflow SDKs are different.
That is, if there are n service components, there are n workflow SDKs, and there is a one-to-one correspondence between the service components and the workflow SDKs. It will be appreciated that different business components belong to different business systems.
With continued reference to fig. 1, in an embodiment of the present invention, each business component may include a simple copy of the process data. When the workflow engine provided by the embodiment of the invention is used, different processes of each service system can be all dispatched by the central workflow engine, and the central workflow engine can dispatch corresponding service components to execute tasks through the workflow SDK.
Taking the example that the central workflow engine schedules the first service component to execute the first task, the central workflow engine may write the information of the first task into the simple copy of the flow data of the first service component through the first workflow SDK. In other words, the first workflow SDK can synchronize data of the first task from the central workflow engine into the simple copy of the flow data of the first business component. The first business component can then execute the first task based on the information of the synchronized first task in the simple copy of the flow.
It should be understood that in this example, the first business component may be any one of the business components, relating to the business system corresponding to the first task; the first workflow SDK is a workflow SDK embedded in the first service component.
In the embodiment of the present invention, the first workflow SDK may also synchronize the state of the current task (e.g., the first task) executed by the first service component to the central workflow engine. Optionally, the state of the current task includes: completion, failure, and suspension.
For example, after the first service component executes the first task, the first service component may call a first workflow SDK corresponding to the first service component to notify the central workflow engine that the first task is completed.
Optionally, for each business component, the simple copy of the process data included in the business component includes information of the effective task of the business component, and complete definition information and flow conditions of the workflow are absent.
Fig. 2 is another schematic structural diagram of the workflow engine provided by the embodiment of the present invention.
As shown in fig. 2, in the embodiment of the present invention, a service component may include a service component application server and a service component database. The workflow SDK corresponding to the service component can be embedded into the service component application server. The central workflow engine may be comprised of a process engine and a process engine database.
The simple process data copy included in the business component can be realized by establishing a new business database table in the business component database as the simple process data copy. For example, the service database table may be a WF _ TASK table. That is, the WF _ TASK table only contains the information of the valid TASKs of the current service component (the service component where the WF _ TASK table is located), and there is no complete definition information and flow conditions of the workflow.
Exemplarily, the WF _ TASK table is as follows.
WF _ TASK table
Figure BDA0002909020880000101
Figure BDA0002909020880000111
When a new TASK is generated by the process engine, new TASK information can be sent to the service component application server, and after the service component application server receives the new TASK information, the corresponding workflow SDK can write the information of the new TASK into the WF _ TASK table in the service component database and change the state of the current TASK to be synchronized with the process engine.
In the embodiment of the invention, when each service component working pool queries data, the interaction with a central workflow engine is not needed, the data in the WF _ TASK table can be directly used for performing associated query with the service data, and the complex sequencing and paging can be performed without limitation.
Optionally, when a new task is generated and new task information is sent to the service component application server, the flow engine may send the new task information through message middleware to notify the workflow SDK to synchronize the information of the new task. Similarly, the workflow SDK can synchronize the business component's flow data (e.g., task state) to the central workflow engine through message middleware. Through a message mechanism, the process data of the business components and the central workflow engine can realize quasi-real-time synchronization.
Alternatively, if the message middleware cannot guarantee 100% reliability, there may also be a high frequency of timing batches for retries.
Optionally, if the process is in a cross-component flow jump scenario, only new task information is synchronized, it is ensured that a data copy of a corresponding task is created, and the workflow SDK is not responsible for task state update. The synchronization of the task state is updated when the workflow SDK initiates the task state and the process flow.
Illustratively, fig. 3 shows a schematic diagram of a task execution flow provided by an embodiment of the present invention. As shown in fig. 3, in a complete circulation operation, the workflow engine may first trigger the workflow SDK to synchronize TASK information (data) to the WF _ TASK table according to the method described in the foregoing embodiment, and then the service component executes the TASK. After the task is finished, the workflow engine may first determine whether the process end point is reached, and if so, the process is finished. If not, the circulation operation is continuously executed.
In the embodiment of the present invention, since the workflow SDK is embedded in the service component (or in the service system) as a part of the program, the workflow SDK can read and write the service database while interfacing with the central workflow engine, and thus, it is not necessary to embed a complete workflow engine.
Optionally, in this embodiment of the present invention, the workflow SDK corresponding to the service component may be a jar packet. That is, the embodiment of the present invention may embed a lightweight workflow SDK to the service component.
In summary, the embodiment of the present invention realizes unified management and check of the service workflow processes of the distributed system, and different processes of each service system can be all dispatched by the central workflow engine. On the basis of a centralized workflow, pain points of process data and business data sets are perfectly solved by using a small amount of duplicate data, a workflow engine is basically decoupled from the business data, and complex state changes of the business data do not need to be concerned.
In addition, based on the workflow engine provided by the embodiment of the invention, the unified management of the flows of different versions of the multi-service component can be realized, and the flow data of different versions of different service components can coexist and be uniformly handed over to the central flow engine to manage the task flow.
Based on the workflow engine described in the foregoing embodiment, an embodiment of the present invention further provides a scheduling method. Fig. 4 is a flowchart illustrating a scheduling method according to an embodiment of the present invention, and as shown in fig. 4, the method includes:
s401, the central workflow engine synchronizes the information of the task to the simple process data copy included in the first service component corresponding to the first workflow SDK through the first workflow SDK.
Wherein the first workflow SDK is one of the at least one workflow SDK.
S402, the central workflow engine receives the state of the current task executed by the first service component from the first workflow SDK.
Optionally, the simple process data copy included in each business component includes information of effective tasks of the business component, and complete definition information and circulation conditions of no workflow are included; the service component comprises a service component application server and a service component database; embedding a workflow SDK corresponding to the service component into a service component application server; the simple copy of the process data included in the business component is a business database table newly built in the business component database.
Optionally, each workflow SDK is a jar packet.
Based on the scheduling method described in the foregoing embodiment, an embodiment of the present invention further provides a scheduling apparatus, which may be used to implement the scheduling method described in the foregoing embodiment. Fig. 5 is a schematic structural diagram illustrating a scheduling apparatus according to an embodiment of the present invention.
As shown in fig. 5, the scheduling apparatus may include at least: atask synchronization module 501 and a taskstatus update module 502. Thetask synchronization module 501 may be configured to synchronize information of a task to a simple copy of process data included in a first service component corresponding to a first workflow SDK through the first workflow SDK. The first workflow SDK is one of the at least one workflow SDK. The taskstatus update module 502 can be configured to receive a status of a current task executed by a first business component from the first workflow SDK.
The above-mentioned apparatus can be integrated into a server, a computer, and other devices, and the present invention is not limited herein. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the scheduling apparatus may refer to the corresponding process of the scheduling method described in the foregoing method embodiment, and is not described in detail herein.
It should be understood that the above-described apparatus embodiments are merely exemplary, and that the apparatus and method disclosed in the embodiments of the present invention may be implemented in other ways. For example, the division of the modules into only one logical functional division may be implemented in other ways, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention or parts thereof which substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a processor to execute the steps of all or part of the method according to the embodiments of the present invention.
That is, those skilled in the art will appreciate that embodiments of the present invention may be implemented in any form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
Based on this, the embodiment of the present invention further provides a program product, where the program product may be a storage medium such as a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and the storage medium may store a computer program, and the computer program is executed by a processor to perform the steps of the scheduling method as described in the foregoing method embodiment. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, an embodiment of the present invention further provides an electronic device, where the electronic device may be a server, a computer, or a like device, and fig. 6 illustrates a schematic structural diagram of the electronic device provided in the embodiment of the present invention.
As shown in fig. 6, the electronic device may include: aprocessor 601, astorage medium 602 and abus 603, wherein thestorage medium 502 stores machine-readable instructions executable by theprocessor 501, when the electronic device is operated, theprocessor 601 communicates with thestorage medium 602 through thebus 603, and theprocessor 601 executes the machine-readable instructions to execute the steps of the scheduling method as described in the foregoing embodiments. The specific implementation and technical effects are similar, and are not described herein again.
For ease of illustration, only one processor is described in the above electronic device. However, it should be noted that in some embodiments, the electronic device in the present invention may further include multiple processors, and thus, the steps performed by one processor described in the present invention may also be performed by multiple processors in combination or individually.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the present invention shall be covered thereby. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (15)

Translated fromChinese
1.一种工作流引擎,其特征在于,包括:中央工作流引擎、至少一个工作流软件开发工具包SDK;每个所述工作流SDK对应嵌入一个业务组件中,且每个所述工作流SDK包含工作流流转操作所需的通用应用程序接口API;1. a workflow engine, is characterized in that, comprises: central workflow engine, at least one workflow software development kit SDK; Each described workflow SDK is correspondingly embedded in a business component, and each described workflow The SDK contains the common application programming interface APIs required for workflow flow operations;每个所述业务组件包括一个流程数据简易副本;Each of said business components includes a simplified copy of process data;所述工作流SDK用于从所述中央工作流引擎同步任务的信息至所述工作流SDK对应的业务组件包括的流程数据简易副本中;The workflow SDK is used for synchronizing task information from the central workflow engine to a simple copy of the process data included in the business component corresponding to the workflow SDK;所述业务组件用于根据其包括的流程简易副本中同步的任务的信息,执行任务;The business component is configured to execute the task according to the information of the task synchronized in the simple copy of the process included therein;所述工作流SDK还用于将所述工作流SDK对应的业务组件执行的当前任务的状态同步给所述中央工作流引擎。The workflow SDK is further configured to synchronize the state of the current task executed by the business component corresponding to the workflow SDK to the central workflow engine.2.根据权利要求1所述的工作流引擎,其特征在于,每个所述业务组件包括的流程数据简易副本包括所述业务组件有效任务的信息,无工作流的完整定义信息与流转条件。2 . The workflow engine according to claim 1 , wherein the simple copy of the process data included in each of the business components includes the information of the effective tasks of the business component, without complete definition information and flow conditions of the workflow. 3 .3.根据权利要求2所述的工作流引擎,其特征在于,所述业务组件包括业务组件应用服务器和业务组件数据库;所述业务组件对应的工作流SDK嵌入所述业务组件应用服务器中;3. The workflow engine according to claim 2, wherein the business component comprises a business component application server and a business component database; the workflow SDK corresponding to the business component is embedded in the business component application server;所述业务组件包括的流程数据简易副本为所述业务组件数据库中新建的一张业务数据库表。The simple copy of the process data included in the business component is a newly created business database table in the business component database.4.根据权利要求3所述的工作流引擎,其特征在于,所述业务数据库表是WF_TASK表,所述WF_TASK表仅包含其所在的业务组件的有效任务的信息,无工作流的完整定义信息与流转条件。4. The workflow engine according to claim 3, characterized in that, the business database table is a WF_TASK table, and the WF_TASK table only contains the information of the valid tasks of the business component where it is located, without complete definition information of the workflow and flow conditions.5.根据权利要求1所述的工作流引擎,其特征在于,每个所述工作流SDK是一个jar包。5. The workflow engine according to claim 1, wherein each of the workflow SDKs is a jar package.6.根据权利要求1所述的工作流引擎,其特征在于,所述当前任务的状态包括:完成、失败、以及挂起。6. The workflow engine of claim 1, wherein the status of the current task comprises: completed, failed, and suspended.7.根据权利要求1所述的工作流引擎,其特征在于,业务组件与工作流SDK之间为一一对应的关系,不同的工作流SDK对应的业务组件不同。7 . The workflow engine according to claim 1 , wherein there is a one-to-one correspondence between the business components and the workflow SDK, and the business components corresponding to different workflow SDKs are different. 8 .8.一种调度方法,其特征在于,所述方法应用于工作流引擎,所述工作流引擎包括:中央工作流引擎、至少一个工作流软件开发工具包SDK;每个所述工作流SDK对应嵌入一个业务组件中,且每个所述工作流SDK包含工作流流转操作所需的通用应用程序接口API;每个所述业务组件包括一个流程数据简易副本;8. A scheduling method, wherein the method is applied to a workflow engine, and the workflow engine comprises: a central workflow engine, at least one workflow software development kit SDK; each of the workflow SDKs corresponds to Embedded in a business component, and each of the workflow SDKs includes a general application program interface API required for workflow transfer operations; each of the business components includes a simple copy of the process data;所述方法包括:The method includes:所述中央工作流引擎通过第一工作流SDK将任务的信息同步至所述第一工作流SDK对应的第一业务组件包括的流程数据简易副本中;所述第一工作流SDK是所述至少一个工作流SDK中的一个;The central workflow engine synchronizes the task information to the simple copy of the process data included in the first business component corresponding to the first workflow SDK through the first workflow SDK; the first workflow SDK is the at least one of the workflow SDKs;所述中央工作流引擎接收来自所述第一工作流SDK的所述第一业务组件执行的当前任务的状态。The central workflow engine receives the status of the current task executed by the first business component of the first workflow SDK.9.根据权利要求8所述的方法,其特征在于,每个所述业务组件包括的流程数据简易副本包括所述业务组件有效任务的信息,无工作流的完整定义信息与流转条件;9. The method according to claim 8, wherein the simple copy of the process data included in each of the business components includes the information of the effective tasks of the business component, without complete definition information and flow conditions of the workflow;所述业务组件包括业务组件应用服务器和业务组件数据库;所述业务组件对应的工作流SDK嵌入所述业务组件应用服务器中;The business component includes a business component application server and a business component database; the workflow SDK corresponding to the business component is embedded in the business component application server;所述业务组件包括的流程数据简易副本为所述业务组件数据库中新建的一张业务数据库表。The simple copy of the process data included in the business component is a newly created business database table in the business component database.10.根据权利要求9所述的方法,其特征在于,所述业务数据库表是WF_TASK表,所述WF_TASK表仅包含其所在的业务组件的有效任务的信息,无工作流的完整定义信息与流转条件。10. The method according to claim 9, wherein the service database table is a WF_TASK table, and the WF_TASK table only contains the information of the valid tasks of the service component where it is located, without complete definition information and flow of workflow. condition.11.根据权利要求8所述的方法,其特征在于,每个所述工作流SDK是一个jar包。11. The method according to claim 8, wherein each of the workflow SDKs is a jar package.12.根据权利要求8所述的方法,其特征在于,业务组件与工作流SDK之间为一一对应的关系,不同的工作流SDK对应的业务组件不同。12 . The method according to claim 8 , wherein there is a one-to-one correspondence between the business components and the workflow SDK, and the business components corresponding to different workflow SDKs are different. 13 .13.一种调度装置,其特征在于,所述装置应用于工作流引擎包括的中央工作流引擎,所述工作流引擎还包括至少一个工作流软件开发工具包SDK;每个所述工作流SDK对应嵌入一个业务组件中,且每个所述工作流SDK包含工作流流转操作所需的通用应用程序接口API;每个所述业务组件包括一个流程数据简易副本;所述装置包括:任务同步模块和任务状态更新模块;13. A scheduling device, characterized in that the device is applied to a central workflow engine included in a workflow engine, and the workflow engine further includes at least one workflow software development kit SDK; each of the workflow SDKs Correspondingly embedded in a business component, and each of the workflow SDKs includes a general application program interface API required for workflow transfer operations; each of the business components includes a simple copy of the process data; the device includes: a task synchronization module and task status update module;所述任务同步模块用于通过第一工作流SDK将任务的信息同步至第一工作流SDK对应的第一业务组件包括的流程数据简易副本中;所述第一工作流SDK是所述至少一个工作流SDK中的一个;The task synchronization module is used to synchronize the task information to the simple copy of the process data included in the first business component corresponding to the first workflow SDK through the first workflow SDK; the first workflow SDK is the at least one One of the workflow SDKs;所述任务状态更新模块用于接收来自第一工作流SDK的第一业务组件执行的当前任务的状态。The task status update module is configured to receive the status of the current task executed by the first business component of the first workflow SDK.14.一种电子设备,其特征在于,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当所述电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行时执行如权利要求8至12任一项所述的方法的步骤。14. An electronic device, comprising: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device runs, the processing A bus communicates between the processor and the storage medium, and the processor executes the machine-readable instructions to execute the steps of the method according to any one of claims 8 to 12 when executed.15.一种存储介质,其特征在于,所述存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求8至12任一项所述的方法的步骤。15. A storage medium, wherein a computer program is stored on the storage medium, and when the computer program is run by a processor, the steps of the method according to any one of claims 8 to 12 are executed.
CN202110080667.7A2021-01-212021-01-21Workflow engine, scheduling method, scheduling device, equipment and storage mediumActiveCN112712298B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110080667.7ACN112712298B (en)2021-01-212021-01-21Workflow engine, scheduling method, scheduling device, equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110080667.7ACN112712298B (en)2021-01-212021-01-21Workflow engine, scheduling method, scheduling device, equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN112712298Atrue CN112712298A (en)2021-04-27
CN112712298B CN112712298B (en)2024-10-29

Family

ID=75549577

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110080667.7AActiveCN112712298B (en)2021-01-212021-01-21Workflow engine, scheduling method, scheduling device, equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN112712298B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116090752A (en)*2022-12-192023-05-09冶金自动化研究设计院有限公司Iron and steel production scheduling rule engine platform
CN116721007A (en)*2023-08-022023-09-08摩尔线程智能科技(北京)有限责任公司Task control method, system and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040078373A1 (en)*1998-08-242004-04-22Adel GhoneimyWorkflow system and method
US20100287377A1 (en)*2009-05-072010-11-11Sap AgMethod and a system for a secure execution of workflow tasks of a workflow in a decentralized workflow system
US20110153579A1 (en)*2009-12-222011-06-23Deidre PaknadMethod and Apparatus for Policy Distribution
US20140282353A1 (en)*2013-03-142014-09-18Microsoft CorporationSoftware release workflow management
CN109087004A (en)*2018-08-032018-12-25北京东软望海科技有限公司A kind of public workflow engine system based on domain model
CN110249350A (en)*2016-09-202019-09-17河谷控股Ip有限责任公司Sample tracking, system and method are carried out via sample tracking chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040078373A1 (en)*1998-08-242004-04-22Adel GhoneimyWorkflow system and method
US20100287377A1 (en)*2009-05-072010-11-11Sap AgMethod and a system for a secure execution of workflow tasks of a workflow in a decentralized workflow system
US20110153579A1 (en)*2009-12-222011-06-23Deidre PaknadMethod and Apparatus for Policy Distribution
US20140282353A1 (en)*2013-03-142014-09-18Microsoft CorporationSoftware release workflow management
CN110249350A (en)*2016-09-202019-09-17河谷控股Ip有限责任公司Sample tracking, system and method are carried out via sample tracking chain
CN109087004A (en)*2018-08-032018-12-25北京东软望海科技有限公司A kind of public workflow engine system based on domain model

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116090752A (en)*2022-12-192023-05-09冶金自动化研究设计院有限公司Iron and steel production scheduling rule engine platform
CN116721007A (en)*2023-08-022023-09-08摩尔线程智能科技(北京)有限责任公司Task control method, system and device, electronic equipment and storage medium
CN116721007B (en)*2023-08-022023-10-27摩尔线程智能科技(北京)有限责任公司 Mission control methods, systems and devices, electronic equipment and storage media

Also Published As

Publication numberPublication date
CN112712298B (en)2024-10-29

Similar Documents

PublicationPublication DateTitle
US6898791B1 (en)Infospheres distributed object system
CN112214547B (en) Data processing method, data server, electronic device and storage medium
US8850005B2 (en)Systems and methods for business network management discovery and consolidation
CN104536809B (en)A kind of distributed timing task scheduling system based on client, server system
US20070013948A1 (en)Dynamic and distributed queueing and processing system
CN109284312A (en)A kind of heterogeneous database change real-time informing method
CN103827832B (en)System and method for persisting transaction records in a transactional middleware machine environment
CN111506412A (en)Distributed asynchronous task construction and scheduling system and method based on Airflow
US20150128152A1 (en)Systems and methods for event driven object management and distribution among multiple client applications
US8325894B2 (en)Method, system, and program product for managing conference calls
JPH04233044A (en)Communication interface in transaction processing environment
CN110532074A (en)A kind of method for scheduling task and system of multi-tenant Mode S aaS service cluster environment
CN112712298A (en)Workflow engine, scheduling method, device, equipment and storage medium
CN105721582A (en)Multi-node file backup system
Smid et al.Case study on data communication in microservice architecture
CN110704465A (en)Method, device and storage medium for processing service work order table
CN112527523A (en)Distributed message transmission method and system for high-performance computing multiple clouds
CN106155680B (en)A kind of distribution High Availabitity, expansible, portable software framework
CN112328406A (en)Micro-service distributed transaction system based on TCC (transmission control center) and service processing method
EP1407388A2 (en)Distributed event notification system
US20060230109A1 (en)Mediator-based recovery mechanism for multi-agent system
CN106034164A (en)Cloud storage gateway file sharing service method and system
JP2008117291A (en)Workflow tracking system, integrated management device, method and program, and information recording medium recording it
CN118585592A (en) One-stop data integration system based on DolphinScheduler
CN114064702A (en) A penetrating data query method and system based on microservice call

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB03Change of inventor or designer information
CB03Change of inventor or designer information

Inventor after:Zeng Qiang

Inventor after:Liu Jiaqing

Inventor after:Zhang Pengfei

Inventor after:Chen Xin

Inventor after:Chen Yu

Inventor after:Guo Bin

Inventor after:Fan Xinsheng

Inventor after:Hui Yanfeng

Inventor before:Liu Jiaqing

Inventor before:Chen Xin

Inventor before:Fan Xinsheng

TA01Transfer of patent application right
TA01Transfer of patent application right

Effective date of registration:20230504

Address after:200120, 29th to 33rd floors, China Construction Bank Building, No. 99 Yincheng Road, Pudong New Area Free Trade Pilot Zone, Shanghai

Applicant after:CCB Life Insurance Co.,Ltd.

Address before:12 / F, 15 / F, 99 Yincheng Road, Pudong New Area pilot Free Trade Zone, Shanghai, 200120

Applicant before:Jianxin Financial Science and Technology Co.,Ltd.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp