[go: up one dir, main page]

CN117632416A - A method, device, medium and equipment for process engine trigger task arrangement - Google Patents

A method, device, medium and equipment for process engine trigger task arrangement Download PDF

Info

Publication number
CN117632416A
CN117632416A CN202311586438.8A CN202311586438A CN117632416A CN 117632416 A CN117632416 A CN 117632416A CN 202311586438 A CN202311586438 A CN 202311586438A CN 117632416 A CN117632416 A CN 117632416A
Authority
CN
China
Prior art keywords
trigger
task
event
condition
flow
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
CN202311586438.8A
Other languages
Chinese (zh)
Other versions
CN117632416B (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.)
China Electronics Investment Holdings Ltd
Original Assignee
China Electronics Investment Holdings 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 China Electronics Investment Holdings Ltd filed Critical China Electronics Investment Holdings Ltd
Priority to CN202311586438.8A priority Critical patent/CN117632416B/en
Publication of CN117632416A publication Critical patent/CN117632416A/en
Application granted granted Critical
Publication of CN117632416B publication Critical patent/CN117632416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明提供一种流程引擎触发器任务编排的方法、装置、介质和设备,该任务编排方法包括:根据任务的事件类型通过前端可视化界面订阅触发器事件,其中,事件类型包括节点事件、分支事件和流程事件;根据触发器事件选择所述触发器的触发条件;根据任务按照触发条件触发调度触发器事件。本发明实施例中,引入流程事件、分支事件和节点事件等不同类型的事件定义,使触发器可以根据需要订阅多种事件,同时每种触发事件可以单独配置触发条件,解决了现有技术中流程和分支条件的事件订阅管理支持不足,对多个条件和动作的组合编排能力不足的技术问题。

The invention provides a method, device, medium and equipment for process engine trigger task arrangement. The task arrangement method includes: subscribing to trigger events through a front-end visual interface according to the event type of the task, where the event types include node events and branch events. and process events; select the triggering condition of the trigger according to the trigger event; trigger and schedule the trigger event according to the triggering condition according to the task. In the embodiment of the present invention, different types of event definitions such as process events, branch events, and node events are introduced, so that triggers can subscribe to multiple events as needed. At the same time, each trigger event can be configured with trigger conditions independently, solving the problems in the existing technology. Technical issues include insufficient event subscription management support for processes and branch conditions, and insufficient orchestration capabilities for the combination of multiple conditions and actions.

Description

一种流程引擎触发器任务编排的方法、装置、介质和设备A method, device, medium and equipment for process engine trigger task arrangement

技术领域Technical field

本发明涉及计算机技术领域,尤其涉及一种流程引擎触发器任务编排的方法、装置、介质和设备。The present invention relates to the field of computer technology, and in particular, to a method, device, medium and equipment for arranging process engine trigger tasks.

背景技术Background technique

触发器任务编排配置主要应用在物联网、大数据处理和自动化作业平台等领域,用来提升触发器事件订阅的易用性和任务调度的扩展性,传统的触发器配置主要针对规则引擎的集成,旨在解决在办公审批场景下的事件触发。Trigger task orchestration configuration is mainly used in the fields of Internet of Things, big data processing and automated operation platforms to improve the ease of use of trigger event subscription and the scalability of task scheduling. Traditional trigger configuration is mainly aimed at the integration of rule engines. , designed to solve event triggering in office approval scenarios.

现有的任务编排配置的技术方案中仅仅解决了流程运行过程中的表单处理,对任务执行的调度能力主要体现在单个条件和动作配置,可见,现有的技术方案存在对流程和分支条件的事件订阅管理支持不足,对多个条件和动作的组合编排能力不足,异步任务配置能力较弱的技术问题。Existing technical solutions for task orchestration and configuration only solve form processing during process running. The scheduling capabilities for task execution are mainly reflected in individual conditions and action configurations. It can be seen that the existing technical solutions have limitations on process and branch conditions. Technical issues include insufficient support for event subscription management, insufficient ability to orchestrate the combination of multiple conditions and actions, and weak asynchronous task configuration capabilities.

发明内容Contents of the invention

有鉴于此,本发明实施例的目的在于提供一种流程引擎触发器任务编排的方法、装置、介质和设备,以解决现有技术中流程和分支条件的事件订阅管理支持不足,对多个条件和动作的组合编排能力不足的技术问题。In view of this, the purpose of embodiments of the present invention is to provide a method, device, medium and equipment for process engine trigger task arrangement, so as to solve the problem of insufficient support for event subscription management of processes and branch conditions in the prior art, and for multiple conditions. Technical problems caused by insufficient ability in combination and choreography of movements.

为达到上述目的,第一方面,本发明实施例提供一种流程引擎触发器任务编排的方法,所述方法包括:In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a method for arranging process engine trigger tasks. The method includes:

根据任务的事件类型通过前端可视化界面订阅触发器的触发事件,其中,所述事件类型包括节点事件、分支事件和流程事件;Subscribe to the triggering event of the trigger through the front-end visual interface according to the event type of the task, where the event type includes node events, branch events and process events;

根据所述触发事件选择所述触发器的触发条件;Select the triggering condition of the trigger according to the triggering event;

根据所述触发事件按照所述触发条件触发调度所述触发器执行所述任务。The trigger is scheduled to execute the task according to the triggering condition and the triggering event.

在一些可能的实施方式中,所述方法还包括:In some possible implementations, the method further includes:

将所述触发器的编号与所述任务的编号进行关联并持久化到数据库中。The trigger number is associated with the task number and persisted in the database.

在一些可能的实施方式中,所述订阅触发器事件包括:In some possible implementations, the subscription trigger event includes:

在所述任务运行过程中,根据所述任务的节点、分支或者流程,向外部发送触发事件,所述触发事件携带所述任务的编号、表单数据和上下文数据,通过与所述数据库中的触发器的编号进行关联,触发所述触发器的执行;其中,所述触发事件包括:During the running process of the task, a trigger event is sent to the outside according to the node, branch or process of the task. The trigger event carries the number, form data and context data of the task, and is compared with the trigger event in the database. associated with the trigger number to trigger the execution of the trigger; wherein the trigger event includes:

创建流程:当用户创建流程时触发器触发;Create process: The trigger fires when the user creates a process;

结束流程,当流程执行完成、流程执行失败或主动关闭时所述触发器触发;End the process, and the trigger is triggered when the process execution is completed, the process execution fails, or the process is actively closed;

撤销流程,当用户撤销流程时所述触发器触发;To cancel the process, the trigger is fired when the user cancels the process;

挂起流程,当用户挂起流程时所述触发器触发;Suspend the process, the trigger is fired when the user suspends the process;

恢复流程,当用户将挂起的流程恢复时所述触发器触发。Resume process, the trigger fires when the user resumes the suspended process.

在一些可能的实施方式中,所述触发条件包括:表单字段判断,全局上下文判断、任务执行结果判断、多条件或和多条件与中的任意一个或多个;其中,In some possible implementations, the triggering conditions include: form field judgment, global context judgment, task execution result judgment, any one or more of multi-condition OR and multi-condition AND; wherein,

表单字段判断是指任务执行的配置参数,当节点输入数据满足所述配置参数时触发器执行;Form field judgment refers to the configuration parameters of task execution. When the node input data meets the configuration parameters, the trigger is executed;

全局上下文判断是指配置执行字段的上下文内容,当流程的配置执行字段的满足所述上下文内容时触发器执行;Global context judgment refers to the context content of the configuration execution field. When the configuration execution field of the process meets the context content, the trigger is executed;

任务执行结果判断是指任务执行的返回值,当节点任务执行的返回结果满足所述返回值时触发器执行;Task execution result judgment refers to the return value of task execution. When the return result of node task execution meets the return value, the trigger is executed;

多条件或是指配置条件规则引擎中的多种判断条件,多种判断条件之间以或的形式判断是否满足触发条件;多条件与是指配置条件引擎中的多种判断条件,多种判断条件之间以与的形式判断是否满足触发条件。Multi-condition or refers to the multiple judgment conditions in the configuration condition rule engine. Multiple judgment conditions are judged in the form of OR to determine whether the trigger condition is met; multi-condition AND refers to the multiple judgment conditions in the configuration condition engine. Multiple judgments The conditions are ANDed in the form of AND to determine whether the trigger condition is met.

