Computer Device, Method, and Apparatus for Scheduling Business Flow
First Claim
1. A flow scheduling apparatus configured to execute a flow, wherein the flow comprises at least one node, and wherein the flow scheduling apparatus comprises:
- a processor configured to;
determine that a transaction savepoint is configured on a to-be-scheduled node;
create an asynchronous task according to the transaction savepoint, wherein the asynchronous task comprises a to-be-scheduled task configured on the to-be-scheduled node, and wherein the to-be-scheduled task is scheduled after the transaction savepoint;
execute, by a first thread, a transaction comprising a first task in the flow, wherein the first task and the asynchronous task are different;
submit the transaction executed by the first thread; and
execute, by a second thread, the asynchronous task.
6 Assignments
0 Petitions
Accused Products
Abstract
A computer device, a method, and an apparatus for business flow scheduling. The method for business flow scheduling includes determining that a transaction savepoint is configured on a to-be-scheduled node, creating an asynchronous task according to the transaction savepoint, where the asynchronous task includes a to-be-scheduled task that is on the to-be-scheduled node and that is after the transaction savepoint, using a first thread to execute a transaction that includes a task in the flow other than the asynchronous task, and submitting the transaction executed by the first thread in order to ensure data consistency, and using a second thread to execute the asynchronous task in order to implement transaction splitting between task nodes.
22 Citations
18 Claims
-
1. A flow scheduling apparatus configured to execute a flow, wherein the flow comprises at least one node, and wherein the flow scheduling apparatus comprises:
a processor configured to; determine that a transaction savepoint is configured on a to-be-scheduled node; create an asynchronous task according to the transaction savepoint, wherein the asynchronous task comprises a to-be-scheduled task configured on the to-be-scheduled node, and wherein the to-be-scheduled task is scheduled after the transaction savepoint; execute, by a first thread, a transaction comprising a first task in the flow, wherein the first task and the asynchronous task are different; submit the transaction executed by the first thread; and execute, by a second thread, the asynchronous task. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
8. A method for scheduling a business flow, wherein the flow comprises at least one node, and wherein the method comprises:
-
determining that a transaction savepoint is configured on a to-be-scheduled node; creating an asynchronous task according to the transaction savepoint, wherein the asynchronous task comprises a to-be-scheduled task configured on the to-be-scheduled node, and wherein the to-be-scheduled task is scheduled after the transaction savepoint; executing, by a first thread, a transaction comprising a first task in the flow, wherein the first task and the asynchronous task are different; submitting the transaction executed by the first thread; and executing, by a second thread, the asynchronous task. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer device for executing flow scheduling, wherein the computer device is configured to execute a flow comprising at least one node, and wherein the computer device comprises:
-
a memory configured to store computer executable instructions; and a processor coupled to the memory and configured to execute the instructions to; determine that a transaction savepoint is configured on a to-be-scheduled node; create an asynchronous task according to the transaction savepoint, wherein the asynchronous task comprises a to-be-scheduled task configured on the to-be-scheduled node, and wherein the asynchronous task is scheduled after the transaction savepoint; execute, by a first thread, a transaction that comprises a first task in the flow, wherein the first task and the asynchronous task are different; submit the transaction executed by the first thread; and execute, by a second thread, the asynchronous task. - View Dependent Claims (16, 17, 18)
-
Specification