CN114816736A - Business processing method, apparatus, equipment and medium - Google Patents

Business processing method, apparatus, equipment and medium Download PDF

Info

Publication number
CN114816736A
CN114816736A CN202210355433.3A CN202210355433A CN114816736A CN 114816736 A CN114816736 A CN 114816736A CN 202210355433 A CN202210355433 A CN 202210355433A CN 114816736 A CN114816736 A CN 114816736A
Authority
CN
China
Prior art keywords
module
business
level
target
modules
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.)
Pending
Application number
CN202210355433.3A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210355433.3A priority Critical patent/CN114816736A/en
Publication of CN114816736A publication Critical patent/CN114816736A/en
Pending legal-status Critical Current

Links

Images

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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

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 present disclosure provides a business processing method, which can be applied to the technical field of computers and the financial field. The method comprises the following steps: receiving a service processing request of a service to be processed, wherein the service processing request carries a target service scene identifier and a target service parameter; responding to a service processing request, determining a target process model from a plurality of process models according to a target service scene identifier, wherein the process model comprises a plurality of process modules positioned at N levels, and N is a positive integer greater than 2; generating a business process example of the business to be processed based on the target process model and the target business parameters; and distributing the plurality of process modules of the business process instance to a plurality of hosts of the distributed system by using a preset load balancing strategy, wherein the plurality of hosts process the business to be processed. In addition, the disclosure also provides a service processing device, equipment and medium.

Description

业务处理方法、装置、设备和介质Business processing method, apparatus, equipment and medium

技术领域technical field

本公开涉及计算机技术领域和金融领域,更具体地,涉及一种业务处理方法、业务处理装置、电子设备、存储介质和程序产品。The present disclosure relates to the field of computer technology and the field of finance, and more particularly, to a business processing method, a business processing apparatus, an electronic device, a storage medium and a program product.

背景技术Background technique

Activiti是一项新的基于Apache许可的开源BPM(Activiti业务流程管理)平台,支持BPMN 2.0标准,可以适用于流程性较强的业务系统。Activiti不仅可以使得流程中的数据持久化,还可以提供七大Service接口,包括流程仓库服务,身份服务,运行时服务,任务服务,表单服务,历史服务和引擎管理服务。此外,Activiti还可以轻松地进行Spring集成,方便管理事务和Expression。Activiti虽然是一项流程性较强的业务系统,但在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:在分布式应用场景下,通过流程-数据两层模型结构的业务流程配置得到的流程模型切割粒度大、难以进行合理的切分,进而难以实现主机的负载均衡,业务流程系统的可用性和灵活性较差。Activiti is a new open source BPM (Activiti Business Process Management) platform based on Apache license, which supports the BPMN 2.0 standard and can be applied to business systems with strong processes. Activiti can not only make the data in the process persistent, but also provide seven service interfaces, including process warehouse service, identity service, runtime service, task service, form service, history service and engine management service. In addition, Activiti has easy Spring integration for easy management of transactions and Expressions. Although Activiti is a business system with strong flow, in the process of realizing the concept of the present disclosure, the inventor found that there are at least the following problems in the related art: in the distributed application scenario, through the process-data two-layer model structure The process model obtained by the business process configuration has a large granularity, and it is difficult to perform reasonable segmentation, which makes it difficult to achieve load balancing of the host, and the availability and flexibility of the business process system are poor.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本公开提供了一种业务处理方法、一种业务处理装置、一种电子设备、一种可读存储介质和一种计算机程序产品。In view of this, the present disclosure provides a business processing method, a business processing apparatus, an electronic device, a readable storage medium, and a computer program product.

本公开的一个方面提供了一种业务处理方法,包括:接收待处理业务的业务处理请求,其中,上述业务处理请求中携带有目标业务场景标识和目标业务参数;响应于上述业务处理请求,根据上述目标业务场景标识从多个流程模型中确定目标流程模型,其中,上述流程模型包括位于N个层级的多个流程模块,上述N为大于2的正整数;基于上述目标流程模型和上述目标业务参数,生成上述待处理业务的业务流程实例;以及使用预设负载均衡策略,将上述业务流程实例的多个流程模块分配到分布式系统的多个主机上,其中,上述多个主机处理上述待处理业务。One aspect of the present disclosure provides a service processing method, including: receiving a service processing request for a service to be processed, wherein the service processing request carries a target service scenario identifier and target service parameters; in response to the service processing request, according to The above-mentioned target business scenario identifier determines a target process model from a plurality of process models, wherein the above-mentioned process model includes a plurality of process modules located at N levels, and the above-mentioned N is a positive integer greater than 2; based on the above-mentioned target process model and the above-mentioned target business parameters to generate the business process instance of the above-mentioned business to be processed; and use a preset load balancing strategy to distribute multiple process modules of the above-mentioned business process instance to multiple hosts of the distributed system, wherein the above-mentioned multiple hosts process the above-mentioned pending services. Handle business.

根据本公开的实施例,上述方法还包括:响应于接收到用户的配置操作,构建上述流程模型;响应于触发针对上述流程模型的存储指令,获取上述存储指令中携带的业务场景标识;以及以上述业务场景标识作为主键,将上述流程模型存入数据库中。According to an embodiment of the present disclosure, the above method further includes: in response to receiving a configuration operation from a user, constructing the above process model; in response to triggering a storage instruction for the above process model, acquiring the business scenario identifier carried in the above storage instruction; and The above business scenario identifier is used as the primary key, and the above process model is stored in the database.

根据本公开的实施例,其中,上述响应于接收到用户的配置操作,构建上述流程模型,包括:对于第N层级的流程模块,响应于接收到用户的第一配置操作,配置上述流程模块的模块属性,其中,上述模块属性包括模块名称、可执行程序的调用地址和资源占用量属性;对于第1层级至第N-1层级中的任意层级的流程模块,响应于接收到上述用户的第二配置操作,配置上述流程模块的模块属性和流程属性;以及基于上述第N层级的流程模块的模块属性,和第1层级至第N-1层级中所有流程模块的模块属性和流程属性,构建得到上述流程模型。According to an embodiment of the present disclosure, wherein the above-mentioned construction of the above-mentioned process model in response to receiving the user's configuration operation includes: for the process module of the Nth level, in response to receiving the user's first configuration operation, configuring the above-mentioned process module. Module attribute, wherein, the above-mentioned module attribute includes the module name, the calling address of the executable program and the resource occupancy attribute; for the process module of any level in the 1st level to the N-1th level, in response to receiving the above-mentioned user's No. The second configuration operation is to configure the module attributes and process attributes of the above-mentioned process modules; and based on the module attributes of the above-mentioned Nth level process modules, and the module attributes and process attributes of all process modules in the 1st level to the N-1th level, build The above process model is obtained.

根据本公开的实施例,其中,上述第一配置操作包括输入操作;其中,上述对于第N层级的流程模块,响应于接收到用户的第一配置操作,配置上述流程模块的模块属性,包括:对于上述第N层级的流程模块,响应于上述用户的输入操作,基于上述输入操作中携带的输入信息来配置上述第N层级的流程模块的模块属性。According to an embodiment of the present disclosure, the above-mentioned first configuration operation includes an input operation; wherein, for the above-mentioned process module at the Nth level, in response to receiving the user's first configuration operation, configuring the module attribute of the above-mentioned process module includes: For the process module of the Nth level, in response to the input operation of the user, the module attribute of the process module of the Nth level is configured based on the input information carried in the input operation.

根据本公开的实施例,其中,上述第二配置操作包括选择操作和连接操作;其中,上述对于第1层级至第N-1层级中的任意层级的流程模块,响应于接收到用户的第二配置操作,配置上述流程模块的模块属性和流程属性,包括:对于第M层级的流程模块,响应于用户的选择操作,确定与上述第M层级的流程模块关联的至少一个第M+1层级的流程模块,其中,上述M为小于上述N的正整数;基于至少一个上述第M+1层级的流程模块的模块属性,确定上述第M层级的流程模块的模块属性;将与至少一个上述第M+1层级的流程模块关联的至少一个图形绘制在显示界面上;响应于上述用户针对至少一个上述图形的连接操作,确定与上述连接操作对应的关系类型;以及基于上述关系类型配置上述第M层级的流程模块的流程属性。According to an embodiment of the present disclosure, the above-mentioned second configuration operation includes a selection operation and a connection operation; wherein, the above-mentioned process module for any level in the 1st level to the N-1th level, in response to receiving the user's second The configuration operation, configuring the module attribute and the process attribute of the above-mentioned process module, includes: for the process module of the Mth level, in response to the user's selection operation, determining at least one M+1th level associated with the process module of the above-mentioned Mth level. Process module, wherein, the above-mentioned M is a positive integer smaller than the above-mentioned N; based on the module attribute of at least one of the above-mentioned M+1 level process modules, the module attribute of the above-mentioned M-th level process module is determined; At least one graphic associated with the process module of the +1 level is drawn on the display interface; in response to the above-mentioned user's connection operation on at least one of the above-mentioned graphics, the relationship type corresponding to the above-mentioned connection operation is determined; and the above-mentioned M-th level is configured based on the above-mentioned relationship type The process properties of the process module.

根据本公开的实施例,其中,对于上述第M层级的流程模块,上述第M层级的流程模块的资源占用量属性表征为与上述第M层级的流程模块关联的至少一个上述第M+1层级的流程模块的资源占用量属性的加权和;其中,上述使用预设负载均衡策略,将上述业务流程实例的多个流程模块分配到分布式系统的多个主机上,包括:基于多个上述流程模块的资源占用量属性,将多个上述流程模块分配到上述分布式系统的多个主机上。According to an embodiment of the present disclosure, for the process module of the Mth level, the resource occupancy attribute of the process module of the Mth level is characterized as at least one of the M+1th level associated with the process module of the Mth level The weighted sum of the resource occupancy attributes of the process modules of the The resource occupancy attribute of the module, which allocates a plurality of the above-mentioned process modules to a plurality of hosts of the above-mentioned distributed system.