第二方面,本发明实施例还提供了一种流程引擎触发器任务编排的装置,所述装置包括:In a second aspect, embodiments of the present invention also provide a device for arranging process engine trigger tasks. The device includes:

触发器配置模块,用于根据任务的事件类型通过前端可视化界面订阅触发器事件,其中,所述事件类型包括节点事件、分支事件和流程事件;A trigger configuration module, used to subscribe to trigger events through the front-end visual interface according to the event type of the task, where the event types include node events, branch events and process events;

条件规则引擎模块,用于根据所述触发器事件选择所述触发器的触发条件;A conditional rule engine module, used to select the triggering condition of the trigger according to the trigger event;

任务调度引擎模块,用于根据所述触发事件按照所述触发条件触发调度所述触发器执行所述任务。A task scheduling engine module, configured to trigger and schedule the trigger to execute the task according to the triggering condition according to the triggering event.

在一些可能的实施方式中,所述装置还包括:In some possible implementations, the device further includes:

关联模块,用于将所述触发器的编号与所述任务的编号进行关联并持久化到数据库中。An association module, configured to associate the number of the trigger with the number of the task and persist it in the database.

在一些可能的实施方式中,所述触发器配置模块具体用于:In some possible implementations, the trigger configuration module is specifically used to:

在所述任务运行过程中,根据所述任务的节点、分支或者流程,向外部发送触发事件,所述触发事件携带所述任务的编号、表单数据和上下文数据,通过与所述数据库中的触发器的编号进行关联,触发所述触发器的执行;其中,所述触发事件包括:During the running process of the task, a trigger event is sent to the outside according to the node, branch or process of the task. The trigger event carries the number, form data and context data of the task, and is compared with the trigger event in the database. associated with the trigger number to trigger the execution of the trigger; wherein the trigger event includes:

创建流程:当用户创建流程时触发器触发;Create process: The trigger fires when the user creates a process;

结束流程,当流程执行完成、流程执行失败或主动关闭时所述触发器触发;End the process, and the trigger is triggered when the process execution is completed, the process execution fails, or the process is actively closed;

撤销流程,当用户撤销流程时所述触发器触发;To cancel the process, the trigger is fired when the user cancels the process;

挂起流程,当用户挂起流程时所述触发器触发;Suspend the process, the trigger is fired when the user suspends the process;

恢复流程,当用户将挂起的流程恢复时所述触发器触发。Resume process, the trigger fires when the user resumes the suspended process.

在一些可能的实施方式中,所述条件规则引擎模块选择的触发条件具体包括:表单字段判断,全局上下文判断、任务执行结果判断、多条件或和多条件与中的任意一个或多个;其中,In some possible implementations, the trigger conditions selected by the conditional rule engine module specifically include: form field judgment, global context judgment, task execution result judgment, any one or more of multi-condition OR and multi-condition AND; wherein ,

表单字段判断是指任务执行的配置参数,当节点输入数据满足所述配置参数时触发器执行;Form field judgment refers to the configuration parameters of task execution. When the node input data meets the configuration parameters, the trigger is executed;

全局上下文判断是指配置执行字段的上下文内容,当流程的配置执行字段的满足所述上下文内容时触发器执行;Global context judgment refers to the context content of the configuration execution field. When the configuration execution field of the process meets the context content, the trigger is executed;

任务执行结果判断是指任务执行的返回值,当节点任务执行的返回结果满足所述返回值时触发器执行;Task execution result judgment refers to the return value of task execution. When the return result of node task execution meets the return value, the trigger is executed;

多条件或是指配置条件规则引擎中的多种判断条件,多种判断条件之间以或的形式判断是否满足触发条件;多条件与是指配置条件规则引擎中的多种判断条件,多种判断条件之间以与的形式判断是否满足触发条件。Multi-condition or refers to the multiple judgment conditions in the configuration condition rule engine, and multiple judgment conditions are judged in the form of OR to determine whether the trigger condition is met; multi-condition and refers to the multiple judgment conditions in the configuration condition rule engine, multiple The judgment conditions are determined in the form of AND to determine whether the trigger conditions are met.

第三方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现所述的任意一种流程引擎触发器任务编排的方法。In a third aspect, embodiments of the present invention provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for arranging any process engine trigger task is implemented.

第四方面,本发明实施例提供了一种电子设备,其包括:In a fourth aspect, embodiments of the present invention provide an electronic device, which includes:

处理器;processor;

用于存储所述处理器可执行指令的存储器;memory for storing instructions executable by the processor;

其中,所述处理器被配置为执行所述指令,以实现所述的任意一种流程引擎触发器任务编排的方法。Wherein, the processor is configured to execute the instruction to implement any of the process engine trigger task arrangement methods.

上述技术方案具有如下有益效果:The above technical solution has the following beneficial effects:

本发明提供一种流程引擎触发器任务编排的方法、装置、介质和设备,该任务编排方法包括:根据任务的事件类型通过前端可视化界面订阅触发器事件,其中,事件类型包括节点事件、分支事件和流程事件;根据触发器事件选择所述触发器的触发条件;根据触发事件按照触发条件触发调度触发器执行任务。本发明实施例中,引入流程事件、分支事件和节点事件等不同类型的事件定义,使触发器可以根据需要订阅多种事件,同时每种触发事件可以单独配置触发条件,解决了现有技术中流程和分支条件的事件订阅管理支持不足,对多个条件和动作的组合编排能力不足的技术问题。The invention provides a method, device, medium and equipment for process engine trigger task arrangement. The task arrangement method includes: subscribing to trigger events through a front-end visual interface according to the event type of the task, where the event types include node events and branch events. and process events; select the triggering condition of the trigger according to the trigger event; trigger the scheduling trigger to execute the task according to the triggering condition according to the triggering event. In the embodiment of the present invention, different types of event definitions such as process events, branch events, and node events are introduced, so that triggers can subscribe to multiple events as needed. At the same time, each trigger event can be configured with trigger conditions independently, solving the problems in the existing technology. Technical issues include insufficient event subscription management support for processes and branch conditions, and insufficient orchestration capabilities for the combination of multiple conditions and actions.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. It is obvious that the drawings in the following description are only For some embodiments of the present invention, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.

图1是本发明实施例的一种流程引擎触发器任务编排的方法的流程图;Figure 1 is a flow chart of a method for arranging process engine trigger tasks according to an embodiment of the present invention;

图2是本发明实施例的一种流程引擎触发器任务编排的架构图;Figure 2 is an architectural diagram of a process engine trigger task arrangement according to an embodiment of the present invention;

图3是本发明实施例的配置节点触发器的流转图;Figure 3 is a flow diagram of configuring node triggers according to an embodiment of the present invention;

图4是本发明实施例的配置分支触发器的流转图;Figure 4 is a flow diagram of configuring branch flip-flops according to an embodiment of the present invention;

图5是本发明实施例的配置流程触发器的流转图Figure 5 is a flow diagram of configuring process triggers according to the embodiment of the present invention.

图6是本发明实施例的一种流程引擎触发器任务编排的装置的结构框图;Figure 6 is a structural block diagram of a device for arranging process engine trigger tasks according to an embodiment of the present invention;

图7是本发明实施例的另一种流程引擎触发器任务编排的装置的结构框图;Figure 7 is a structural block diagram of another device for process engine trigger task arrangement according to an embodiment of the present invention;

图8是本发明实施例的一种计算机可读存储介质的功能框图;Figure 8 is a functional block diagram of a computer-readable storage medium according to an embodiment of the present invention;

图9是本发明实施例的一种电子设备的功能框图。Figure 9 is a functional block diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

实施例一Embodiment 1

图1是本发明实施例的一种流程引擎触发器任务编排的方法的流程图,如图1所示,该任务编排方法包括如下步骤:Figure 1 is a flow chart of a method for arranging process engine trigger tasks according to an embodiment of the present invention. As shown in Figure 1, the task arranging method includes the following steps:

步骤S11,根据任务的事件类型通过前端可视化界面订阅触发器的触发事件,其中,事件类型包括节点事件、分支事件和流程事件。Step S11, subscribe to the triggering event of the trigger through the front-end visual interface according to the event type of the task, where the event type includes node events, branch events and process events.

步骤S12,根据触发事件选择触发器的触发条件。Step S12: Select the triggering condition of the trigger according to the triggering event.

步骤S13,根据触发事件按照触发条件触发调度触发器执行任务。Step S13: Trigger the scheduling trigger to execute the task according to the triggering condition according to the triggering event.

图2是本发明实施例的一种流程引擎触发器任务编排的架构图,如图2所示,在本实施例中,该任务编排包括如下步骤:Figure 2 is an architectural diagram of a process engine trigger task arrangement according to an embodiment of the present invention. As shown in Figure 2, in this embodiment, the task arrangement includes the following steps:

S1,触发器配置:流程配置人员预先进行触发器配置,按照事件类型选择配置的触发器,节点事件配置节点触发器,分支事件配置分支触发器,流程事件配置流程触发器;S1, trigger configuration: The process configurer configures the trigger in advance and selects the configured trigger according to the event type. Node events configure node triggers, branch events configure branch triggers, and process events configure process triggers;

S2,触发条件配置:每一个触发器都有对应的触发条件,可通过条件规则引擎进行触发条件配置,例如,表单字段判断,全局上下文判断、任务执行结果判断、多条件或和多条件与。S2, trigger condition configuration: Each trigger has a corresponding trigger condition, which can be configured through the condition rule engine, such as form field judgment, global context judgment, task execution result judgment, multi-condition OR and multi-condition AND.

S3,执行任务调度:当外部发起流程时,可以通过事件调度器判断任务的事件类型,任务调度引擎按照事件类型调度已配置的触发器按照触发条件执行任务。S3, execution of task scheduling: When the process is initiated externally, the event type of the task can be determined through the event scheduler. The task scheduling engine schedules the configured trigger according to the event type to execute the task according to the triggering conditions.

本实施例中,每个任务会配置多个节点,每个节点根据处理特定任务包装为不同的事件类型,其中,节点与节点之间会有连线,每个连线会关联分支条件,流程事件会将触发器关联到节点、流程本身以及分支上来触发,在任务运行过程中会按照这样的定义顺序来执行。In this embodiment, each task will be configured with multiple nodes, and each node will be packaged into different event types according to processing specific tasks. Among them, there will be connections between nodes, and each connection will be associated with branch conditions and processes. The event will associate the trigger to the node, the process itself and the branch to trigger. During the task running process, it will be executed in such a defined order.

图3是本发明实施例的配置节点触发器的流转图,如图2和图3所示,本实施例中,节点事件可以配置节点触发器,通过配置流程,选择流程节点,然后配置节点触发器,即配置在流程节点中的触发器,流程流转至相应的流程节点时才会触发。一个流程节点可以配置多个触发事件,每个触发器事件可以根据自身所配置的触发条件独立执行,具体的,触发事件可以但不限于如下所述:Figure 3 is a flow diagram for configuring node triggers in an embodiment of the present invention, as shown in Figures 2 and 3. In this embodiment, node events can be configured with node triggers. By configuring the process, select the process node, and then configure the node trigger. trigger, that is, a trigger configured in a process node, which will be triggered only when the process flows to the corresponding process node. A process node can be configured with multiple trigger events, and each trigger event can be executed independently according to its own configured trigger conditions. Specifically, the trigger events can be but are not limited to the following:

触发事件为进入节点:流程流转至节点事件中对应的节点时该节点的触发器触发;The trigger event is the entry node: when the process flows to the corresponding node in the node event, the trigger of the node is triggered;

触发事件为离开节点:流程流转至节点事件中对应的节点并通过该节点任务执行成功,离开当前节点并将要流转至下一节点时触发器触发;The trigger event is leaving the node: the process flows to the corresponding node in the node event and the task is successfully executed through the node. The trigger is triggered when leaving the current node and going to the next node;

触发事件为分派节点:流程流转至节点事件中对应的节点且该节点的“派单人”完成分派节点这一动作时触发器触发。The trigger event is the dispatch node: the process flows to the corresponding node in the node event and the trigger is triggered when the "dispatch person" of the node completes the action of dispatching the node.

图4是本发明实施例的配置分支触发器的流转图,如图2和图4所示,分支事件可以配置分支触发器,通过配置流程,选择流程分支,然后配置分支触发器,即配置在流程线路中的触发事件,例如,触发事件为进入分支,流程流转至相应流程分支时才会触发。Figure 4 is a flow diagram for configuring branch triggers in an embodiment of the present invention. As shown in Figures 2 and 4, branch events can be configured with branch triggers. By configuring the process, select the process branch, and then configure the branch trigger, that is, configure it in The triggering event in the process line, for example, the triggering event is entering a branch, and the process will only be triggered when the process flows to the corresponding process branch.

图5是本发明实施例的配置流程触发器的流转图,如图2和图5所示,流程事件可以配置流程触发器,通过配置流程,配置流程触发器,即配置在流程中的触发器,流程执行某项操作时才会触发。Figure 5 is a flow diagram for configuring process triggers in an embodiment of the present invention. As shown in Figures 2 and 5, process events can configure process triggers. By configuring the process, the process triggers are configured, that is, the triggers configured in the process. , it will be triggered when the process performs a certain operation.

在流程事件中可以配置多个触发事件,每个触发器可根据自身所配置的触发条件独立执行,触发事件可以但不限于如下所述:Multiple trigger events can be configured in process events, and each trigger can be executed independently according to its own configured trigger conditions. The trigger events can be but are not limited to the following:

触发事件为创建流程:当用户创建流程时触发器触发;The triggering event is process creation: the trigger fires when the user creates a process;

触发事件为结束流程:当流程执行完成、流程执行失败或主动关闭时触发器触发;The trigger event is to end the process: the trigger is triggered when the process execution is completed, the process execution fails, or the process is actively closed;

触发事件为撤销流程:当用户撤销流程时触发器触发;The triggering event is the cancellation process: the trigger fires when the user cancels the process;

触发事件为挂起流程:当用户挂起流程时触发器触发;The trigger event is a suspended process: the trigger fires when the user suspends the process;

触发事件为恢复流程:当用户将挂起的流程恢复时触发器触发。The trigger event is the resumption process: the trigger fires when the user resumes the suspended process.

本实施例中,在触发器事件订阅管理的过程中引入流程事件、分支事件和节点事件等不同类型的事件定义,使触发器可以根据需要订阅多种事件。In this embodiment, different types of event definitions such as process events, branch events, and node events are introduced in the process of trigger event subscription management, so that triggers can subscribe to multiple events as needed.

本实施例中,在步骤S11订阅触发器的触发事件以后,在步骤S12中,会通过条件规则引擎对触发器的触发条件进行管理,简称条件管理,条件管理具体指以规则判断、上下文参数作为条件配置,配置完成后会将条件配置转化一个字符串表达式持久化到数据库中,当流程运行到指定节点会发出一个事件,此时,根据当前节点的数据,流程的上下文参数等做一个规则判断后才执行具体的动作。In this embodiment, after subscribing to the triggering event of the trigger in step S11, in step S12, the triggering conditions of the trigger are managed through the conditional rule engine, which is referred to as conditional management. Conditional management specifically refers to using rule judgment and context parameters as Conditional configuration. After the configuration is completed, the conditional configuration will be converted into a string expression and persisted in the database. When the process runs to the specified node, an event will be emitted. At this time, a rule will be made based on the data of the current node, the context parameters of the process, etc. Only take specific actions after making judgment.

