Multi-instance task execution method and device, terminal equipment and computer storage medium

An execution method and multi-instance technology, applied in the field of data processing, can solve the problems such as the inability to control the execution of multiple instances more flexibly, and the inability to meet user needs.

Pending Publication Date: 2021-05-28
ALIBABA GRP HLDG LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the execution process, only simple serial constraints or parallel constraints can be performed on multiple instances, and the execution of multiple instances cannot be controlled more flexibly, which cannot meet the needs of users

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-instance task execution method and device, terminal equipment and computer storage medium
  • Multi-instance task execution method and device, terminal equipment and computer storage medium
  • Multi-instance task execution method and device, terminal equipment and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] refer to figure 1 , shows a flow chart of steps of a method for executing a multi-instance task according to Embodiment 1 of the present invention.

[0024] The execution method of the multi-instance task of the present embodiment comprises the following steps:

[0025] S102. Determine multiple instances corresponding to the multi-instance task, and divide the multiple instances into at least two batches, each batch including at least two instances.

[0026] The method provided in this embodiment can be applied to any workflow engine that supports multi-instance tasks, such as ActiveVOS, Activiti, jBPM, Windows Workflow Foundation and so on.

[0027] Specifically, a multi-instance task corresponds to multiple instances. For example, if a multi-instance task is to perform operation and maintenance operations on multiple clusters or a large number of machines, there is one instance for each cluster or each machine, and a multi-instance task corresponds to multiple insta...

Embodiment 2

[0035] refer to Figure 2a , shows a flow chart of steps of a method for executing a multi-instance task according to Embodiment 2 of the present invention.

[0036] S202. Predefine multi-instance tasks.

[0037] Specifically, it can be pre-defined by setting the elements of multi-instance tasks, such as Figure 2b For the activity element, the loopcharacteristics element, the multilnstanceloopcharacteristics element, etc., reference may be made to the prior art for specific methods of defining the elements, which will not be repeated in this embodiment.

[0038] In addition, in this embodiment, division rules may be defined in advance.

[0039] Specifically, a concurrency controller can be set in the workflow engine implementing this solution, such as Figure 2b As shown, you can define the element batchgenerator(>BatchGenerator) to determine the division of multiple instances into at least two batches through the concurrent controller, and define the specific division log...

Embodiment 3

[0068] refer to image 3 , shows a flow chart of steps of a method for executing a multi-instance task according to Embodiment 3 of the present invention.

[0069] The execution method of the multi-instance task of the present embodiment comprises the following steps:

[0070] S302. The user defines a workflow, and the workflow includes at least one multi-instance task.

[0071] In this embodiment, workflow refers to a series of interconnected business activities or tasks that are automatically executed in a computer application environment.

[0072] In this embodiment, the user can define a workflow in various ways, for example, it can be defined by using BPMN standard, it can be defined by custom XML / JSON, it can also be defined by state diagram or programming language, etc.

[0073] Taking the definition of workflow using the BPMN standard as an example, a workflow can be represented as a process (process), and a process can include elements such as event (ev...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a multi-instance task execution method and device, terminal equipment and a computer storage medium. The multi-instance task execution method comprises the steps that multiple instances corresponding to a multi-instance task are determined, the multiple instances are divided into at least two batches, and each batch comprises at least two instances; and executing the plurality of instances in batches, and concurrently executing the at least two instances belonging to one batch to execute the multi-instance task. According to the scheme provided by the embodiment of the invention, the concurrency of the instances can be controlled by controlling the number of the instances in each batch, and the serial constraint can be increased by controlling the execution sequence of each batch, so that the execution of a plurality of instances can be more flexibly controlled.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular, to a multi-instance task execution method, device, terminal device, and computer storage medium. Background technique [0002] Workflow engines are widely used in various business systems, such as approval systems and countersignature systems. Especially during use, various asynchronous operations can be performed, such as business operations that are approved by multiple people, business operations that are countersigned by multiple people, and so on. [0003] Usually, the above operations can be realized by using multi-instance tasks in the workflow engine. Specifically, a multi-instance task can be defined in the workflow, and the workflow engine will be allowed to execute the multi-instance task for multiple task objects, thereby generating multiple instances corresponding to a multi-instance task, and adding strings to multiple instances....

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/50
CPCG06F9/5038
Inventor 余斌
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products