本公开的另一个方面提供了一种业务处理装置,包括:接收模块,用于接收待处理业务的业务处理请求,其中,上述业务处理请求中携带有目标业务场景标识和目标业务参数;确定模块,用于响应于上述业务处理请求,根据上述目标业务场景标识从多个流程模型中确定目标流程模型,其中,上述流程模型包括位于N个层级的多个流程模块,上述N为大于2的正整数;生成模块,用于基于上述目标流程模型和上述目标业务参数,生成上述待处理业务的业务流程实例;分配模块,用于使用预设负载均衡策略,将上述业务流程实例的多个流程模块分配到分布式系统的多个主机上,其中,上述多个主机处理上述待处理业务。Another aspect of the present disclosure provides a service processing device, comprising: a receiving module configured to receive a service processing request of a service to be processed, wherein the service processing request carries a target service scenario identifier and target service parameters; a determining module is used to determine a target process model from a plurality of process models according to the above-mentioned target business scenario identifier in response to the above-mentioned business processing request, wherein the above-mentioned process model includes a plurality of process modules located at N levels, and the above-mentioned N is a positive value greater than 2 an integer; a generating module is used to generate a business process instance of the above-mentioned business to be processed based on the above-mentioned target process model and the above-mentioned target service parameters; Distributed to multiple hosts in the distributed system, wherein the multiple hosts process the above-mentioned to-be-processed services.

本公开的另一方面提供了一种电子设备,包括:一个或多个处理器;存储器,用于存储一个或多个指令,其中,当上述一个或多个指令被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如上所述的方法。Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more instructions, wherein when the one or more instructions are processed by the one or more processors When executed, the above-mentioned one or more processors are caused to implement the above-mentioned method.

本公开的另一方面提供了一种计算机可读存储介质,其上存储有可执行指令,上述可执行指令被处理器执行时使处理器实现如上所述的方法。Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which when executed by a processor cause the processor to implement the method as described above.

本公开的另一方面提供了一种计算机程序产品,上述计算机程序产品包括计算机可执行指令,上述计算机可执行指令在被执行时用于实现如上所述的方法。Another aspect of the present disclosure provides a computer program product comprising computer-executable instructions that, when executed, are used to implement the method as described above.

根据本公开的实施例,通过采用了将待处理业务转换为包含级联的多个流程模块的业务流程实例的方式,可以将待处理业务拆分为多个流程模块,有利于实现业务流程的解耦,简化了流程配置的逻辑;再使用预设负载均衡策略,将业务流程实例中的多个流程模块分配到分布式系统的多个主机上,由多个主机处理待处理业务,通过多个主机处理待处理业务,可以在实现对待处理业务合理分配的同时,实现主机的负载均衡,提高了业务流程的可用性和灵活性,提高了业务流程的处理效率,从而至少部分地克服了相关技术中业务流程的切割粒度大、难以进行合理切分、难以实现负载均衡、可用性低、灵活性低的问题。According to the embodiments of the present disclosure, by adopting the method of converting the to-be-processed business into a business process instance including multiple cascaded process modules, the to-be-processed business can be split into multiple process modules, which is beneficial to realize the business process Decoupling simplifies the logic of process configuration; the preset load balancing strategy is then used to allocate multiple process modules in the business process instance to multiple hosts in the distributed system, and multiple hosts process the pending business. Each host processes the pending business, which can realize the load balancing of the hosts while realizing the reasonable distribution of the pending business, improve the availability and flexibility of the business process, and improve the processing efficiency of the business process, thereby at least partially overcoming the related technologies. The business process has a large granularity of segmentation, it is difficult to perform reasonable segmentation, it is difficult to achieve load balancing, and the availability and flexibility are low.

附图说明Description of drawings

通过以下参照附图对本公开实施例的描述,本公开的上述以及其他目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:

图1示意性示出了根据本公开实施例的可以应用业务处理方法和装置的示例性系统架构;FIG. 1 schematically shows an exemplary system architecture to which the service processing method and apparatus can be applied according to an embodiment of the present disclosure;

图2示意性示出了根据本公开实施例的业务处理方法的流程图;FIG. 2 schematically shows a flowchart of a service processing method according to an embodiment of the present disclosure;

图3示意性示出了根据本公开实施例的流程模型的生成方法的流程图;FIG. 3 schematically shows a flowchart of a method for generating a process model according to an embodiment of the present disclosure;

图4示意性示出了根据本公开另一实施例的流程模型的生成方法的流程图;4 schematically shows a flowchart of a method for generating a process model according to another embodiment of the present disclosure;

图5示意性示出了根据本公开实施例的流程模型的架构图;FIG. 5 schematically shows an architecture diagram of a process model according to an embodiment of the present disclosure;

图6示意性示出了根据本公开另一实施例的业务处理方法的流程图;6 schematically shows a flowchart of a service processing method according to another embodiment of the present disclosure;

图7示意性示出了根据本公开实施例的业务处理装置的框图;以及FIG. 7 schematically shows a block diagram of a service processing apparatus according to an embodiment of the present disclosure; and

图8示意性示出了根据本公开实施例的适于实现业务处理方法的电子设备的框图。FIG. 8 schematically shows a block diagram of an electronic device suitable for implementing a business processing method according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for convenience of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It will be apparent, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. The terms "comprising", "comprising" and the like as used herein indicate the presence of stated features, steps, operations and/or components, but do not preclude the presence or addition of one or more other features, steps, operations or components.

在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning as commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly rigid manner.

在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。在使用类似于“A、B或C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B或C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where expressions like "at least one of A, B, and C, etc.," are used, they should generally be interpreted in accordance with the meaning of the expression as commonly understood by those skilled in the art (eg, "has A, B, and C") At least one of the "systems" shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ). Where expressions like "at least one of A, B, or C, etc.," are used, they should generally be interpreted in accordance with the meaning of the expression as commonly understood by those skilled in the art (eg, "has A, B, or C, etc." At least one of the "systems" shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ).

Activiti是一项新的基于Apache许可的开源BPM(Activiti业务流程管理)平台,支持BPMN 2.0标准,适用于流程性较强的业务系统。Activiti通过myBatis可以使用最优的sql语句执行Command,解决了在和数据库交换数据过程中的瓶颈,以便引擎在速度上保持最优的性能,从而达到高效的数据持久化。对于不同的软件开发工具有专门的流程设计器,比如针对Eclipse有Eclipse Designer,针对IDEA有actiBPM插件,以及基于Web的ActivtiModeler流程设计器。此外,Activiti还可以在表结构的设计方面将运行时的数据和历史的数据进行分离,可以快速的读取运行时数据,只有在需要查询历史数据的情况下才从历史记录存储表里读取,这种设计可以大幅度提高表的存取效率。Activiti is a new Apache-licensed open source BPM (Activiti Business Process Management) platform that supports the BPMN 2.0 standard and is suitable for business systems with strong processes. Activiti can use the optimal sql statement to execute Command through myBatis, which solves the bottleneck in the process of exchanging data with the database, so that the engine can maintain the optimal performance in terms of speed, thereby achieving efficient data persistence. There are special process designers for different software development tools, such as Eclipse Designer for Eclipse, actiBPM plug-ins for IDEA, and the web-based ActivtiModeler process designer. In addition, Activiti can also separate the runtime data from the historical data in the design of the table structure, and can quickly read the runtime data, and only read from the historical record storage table when the historical data needs to be queried. , this design can greatly improve the access efficiency of the table.

Activiti虽然是一项可以适用于流程性较强的业务系统,但在相关技术中在分布式应用场景下,通过流程-数据两层模型结构的业务流程配置得到的流程模型切割粒度大、难以进行合理的切分,进而难以实现主机的负载均衡,业务流程系统的可用性和灵活性较差,业务流程系统的处理效率低。Although Activiti is a business system that can be applied to a strong process, in the distributed application scenario in related technologies, the process model obtained through the business process configuration of the process-data two-layer model structure has large granularity and is difficult to carry out. Reasonable segmentation makes it difficult to achieve load balancing of hosts, the availability and flexibility of the business process system are poor, and the processing efficiency of the business process system is low.

有鉴于此,本公开将传统的流程-数据两层模型结构的业务流程改为可以具有多层嵌套结构的业务流程,实现对待处理业务的拆分,有利于业务系统进行更细的流程分割,实现业务流程的解耦;再根据选择的负载均衡方式和流程模型中配置的各个模块的占用资源量,将各个模块分配到不同的主机上执行,在实现待处理业务合理分配的同时,实现主机的负载均衡,提高了业务流程的可用性和灵活性,提高了处理流程的处理效率。In view of this, the present disclosure changes the business process of the traditional process-data two-layer model structure into a business process that can have a multi-layer nested structure, so as to realize the splitting of the business to be processed, which is beneficial to the business system to perform more detailed process segmentation. , to realize the decoupling of business processes; then according to the selected load balancing method and the occupied resources of each module configured in the process model, each module is allocated to different hosts for execution. The load balancing of the host improves the availability and flexibility of the business process, and improves the processing efficiency of the processing process.

具体地,本公开的实施例提供了一种业务处理方法、一种业务处理装置、一种电子设备、一种可读存储介质和一种计算机程序产品。可以用于提高业务流程系统的可用性和灵活性,提高处理流程系统的处理效率。该方法包括接收待处理业务的业务处理请求,其中,业务处理请求中携带有目标业务场景标识和目标业务参数;响应于业务处理请求,根据目标业务场景标识从多个流程模型中确定目标流程模型,其中,流程模型包括位于N个层级的多个流程模块,N为大于2的正整数;基于目标流程模型和目标业务参数,生成待处理业务的业务流程实例;以及使用预设负载均衡策略,将业务流程实例的多个流程模块分配到分布式系统的多个主机上,其中,多个主机处理待处理业务。Specifically, the embodiments of the present disclosure provide a service processing method, a service processing apparatus, an electronic device, a readable storage medium, and a computer program product. It can be used to improve the usability and flexibility of the business process system and improve the processing efficiency of the processing process system. The method includes receiving a business processing request of a business to be processed, wherein the business processing request carries a target business scenario identifier and target business parameters; in response to the business processing request, determining a target process model from multiple process models according to the target business scenario identifier , wherein the process model includes multiple process modules located at N levels, where N is a positive integer greater than 2; based on the target process model and target business parameters, a business process instance of the business to be processed is generated; and a preset load balancing strategy is used, Allocating multiple process modules of the business process instance to multiple hosts of the distributed system, wherein the multiple hosts process to-be-processed services.