条件规则引擎主要用于配置触发条件、触发条件的参数解析和触发条件规则的执行,通过条件规则引擎可以设置条件组实现多个条件的或和与的判断,每个条件关联多个条件表达式以及对触发条件分类,可实现复杂条件下的动态触发机制。本实施例中,触发条件可以包括:表单字段判断,全局上下文判断、任务执行结果判断、多条件或和多条件与中的任意一个或多个,具体的:The conditional rule engine is mainly used to configure trigger conditions, parameter parsing of trigger conditions and execution of trigger condition rules. Through the conditional rule engine, condition groups can be set to realize the OR and AND judgment of multiple conditions. Each condition is associated with multiple conditional expressions. As well as classifying trigger conditions, dynamic trigger mechanisms can be realized under complex conditions. In this embodiment, the triggering conditions may include: form field judgment, global context judgment, task execution result judgment, any one or more of multiple conditions or and multiple conditions and, specifically:

表单字段判断是指任务执行的配置参数,当节点输入数据满足配置参数时触发器执行;Form field judgment refers to the configuration parameters of task execution. When the node input data meets the configuration parameters, the trigger is executed;

全局上下文判断是指配置执行字段的上下文内容,当流程的配置执行字段的满足上下文内容时触发器执行;Global context judgment refers to the context content of the configuration execution field. When the configuration execution field of the process meets the context content, the trigger is executed;

任务执行结果判断是指任务执行的返回值,当节点任务执行的返回结果满足返回值时触发器执行;Task execution result judgment refers to the return value of task execution. When the return result of node task execution meets the return value, the trigger is executed;

多条件或是指配置条件规则引擎中的多种判断条件,多种判断条件之间以或的形式判断是否满足触发条件;触发条件为多条件与:配置条件规则引擎中的多种判断条件,多种判断条件之间以与的形式判断是否满足触发条件,即满足所有条件时触发器执行。Multi-condition or refers to multiple judgment conditions in the configuration condition rule engine. Multiple judgment conditions are judged in the form of OR to determine whether the trigger condition is met; the trigger condition is multi-condition AND: multiple judgment conditions in the configuration condition rule engine. Multiple judgment conditions are used in the form of AND to determine whether the trigger conditions are met, that is, the trigger is executed when all conditions are met.

本实施例中,根据不同的触发条件执行不同的条件表达式和完成参数解析,每个触发条件规则对应一个条件表达式,按照条件计算表达式遍历所有的触发条件,当条件计算表达式返回true表示规则命中,即触发触发器执行,返回false表示规则失败,此时不触发触发器,条件计算表达式可以包括:包含、等于、等于(忽略大小写)、正则匹配、不包含、不为空、以设定值开始、以设定值结束、不等于、不在值之内等。In this embodiment, different conditional expressions are executed and parameter parsing is completed according to different triggering conditions. Each triggering condition rule corresponds to a conditional expression. All triggering conditions are traversed according to the conditional calculation expression. When the conditional calculation expression returns true Indicates that the rule hits, that is, triggers the execution of the trigger. Returning false indicates that the rule fails and the trigger is not triggered at this time. The condition calculation expression can include: contains, equals, equals (ignoring case), regular matching, does not contain, and is not empty. , starts with the set value, ends with the set value, is not equal to, is not within the value, etc.

本实施例中,采用基于多条件组合和并发的任务调度策略,允许用户自定义任务触发的条件和执行顺序,支持多种的条件且和或,支持多种任务的串行和并行执行。In this embodiment, a task scheduling strategy based on multi-condition combination and concurrency is adopted, allowing users to customize task triggering conditions and execution order, supporting multiple conditions and and or, and supporting serial and parallel execution of multiple tasks.

另外,在步骤S13中,当用户发起任务时,可以通过事件调度器判断该任务的类型,例如该任务是节点事件、分支事件还是流程事件,然后,任务调度引擎会根据事件类型执行任务调度。参阅图2中S3所示,执行任务调度主要包括:In addition, in step S13, when the user initiates a task, the event scheduler can be used to determine the type of the task, for example, whether the task is a node event, a branch event, or a process event. Then, the task scheduling engine will perform task scheduling according to the event type. Referring to S3 in Figure 2, execution task scheduling mainly includes:

任务解析:也可以称为参数解析,参数解析包括任务请求参数解析和任务上下文参数解析,任务请求参数解析是指根据任务定义中的参数,通过匹配流程表单数据中,解析其中任务名称和任务编号,填充到任务的请求参数中;任务上下文参数解析是指将任务上下参数注入流程上下文数据,比如流程包含的节点名称,流程的编号,流程的信息、当前操作人以及流程全局变量信息等。Task parsing: It can also be called parameter parsing. Parameter parsing includes task request parameter parsing and task context parameter parsing. Task request parameter parsing refers to parsing the task name and task number by matching the process form data based on the parameters in the task definition. , filled into the request parameters of the task; task context parameter parsing refers to injecting the upper and lower parameters of the task into the process context data, such as the node name contained in the process, the number of the process, the information of the process, the current operator and the process global variable information, etc.

资源分配:本实施例中,根据任务的优先级调度到不同的工作节点,以满足任务的隔离控制,有些任务需要快速响应,有些任务需要长时间执行,为了满足高优先级的任务快速执行,不产生积压,设计了任务优先级调度算法。例如,可以通过设计两个消息队列(例如,task_high_priority和task_default_priority)来接收任务消息并执行任务;Resource allocation: In this embodiment, different working nodes are scheduled according to the priority of tasks to meet the isolation control of tasks. Some tasks require quick response, and some tasks require long execution. In order to meet the rapid execution of high-priority tasks, To avoid backlog, a task priority scheduling algorithm is designed. For example, you can design two message queues (for example, task_high_priority and task_default_priority) to receive task messages and execute tasks;

同步执行和异步执行:本实施例采用基于多条件组合和并发的任务调度策略,允许用户自定义任务触发的条件和执行顺序,支持多种的条件且和或,支持多种任务的同步执行(并行执行)和异步执行(串行执行);Synchronous execution and asynchronous execution: This embodiment adopts a task scheduling strategy based on multi-condition combination and concurrency, allowing users to customize the conditions and execution order of task triggers, supporting multiple conditions and and or, and supporting the synchronous execution of multiple tasks ( Parallel execution) and asynchronous execution (serial execution);

任务轮询和失败补偿:本实施例中,可以将执行结果关联流程节点,提供任务同步和异步执行能力,捕获任务异常,通过轮询配置完成任务的重试,记录任务失败的结果,系统管理员可以查询失败记录进行手动执,完成任务补偿。Task polling and failure compensation: In this embodiment, execution results can be associated with process nodes, providing task synchronous and asynchronous execution capabilities, capturing task exceptions, completing task retries through polling configuration, recording task failure results, and system management Operators can query failure records for manual execution and complete task compensation.

本发明实施例允许在任务执行过程中根据特定条件循环执行任务,实现更复杂的流程控制。同时,为触发器引入上下文管理机制,使任务执行结果能够方便地与后续任务的条件关联,实现更精确的触发条件。The embodiment of the present invention allows tasks to be executed cyclically according to specific conditions during task execution to achieve more complex process control. At the same time, a context management mechanism is introduced for triggers so that task execution results can be easily associated with the conditions of subsequent tasks to achieve more precise trigger conditions.

例如,在某工业物联网温度控制场景,配置了一个温度传感器的任务流水线,主要包含传感器参数解析、预处理和数据存储三个节点。在配置流程过程中配置了一个流程触发器,该流程触发器根据传感器温度、季节、设备阈值等多个条件触发任务,每个动作可以独立关联条件,该任务主要包含3个动作:1、发送通知到指定人员;2、执行某设备的控制命令降低负载;3、向生产线发送告警通知。其中流程的定义是线程(Pipeline),定义了3个节点(node)(包括参数解析、预处理、数据存储),每个线程包含一个触发器(TriggerPublisher),可以通过配置一个触发器配置(TriggeConfig)关联线程,并且持久化存储到数据库中,外部有一个任务调度和执行模块,主要包含任务的注册、任务的调度和执行,其中发送通知、执行IOT命令(物联网设备控制命令)、向外部发送API(ApplicationProgram Interface,应用程序接口)请求都是一个任务。For example, in an industrial Internet of Things temperature control scenario, a temperature sensor task pipeline is configured, which mainly includes three nodes: sensor parameter analysis, preprocessing, and data storage. A process trigger is configured during the configuration process. The process trigger triggers tasks based on multiple conditions such as sensor temperature, season, device threshold, etc. Each action can be independently associated with conditions. The task mainly contains 3 actions: 1. Send Notify the designated personnel; 2. Execute the control command of a certain device to reduce the load; 3. Send an alarm notification to the production line. The definition of the process is a thread (Pipeline), which defines three nodes (including parameter parsing, preprocessing, and data storage). Each thread contains a trigger (TriggerPublisher), which can be configured by configuring a trigger configuration (TriggeConfig ) is associated with the thread and is persistently stored in the database. There is an external task scheduling and execution module, which mainly includes task registration, task scheduling and execution, including sending notifications, executing IOT commands (Internet of Things device control commands), and sending external Sending API (ApplicationProgram Interface, application program interface) requests is a task.

在一些实施例中,该任务编排方法还包括:将触发器的编号与任务的编号进行关联并持久化到数据库中。本发明实施例中,可以在界面选择事件类型和触发条件,进而选择是否要触发执行,配置完成后,将触发器的编号和流程的编号进行关联并持久化到数据库中。In some embodiments, the task arrangement method further includes: associating the number of the trigger with the number of the task and persisting them in the database. In the embodiment of the present invention, the event type and trigger condition can be selected on the interface, and then whether to trigger execution. After the configuration is completed, the trigger number and the process number are associated and persisted in the database.

另外,本实施例中,订阅触发器的触发事件包括:在任务运行过程中,根据任务的节点、分支或者流程,向外部发送触发事件,触发事件携带任务的编号、表单数据和上下文数据,通过与数据库中的触发器的编号进行关联,触发触发器的执行。流水线运行过程中,会根据流水线运行到某个节点、分支以及运行完结,向外部发送事件,该事件携带流程编号、流程的表单数据和流程的上下文数据,通过与数据库中的触发器编号进行关联,最终触发触发器的执行。In addition, in this embodiment, the trigger event of the subscription trigger includes: during the task running process, the trigger event is sent to the outside according to the node, branch or process of the task. The trigger event carries the task number, form data and context data, and is passed through It is associated with the trigger number in the database to trigger the execution of the trigger. During the running of the pipeline, an event will be sent to the outside based on the pipeline running to a certain node, branch and completion of the operation. The event carries the process number, the form data of the process and the context data of the process, and is associated with the trigger number in the database. , which ultimately triggers the execution of the trigger.

图6是本发明实施例的一种流程引擎触发器任务编排的装置的结构框图,如图6所示,该装置100包括:Figure 6 is a structural block diagram of a device for arranging process engine trigger tasks according to an embodiment of the present invention. As shown in Figure 6, the device 100 includes:

触发器配置模块110,用于根据任务的事件类型通过前端可视化界面订阅触发器事件,其中,事件类型包括节点事件、分支事件和流程事件;The trigger configuration module 110 is used to subscribe to trigger events through the front-end visual interface according to the event type of the task, where the event types include node events, branch events and process events;

具体的,在本实施例中,每个任务会配置多个节点,每个节点根据处理特定任务包装为不同的事件类型,其中,节点与节点之间会有连线,每个连线会关联分支条件,触发器会关联到节点、流程本身以及分支上来触发,在任务运行过程中会按照这样的定义顺序来执行。Specifically, in this embodiment, each task will be configured with multiple nodes, and each node will be packaged into different event types according to processing specific tasks. Among them, there will be connections between nodes, and each connection will be associated with Branch conditions, triggers will be associated with the node, process itself and branches to trigger, and will be executed in this defined order during task running.

每个任务会配置多个节点,每个节点根据处理特定任务包装为不同的事件类型,其中,节点与节点之间会有连线,每个连线会关联分支条件,流程事件会将触发器关联到节点、流程本身以及分支上来触发,在任务运行过程中会按照这样的定义顺序来执行。Each task will be configured with multiple nodes, and each node will be packaged into different event types according to the processing of specific tasks. Among them, there will be connections between nodes, each connection will be associated with branch conditions, and process events will trigger It is triggered by being associated with the node, the process itself and the branch. During the task running process, it will be executed in such a defined order.

具体的,本实施例中,节点事件可以配置节点触发器,触发器配置模块110通过配置流程,选择流程节点,然后配置节点触发器,即配置在流程节点中的触发器,流程流转至相应的流程节点时才会触发。一个流程节点可以配置多个触发事件,每个触发器事件可以根据自身所配置的触发条件独立执行,具体的,触发事件可以但不限于如下所述:Specifically, in this embodiment, the node event can be configured with a node trigger. The trigger configuration module 110 selects the process node through the configuration process, and then configures the node trigger, that is, the trigger configured in the process node, and the process flows to the corresponding It will only be triggered when the process node is reached. A process node can be configured with multiple trigger events, and each trigger event can be executed independently according to its own configured trigger conditions. Specifically, the trigger events can be but are not limited to the following:

触发事件为进入节点:流程流转至节点事件中对应的节点时该节点的触发器触发;The trigger event is the entry node: when the process flows to the corresponding node in the node event, the trigger of the node is triggered;

触发事件为离开节点:流程流转至节点事件中对应的节点并通过该节点任务执行成功,离开当前节点并将要流转至下一节点时触发器触发;The trigger event is leaving the node: the process flows to the corresponding node in the node event and the task is successfully executed through the node. The trigger is triggered when leaving the current node and going to the next node;

触发事件为分派节点:流程流转至节点事件中对应的节点且该节点的“派单人”完成分派节点这一动作时触发器触发。The trigger event is the dispatch node: the process flows to the corresponding node in the node event and the trigger is triggered when the "dispatch person" of the node completes the action of dispatching the node.

分支事件可以配置分支触发器,触发器配置模块110通过配置流程,选择流程分支,然后配置分支触发器,即配置在流程线路中的触发事件,例如,触发事件为进入分支,流程流转至相应流程分支时才会触发。The branch event can be configured with a branch trigger. The trigger configuration module 110 selects the process branch by configuring the process, and then configures the branch trigger, that is, the trigger event configured in the process line. For example, the trigger event is to enter a branch, and the process flows to the corresponding process. It will only be triggered when branching.

流程事件可以配置流程触发器,触发器配置模块110通过配置流程,然后配置流程触发器,即配置在流程中的触发器,流程执行某项操作时才会触发。Process events can configure process triggers. The trigger configuration module 110 configures the process and then configures the process trigger, that is, the trigger configured in the process will be triggered when the process performs a certain operation.

在流程事件中可以配置多个触发事件,每个触发器可根据自身所配置的触发条件独立执行,触发事件可以但不限于如下所述:Multiple trigger events can be configured in process events, and each trigger can be executed independently according to its own configured trigger conditions. The trigger events can be but are not limited to the following:

触发事件为创建流程:用户创建流程时触发器触发;The triggering event is process creation: the trigger fires when the user creates a process;

触发事件为结束流程:当流程执行完成、流程执行失败或主动关闭时触发器触发;The trigger event is to end the process: the trigger is triggered when the process execution is completed, the process execution fails, or the process is actively closed;

触发事件为撤销流程:当用户撤销流程时触发器触发;The triggering event is the cancellation process: the trigger fires when the user cancels the process;

触发事件为挂起流程:当用户挂起流程时触发器触发;The trigger event is a suspended process: the trigger fires when the user suspends the process;

触发事件为恢复流程:当用户将挂起的流程恢复时触发器触发。The trigger event is the resumption process: the trigger fires when the user resumes the suspended process.

本实施例中,在触发器事件订阅管理的过程中引入流程事件、分支事件和节点事件等不同类型的事件定义,使触发器可以根据需要订阅多种事件。In this embodiment, different types of event definitions such as process events, branch events, and node events are introduced in the process of trigger event subscription management, so that triggers can subscribe to multiple events as needed.

条件规则引擎模块120,用于根据触发器事件选择触发器的触发条件。The conditional rule engine module 120 is used to select the triggering condition of the trigger according to the trigger event.