需要说明的是,本公开实施例确定的业务处理方法和装置可用于计算机技术领域或金融领域,也可用于除计算机技术领域和金融领域之外的任意领域,其具体应用领域不做限定。It should be noted that the business processing method and apparatus determined in the embodiments of the present disclosure can be used in the computer technology field or the financial field, and can also be used in any field except the computer technology field and the financial field, and the specific application field is not limited.

在本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供、公开和应用等处理,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, disclosure and application of the user's personal information involved are all in compliance with the relevant laws and regulations, and necessary confidentiality measures have been taken, and do not violate the Public order and good customs.

在本公开的技术方案中,在获取或采集用户个人信息之前,均获取了用户的授权或同意。In the technical solution of the present disclosure, the authorization or consent of the user is obtained before the user's personal information is obtained or collected.

图1示意性示出了根据本公开实施例的可以应用业务处理方法和装置的示例性系统架构。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。FIG. 1 schematically shows an exemplary system architecture to which a business processing method and apparatus according to an embodiment of the present disclosure can be applied. It should be noted that FIG. 1 is only an example of a system architecture to which the embodiments of the present disclosure can be applied, so as to help those skilled in the art to understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used for other A device, system, environment or scene.

如图1所示,根据该实施例的系统架构100可以包括终端设备101、102、103,网络104,负载均衡设备105和多个服务器106。网络104用以在终端设备101、102、103和负载均衡设备105之间,负载均衡设备105和多个服务器106之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线和/或无线通信链路等等。As shown in FIG. 1 , the system architecture 100 according to this embodiment may include terminal devices 101 , 102 , and 103 , a network 104 , a load balancing device 105 and a plurality of servers 106 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the load balancing device 105 , and between the load balancing device 105 and a plurality of servers 106 . Network 104 may include various connection types, such as wired and/or wireless communication links, and the like.

用户可以使用终端设备101、102、103通过网络104与负载均衡设备105交互,以发送包括待处理业务的业务处理请求等,业务处理请求中带有业务场景标识和业务参数。终端设备101、102、103上可以安装有各种金融类应用、通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端和/或社交平台软件等(仅为示例)。The user can use the terminal devices 101, 102, and 103 to interact with the load balancing device 105 through the network 104 to send a service processing request including the service to be processed, and the service processing request has a service scenario identifier and service parameters. Various financial applications and communication client applications can be installed on the terminal devices 101, 102 and 103, such as shopping applications, web browser applications, search applications, instant communication tools, email clients and/or social platform software, etc. (example only).

终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

负载均衡设备105可以是实现负载均衡的负载均衡服务器,例如Ngnix服务器,负载均衡设备105对用户利用终端设备101、102、103所发送的业务处理请求提供处理并分配给多个服务器106的后台管理设备(仅为示例)。The load balancing device 105 may be a load balancing server that implements load balancing, such as an Ngnix server. The load balancing device 105 provides background management for the service processing requests sent by users using the terminal devices 101, 102, and 103 and assigns them to multiple servers 106. device (example only).