本实施例中,在触发器配置模块110订阅触发器的触发事件以后,条件规则引擎模块120会通过条件规则引擎对触发器的触发条件进行管理,简称条件管理,条件管理具体指以规则判断、上下文参数作为条件配置,配置完成后会将条件配置转化一个字符串表达式持久化到数据库中,当流程运行到指定节点时会发出一个事件,此时,根据当前节点的数据,流程的上下文参数等做一个规则判断后才执行具体的动作。In this embodiment, after the trigger configuration module 110 subscribes to the triggering event of the trigger, the conditional rule engine module 120 will manage the triggering conditions of the trigger through the conditional rule engine, which is referred to as conditional management. Conditional management specifically refers to judging by rules, Context parameters are used as conditional configurations. After the configuration is completed, the conditional configuration will be converted into a string expression and persisted in the database. When the process runs to the specified node, an event will be emitted. At this time, according to the data of the current node, the context parameters of the process Wait for a rule judgment to be made before taking specific actions.

条件规则引擎模块120主要用于配置触发条件、触发条件的参数解析和触发条件规则的执行,通过条件规则引擎可以设置条件组实现多个条件的或和与的判断,每个条件关联多个条件表达式以及对触发条件分类,可实现复杂条件下的动态触发机制。本实施例中,触发条件可以包括:表单字段判断,全局上下文判断、任务执行结果判断、多条件或和多条件与中的任意一个或多个,具体的:The conditional rule engine module 120 is mainly used to configure trigger conditions, parameter analysis of trigger conditions and execution of trigger condition rules. Through the conditional rule engine, condition groups can be set to realize the OR and AND judgment of multiple conditions. Each condition is associated with multiple conditions. Expressions and classification of trigger conditions can realize dynamic trigger mechanisms under complex conditions. In this embodiment, the triggering conditions may include: form field judgment, global context judgment, task execution result judgment, any one or more of multiple conditions or and multiple conditions and, specifically:

表单字段判断是指任务执行的配置参数,当节点输入数据满足配置参数时触发器执行;Form field judgment refers to the configuration parameters of task execution. When the node input data meets the configuration parameters, the trigger is executed;

全局上下文判断是指配置执行字段的上下文内容,当流程的配置执行字段的满足上下文内容时触发器执行;Global context judgment refers to the context content of the configuration execution field. When the configuration execution field of the process meets the context content, the trigger is executed;

任务执行结果判断是指任务执行的返回值,当节点任务执行的返回结果满足返回值时触发器执行;Task execution result judgment refers to the return value of task execution. When the return result of node task execution meets the return value, the trigger is executed;

多条件或是指配置条件规则引擎中的多种判断条件,多种判断条件之间以或的形式判断是否满足触发条件;触发条件为多条件与:配置条件规则引擎中的多种判断条件,多种判断条件之间以与的形式判断是否满足触发条件,即满足所有条件时触发器执行。Multi-condition or refers to multiple judgment conditions in the configuration condition rule engine. Multiple judgment conditions are judged in the form of OR to determine whether the trigger condition is met; the trigger condition is multi-condition AND: multiple judgment conditions in the configuration condition rule engine. Multiple judgment conditions are used in the form of AND to determine whether the trigger conditions are met, that is, the trigger is executed when all conditions are met.

本实施例中,根据不同的触发条件执行不同的条件表达式和完成参数解析,每个触发条件规则对应一个条件表达式,按照条件计算表达式遍历所有的触发条件,当条件计算表达式返回true表示规则命中,即触发触发器执行,返回false表示规则失败,此时不触发触发器,条件计算表达式可以包括:包含、等于、等于(忽略大小写)、正则匹配、不包含、不为空、以设定值开始、以设定值结束、不等于、不在值之内等。In this embodiment, different conditional expressions are executed and parameter parsing is completed according to different triggering conditions. Each triggering condition rule corresponds to a conditional expression. All triggering conditions are traversed according to the conditional calculation expression. When the conditional calculation expression returns true Indicates that the rule hits, that is, triggers the execution of the trigger. Returning false indicates that the rule fails and the trigger is not triggered at this time. The condition calculation expression can include: contains, equals, equals (ignoring case), regular matching, does not contain, and is not empty. , starts with the set value, ends with the set value, is not equal to, is not within the value, etc.

本实施例中,条件规则引擎模块120根据不同的触发条件执行不同的条件表达式和完成参数解析,每个触发条件规则对应一个条件表达式,按照条件计算表达式遍历所有的触发条件,当条件计算表达式返回true表示规则命中,即触发触发器执行,返回false表示规则失败,此时不触发触发器,条件计算表达式可以包括:包含、等于、等于(忽略大小写)、正则匹配、不包含、不为空、以设定值开始、以设定值结束、不等于、不在值之内等。In this embodiment, the conditional rule engine module 120 executes different conditional expressions and completes parameter analysis according to different triggering conditions. Each triggering condition rule corresponds to a conditional expression, and all triggering conditions are traversed according to the conditional calculation expression. When the condition If the calculation expression returns true, it means that the rule is hit, that is, triggering the execution of the trigger. If it returns false, it means that the rule fails, and the trigger is not triggered at this time. The condition calculation expression can include: contains, equal to, equal to (ignoring case), regular matching, not Contains, is not empty, starts with the set value, ends with the set value, is not equal to, is not within the value, etc.

本实施例中,采用基于多条件组合和并发的任务调度策略,允许用户自定义任务触发的条件和执行顺序,支持多种的条件且和或,支持多种任务的串行和并行执行。In this embodiment, a task scheduling strategy based on multi-condition combination and concurrency is adopted, allowing users to customize task triggering conditions and execution order, supporting multiple conditions and and or, and supporting serial and parallel execution of multiple tasks.

任务调度引擎模块130,用于根据触发事件按照所述触发条件触发调度触发器执行任务。The task scheduling engine module 130 is configured to trigger a scheduling trigger to execute a task according to the trigger condition according to the trigger event.

具体的,当用户发起任务时,任务调度引擎模块130可以通过事件调度器判断该任务的类型,例如该任务是节点事件、分支事件还是流程事件,然后,任务调度引擎会根据事件类型执行该任务。参阅图2中步骤S3所示,执行任务主要包括:Specifically, when the user initiates a task, the task scheduling engine module 130 can determine the type of the task through the event scheduler, for example, whether the task is a node event, a branch event, or a process event. Then, the task scheduling engine will execute the task according to the event type. . Referring to step S3 in Figure 2, the execution tasks mainly include:

任务解析:也可以称为参数解析,参数解析包括任务请求参数解析和任务上下文参数解析,任务请求参数解析是指根据任务定义中的参数,通过匹配流程表单数据中,解析其中任务名称和任务编号,填充到任务的请求参数中;任务上下文参数解析是指将任务上下参数注入流程上下文数据,比如流程包含的节点名称,流程的编号,流程的信息、当前操作人以及流程全局变量信息等。Task parsing: It can also be called parameter parsing. Parameter parsing includes task request parameter parsing and task context parameter parsing. Task request parameter parsing refers to parsing the task name and task number by matching the process form data based on the parameters in the task definition. , filled into the request parameters of the task; task context parameter parsing refers to injecting the upper and lower parameters of the task into the process context data, such as the node name contained in the process, the number of the process, the information of the process, the current operator and the process global variable information, etc.

资源分配:本实施例中,根据任务的优先级调度到不同的工作节点,以满足任务的隔离控制,有些任务需要快速响应,有些任务需要长时间执行,为了满足高优先级的任务快速执行,不产生积压,设计了任务优先级调度算法。例如,可以通过设计两个消息队列(例如,task_high_priority和task_default_priority)来接收任务消息并执行任务;Resource allocation: In this embodiment, different working nodes are scheduled according to the priority of tasks to meet the isolation control of tasks. Some tasks require quick response, and some tasks require long execution. In order to meet the rapid execution of high-priority tasks, To avoid backlog, a task priority scheduling algorithm is designed. For example, you can design two message queues (for example, task_high_priority and task_default_priority) to receive task messages and execute tasks;

同步执行和异步执行:本实施例采用基于多条件组合和并发的任务调度策略,允许用户自定义任务触发的条件和执行顺序,支持多种的条件且和或,支持多种任务的同步执行(并行执行)和异步执行(串行执行);Synchronous execution and asynchronous execution: This embodiment adopts a task scheduling strategy based on multi-condition combination and concurrency, allowing users to customize the conditions and execution order of task triggers, supporting multiple conditions and and or, and supporting the synchronous execution of multiple tasks ( Parallel execution) and asynchronous execution (serial execution);

任务轮询和失败补偿:本实施例中,可以将执行结果关联流程节点,提供任务同步和异步执行能力,捕获任务异常,通过轮询配置完成任务的重试,记录任务失败的结果,系统管理员可以查询失败记录进行手动执,完成任务补偿。Task polling and failure compensation: In this embodiment, execution results can be associated with process nodes, providing task synchronous and asynchronous execution capabilities, capturing task exceptions, completing task retries through polling configuration, recording task failure results, and system management Operators can query failure records for manual execution and complete task compensation.

本发明实施例允许在任务执行过程中根据特定条件循环执行任务,实现更复杂的流程控制。同时,为触发器引入上下文管理机制,使任务执行结果能够方便地与后续任务的条件关联,实现更精确的触发条件。The embodiment of the present invention allows tasks to be executed cyclically according to specific conditions during task execution to achieve more complex process control. At the same time, a context management mechanism is introduced for triggers so that task execution results can be easily associated with the conditions of subsequent tasks to achieve more precise trigger conditions.

图7是本发明实施例的另一种流程引擎触发器任务编排的装置的结构框图,如图7所示,在一些实施例中,该任务编排装置100’还包括:Figure 7 is a structural block diagram of another device for process engine trigger task arrangement according to an embodiment of the present invention. As shown in Figure 7, in some embodiments, the task arrangement device 100' also includes:

关联模块140,用于将触发器的编号与任务的编号进行关联并持久化到数据库中。本发明实施例中,可以在界面选择事件类型和触发条件,进而选择是否要触发执行,配置完成后,将触发器的编号和流程的编号进行关联并持久化到数据库中。The association module 140 is used to associate the trigger number with the task number and persist them in the database. In the embodiment of the present invention, the event type and trigger condition can be selected on the interface, and then whether to trigger execution. After the configuration is completed, the trigger number and the process number are associated and persisted in the database.

在一些实施例中,触发器配置模块110具体用于:在任务运行过程中,根据任务的节点、分支或者流程,向外部发送触发事件,触发事件携带任务的编号、表单数据和上下文数据,通过与数据库中的触发器的编号进行关联,触发触发器的执行。流水线运行过程中,会根据流水线运行到某个节点、分支以及运行完结,向外部发送事件,该事件携带流程编号、流程的表单数据和流程的上下文数据,通过与数据库中的触发器编号进行关联,最终触发触发器的执行。In some embodiments, the trigger configuration module 110 is specifically used to: during the task running process, send trigger events to the outside according to the node, branch or process of the task. The trigger event carries the task number, form data and context data, through It is associated with the trigger number in the database to trigger the execution of the trigger. During the running of the pipeline, an event will be sent to the outside based on the pipeline running to a certain node, branch and completion of the operation. The event carries the process number, the form data of the process and the context data of the process, and is associated with the trigger number in the database. , which ultimately triggers the execution of the trigger.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of the present invention. For the specific working processes of the units and modules in the above system, please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.

实施例三Embodiment 3

图8是本发明实施例的一种计算机可读存储介质的功能框图。如图8所示,本发明实施例还提供了一种计算机可读存储介质300,计算机可读存储介质300内存储有计算机程序310,该计算机程序310被处理器执行时,实现:Figure 8 is a functional block diagram of a computer-readable storage medium according to an embodiment of the present invention. As shown in Figure 8, an embodiment of the present invention also provides a computer-readable storage medium 300. The computer-readable storage medium 300 stores a computer program 310. When the computer program 310 is executed by a processor, it implements:

根据任务的事件类型通过前端可视化界面订阅触发器的触发事件,其中,所述事件类型包括节点事件、分支事件和流程事件;Subscribe to the triggering event of the trigger through the front-end visual interface according to the event type of the task, where the event type includes node events, branch events and process events;

根据所述触发事件选择所述触发器的触发条件;Select the triggering condition of the trigger according to the triggering event;

根据所述触发事件按照所述触发条件触发调度所述触发器执行所述任务。The trigger is scheduled to execute the task according to the triggering condition and the triggering event.

所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。当然,还有其它方式的可读存储介质,例如量子存储器、石墨烯存储器等等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, which may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media, etc. Of course, there are other ways of readable storage media, such as quantum memory, graphene memory, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium Excludes electrical carrier signals and telecommunications signals.

实施例四Embodiment 4

图9是本发明实施例的一种电子设备的功能框图。本发明实施例还提供一种电子设备,请参考图9,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其它业务所需要的硬件。Figure 9 is a functional block diagram of an electronic device according to an embodiment of the present invention. An embodiment of the present invention also provides an electronic device. Please refer to FIG. 9. At the hardware level, the electronic device includes a processor and optionally an internal bus, a network interface, and a memory. The memory may include memory, such as high-speed random access memory (Random-Access Memory, RAM), or may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic equipment may also include other hardware required by the business.

处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是工业标准体系结构ISA总线、外设部件互连标准PCI总线或扩展工业标准结构EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The processor, network interface and memory can be connected to each other through an internal bus, which can be an industry standard architecture ISA bus, a peripheral component interconnection standard PCI bus or an extended industry standard architecture EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one bidirectional arrow is used in Figure 9, but it does not mean that there is only one bus or one type of bus.

存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成一种流程引擎触发器任务编排的方法。Memory, used to store programs. Specifically, a program may include program code including computer operating instructions. Memory may include internal memory and non-volatile memory and provides instructions and data to the processor. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a process engine trigger task arrangement method at the logical level.

处理器,执行存储器所存放的程序,并具体用于执行图1至图4所示实施例揭示的一种流程引擎触发器任务编排的方法。The processor executes the program stored in the memory, and is specifically configured to execute a process engine trigger task arrangement method disclosed in the embodiment shown in FIGS. 1 to 4 .

上述如图1至图4所示实施例揭示的一种流程引擎触发器任务编排的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(CentralProcessingUnit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific IntegratedCircuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The method for arranging process engine trigger tasks disclosed in the above embodiments shown in FIGS. 1 to 4 can be applied in a processor or implemented by the processor. The processor may be an integrated circuit chip that has signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor. The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DigitalSignal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit) Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. Each method, step and logical block diagram disclosed in the embodiment of the present invention can be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

当然,除了软件实现方式之外,本发明的电子设备并不排除其它实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、车载人机交互设备、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。Of course, in addition to software implementation, the electronic device of the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logical unit. It can also be hardware or logic devices. The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet Computers, wearables, or a combination of any of these devices.

虽然本发明提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的手段可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的装置或终端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境,甚至为分布式数据处理环境)。Although the present invention provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-inventive means. The sequence of steps listed in the embodiment is only one way of executing the sequence of many steps, and does not represent the only execution sequence. When the actual device or terminal product is executed, it may be executed sequentially or in parallel according to the methods shown in the embodiments or figures (for example, a parallel processor or a multi-thread processing environment, or even a distributed data processing environment).