服务器106可以是提供各种服务的服务器,例如可以接收由负载均衡设备105所分配的处理任务,对待处理业务进行处理的后台管理服务器(仅为示例)。后台管理设备可以对接收到的用户业务处理请求等数据进行分析等处理,并将处理结果(例如根据用户的业务处理请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 106 can be a server that provides various services, such as a background management server that can receive processing tasks assigned by the load balancing device 105 and process the business to be processed (just an example). The background management device can analyze and process the received user service processing requests and other data, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user's service processing requests) to the terminal device.

需要说明的是,本公开实施例所提供的业务处理方法一般可以由服务器106执行。相应地,本公开实施例所提供的业务处理装置一般可以设置于服务器106中。本公开实施例所提供的业务处理方法也可以由不同于服务器106且能够与终端设备101、102、103、负载均衡设备105和/或服务器106通信的服务器或服务器集群执行。相应地,本公开实施例所提供的业务处理装置也可以设置于不同于服务器106且能够与终端设备101、102、103、负载均衡设备105和/或服务器106通信的服务器或服务器集群中。或者,本公开实施例所提供的业务处理方法也可以由终端设备101、102、或103执行,或者也可以由不同于终端设备101、102、或103的其他终端设备执行。相应地,本公开实施例所提供的业务处理装置也可以设置于终端设备101、102、或103中,或设置于不同于终端设备101、102、或103的其他终端设备中。It should be noted that the service processing method provided by the embodiment of the present disclosure may generally be executed by the server 106 . Correspondingly, the service processing apparatus provided by the embodiments of the present disclosure may generally be provided in the server 106 . The service processing method provided by the embodiment of the present disclosure may also be executed by a server or server cluster different from the server 106 and capable of communicating with the terminal devices 101 , 102 , 103 , the load balancing device 105 and/or the server 106 . Correspondingly, the service processing apparatus provided by the embodiment of the present disclosure may also be set in a server or server cluster that is different from the server 106 and can communicate with the terminal devices 101 , 102 , 103 , the load balancing device 105 and/or the server 106 . Alternatively, the service processing methods provided in the embodiments of the present disclosure may also be executed by terminal devices 101 , 102 , or 103 , or may also be executed by other terminal devices different from terminal devices 101 , 102 , or 103 . Correspondingly, the service processing apparatus provided in the embodiment of the present disclosure may also be provided in the terminal device 101 , 102 , or 103 , or in another terminal device different from the terminal device 101 , 102 , or 103 .

例如,待处理业务请求可以原本存储在终端设备101、102、或103中的任意一个(例如,终端设备101,但不限于此)之中,或者存储在外部存储设备上并可以导入到终端设备101中。然后,终端设备101可以在本地执行本公开实施例所提供的业务处理方法,或者将待处理业务请求发送到其他终端设备、服务器、或服务器集群,并由接收该待处理业务请求的其他终端设备、服务器、或服务器集群来执行本公开实施例所提供的业务处理方法。For example, the pending service request may be originally stored in any one of the terminal devices 101, 102, or 103 (for example, the terminal device 101, but not limited thereto), or stored on an external storage device and imported into the terminal device 101. Then, the terminal device 101 can locally execute the service processing method provided by the embodiment of the present disclosure, or send the service request to be processed to other terminal devices, servers, or server clusters, and the other terminal devices that receive the pending service request , server, or server cluster to execute the service processing method provided by the embodiments of the present disclosure.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

图2示意性示出了根据本公开实施例的业务处理方法的流程图。FIG. 2 schematically shows a flowchart of a service processing method according to an embodiment of the present disclosure.

如图2所示,该方法包括操作S201~S204。As shown in FIG. 2, the method includes operations S201-S204.

在操作S201,接收待处理业务的业务处理请求,其中,业务处理请求中携带有目标业务场景标识和目标业务参数。In operation S201, a service processing request of the service to be processed is received, wherein the service processing request carries a target service scenario identifier and target service parameters.

在操作S202,响应于业务处理请求,根据目标业务场景标识从多个流程模型中确定目标流程模型,其中,流程模型包括位于N个层级的多个流程模块,N为大于2的正整数。In operation S202, in response to the service processing request, a target process model is determined from a plurality of process models according to the target service scenario identifier, wherein the process model includes a plurality of process modules located at N levels, where N is a positive integer greater than 2.

在操作S203,基于目标流程模型和目标业务参数,生成待处理业务的业务流程实例。In operation S203, a business process instance of the business to be processed is generated based on the target process model and the target business parameters.

在操作S204,使用预设负载均衡策略,将业务流程实例的多个流程模块分配到分布式系统的多个主机上,其中,多个主机处理待处理业务。In operation S204, using a preset load balancing strategy, multiple process modules of the business process instance are allocated to multiple hosts of the distributed system, wherein the multiple hosts process the to-be-processed service.

根据本公开的实施例,业务场景标识可以是业务系统中对于一个业务流程的唯一标识。目标业务参数可以是与业务流程相关的参数,例如,可以是包括凭证信息、发起渠道等内容的参数。According to an embodiment of the present disclosure, the business scenario identifier may be a unique identifier for a business process in the business system. The target business parameter may be a parameter related to a business process, for example, may be a parameter including credential information, an initiation channel, and the like.

根据本公开的实施例,流程模型可以根据输入的业务处理请求输出与该业务相关联的执行流程。流程模型可以包括N个层级,每个层级包括的多个流程模块,每个流程模块之间还可以具有关联关系;N的取值可以根据实际情况进行适应性调整,例如可以根据用户的需求进行调整。目标流程模型可以是与目标业务场景标识相关联的模型。According to an embodiment of the present disclosure, the process model can output an execution process associated with the business according to the input business processing request. The process model can include N levels, each level includes multiple process modules, and each process module can also have an associated relationship; the value of N can be adaptively adjusted according to the actual situation, for example, it can be adjusted according to the needs of users. Adjustment. The target process model may be the model associated with the target business scenario identification.

根据本公开的实施例,业务流程实例可以是能够用于处理该业务处理请求的流程。业务流程实例可以是对应于目标业务场景和目标业务参数且与该业务相关的具体处理流程。According to an embodiment of the present disclosure, a business process instance may be a process that can be used to process the business processing request. The business process instance may be a specific processing flow that corresponds to a target business scenario and target business parameters and is related to the business.

根据本公开的实施例,预设负载均衡策略用于将业务流程实例中的多个流程模块平衡的分摊到多个机台进行处理,进而协同完成工作任务。负载均衡策略可以包括但不限于:自适应负载均衡、加权轮循等。具体地,自适应负载均衡策略可以是负载均衡设备定时检测所有服务器的负载情况,根据服务器的负载情况对该服务器的权重进行自动调整。或者还可以与加权轮循的策略进行结合。具体地,可以首先基于静态的权重比计算负载分配,在所有服务器的负载低于所设定的下限的情况下,均衡负载设备就会自动切换为加权轮循的策略进行分配;在所有服务器的负载高于所设定的下限的情况下,均衡负载设备就会自动切换为自适应负载均衡策略进行分配。负载均衡提供了一种可以有效加强业务流程的处理能力、提高业务流程系统的可用性和灵活性的工作方式。According to an embodiment of the present disclosure, the preset load balancing strategy is used to balance and allocate multiple process modules in the business process instance to multiple machines for processing, so as to collaboratively complete work tasks. The load balancing strategy may include, but is not limited to, adaptive load balancing, weighted round-robin, and the like. Specifically, the adaptive load balancing strategy may be that the load balancing device regularly detects the load conditions of all servers, and automatically adjusts the weight of the server according to the load conditions of the servers. Or it can also be combined with a weighted round-robin strategy. Specifically, the load distribution can be calculated based on the static weight ratio first. When the load of all servers is lower than the set lower limit, the load balancing device will automatically switch to the weighted round-robin strategy for distribution; When the load is higher than the set lower limit, the load balancing device will automatically switch to the adaptive load balancing strategy for distribution. Load balancing provides a working method that can effectively strengthen the processing capacity of business processes and improve the availability and flexibility of business process systems.

根据本公开的实施例,通过采用了将待处理业务转换为包含级联的多个流程模块的业务流程实例的方式,可以将待处理业务拆分为多个流程模块,有利于实现业务流程的解耦,简化了流程配置的逻辑;再使用预设负载均衡策略,将业务流程实例中的多个流程模块分配到分布式系统的多个主机上,由多个主机处理待处理业务,通过多个主机处理待处理业务,可以在实现对待处理业务合理分配的同时,实现主机的负载均衡,提高了业务流程的可用性和灵活性,提高了业务流程的处理效率,从而至少部分地克服了相关技术中业务流程的逻辑复杂、可用性低、灵活性低、处理效率低、难以实现负载均衡的问题。According to the embodiments of the present disclosure, by adopting the method of converting the to-be-processed business into a business process instance including multiple cascaded process modules, the to-be-processed business can be split into multiple process modules, which is beneficial to realize the business process Decoupling simplifies the logic of process configuration; the preset load balancing strategy is then used to allocate multiple process modules in the business process instance to multiple hosts in the distributed system, and multiple hosts process the pending business. Each host processes the pending business, which can realize the load balancing of the host while realizing the reasonable distribution of the pending business, improve the availability and flexibility of the business process, and improve the processing efficiency of the business process, thereby at least partially overcoming the related technologies. The problems of complex business process logic, low availability, low flexibility, low processing efficiency, and difficulty in achieving load balancing.

下面参考图3~图6,结合具体实施例对图2所示的方法做进一步说明。The method shown in FIG. 2 will be further described below with reference to FIG. 3 to FIG. 6 in conjunction with specific embodiments.

根据本公开的实施例,为了满足更多业务场景的需求,步骤S202中的多个流程模型还可以预先进行构建,所以在从多个流程模型中确定目标流程模型之前,还可以包括:响应于接收到用户的配置操作,构建流程模型;响应于触发针对流程模型的存储指令,获取存储指令中携带的业务场景标识;以及以业务场景标识作为主键,将流程模型存入数据库中。According to the embodiments of the present disclosure, in order to meet the needs of more business scenarios, the multiple process models in step S202 can also be constructed in advance, so before determining the target process model from the multiple process models, it can also include: responding to Receive a user's configuration operation, build a process model; in response to triggering a storage instruction for the process model, obtain the business scenario identifier carried in the storage instruction; and use the business scenario identifier as a primary key to store the process model in the database.

根据本公开的实施例,配置操作可以用于构建流程模型,配置操作中可以包括与流程模块相关的模块名称、可执行程序调用地址、模块优先级、模块间的执行顺序等内容。According to an embodiment of the present disclosure, the configuration operation can be used to construct a process model, and the configuration operation can include the module name, executable program calling address, module priority, execution order between modules, etc. related to the process module.

根据本公开的实施例,存储指令可以是用于将流程模型存储在相对应的业务场景下的指令,存储指令中可以还包括与流程模型相关联的业务场景标识、业务参数,其中,业务场景标识可以作为与在存储流程模型时所参考的唯一标识。According to an embodiment of the present disclosure, the storage instruction may be an instruction for storing the process model in a corresponding business scenario, and the storage instruction may further include a business scenario identifier and business parameters associated with the process model, wherein the business scenario The ID can be used as a unique ID that is referenced when storing the process model.

图3示意性示出了根据本公开实施例的流程模型的生成方法的流程图。FIG. 3 schematically shows a flowchart of a method for generating a process model according to an embodiment of the present disclosure.

如图3所示,响应于接收到用户的配置操作,构建流程模型还可以包括操作S301~S303。As shown in FIG. 3 , in response to receiving the user's configuration operation, constructing the process model may further include operations S301 to S303.

在操作S301,对于第N层级的流程模块,响应于接收到用户的第一配置操作,配置流程模块的模块属性,其中,模块属性包括模块名称、可执行程序的调用地址和资源占用量属性。In operation S301, for the process module of the Nth level, in response to receiving the user's first configuration operation, configure the module attribute of the process module, wherein the module attribute includes the module name, the calling address of the executable program and the resource occupancy attribute.

在操作S302,对于第1层级至第N-1层级中的任意层级的流程模块,响应于接收到用户的第二配置操作,配置流程模块的模块属性和流程属性。In operation S302, for the process modules at any level from the 1st level to the N-1th level, in response to receiving the second configuration operation of the user, configure the module attribute and the process attribute of the process module.

在操作S303,基于第N层级的流程模块的模块属性,和第1层级至第N-1层级中所有流程模块的模块属性和流程属性,构建得到流程模型。In operation S303, a process model is constructed based on the module attributes of the process modules at the Nth level, and the module attributes and process attributes of all process modules in the 1st level to the N-1th level.

根据本公开的实施例,配置操作还可以分为第一配置操作和第二配置操作。具体地,第一配置操作可以是用于配置流程模块的模块名称、流程模块可执行程序的调用地址、资源占用量、预设均衡负载策略、流程模块的优先级、流程模块的执行主机等的操作。第二配置操作可以包括第一配置操作,还可以是用于配置各个流程模块之间的执行顺序、执行条件等的操作。According to an embodiment of the present disclosure, the configuration operation can also be divided into a first configuration operation and a second configuration operation. Specifically, the first configuration operation may be used to configure the module name of the process module, the calling address of the executable program of the process module, the resource occupancy, the preset load balancing strategy, the priority of the process module, the execution host of the process module, etc. operate. The second configuration operation may include the first configuration operation, and may also be an operation for configuring the execution order, execution conditions, and the like among the various process modules.

根据本公开的实施例,模块属性可以包括模块名称、可执行程序的调用地址和资源占用量属性、预设均衡负载策略、流程模块的优先级、流程模块的执行主机等内容;流程属性可以包括各个流程模块之间的执行顺序、执行条件等内容。According to an embodiment of the present disclosure, the module attribute may include the module name, the calling address of the executable program and the resource occupancy attribute, the preset load balancing strategy, the priority of the process module, the execution host of the process module, etc.; the process attribute may include The execution sequence and execution conditions between each process module.

图4示意性示出了根据本公开另一实施例的流程模型的生成方法的流程图。FIG. 4 schematically shows a flowchart of a method for generating a process model according to another embodiment of the present disclosure.

如图4所示,该流程模型的生成方法包括操作S401~操作S410。As shown in FIG. 4 , the method for generating the process model includes operations S401 to S410.

在操作S401,对于第N层级的流程模块,还可以根据响应于用户的输入操作,基于输入操作中携带的输入信息来配置第N层级的流程模块的模块属性。In operation S401, for the process module of the Nth level, the module attribute of the process module of the Nth level may also be configured based on the input information carried in the input operation in response to the user's input operation.

在操作S402,对于第M层级的流程模块,响应于用户的选择操作,确定与第M层级的流程模块关联的至少一个第M+1层级的流程模块,其中,M为小于N的正整数。In operation S402, for the process module of the Mth level, in response to the user's selection operation, determine at least one process module of the M+1th level associated with the process module of the Mth level, where M is a positive integer less than N.

在操作S403,基于至少一个第M+1层级的流程模块的模块属性,确定第M层级的流程模块的模块属性。In operation S403, based on the module attribute of at least one process module of the M+1 th level, the module attribute of the process module of the Mth level is determined.

在操作S404,将与至少一个第M+1层级的流程模块关联的至少一个图形绘制在显示界面上。In operation S404, at least one graphic associated with at least one process module of the M+1th level is drawn on the display interface.

在操作S405,响应于用户针对至少一个图形的连接操作,确定与连接操作对应的关系类型。In operation S405, in response to a user's connection operation with respect to at least one graph, a relationship type corresponding to the connection operation is determined.

在操作S406,基于关系类型配置第M层级的流程模块的流程属性。In operation S406, the process attribute of the process module of the Mth level is configured based on the relationship type.

在操作S407,判断第M层级的流程模块是否配置完成。In operation S407, it is determined whether the configuration of the flow module of the Mth level is completed.

在操作S408,判断M的取值是否大于1。In operation S408, it is determined whether the value of M is greater than 1.

在操作S409,计算M的取值与1的差值,得到新的M的取值。In operation S409, the difference between the value of M and 1 is calculated to obtain a new value of M.

在操作S410,完成流程模型的生成。In operation S410, the generation of the process model is completed.

根据本公开的实施例,输入操作可以作为第一配置操作的一种实现方式。例如,可以直接对模块名称、流程模块可执行程序的调用地址、资源占用量、预设均衡负载策略、流程模块的优先级、模块的执行主机等有关的内容进行输入,直接实现第N层级流程模块的模块属性的配置。通过输入的方式可以更简单高效地实现第N层级的流程模块的模块属性配置。According to an embodiment of the present disclosure, the input operation may be used as an implementation manner of the first configuration operation. For example, you can directly input the module name, the calling address of the executable program of the process module, the resource occupancy, the preset load balancing strategy, the priority of the process module, the execution host of the module, etc., and directly realize the Nth level process. Configuration of the module's module properties. The module attribute configuration of the Nth level process module can be implemented more simply and efficiently by means of input.

根据本公开的实施例,第二配置操作可以通过选择操作或连接操作的方式实现。例如,在配置流程模块的流程属性和模块属性的过程中,在弹出的关于构建流程模块的显示界面里,采用点击、拖、拉、拽的方式实现对流程模块的流程属性和模块属性的建立。According to an embodiment of the present disclosure, the second configuration operation may be implemented by a selection operation or a connection operation. For example, in the process of configuring the process attributes and module attributes of the process module, in the pop-up display interface about building the process module, the method of clicking, dragging, pulling, and dragging is used to realize the establishment of the process attributes and module attributes of the process module. .

根据本公开的实施例,第M层级的流程模块可以是第1层级至第N层级中的任一中间层级的流程模块。在对第M层级的流程模块进行配置时,可以先加载第M+1层级的流程模块和相关联的关系组件,再基于第M+1层级的流程模块的模块属性和/或流程属性,确定第M层级的流程模块模块属性和/或流程属性。According to an embodiment of the present disclosure, the process module of the Mth level may be a process module of any intermediate level from the 1st level to the Nth level. When configuring the process module at the M-th level, the process module at the M+1-th level and the associated relationship components may be loaded first, and then based on the module attributes and/or process attributes of the M+1-th level process module, determine Process module module attributes and/or process attributes at the Mth level.

根据本公开的实施例,在显示界面上存在与至少一个第M+1层级的流程模块关联的图形的情况下,可以采用拖、拉、拽的方式对第M+1层级的流程模块进行关于流程属性的编辑操作,以便将各个流程模块进行连接,进而确定第M+1层级的各个流程模块之间的执行顺序或执行条件等。例如可以是让第M+1层级的多个流程模块进行串联或并联,还可以是按照设计好的分支条件进行执行,这样可以实现第M层级的流程模块的流程属性的配置。关系类型可以是用于表示各个流程之间的执行顺序,例如可以是串联、并联等关系。According to an embodiment of the present disclosure, when there is a graphic associated with at least one process module of the M+1th level on the display interface, the process module of the M+1th level can be dragged, pulled, and dragged. The editing operation of the process attribute is to connect each process module, and then determine the execution sequence or execution conditions among the various process modules at the M+1th level. For example, multiple process modules at the M+1 level may be connected in series or in parallel, or they may be executed according to the designed branch conditions, so that the process attributes of the process modules at the M level can be configured. The relationship type may be used to represent the execution order between various processes, for example, it may be a relationship such as series connection and parallel connection.

根据本公开的实施例,操作S407中,在判断第M层级的流程模块没有完成配置的情况下,可以继续从操作S402开始执行,直至完成第M层级中所有流程模块均完成模块属性和/或流程属性的配置。在判断第M层级的所有流程模块均完成模块属性和/或流程属性配置的情况下,可以继续执行后续操作。According to an embodiment of the present disclosure, in operation S407, if it is determined that the process modules of the Mth level have not completed the configuration, the execution may continue from operation S402 until all process modules in the Mth level are completed and the module attributes and/or Configuration of process properties. In the case where it is determined that all the process modules at the Mth level have completed the configuration of the module attributes and/or the process attributes, the subsequent operations can be continued.

根据本公开的实施例,在生成流程模型的过程中,可以是按照从第N层级开始向第1层级生成的顺序生成流程模型。在第M层级的流程模块均配置完成模块属性和/或流程属性配置的情况下,可以判断M的取值是否大于1,若仍然大于1,则可以表示还未完成流程模型中其他层级的流程模块的配置,则需要计算M与1的差值,得出的新的M的取值,再根据新的M的取值继续从操作S402开始执行,直至M的取值小于等于1。According to an embodiment of the present disclosure, in the process of generating the process model, the process model may be generated in the order from the Nth level to the first level. In the case where the process modules of the Mth level are configured to complete the module attribute and/or process attribute configuration, it can be determined whether the value of M is greater than 1, and if it is still greater than 1, it can indicate that the processes of other levels in the process model have not been completed. For the configuration of the module, it is necessary to calculate the difference between M and 1 to obtain a new value of M, and then continue to execute operation S402 according to the new value of M until the value of M is less than or equal to 1.

根据本公开的实施例,若M的取值小于等于1,则可以表示第1层级中的流程模块的模块属性和/或流程属性已经配置完成,表示已经生成流程模型。According to an embodiment of the present disclosure, if the value of M is less than or equal to 1, it may indicate that the module attributes and/or process attributes of the process modules in the first level have been configured, indicating that the process model has been generated.

根据本公开的实施例,通过将流程模型设计为可以具有多层嵌套结构的业务流程,将业务流程拆分为更小的模块,简化流程模型的逻辑,有利于业务流程的解耦,提高了业务流程系统的可用性和灵活性。According to the embodiments of the present disclosure, by designing the process model as a business process with a multi-layered nested structure, the business process is divided into smaller modules, the logic of the process model is simplified, the decoupling of the business process is facilitated, and the The availability and flexibility of the business process system.

根据本公开的实施例,操作S204还可以包括如下操作:基于多个流程模块的资源占用量属性,将多个流程模块分配到分布式系统的多个主机上。According to an embodiment of the present disclosure, operation S204 may further include the following operation: allocating multiple process modules to multiple hosts of the distributed system based on resource occupancy attributes of multiple process modules.

图5示意性示出了根据本公开实施例的流程模型的架构图。FIG. 5 schematically shows an architecture diagram of a process model according to an embodiment of the present disclosure.

如图5所示,流程模型可以包括N个层级的流程模块,在N个层级中的每个层级均可以设置有多个流程模块。在N大于2的情况下,第N层级的流程模块可以是只具有模块属性的流程模块,第1层级的流程模块可以是只具有流程属性的流程模块,第2层级至第N-1层级中的流程模块可以是既包括模块属性又包括流程属性的流程模块。图5中第M层级的流程模块不仅可以运行实体程序,还可以作为第M+1层级流程模块的执行关联模块。As shown in FIG. 5 , the process model may include process modules of N levels, and each level of the N levels may be provided with multiple process modules. In the case where N is greater than 2, the process module of the Nth level can be a process module with only module attributes, the process module of the first level can be a process module with only process attributes, and the process modules of the second level to the N-1th level can be A process module can be a process module that includes both module attributes and process attributes. The process module of the Mth level in FIG. 5 can not only run the entity program, but also can be used as an execution associated module of the M+1th level process module.

如图5所示,对于第M层级的流程模块,第M层级的流程模块的资源占用量属性可以表征为与第M层级的流程模块关联的至少一个第M+1层级的流程模块的资源占用量属性的加权和。As shown in FIG. 5, for the process module of the Mth level, the resource occupancy attribute of the process module of the Mth level can be represented as the resource occupation of at least one process module of the M+1th level associated with the process module of the Mth level Weighted sum of quantitative attributes.

根据本公开的实施例,通过使用基于资源占用量的负载均衡策略,可以实现各个流程模块之间的资源的合理分配,实现流程模块之间的负载均衡,进一步提高了业务流程的可用性和灵活性,提高业务流程的处理效率。According to the embodiments of the present disclosure, by using a load balancing strategy based on resource occupancy, a reasonable allocation of resources among various process modules can be achieved, load balancing among process modules can be achieved, and the availability and flexibility of business processes can be further improved , improve the processing efficiency of business processes.

根据本公开的实施例,通过将流程模型设计为可以具有多层嵌套结构的业务流程,将业务流程拆分为更小的模块,简化流程模型的逻辑,有利于业务流程的解耦,提高了业务流程系统的可用性和灵活性。According to the embodiments of the present disclosure, by designing the process model as a business process that can have a multi-layered nested structure, the business process is divided into smaller modules, the logic of the process model is simplified, the decoupling of the business process is facilitated, and the The availability and flexibility of the business process system.

图6示意性示出了根据本公开另一实施例的业务处理方法的流程图。FIG. 6 schematically shows a flowchart of a service processing method according to another embodiment of the present disclosure.

如图6所示,该业务处理方法包括操作S601~S609。As shown in FIG. 6 , the service processing method includes operations S601 to S609.

在操作S601,响应于接收到用户的配置需求,开始构建流程模型。In operation S601, in response to receiving a configuration requirement from a user, building a process model is started.

根据本公开的实施例,配置需求可以是关于构建流程模型的需求,配置需求可以包括与流程模块相关的模块名称、可执行程序调用地址、模块优先级、模型间的执行顺序、模块的执行主机等内容。According to an embodiment of the present disclosure, the configuration requirement may be a requirement for constructing a process model, and the configuration requirement may include a module name related to the process module, an executable program calling address, a module priority, an execution order between models, and an execution host of the module. and so on.

在操作S602,对于第N层级的流程模块,响应于接收到用户的第一配置操作,配置流程模块的模块属性,N是大于2的正整数。在一实施例中,操作S602可以参考操作S301。In operation S602, for the process module of the Nth level, in response to receiving the user's first configuration operation, configure the module attribute of the process module, where N is a positive integer greater than 2. In one embodiment, operation S602 may refer to operation S301.

在操作S603,对于第2层级至第N-1层级的流程模块,响应于用户的选择操作和连接操作,配置流程模块的模块属性和流程属性。在一实施例中,操作S603可以参考操作S302,或者参考操作S501~S505。In operation S603, for the process modules of the second level to the N-1th level, in response to the user's selection operation and connection operation, configure the module attribute and the process attribute of the process module. In one embodiment, operation S603 may refer to operation S302, or refer to operations S501-S505.

在操作S604,判断是否需要增加流程模块的层级数。In operation S604, it is determined whether it is necessary to increase the number of levels of the flow module.

根据本公开的实施例,可以根据用户的需要判断是否需要增加流程模块的层级数,在需要增加的情况下,继续从操作S603执行,直到满足用户的需求为止;在不需要增加的情况下,继续执行后续操作。According to the embodiments of the present disclosure, it can be determined whether the number of levels of the process module needs to be increased according to the needs of the user, and in the case of needing to increase, continue to execute from operation S603 until the needs of the user are satisfied; Proceed to the next steps.

在操作S605,基于对第2层级流程模块的连接操作配置第1层级的流程模块的流程属性。In operation S605, the flow attributes of the flow modules of the first level are configured based on the connection operation on the flow modules of the second level.

根据本公开的实施例,第1层级的流程模块可以只包括流程属性,具体地流程属性可以包括流程模型的名称、备注等信息。According to an embodiment of the present disclosure, the process module of the first level may only include process attributes, and specifically, the process attributes may include information such as the name and remarks of the process model.

在操作S606,完成流程模型的构建,并进行下发。In operation S606, the construction of the process model is completed and issued.

在操作S607,配置与流程模型相关联的启动程序,并启动流程模型。In operation S607, a startup program associated with the process model is configured, and the process model is started.

根据本公开的实施例,在完成流程模型的构建后,可以编写与启动流程相关的启动程序,用于启动该流程模型。该启动程序可以与该流程模型的名称相关联,便于更快速、高效地的启动该流程模型。According to the embodiments of the present disclosure, after the construction of the process model is completed, a start-up program related to the start-up process can be written to start the process model. The launcher can be associated with the name of the process model, so that the process model can be launched more quickly and efficiently.

在操作S608,使用预设负载均衡策略,将流程模型中的多个流程模块分配到分布式系统的多个主机上,由多个主机执行多个流程模块。In operation S608, using a preset load balancing strategy, multiple process modules in the process model are allocated to multiple hosts in the distributed system, and multiple hosts execute multiple process modules.

在操作S609,输出由多个主机执行多个流程模块的执行结果。In operation S609, the execution results of executing the plurality of process modules by the plurality of hosts are output.

根据本公开的实施例,在一实施例中,操作S608可以参考操作S204,流程模型可以根据配置完成的流程属性、模块属性进行执行,例如根据配置完成的模块优先级、模块排序或者分支条件完成执行。According to an embodiment of the present disclosure, in an embodiment, operation S608 may refer to operation S204, and the process model may be executed according to the configured process attributes and module attributes, for example, according to the configured module priority, module ordering, or branch conditions. implement.

需要说明的是,本公开实施例中的流程图所示的操作除非明确说明不同操作之间存在执行的先后顺序,或者不同操作在技术实现上存在执行的先后顺序,否则,多个操作之间的执行顺序可以不分先后,多个操作也可以同时执行。It should be noted that, unless it is clearly stated that the operations shown in the flowcharts in the embodiments of the present disclosure have a sequence of execution between different operations, or there is a sequence of execution of different operations in terms of technical implementation, otherwise, between multiple operations The order of execution can be in no particular order, and multiple operations can also be executed at the same time.

图7示意性示出了根据本公开的实施例的业务处理装置的框图。FIG. 7 schematically shows a block diagram of a service processing apparatus according to an embodiment of the present disclosure.

如图7所示,业务处理装置700包括接收模块710、确定模块720、生成模块730和分配模块740。As shown in FIG. 7 , the service processing apparatus 700 includes a receiving module 710 , a determining module 720 , a generating module 730 and an allocating module 740 .

接收模块710用于接收待处理业务的业务处理请求,其中,所述业务处理请求中携带有目标业务场景标识和目标业务参数。The receiving module 710 is configured to receive a service processing request of a service to be processed, wherein the service processing request carries a target service scenario identifier and target service parameters.

确定模块720用于响应于所述业务处理请求,根据所述目标业务场景标识从多个流程模型中确定目标流程模型,其中,所述流程模型包括位于N个层级的多个流程模块,所述N为大于2的正整数。The determining module 720 is configured to, in response to the business processing request, determine a target process model from a plurality of process models according to the target business scenario identifier, wherein the process model includes a plurality of process modules located at N levels, and the N is a positive integer greater than 2.

生成模块730用于基于所述目标流程模型和所述目标业务参数,生成所述待处理业务的业务流程实例。The generating module 730 is configured to generate a business process instance of the to-be-processed business based on the target process model and the target business parameter.

分配模块740用于使用预设负载均衡策略,将所述业务流程实例的多个流程模块分配到分布式系统的多个主机上,其中,所述多个主机处理所述待处理业务。The allocation module 740 is configured to use a preset load balancing strategy to allocate multiple process modules of the business process instance to multiple hosts of the distributed system, wherein the multiple hosts process the to-be-processed service.

根据本公开的实施例,业务处理装置还包括构建模块、获取模块和存入模块。According to an embodiment of the present disclosure, the service processing apparatus further includes a building module, an acquiring module, and a depositing module.

构建模块用于响应于接收到用户的配置操作,构建所述流程模型。The building module is used to build the process model in response to receiving the user's configuration operation.

获取模块用于响应于触发针对所述流程模型的存储指令,获取所述存储指令中携带的业务场景标识。The obtaining module is configured to, in response to triggering a storage instruction for the process model, obtain the business scenario identifier carried in the storage instruction.

存入模块用于以所述业务场景标识作为主键,将所述流程模型存入数据库中。The storing module is used for storing the process model in the database by using the business scenario identifier as a primary key.

根据本公开的实施例,构建模块可以包括第一配置单元、第二配置单元、构建单元。According to an embodiment of the present disclosure, the building module may include a first configuration unit, a second configuration unit, and a building unit.

第一配置单元用于对于第N层级的流程模块,响应于接收到用户的第一配置操作,配置所述流程模块的模块属性,其中,所述模块属性包括模块名称、可执行程序的调用地址和资源占用量属性;The first configuration unit is configured to, for the process module of the Nth level, configure the module attribute of the process module in response to receiving the first configuration operation of the user, wherein the module attribute includes the module name and the calling address of the executable program and resource footprint properties;

第二配置单元用于对于第1层级至第N-1层级中的任意层级的流程模块,响应于接收到所述用户的第二配置操作,配置所述流程模块的模块属性和流程属性;The second configuration unit is configured to configure the module attribute and the process attribute of the process module in response to receiving the second configuration operation of the user for the process module at any level in the 1st level to the N-1th level;

构建单元用于基于所述第N层级的流程模块的模块属性,和第1层级至第N-1层级中所有流程模块的模块属性和流程属性,构建得到所述流程模型。The construction unit is configured to construct the process model based on the module attributes of the process modules at the Nth level, and the module attributes and process attributes of all process modules in the first level to the N-1th level.

根据本公开的实施例,第一配置单元还可以包括第一配置子单元。According to an embodiment of the present disclosure, the first configuration unit may further include a first configuration subunit.

第一配置子单元,用于对于所述第N层级的流程模块,响应于所述用户的输入操作,基于所述输入操作中携带的输入信息来配置所述第N层级的流程模块的模块属性。a first configuration subunit, configured to, for the flow module at the Nth level, in response to an input operation of the user, configure the module attribute of the flow module at the Nth level based on the input information carried in the input operation .

根据本公开的实施例,第二配置单元包括第一确定子单元、第二确定子单元、绘制子单元、第三确定子单元、第二配置子单元。According to an embodiment of the present disclosure, the second configuration unit includes a first determination subunit, a second determination subunit, a drawing subunit, a third determination subunit, and a second configuration subunit.

第一确定子单元用于对于第M层级的流程模块,响应于用户的选择操作,确定与所述第M层级的流程模块关联的至少一个第M+1层级的流程模块,其中,所述M为小于所述N的正整数。The first determination subunit is configured to, for the process module of the Mth level, determine at least one process module of the M+1th level associated with the process module of the Mth level in response to a user's selection operation, wherein the M is a positive integer less than the N.

第二确定子单元用于基于至少一个所述第M+1层级的流程模块的模块属性,确定所述第M层级的流程模块的模块属性。The second determination subunit is configured to determine the module attribute of the process module of the Mth level based on the module attribute of at least one process module of the M+1th level.

绘制子单元用于将与至少一个所述第M+1层级的流程模块关联的至少一个图形绘制在显示界面上。The drawing subunit is configured to draw at least one graphic associated with at least one of the flow modules at the M+1th level on the display interface.

第三确定子单元用于响应于所述用户针对至少一个所述图形的连接操作,确定与所述连接操作对应的关系类型。The third determination subunit is configured to, in response to a connection operation of the user with respect to at least one of the graphics, determine a relationship type corresponding to the connection operation.

第二配置子单元用于基于所述关系类型配置所述第M层级的流程模块的流程属性。The second configuration subunit is configured to configure the process attribute of the process module of the Mth level based on the relationship type.

根据本公开的实施例,分配模块还可以包括分配单元。According to an embodiment of the present disclosure, the distribution module may further include a distribution unit.

分配单元用于基于多个所述流程模块的资源占用量属性,将多个所述流程模块分配到所述分布式系统的多个主机上。The allocating unit is configured to allocate a plurality of the process modules to a plurality of hosts of the distributed system based on resource occupancy attributes of the plurality of process modules.

根据本公开的实施例的模块、子模块、单元、子单元中的任意多个、或其中任意多个的至少部分功能可以在一个模块中实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以被拆分成多个模块来实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式的硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,根据本公开实施例的模块、子模块、单元、子单元中的一个或多个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。Any of the modules, sub-modules, units, sub-units, or at least part of the functions of any of them according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be divided into multiple modules for implementation. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as hardware circuits, such as field programmable gate arrays (FPGA), programmable logic arrays (PLA), A system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or any other reasonable means of hardware or firmware that integrates or packages circuits, or can be implemented in software, hardware, and firmware Any one of these implementations or an appropriate combination of any of them is implemented. Alternatively, one or more of the modules, sub-modules, units, and sub-units according to embodiments of the present disclosure may be implemented at least in part as computer program modules that, when executed, may perform corresponding functions.

例如,接收模块710、确定模块720、生成模块730和分配模块740中的任意多个可以合并在一个模块/单元/子单元中实现,或者其中的任意一个模块/单元/子单元可以被拆分成多个模块/单元/子单元。或者,这些模块/单元/子单元中的一个或多个模块/单元/子单元的至少部分功能可以与其他模块/单元/子单元的至少部分功能相结合,并在一个模块/单元/子单元中实现。根据本公开的实施例,接收模块710、确定模块720、生成模块730和分配模块740中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,接收模块710、确定模块720、生成模块730和分配模块740中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。For example, any one of the receiving module 710, the determining module 720, the generating module 730, and the allocating module 740 may be combined in one module/unit/subunit for implementation, or any one of the modules/units/subunits may be split into multiple modules/units/subunits. Alternatively, at least part of the functionality of one or more of these modules/units/subunits may be combined with at least part of the functionality of other modules/units/subunits and combined in one module/unit/subunit realized in. According to an embodiment of the present disclosure, at least one of the receiving module 710, the determining module 720, the generating module 730, and the allocating module 740 may be implemented at least partially as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), system-on-chip, system-on-substrate, system-on-package, application specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, etc. in hardware or firmware, or in software, It can be implemented in any one of the three implementation manners of hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the receiving module 710, the determining module 720, the generating module 730, and the allocating module 740 may be implemented at least in part as a computer program module that, when executed, may perform corresponding functions.

需要说明的是,本公开的实施例中业务处理装置部分与本公开的实施例中业务处理方法部分是相对应的,业务处理装置部分的描述具体参考业务处理方法部分,在此不再赘述。It should be noted that the part of the service processing apparatus in the embodiments of the present disclosure corresponds to the part of the service processing method in the embodiments of the present disclosure, and the description of the part of the service processing apparatus refers to the part of the service processing method, which is not repeated here.

图8示意性示出了根据本公开实施例的适于实现业务处理方法的电子设备的框图。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 8 schematically shows a block diagram of an electronic device suitable for implementing a business processing method according to an embodiment of the present disclosure. The electronic device shown in FIG. 8 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.

如图8所示,根据本公开实施例的计算机电子设备800包括处理器801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储部分808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。处理器801例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC)),等等。处理器801还可以包括用于缓存用途的板载存储器。处理器801可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 8 , a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can be loaded into a random access memory (RAM) 803 according to a program stored in a read only memory (ROM) 802 or from a storage portion 808 to execute various appropriate actions and processes. The processor 801 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or a related chipset, and/or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiments of the present disclosure.

在RAM 803中,存储有电子设备800操作所需的各种程序和数据。处理器801、ROM802以及RAM 803通过总线804彼此相连。处理器801通过执行ROM 802和/或RAM 803中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM802和RAM 803以外的一个或多个存储器中。处理器801也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 803, various programs and data necessary for the operation of the electronic device 800 are stored. The processor 801 , the ROM 802 and the RAM 803 are connected to each other through a bus 804 . The processor 801 performs various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 802 and/or the RAM 803 . Note that the program may also be stored in one or more memories other than the ROM 802 and the RAM 803 . The processor 801 may also perform various operations of the method flow according to the embodiments of the present disclosure by executing programs stored in the one or more memories.

根据本公开的实施例,电子设备800还可以包括输入/输出(I/O)接口805,输入/输出(I/O)接口805也连接至总线804。电子设备800还可以包括连接至I/O接口805的以下部件中的一项或多项:包括键盘、鼠标等的输入部分806;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分807;包括硬盘等的存储部分808;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分809。通信部分809经由诸如因特网的网络执行通信处理。驱动器810也根据需要连接至I/O接口805。可拆卸介质811,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器810上,以便于从其上读出的计算机程序根据需要被安装入存储部分808。According to an embodiment of the present disclosure, the electronic device 800 may also include an input/output (I/O) interface 805 that is also connected to the bus 804 . Electronic device 800 may also include one or more of the following components connected to I/O interface 805: input portion 806 including keyboard, mouse, etc.; including components such as cathode ray tube (CRT), liquid crystal display (LCD), etc., and An output section 807 of speakers and the like; a storage section 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, and the like. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I/O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

根据本公开的实施例,根据本公开实施例的方法流程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读存储介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分809从网络上被下载和安装,和/或从可拆卸介质811被安装。在该计算机程序被处理器801执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 809, and/or installed from the removable medium 811. When the computer program is executed by the processor 801, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the above-described systems, apparatuses, apparatuses, modules, units, etc. can be implemented by computer program modules.

本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist alone without being assembled into the device/system. device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed, implement the method according to the embodiment of the present disclosure.

根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质。例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disk read only memory (CD- ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM 802和/或RAM 803和/或ROM 802和RAM 803以外的一个或多个存储器。For example, according to embodiments of the present disclosure, a computer-readable storage medium may include one or more memories other than ROM 802 and/or RAM 803 and/or ROM 802 and RAM 803 described above.

本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行本公开实施例所提供的方法的程序代码,当计算机程序产品在电子设备上运行时,该程序代码用于使电子设备实现本公开实施例所提供的业务处理方法。The embodiments of the present disclosure also include a computer program product, which includes a computer program, the computer program includes program codes for executing the methods provided by the embodiments of the present disclosure, and when the computer program product runs on an electronic device, the program The code is used to enable the electronic device to implement the service processing method provided by the embodiments of the present disclosure.

在该计算机程序被处理器801执行时,执行本公开实施例的系统/装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor 801, the above-mentioned functions defined in the system/device of the embodiment of the present disclosure are performed. According to embodiments of the present disclosure, the systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules.

在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分809被下载和安装,和/或从可拆卸介质811被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal over a network medium, downloaded and installed through the communication section 809, and/or installed from a removable medium 811. The program code embodied by the computer program may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.

根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program code for executing the computer program provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages. programming language, and/or assembly/machine language to implement these computational programs. Programming languages include, but are not limited to, languages such as Java, C++, python, "C" or similar programming languages. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. Where remote computing devices are involved, the remote computing devices may be connected to the user computing device over any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented. Those skilled in the art will appreciate that various combinations and/or combinations of features recited in various embodiments and/or claims of the present disclosure are possible, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments of the present disclosure and/or the claims may be made without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of this disclosure.

以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。Embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only, and are not intended to limit the scope of the present disclosure. Although the various embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims (10)

1.一种业务处理方法,包括:1. A business processing method, comprising: 接收待处理业务的业务处理请求,其中,所述业务处理请求中携带有目标业务场景标识和目标业务参数;receiving a service processing request of a service to be processed, wherein the service processing request carries a target service scenario identifier and target service parameters; 响应于所述业务处理请求,根据所述目标业务场景标识从多个流程模型中确定目标流程模型,其中,所述流程模型包括位于N个层级的多个流程模块,所述N为大于2的正整数;In response to the business processing request, a target process model is determined from a plurality of process models according to the target business scenario identifier, wherein the process model includes a plurality of process modules located at N levels, and N is greater than 2. positive integer; 基于所述目标流程模型和所述目标业务参数,生成所述待处理业务的业务流程实例;以及Based on the target process model and the target business parameters, a business process instance of the to-be-processed business is generated; and 使用预设负载均衡策略,将所述业务流程实例的多个流程模块分配到分布式系统的多个主机上,其中,所述多个主机处理所述待处理业务。Using a preset load balancing strategy, multiple process modules of the business process instance are allocated to multiple hosts in the distributed system, wherein the multiple hosts process the to-be-processed service. 2.根据权利要求1所述的方法,还包括:2. The method of claim 1, further comprising: 响应于接收到用户的配置操作,构建所述流程模型;In response to receiving the user's configuration operation, constructing the process model; 响应于触发针对所述流程模型的存储指令,获取所述存储指令中携带的业务场景标识;以及In response to triggering a storage instruction for the process model, acquiring the business scenario identifier carried in the storage instruction; and 以所述业务场景标识作为主键,将所述流程模型存入数据库中。Using the business scenario identifier as a primary key, the process model is stored in a database. 3.根据权利要求2所述的方法,其中,所述响应于接收到用户的配置操作,构建所述流程模型,包括:3. The method of claim 2, wherein, in response to receiving a configuration operation from a user, constructing the process model comprises: 对于第N层级的流程模块,响应于接收到用户的第一配置操作,配置所述流程模块的模块属性,其中,所述模块属性包括模块名称、可执行程序的调用地址和资源占用量属性;For the process module of the Nth level, in response to receiving the user's first configuration operation, configure a module attribute of the process module, wherein the module attribute includes a module name, a calling address of an executable program, and a resource occupancy attribute; 对于第1层级至第N-1层级中的任意层级的流程模块,响应于接收到所述用户的第二配置操作,配置所述流程模块的模块属性和流程属性;以及For a process module at any of the 1st level to the N-1th level, in response to receiving the user's second configuration operation, configure the module attribute and the process attribute of the process module; and 基于所述第N层级的流程模块的模块属性,和第1层级至第N-1层级中所有流程模块的模块属性和流程属性,构建得到所述流程模型。The process model is constructed and obtained based on the module attributes of the process modules of the Nth level, and the module attributes and process attributes of all process modules in the 1st level to the N-1th level. 4.根据权利要求3所述的方法,其中,所述第一配置操作包括输入操作;4. The method of claim 3, wherein the first configuration operation comprises an input operation; 其中,所述对于第N层级的流程模块,响应于接收到用户的第一配置操作,配置所述流程模块的模块属性,包括:Wherein, for the process module of the Nth level, in response to receiving the user's first configuration operation, configuring the module attribute of the process module includes: 对于所述第N层级的流程模块,响应于所述用户的输入操作,基于所述输入操作中携带的输入信息来配置所述第N层级的流程模块的模块属性。For the process module of the Nth level, in response to the input operation of the user, the module attribute of the process module of the Nth level is configured based on the input information carried in the input operation. 5.根据权利要求3所述的方法,其中,所述第二配置操作包括选择操作和连接操作;5. The method of claim 3, wherein the second configuration operation comprises a selection operation and a connect operation; 其中,所述对于第1层级至第N-1层级中的任意层级的流程模块,响应于接收到用户的第二配置操作,配置所述流程模块的模块属性和流程属性,包括:Wherein, for the process modules of any level in the first level to the N-1th level, in response to receiving the second configuration operation from the user, configuring the module attributes and process attributes of the process module includes: 对于第M层级的流程模块,响应于用户的选择操作,确定与所述第M层级的流程模块关联的至少一个第M+1层级的流程模块,其中,所述M为小于所述N的正整数;For the process module of the Mth level, in response to the user's selection operation, determine at least one process module of the M+1th level associated with the process module of the Mth level, wherein the M is a positive value smaller than the N integer; 基于至少一个所述第M+1层级的流程模块的模块属性,确定所述第M层级的流程模块的模块属性;determining the module attribute of the process module of the Mth level based on the module property of at least one process module of the M+1th level; 将与至少一个所述第M+1层级的流程模块关联的至少一个图形绘制在显示界面上;drawing at least one graphic associated with at least one of the process modules at the M+1th level on the display interface; 响应于所述用户针对至少一个所述图形的连接操作,确定与所述连接操作对应的关系类型;以及In response to a connection operation by the user with respect to at least one of the graphs, determining a relationship type corresponding to the connection operation; and 基于所述关系类型配置所述第M层级的流程模块的流程属性。The process attribute of the process module of the Mth level is configured based on the relationship type. 6.根据权利要求5所述的方法,其中,对于所述第M层级的流程模块,所述第M层级的流程模块的资源占用量属性表征为与所述第M层级的流程模块关联的至少一个所述第M+1层级的流程模块的资源占用量属性的加权和;6. The method according to claim 5, wherein, for the process module of the Mth level, the resource occupancy attribute of the process module of the Mth level is characterized as at least a value associated with the process module of the Mth level. A weighted sum of the resource occupancy attributes of the process modules at the M+1th level; 其中,所述使用预设负载均衡策略,将所述业务流程实例的多个流程模块分配到分布式系统的多个主机上,包括:Wherein, using the preset load balancing strategy to allocate multiple process modules of the business process instance to multiple hosts of the distributed system, including: 基于多个所述流程模块的资源占用量属性,将多个所述流程模块分配到所述分布式系统的多个主机上。Based on resource occupancy attributes of the plurality of process modules, the plurality of process modules are allocated to the plurality of hosts of the distributed system. 7.一种业务处理装置,包括:7. A service processing device, comprising: 接收模块,用于接收待处理业务的业务处理请求,其中,所述业务处理请求中携带有目标业务场景标识和目标业务参数;a receiving module, configured to receive a service processing request of a to-be-processed service, wherein the service processing request carries a target service scenario identifier and target service parameters; 确定模块,用于响应于所述业务处理请求,根据所述目标业务场景标识从多个流程模型中确定目标流程模型,其中,所述流程模型包括位于N个层级的多个流程模块,所述N为大于2的正整数;A determination module, configured to determine a target process model from a plurality of process models according to the target business scenario identifier in response to the service processing request, wherein the process model includes a plurality of process modules located at N levels, and the N is a positive integer greater than 2; 生成模块,用于基于所述目标流程模型和所述目标业务参数,生成所述待处理业务的业务流程实例;a generating module, configured to generate a business process instance of the business to be processed based on the target process model and the target business parameter; 分配模块,用于使用预设负载均衡策略,将所述业务流程实例的多个流程模块分配到分布式系统的多个主机上,其中,所述多个主机处理所述待处理业务。The allocation module is configured to use a preset load balancing strategy to allocate multiple process modules of the business process instance to multiple hosts of the distributed system, wherein the multiple hosts process the to-be-processed service. 8.一种电子设备,包括:8. An electronic device comprising: 一个或多个处理器;one or more processors; 存储器,用于存储一个或多个指令,memory for storing one or more instructions, 其中,当所述一个或多个指令被所述一个或多个处理器执行时,使得所述一个或多个处理器实现权利要求1至6中任一项所述的方法。wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6. 9.一种计算机可读存储介质,其上存储有可执行指令,所述可执行指令被处理器执行时使处理器实现权利要求1至6中任一项所述的方法。9. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement the method of any one of claims 1 to 6. 10.一种计算机程序产品,所述计算机程序产品包括计算机可执行指令,所述计算机可执行指令在被执行时用于实现权利要求1至6中任一项所述的方法。10. A computer program product comprising computer-executable instructions which, when executed, are used to implement the method of any one of claims 1 to 6.
CN202210355433.3A 2022-04-06 2022-04-06 Business processing method, apparatus, equipment and medium Pending CN114816736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210355433.3A CN114816736A (en) 2022-04-06 2022-04-06 Business processing method, apparatus, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210355433.3A CN114816736A (en) 2022-04-06 2022-04-06 Business processing method, apparatus, equipment and medium

Publications (1)

Publication Number Publication Date
CN114816736A true CN114816736A (en) 2022-07-29

Family

ID=82532813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210355433.3A Pending CN114816736A (en) 2022-04-06 2022-04-06 Business processing method, apparatus, equipment and medium

Country Status (1)

Country Link
CN (1) CN114816736A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318117A1 (en) * 2012-05-22 2013-11-28 Oracle International Corporation Directory server processing requests based on hierarchical models while using backend servers operating based on relational models
CN103873433A (en) * 2012-12-07 2014-06-18 中国移动通信集团福建有限公司 Service activation-based data processing method, device, server and system
US8918493B1 (en) * 2012-06-28 2014-12-23 Emc Corporation Methods and apparatus for automating service lifecycle management
CN109767198A (en) * 2018-10-25 2019-05-17 绍兴大明电力建设有限公司 Operation system intelligent management and device
CN112527421A (en) * 2020-12-28 2021-03-19 平安普惠企业管理有限公司 Service calling method, device, equipment and storage medium
CN113110963A (en) * 2021-04-28 2021-07-13 北京京东拓先科技有限公司 Service processing method, service processing device, electronic equipment and readable storage medium
CN113362165A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Service processing method, device and equipment
CN113590304A (en) * 2021-02-07 2021-11-02 腾讯科技(深圳)有限公司 Business data processing method and device, computer equipment and storage medium
CN113703935A (en) * 2021-03-16 2021-11-26 腾讯科技(深圳)有限公司 Asynchronous task scheduling method and device, electronic equipment and storage medium
CN113762762A (en) * 2021-08-30 2021-12-07 山东大学 Business Process Dynamic Modeling Method and System
CN114037422A (en) * 2021-11-10 2022-02-11 中国建设银行股份有限公司 Service processing method, system, device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318117A1 (en) * 2012-05-22 2013-11-28 Oracle International Corporation Directory server processing requests based on hierarchical models while using backend servers operating based on relational models
US8918493B1 (en) * 2012-06-28 2014-12-23 Emc Corporation Methods and apparatus for automating service lifecycle management
CN103873433A (en) * 2012-12-07 2014-06-18 中国移动通信集团福建有限公司 Service activation-based data processing method, device, server and system
CN109767198A (en) * 2018-10-25 2019-05-17 绍兴大明电力建设有限公司 Operation system intelligent management and device
CN112527421A (en) * 2020-12-28 2021-03-19 平安普惠企业管理有限公司 Service calling method, device, equipment and storage medium
CN113590304A (en) * 2021-02-07 2021-11-02 腾讯科技(深圳)有限公司 Business data processing method and device, computer equipment and storage medium
CN113703935A (en) * 2021-03-16 2021-11-26 腾讯科技(深圳)有限公司 Asynchronous task scheduling method and device, electronic equipment and storage medium
CN113110963A (en) * 2021-04-28 2021-07-13 北京京东拓先科技有限公司 Service processing method, service processing device, electronic equipment and readable storage medium
CN113362165A (en) * 2021-06-30 2021-09-07 中国农业银行股份有限公司 Service processing method, device and equipment
CN113762762A (en) * 2021-08-30 2021-12-07 山东大学 Business Process Dynamic Modeling Method and System
CN114037422A (en) * 2021-11-10 2022-02-11 中国建设银行股份有限公司 Service processing method, system, device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BUDAN WU: "A Semantic Extended Multi-layer Model for BPEL Process Generation", 2012 IEEE INTERNATIONAL CONFERENCE ON SERVICES COMPUTING (SCC), 27 September 2012 (2012-09-27) *
徐久强;郭雪静;王进法;李鹤群;赵海;: "CPS资源服务模型和资源调度研究", 计算机学报, no. 10, 14 May 2018 (2018-05-14) *
赵崇崇: "基于多层线性模型的移动数据业务使用意愿研究", 中国优秀硕士学位论文全文数据库 (信息科技辑), no. 04, 15 April 2015 (2015-04-15) *

Similar Documents

Publication Publication Date Title
US10701140B2 (en) Automated ETL resource provisioner
US8825863B2 (en) Virtual machine placement within a server farm
US8819683B2 (en) Scalable distributed compute based on business rules
US20110022861A1 (en) Reducing power consumption in data centers having nodes for hosting virtual machines
JP6234477B2 (en) Method, computer program, and system for calculating a regression model
US20140280441A1 (en) Data integration on retargetable engines in a networked environment
US20200082316A1 (en) Cognitive handling of workload requests
US10534582B2 (en) Application deployment on a host platform based on text tags descriptive of application requirements
US10929567B2 (en) Parallel access to running electronic design automation (EDA) application
US20190138474A1 (en) System, method, and recording medium for topology-aware parallel reduction in an accelerator
US20210011847A1 (en) Optimized sorting of variable-length records
US20230196182A1 (en) Database resource management using predictive models
US9317328B2 (en) Strategic placement of jobs for spatial elasticity in a high-performance computing environment
US11573823B2 (en) Parallel execution of applications
CN1783121A (en) Method and system for executing design automation
CN114548928B (en) Application review methods, devices, equipment and media
CN114816736A (en) Business processing method, apparatus, equipment and medium
US11556387B2 (en) Scheduling jobs
CN114595061A (en) Resource configuration method and apparatus, electronic device and computer-readable storage medium
US9680701B2 (en) Differentiating image files in a networked computing environment
WO2023169350A1 (en) Distribution of over-configured logical processors
WO2024099246A1 (en) Container cross-cluster capacity scaling
US11500870B1 (en) Flexible query execution
US12072882B2 (en) Database query processing
US10970116B2 (en) Memory management applicable to distributed data structures

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