本发明是参照根据本发明实施例的方法、设备、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其它可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其它可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其它可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其它可编程数据处理设备上,使得在计算机或其它可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其它可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations are mutually exclusive. any such actual relationship or sequence exists between them. Furthermore, the terms "comprising," "comprising," or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其它实施例的不同之处。尤其,对于装置、电子设备及可读存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, for the device, electronic equipment and readable storage medium embodiments, since they are basically similar to the method embodiments, the descriptions are relatively simple. For relevant details, please refer to the partial description of the method embodiments.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A method of scheduling tasks of a flow engine trigger, the method comprising:
subscribing a trigger event of a trigger through a front-end visual interface according to an event type of a task, wherein the event type comprises a node event, a branch event and a flow event;
selecting a trigger condition of the trigger according to the trigger event;
and scheduling the trigger to execute the task according to the trigger condition according to the trigger event.
2. The method of task orchestration according to claim 1, wherein the method further comprises:
and correlating the number of the trigger with the number of the task and persisting the number into a database.
3. The method of task orchestration according to claim 2, wherein the trigger event of the subscription trigger comprises:
in the task running process, according to the node, branch or flow of the task, a trigger event is sent to the outside, wherein the trigger event carries the number, form data and context data of the task, and the trigger is triggered to be executed by associating with the number of the trigger in the database; wherein the triggering event comprises:
the creation flow is as follows: triggering a trigger when a user creates a flow;
ending the flow, and triggering the trigger when the flow execution is completed, the flow execution fails or the active closing is performed;
the process is withdrawn, and when the user withdraws the process, the trigger is triggered;
suspending the process, wherein the trigger is triggered when the user suspends the process;
and restoring the flow, wherein the trigger is triggered when the user restores the suspended flow.
4. The method of task orchestration according to claim 1, wherein the trigger conditions comprise: form field judgment, global context judgment, task execution result judgment, multi-condition or any one or more of multi-condition and multi-condition; wherein,
The form field judgment refers to configuration parameters of task execution, and when the node input data meets the configuration parameters, the trigger is executed;
the global context judgment refers to context content of a configuration execution field, and when the context content is met by a context text segment of the flow, the trigger is executed;
the task execution result judgment refers to a return value of task execution, and when the return result of node task execution meets the return value, the trigger is executed;
multiple conditions or multiple judging conditions in the configuration condition rule engine are used for judging whether the trigger condition is met in a OR mode;
the multi-condition and the multi-judgment condition in the configuration condition rule engine are judged in a AND mode to judge whether the triggering condition is met or not.
5. An apparatus for scheduling tasks of a flow engine trigger, said apparatus comprising:
the trigger configuration module is used for subscribing trigger events of the trigger through the front-end visual interface according to event types of tasks, wherein the event types comprise node events, branch events and flow events;
the condition rule engine module is used for selecting the trigger condition of the trigger according to the trigger event;
And the task scheduling engine module is used for triggering and scheduling the trigger to execute the task according to the trigger condition according to the trigger event.
6. The tasking apparatus of claim 5 further comprising:
and the association module is used for associating the number of the trigger with the number of the task and persisting the number of the trigger and the number of the task into a database.
7. The task orchestration device according to claim 6, wherein the trigger configuration module is specifically configured to:
in the task running process, according to the node, branch or flow of the task, a trigger event is sent to the outside, wherein the trigger event carries the number, form data and context data of the task, and the trigger is triggered to be executed by associating with the number of the trigger in the database; wherein the triggering event comprises:
the creation flow is as follows: triggering a trigger when a user creates a flow;
ending the flow, and triggering the trigger when the flow execution is completed, the flow execution fails or the active closing is performed;
the process is withdrawn, and when the user withdraws the process, the trigger is triggered;
suspending the process, wherein the trigger is triggered when the user suspends the process;
And restoring the flow, wherein the trigger is triggered when the user restores the suspended flow.
8. The task orchestration device according to claim 5, wherein the trigger conditions selected by the condition rules engine module specifically comprise: form field judgment, global context judgment, task execution result judgment, multi-condition or any one or more of multi-condition and multi-condition; wherein,
the form field judgment refers to configuration parameters of task execution, and when the node input data meets the configuration parameters, the trigger is executed;
the global context judgment refers to context content of a configuration execution field, and when the configuration execution field of the flow meets the context content, the trigger executes;
the task execution result judgment refers to a return value of task execution, and when the return result of node task execution meets the return value, the trigger is executed;
multiple conditions or multiple judging conditions in the configuration condition rule engine are used for judging whether the trigger condition is met in a OR mode; the multi-condition and the multi-judgment condition in the configuration condition rule engine are judged in a AND mode to judge whether the triggering condition is met or not.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of flow engine trigger task orchestration according to any one of claims 1-4.
10. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement a method of flow engine trigger task orchestration according to any one of claims 1-4.
CN202311586438.8A 2023-11-27 2023-11-27 A method, device, medium and equipment for scheduling process engine trigger tasks Active CN117632416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311586438.8A CN117632416B (en) 2023-11-27 2023-11-27 A method, device, medium and equipment for scheduling process engine trigger tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311586438.8A CN117632416B (en) 2023-11-27 2023-11-27 A method, device, medium and equipment for scheduling process engine trigger tasks

Publications (2)

Publication Number Publication Date
CN117632416A true CN117632416A (en) 2024-03-01
CN117632416B CN117632416B (en) 2025-04-15

Family

ID=90036975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311586438.8A Active CN117632416B (en) 2023-11-27 2023-11-27 A method, device, medium and equipment for scheduling process engine trigger tasks

Country Status (1)

Country Link
CN (1) CN117632416B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118760424A (en) * 2024-06-03 2024-10-11 航天物联网技术有限公司 A process control method and system based on event-driven

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980543A (en) * 2017-04-05 2017-07-25 福建智恒软件科技有限公司 The distributed task dispatching method and device triggered based on event
CN111984371A (en) * 2020-08-18 2020-11-24 济南浪潮高新科技投资发展有限公司 Flow arrangement service scheduling and publishing method
US20210279099A1 (en) * 2020-03-05 2021-09-09 Nvidia Corporation Program flow monitoring and control of an event-triggered system
CN113900638A (en) * 2021-11-23 2022-01-07 重庆允成互联网科技有限公司 Visual trigger configuration method and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980543A (en) * 2017-04-05 2017-07-25 福建智恒软件科技有限公司 The distributed task dispatching method and device triggered based on event
US20210279099A1 (en) * 2020-03-05 2021-09-09 Nvidia Corporation Program flow monitoring and control of an event-triggered system
CN111984371A (en) * 2020-08-18 2020-11-24 济南浪潮高新科技投资发展有限公司 Flow arrangement service scheduling and publishing method
CN113900638A (en) * 2021-11-23 2022-01-07 重庆允成互联网科技有限公司 Visual trigger configuration method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118760424A (en) * 2024-06-03 2024-10-11 航天物联网技术有限公司 A process control method and system based on event-driven

Also Published As

Publication number Publication date
CN117632416B (en) 2025-04-15

Similar Documents

Publication Publication Date Title
US20190392617A1 (en) Visual workflow model
US10467025B2 (en) Managing delivery of code and dependent data using application containers
CN110162413B (en) Event-driven method and device
EP3304315B1 (en) Automatic anomaly detection and resolution system
CN111324427B (en) Task scheduling method and device based on DSP
US8635250B2 (en) Methods and systems for deleting large amounts of data from a multitenant database
CN111459659A (en) Data processing method, device, scheduling server and medium
CN112230616A (en) Linkage control method and device and linkage middleware
CN112988356B (en) Asynchronous calling method, device, storage medium and electronic device
CN116932175B (en) Heterogeneous chip task scheduling method and device based on sequence generation
WO2024037132A1 (en) Workflow processing method and apparatus, and device, storage medium and program product
CN117632416A (en) A method, device, medium and equipment for process engine trigger task arrangement
CN111880910A (en) Data processing method and device, server and storage medium
CN114116149A (en) A task scheduling method, device, equipment and medium
CN112527527B (en) Message queue consumption speed control method, device, electronic device and medium
US8365194B2 (en) Creating and processing dynamic proxy actions for actions that are not yet registered with a client side broker
US20240419487A1 (en) Proactive execution system
US20180107986A1 (en) Automatic update of calendar event
CN117931167A (en) A process arrangement method, device, electronic device and storage medium
CN108256647B (en) Rule execution request processing method, apparatus, storage medium and electronic device
CN116862215A (en) Information processing method, warehouse control system, equipment and storage medium
WO2023231342A1 (en) Method and apparatus for automatically executing contract on the basis of variable state
US20240256499A1 (en) Fetching renderable parts of content items in bulk
CN116501474B (en) System, method and device for processing batch homogeneous tasks
CN113495780B (en) Task scheduling method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant