CN114546344A - A method and apparatus for generating a process - Google Patents

A method and apparatus for generating a process Download PDF

Info

Publication number
CN114546344A
CN114546344A CN202210166033.8A CN202210166033A CN114546344A CN 114546344 A CN114546344 A CN 114546344A CN 202210166033 A CN202210166033 A CN 202210166033A CN 114546344 A CN114546344 A CN 114546344A
Authority
CN
China
Prior art keywords
node
objects
process definition
connection
approval
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
CN202210166033.8A
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.)
Chinabank Payments Beijing Technology Co Ltd
Original Assignee
Chinabank Payments Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chinabank Payments Beijing Technology Co Ltd filed Critical Chinabank Payments Beijing Technology Co Ltd
Priority to CN202210166033.8A priority Critical patent/CN114546344A/en
Publication of CN114546344A publication Critical patent/CN114546344A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Landscapes

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

Abstract

The invention discloses a method and a device for generating a flow, and relates to the technical field of computers. One embodiment of the method comprises: mapping a flow definition represented by an extensible markup language to a flow definition object; the process definition object comprises a node object and a connecting line object; configuring the attribute of the node object and the attribute of the connecting line object according to the process definition; adding a node object and a link object according to the tagging request, and configuring the attribute of the added node object and the attribute of the added link object so as to obtain a new process definition object; and mapping the new flow definition object to a new flow definition represented by an extensible markup language. The implementation method can solve the technical problem of complex manual signature adding operation.

Description

一种生成流程的方法和装置A method and apparatus for generating a process

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种生成流程的方法和装置。The present invention relates to the field of computer technology, and in particular, to a method and apparatus for generating a process.

背景技术Background technique

现有业务中,需要在流程运行过程中动态地实现会签与加签的嵌套组合,流程才能往下走。为了解决此类问题,现有技术一般采用以下两种方法:In the existing business, it is necessary to dynamically realize the nested combination of counter-signing and adding-signing in the process of running the process, so that the process can go down. In order to solve such problems, the prior art generally adopts the following two methods:

1)使用Activity等提供的多任务节点,一个节点对应多个任务,每个任务分给不同的人,当所有人的任务都结束后,该节点才算完成,然后流程实例进入下一个节点。当有加签的情况时,手动地维护节点之间的前后关系。1) Use the multi-task nodes provided by Activity, etc. One node corresponds to multiple tasks, and each task is assigned to different people. When all tasks are completed, the node is completed, and then the process instance enters the next node. When there is a case of adding a signature, manually maintain the contextual relationship between nodes.

2)使用顺序流,即把并行关系串行化。即:A、B同时审批的情况变为,A先审批,然后B审批,B审批完成后,就算会签完成。当有加签的情况时,手动地维护节点之间的前后关系。2) Use sequence flow, that is, serialize parallel relationships. That is, when A and B are approved at the same time, A first approves, then B approves, and after B's approval is completed, even if the countersign is completed. When there is a case of adding a signature, manually maintain the contextual relationship between nodes.

在实现本发明过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art:

对于第一种方法来说,如果需要加签,那么多任务节点本身是没有提供这种语义的,另外手动地维护节点之间的前后关系是脱离开流程定义的,而且操作繁琐,对后续的追溯也会有较大难度。For the first method, if signing is required, the multi-task node itself does not provide such semantics. In addition, manually maintaining the contextual relationship between nodes is separated from the process definition, and the operation is cumbersome. It will also be more difficult to trace back.

对于第二种方法来说,这实际上是伪会签,串行化节点关系会导致作业效率显著下降,尤其是需要数十人、数百人会签时,对效率的影响尤为严重。For the second method, this is actually a pseudo countersignature, and serializing the node relationship will lead to a significant drop in operation efficiency, especially when dozens or hundreds of people are required to countersign, the impact on efficiency is particularly serious.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例提供一种生成流程的方法和装置,以解决手动加签操作繁琐的技术问题。In view of this, the embodiments of the present invention provide a method and apparatus for generating a process, so as to solve the technical problem of cumbersome manual signing operation.

为实现上述目的,根据本发明实施例的一个方面,提供了一种生成流程的方法,包括:To achieve the above object, according to an aspect of the embodiments of the present invention, a method for generating a process is provided, including:

将由可扩展标记语言表示的流程定义映射为流程定义对象;其中,所述流程定义对象包括节点对象和连线对象;Mapping the process definition represented by the extensible markup language into a process definition object; wherein, the process definition object includes a node object and a connection object;

根据所述流程定义配置所述节点对象的属性和所述连线对象的属性;Configure the attribute of the node object and the attribute of the connection object according to the process definition;

根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象;Add a node object and a connection object according to the signing request, and configure the properties of the new node object and the new connection object, so as to obtain a new process definition object;

将所述新的流程定义对象映射为由可扩展标记语言表示的新的流程定义。The new process definition object is mapped to a new process definition represented by an extensible markup language.

可选地,将由可扩展标记语言表示的流程定义映射为流程定义对象,包括:Optionally, map process definitions represented by Extensible Markup Language to process definition objects, including:

将由可扩展标记语言表示的节点集合映射为节点集合对象;Mapping node collections represented by Extensible Markup Language into node collection objects;

将由可扩展标记语言表示的不同属性的节点映射为不同的节点对象;其中,所述不同的节点对象包括并发分裂节点对象、单签审批节点对象和同步节点对象;mapping nodes with different attributes represented by extensible markup language into different node objects; wherein, the different node objects include concurrent split node objects, single-sign approval node objects and synchronization node objects;

将由可扩展标记语言表示的连线集合映射为连线集合对象;Mapping a wire collection represented by the Extensible Markup Language to a wire collection object;

将由可扩展标记语言表示的连线映射为连线对象。Maps wires represented by Extensible Markup Language to wire objects.

可选地,根据所述流程定义配置所述节点对象的属性和所述连线对象的属性,包括:Optionally, configure the attributes of the node object and the attributes of the connection object according to the process definition, including:

根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性;Configure the attributes of the concurrent split node object, the single-sign approval node object and the synchronization node object in sequence according to the process definition;

根据所述流程定义配置所述连线对象的属性。Properties of the wire object are configured according to the process definition.

可选地,根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性,包括:Optionally, according to the process definition, sequentially configure the attributes of the concurrent split node object, the single-sign approval node object, and the synchronization node object, including:

在所述节点集合对象的集合中增加并发分裂节点对象,并根据所述流程定义配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects, and configuring the identifier of the concurrent split node object according to the process definition;

对于所述流程定义中的会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并根据所述流程定义配置所述单签审批节点对象的属性;其中,所述单签审批节点对象的属性包括审批方式和审批人;For each element in the counter-sign approval node in the process definition, add a single-sign approval node object to the set of node set objects, and configure the properties of the single-sign approval node object according to the process definition; wherein , the attributes of the single-sign approval node object include an approval method and an approver;

在所述节点集合对象的集合中增加同步节点对象,并根据所述流程定义配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of the node set objects, and the identifier of the synchronization node object and the identifier of the corresponding concurrent split node object are configured according to the process definition.

可选地,根据所述流程定义配置所述连线对象的属性,包括:Optionally, configure the properties of the connection object according to the process definition, including:

对于所述流程定义中的会签审批节点中的每个元素,在所述连线集合对象的集合中增加连线对象,并配置所述连线对象的属性。For each element in the countersignature approval node in the process definition, a connection object is added to the collection of connection collection objects, and the properties of the connection object are configured.

可选地,所述加签请求携带待加签节点和加签节点类型;其中,所述加签节点类型包括单签审批节点和会签审批节点。Optionally, the signing request carries the node to be signed and the type of the signing node; wherein, the signing node type includes a single signing approval node and a countersigning approval node.

可选地,根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象,包括:Optionally, add a node object and a connection object according to the signing request, and configure the attributes of the newly added node object and the newly added connection object, so as to obtain a new process definition object, including:

根据加签请求在所述节点集合对象的集合中增加节点对象,配置新增的节点对象的属性;adding a node object to the set of node set objects according to the signing request, and configuring the properties of the newly added node object;

根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性;adding a connection object to the set of connection collection objects according to the signing request, and configuring the properties of the newly added connection object;

从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到新的流程定义对象。The connection objects between the node object to be signed and its adjacent node objects are deleted from the set of connection set objects, so as to obtain a new process definition object.

可选地,若所述加签节点类型为会签审批节点;Optionally, if the type of the signed node is a countersigned approval node;

根据加签请求在所述节点集合对象的集合中增加节点对象,配置新增的节点对象的属性,包括:Add a node object to the set of node set objects according to the signing request, and configure the properties of the newly added node object, including:

根据加签请求在所述节点集合对象的集合中增加并发分裂节点对象,并配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects according to the signing request, and configuring the identifier of the concurrent split node object;

对于所述加签请求中的所述会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并配置所述单签审批节点对象的属性;For each element in the counter-sign approval node in the signing request, add a single-sign approval node object to the set of node set objects, and configure the attributes of the single-sign approval node object;

在所述节点集合对象的集合中增加同步节点对象,并配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of node set objects, and an identifier of the synchronization node object and an identifier of the corresponding concurrent split node object are configured.

另外,根据本发明实施例的另一个方面,提供了一种生成流程的装置,包括:In addition, according to another aspect of the embodiments of the present invention, an apparatus for generating a process is provided, including:

对象转换模块,用于将由可扩展标记语言表示的流程定义映射为流程定义对象;其中,所述流程定义对象包括节点对象和连线对象;an object conversion module for mapping a process definition represented by an extensible markup language into a process definition object; wherein, the process definition object includes a node object and a connection object;

配置模块,用于根据所述流程定义配置所述节点对象的属性和所述连线对象的属性;a configuration module, configured to configure the attributes of the node objects and the attributes of the connection objects according to the process definition;

加签模块,用于根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象;The signing module is used to add a node object and a connection object according to the signing request, and configure the attributes of the newly added node object and the newly added connection object, so as to obtain a new process definition object;

定义转换模块,用于将所述新的流程定义对象映射为由可扩展标记语言表示的新的流程定义。A definition conversion module is used to map the new process definition object into a new process definition represented by an extensible markup language.

可选地,所述对象转换模块还用于:Optionally, the object conversion module is also used for:

将由可扩展标记语言表示的节点集合映射为节点集合对象;Mapping node collections represented by Extensible Markup Language into node collection objects;

将由可扩展标记语言表示的不同属性的节点映射为不同的节点对象;其中,所述不同的节点对象包括并发分裂节点对象、单签审批节点对象和同步节点对象;mapping nodes with different attributes represented by extensible markup language into different node objects; wherein, the different node objects include concurrent split node objects, single-sign approval node objects and synchronization node objects;

将由可扩展标记语言表示的连线集合映射为连线集合对象;Mapping a wire collection represented by the Extensible Markup Language to a wire collection object;

将由可扩展标记语言表示的连线映射为连线对象。Maps wires represented by Extensible Markup Language to wire objects.

可选地,所述配置模块还用于:Optionally, the configuration module is also used for:

根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性;Configure the attributes of the concurrent split node object, the single-sign approval node object and the synchronization node object in sequence according to the process definition;

根据所述流程定义配置所述连线对象的属性。Properties of the wire object are configured according to the process definition.

可选地,所述配置模块还用于:Optionally, the configuration module is also used for:

在所述节点集合对象的集合中增加并发分裂节点对象,并根据所述流程定义配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects, and configuring the identifier of the concurrent split node object according to the process definition;

对于所述流程定义中的会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并根据所述流程定义配置所述单签审批节点对象的属性;其中,所述单签审批节点对象的属性包括审批方式和审批人;For each element in the counter-sign approval node in the process definition, add a single-sign approval node object to the set of node set objects, and configure the properties of the single-sign approval node object according to the process definition; wherein , the attributes of the single-sign approval node object include an approval method and an approver;

在所述节点集合对象的集合中增加同步节点对象,并根据所述流程定义配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of the node set objects, and the identifier of the synchronization node object and the identifier of the corresponding concurrent split node object are configured according to the process definition.

可选地,所述配置模块还用于:Optionally, the configuration module is also used for:

对于所述流程定义中的会签审批节点中的每个元素,在所述连线集合对象的集合中增加连线对象,并配置所述连线对象的属性。For each element in the countersignature approval node in the process definition, a connection object is added to the collection of connection collection objects, and the properties of the connection object are configured.

可选地,所述加签请求携带待加签节点和加签节点类型;其中,所述加签节点类型包括单签审批节点和会签审批节点。Optionally, the signing request carries the node to be signed and the type of the signing node; wherein, the signing node type includes a single signing approval node and a countersigning approval node.

可选地,所述加签模块还用于:Optionally, the signing module is also used for:

根据加签请求在所述节点集合对象的集合中增加节点对象,配置新增的节点对象的属性;adding a node object to the set of node set objects according to the signing request, and configuring the properties of the newly added node object;

根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性;adding a connection object to the set of connection collection objects according to the signing request, and configuring the properties of the newly added connection object;

从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到新的流程定义对象。The connection objects between the node object to be signed and its adjacent node objects are deleted from the set of connection set objects, so as to obtain a new process definition object.

可选地,若所述加签节点类型为会签审批节点;Optionally, if the type of the signed node is a countersigned approval node;

所述加签模块还用于:The signing module is also used for:

根据加签请求在所述节点集合对象的集合中增加并发分裂节点对象,并配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects according to the signing request, and configuring the identifier of the concurrent split node object;

对于所述加签请求中的所述会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并配置所述单签审批节点对象的属性;For each element in the counter-sign approval node in the signing request, add a single-sign approval node object to the set of node set objects, and configure the attributes of the single-sign approval node object;

在所述节点集合对象的集合中增加同步节点对象,并配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of node set objects, and an identifier of the synchronization node object and an identifier of the corresponding concurrent split node object are configured.

根据本发明实施例的另一个方面,还提供了一种电子设备,包括:According to another aspect of the embodiments of the present invention, an electronic device is also provided, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行时,所述一个或多个处理器实现上述任一实施例所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

根据本发明实施例的另一个方面,还提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现上述任一实施例所述的方法。According to another aspect of the embodiments of the present invention, there is also provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the method described in any of the foregoing embodiments.

上述发明中的一个实施例具有如下优点或有益效果:因为采用根据流程定义配置节点对象的属性和连线对象的属性,根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象的技术手段,所以克服了现有技术中手动加签操作繁琐的技术问题。本发明实施例能够根据业务流程的需要动态地指定会签人数,并提供前后加签功能,能够在不影响会签效率的情况下,实现动态的会签与加签互相嵌套,而且操作简单,通过调用流程生成接口即可实现。An embodiment of the above invention has the following advantages or beneficial effects: because the attributes of the node object and the attribute of the connection object are configured according to the process definition, the node object and the connection object are added according to the signing request, and the newly added node is configured. The attribute of the object and the attribute of the newly added connection object are obtained to obtain the technical means of the new process definition object, so the technical problem of the complicated manual signing operation in the prior art is overcome. The embodiment of the present invention can dynamically specify the number of countersigners according to the needs of the business process, and provides the function of adding front and back signatures, and can realize the dynamic nesting of countersigning and adding signatures without affecting the efficiency of countersigning, and the operation is simple. The process generation interface can be implemented.

上述的非惯用的可选方式所具有的进一步效果将在下文中结合具体实施方式加以说明。Further effects of the above non-conventional alternatives will be described below in conjunction with specific embodiments.

附图说明Description of drawings

附图用于更好地理解本发明,不构成对本发明的不当限定。其中:The accompanying drawings are used for better understanding of the present invention and do not constitute an improper limitation of the present invention. in:

图1是根据本发明实施例的生成流程的方法的主要流程的示意图;1 is a schematic diagram of a main flow of a method for generating a flow according to an embodiment of the present invention;

图2是根据本发明实施例的JAVA对象表示的流程定义的示意图;2 is a schematic diagram of a process definition represented by a JAVA object according to an embodiment of the present invention;

图3是根据本发明实施例的XML格式表示的会签节点的示意图;3 is a schematic diagram of a countersign node represented in an XML format according to an embodiment of the present invention;

图4是根据本发明实施例的JAVA对象表示的会签节点的示意图;4 is a schematic diagram of a countersign node represented by a JAVA object according to an embodiment of the present invention;

图5是根据本发明一个可参考实施例的生成流程的方法的主要流程的示意图;5 is a schematic diagram of the main flow of a method for generating a flow according to a referenced embodiment of the present invention;

图6是根据本发明实施例的生成流程的装置的主要模块的示意图;6 is a schematic diagram of main modules of an apparatus for generating a process flow according to an embodiment of the present invention;

图7是本发明实施例可以应用于其中的示例性系统架构图;FIG. 7 is an exemplary system architecture diagram to which an embodiment of the present invention may be applied;

图8是适于用来实现本发明实施例的终端设备或服务器的计算机系统的结构示意图。FIG. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明的示范性实施例做出说明,其中包括本发明实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本发明的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

图1是根据本发明实施例的生成流程的方法的主要流程的示意图。作为本发明的一个实施例,如图1所示,所述生成流程的方法可以包括:FIG. 1 is a schematic diagram of a main flow of a method for generating a flow according to an embodiment of the present invention. As an embodiment of the present invention, as shown in FIG. 1 , the method for generating a process may include:

步骤101,将由可扩展标记语言表示的流程定义映射为流程定义对象;其中,所述流程定义对象包括节点对象和连线对象。Step 101: Map the process definition expressed by the extensible markup language into a process definition object; wherein, the process definition object includes a node object and a connection object.

可以先编写由可扩展标记语言表示的流程定义(比如由XML格式表示的流程定义),如下所示,其为由可扩展标记语言表示的流程定义的示例:A process definition expressed by an extensible markup language (such as a process definition expressed in XML format) can be written first, as shown below, which is an example of a process definition expressed by an extensible markup language:

Figure BDA0003515957200000081
Figure BDA0003515957200000081

Figure BDA0003515957200000091
Figure BDA0003515957200000091

其中,nodes表示所有的节点,node表示一个单一节点,由type属性来表示不同的节点,比如:approval为审批节点,start为开始节点,end为结束节点,fork为并发分裂节点,join为同步节点。Among them, nodes represents all nodes, node represents a single node, and different nodes are represented by the type attribute, for example: approval is an approval node, start is a start node, end is an end node, fork is a concurrent split node, and join is a synchronization node .

node中的config表示该节点的配置信息,不同的节点会有不同的配置信息的结构和配置项,对于审批节点来说会配置审批的方式,可以通过method来指定,比如:会签、或签、单签等审批方式。对于join节点来说,forkID表示同步哪一个并发分裂节点。connectors表示所有的连线,connector表示一个连线,由from节点开始,到to节点结束。The config in the node represents the configuration information of the node. Different nodes will have different configuration information structures and configuration items. For the approval node, the approval method will be configured, which can be specified by method, such as: countersign, or sign, Approval methods such as single signature. For join nodes, forkID indicates which concurrent split node to synchronize. Connectors represent all connections, and connector represents a connection, starting from the from node and ending at the to node.

可选地,步骤101可以包括:将由可扩展标记语言表示的节点集合映射为节点集合对象;将由可扩展标记语言表示的不同属性的节点映射为不同的节点对象;其中,所述不同的节点对象包括并发分裂节点对象、单签审批节点对象和同步节点对象;将由可扩展标记语言表示的连线集合映射为连线集合对象;将由可扩展标记语言表示的连线映射为连线对象。为了能够在内存中运行,首先将由可扩展标记语言(比如XML)表示的流程定义映射为流程定义对象,比如JAVA对象,从而生成由JAVA对象表示的流程定义对象,如图2所示。其中,XML格式表示的nodes节点会映射为nodes对象(即节点集合对象),不同的节点会映射为不同的node对象,取决于节点的type,比如:审批节点会映射为approval对象(即单签审批节点对象),并发分裂节点会映射为fork对象(即并发分裂节点对象),同步节点会映射为join对象(即同步节点对象),XML格式表示的connectors会映射为connectors对象(即连线集合对象),XML格式表示的connector会映射为connector对象(即连线对象)。Optionally, step 101 may include: mapping the node set represented by the extensible markup language into a node set object; mapping nodes with different attributes represented by the extensible markup language into different node objects; wherein, the different node objects Including concurrent split node object, single-sign approval node object and synchronization node object; mapping the connection set represented by extensible markup language to connection collection object; mapping the connection represented by extensible markup language to connection object. In order to be able to run in memory, the process definition represented by extensible markup language (such as XML) is first mapped to process definition objects, such as JAVA objects, thereby generating process definition objects represented by JAVA objects, as shown in Figure 2. Among them, the nodes nodes represented in XML format will be mapped to nodes objects (that is, node collection objects), and different nodes will be mapped to different node objects, depending on the type of nodes, for example: approval nodes will be mapped to approval objects (that is, single-signature objects). Approval node object), concurrent split nodes will be mapped to fork objects (ie concurrent split node objects), sync nodes will be mapped to join objects (ie sync node objects), and connectors represented in XML format will be mapped to connectors objects (ie connection collections) object), the connector represented in XML format will be mapped to the connector object (ie, the connection object).

步骤102,根据所述流程定义配置所述节点对象的属性和所述连线对象的属性。Step 102 , configure the attributes of the node object and the attributes of the connection object according to the process definition.

接着,根据XML格式表示的流程定义配置JAVA对象的属性,也就是配置各个节点对象的属性和各个连线对象的属性。Next, configure the properties of the JAVA object according to the process definition expressed in the XML format, that is, configure the properties of each node object and the properties of each connection object.

可选地,步骤102可以包括:根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性;根据所述流程定义配置所述连线对象的属性。在本发明的实施例中,当需要配置会签节点时,首先配置并发分裂节点对象(fork对象)的属性,然后配置会签节点中各个元素对应的各个单签审批节点对象(approval对象)的属性,接着配置同步节点对象(join对象)的属性,最后将上述这些对象通过连线对象连接起来,并配置各个连线对象的属性。Optionally, step 102 may include: sequentially configuring the properties of the concurrent split node object, the single-sign approval node object and the synchronization node object according to the process definition; and configuring the properties of the connection object according to the process definition. In the embodiment of the present invention, when a countersign node needs to be configured, first configure the properties of the concurrent split node object (fork object), and then configure the properties of each single signature approval node object (approval object) corresponding to each element in the countersign node, Then configure the properties of the synchronization node object (join object), and finally connect the above objects through the connection object, and configure the properties of each connection object.

可选地,根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性,包括:在所述节点集合对象的集合中增加并发分裂节点对象,并根据所述流程定义配置所述并发分裂节点对象的标识;对于所述流程定义中的会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并根据所述流程定义配置所述单签审批节点对象的属性;其中,所述单签审批节点对象的属性包括审批方式和审批人;在所述节点集合对象的集合中增加同步节点对象,并根据所述流程定义配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。Optionally, sequentially configuring the attributes of the concurrent split node object, the single-sign approval node object, and the synchronization node object according to the process definition includes: adding a concurrent split node object to the set of the node set objects, and according to the process Define and configure the identifier of the concurrent split node object; for each element in the counter-sign approval node in the process definition, add a single-sign approval node object to the set of node set objects, and configure it according to the process definition Attributes of the single-sign approval node object; wherein, the attributes of the single-sign approval node object include an approval method and an approver; add a synchronization node object to the set of node set objects, and configure all nodes according to the process definition. Describe the identity of the synchronization node object and the identity of the corresponding concurrent split node object.

以图2为例,首先,生成并发分裂节点对象:在nodes对象的list集合中,增加一个fork对象,配置该对象的id为X;接着,生成单签审批节点对象:如图3所示,对于流程定义中的会签审批节点的elements中的每个元素(A、B、C),在nodes对象的list集合中,增加一个approval对象,配置该对象的method属性为“单签”,name属性为该元素对应的单个审批人;最后,生成同步节点对象:在nodes对象的list集合中,增加一个join对象,配置该对象的forkID为X,配置该对象的id为Y,最终得到如图4所示的会签节点。Taking Figure 2 as an example, first, generate a concurrent split node object: add a fork object to the list set of the nodes object, and configure the id of the object as X; then, generate a single-sign approval node object: as shown in Figure 3, For each element (A, B, C) in the elements of the countersign approval node in the process definition, add an approval object to the list collection of the nodes object, configure the method attribute of the object as "single signature", and the name attribute is the single approver corresponding to the element; finally, generate the synchronization node object: in the list collection of the nodes object, add a join object, configure the forkID of the object to be X, and configure the id of the object to be Y, and finally get Figure 4 The countersigned node shown.

可选地,根据所述流程定义配置所述连线对象的属性,包括:对于所述流程定义中的会签审批节点中的每个元素,在所述连线集合对象的集合中增加连线对象,并配置所述连线对象的属性。配置完各个节点对象的属性之后,再继续配置各个连线对象的属性:对于流程定义中的会签审批节点的elements中的每个元素(A、B、C),在connectors对象的list集合中,增加两个connector对象,其中一个连线对象的from为X,to节点A的id(以节点A为例),另一个对象的from为节点A(以节点A为例)的id,to为Y。节点B和节点的连线对象类似,不再赘述。Optionally, configuring the properties of the connection object according to the process definition includes: for each element in the countersign approval node in the process definition, adding a connection object to the set of connection set objects , and configure the properties of the wire object. After configuring the properties of each node object, continue to configure the properties of each connection object: for each element (A, B, C) in the elements of the countersign approval node in the process definition, in the list collection of the connectors object, Add two connector objects, one of which has the from of X, the id of to node A (take node A as an example), the from of the other object is the id of node A (take node A as an example), and the to of Y . The connection objects of node B and node are similar, and will not be described again.

步骤103,根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象。Step 103 , adding a node object and a connection object according to the signing request, and configuring the attributes of the newly added node object and the newly added connection object, thereby obtaining a new process definition object.

本发明实施例可以通过调用接口的方式自动地实现加签操作,当加签请求传入时,根据加签请求携带的加签信息在步骤102的基础上进一步增加新的节点对象和新的连线对象,然后配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象。This embodiment of the present invention can automatically implement the signing operation by calling an interface. When a signing request is incoming, a new node object and a new connection are further added on the basis of step 102 according to the signing information carried in the signing request. Line object, and then configure the properties of the new node object and the properties of the new connection object, so as to obtain a new process definition object.

可选地,所述加签请求携带待加签节点和加签节点类型;其中,所述加签节点类型包括单签审批节点和会签审批节点。加签请求可以携带加签信息,比如代加签节点的标识、加签节点的类型(单签审批或者会签审批)、加签方式(前加签或者后加签)、审批人信息等,流程生成服务对外提供接口,当请求方调用该接口时,传入加签请求,流程生成服务根据该加签请求携带的加签信息新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象。Optionally, the signing request carries the node to be signed and the type of the signing node; wherein, the signing node type includes a single signing approval node and a countersigning approval node. The signature request can carry signature information, such as the ID of the signature node, the type of the signature node (single signature approval or countersign approval), signature method (before signature or post signature), approver information, etc., the process The generation service provides an external interface. When the requester calls this interface, a signature request is passed in. The process generation service adds a node object and a connection object according to the signature information carried by the signature request, and configures the new node object. properties and the properties of the newly added connection object to obtain a new process definition object.

可选地,步骤103可以包括:根据加签请求在所述节点集合对象的集合中增加节点对象,配置新增的节点对象的属性;根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性;从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到新的流程定义对象。在本发明实施例中,可以根据加签请求在待加签节点之前或者之后增加会签审批节点或者单签审批节点。Optionally, step 103 may include: adding a node object to the set of node set objects according to the signing request, and configuring attributes of the newly added node object; adding a node object to the set of the connection set objects according to the signing request Add a connection object in the connection object, and configure the properties of the newly added connection object; delete the connection object between the node object to be signed and its adjacent node objects from the set of connection collection objects, so as to obtain a new process Define objects. In this embodiment of the present invention, a counter-sign approval node or a single-sign approval node may be added before or after the node to be signed according to the signing request.

以增加单签审批节点为例,根据加签请求在所述节点集合对象的集合中增加单签审批节点对象,配置新增的单签审批节点对象的属性,然后根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性,最后从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到新的流程定义对象。Taking adding a single-sign approval node as an example, add a single-sign approval node object to the set of node collection objects according to the signing request, configure the properties of the newly added single-sign approval node object, and then add a single-sign approval node object according to the signing request. Add a connection object to the set of the connection set objects, and configure the properties of the newly added connection object, and finally delete the connection between the node object to be signed and its adjacent node objects from the set of the connection set objects. Line object to get a new process definition object.

以增加会签审批节点为例,根据加签请求在所述节点集合对象的集合中增加并发分裂节点对象、单签审批节点对象和同步节点对象,配置新增的并发分裂节点对象、单签审批节点对象和同步节点对象的属性,然后根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性,最后从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到新的流程定义对象。Taking adding a counter-sign approval node as an example, add a concurrent split node object, a single-sign approval node object, and a synchronization node object to the set of node set objects according to the add-sign request, and configure the newly added concurrent split node object and single-sign approval node object and the attributes of the synchronization node object, then add a connection object to the set of connection collection objects according to the signature request, and configure the attributes of the newly added connection object, and finally from the connection collection object The connection object between the node object to be signed and its adjacent node object is deleted from the set, so as to obtain a new process definition object.

例如,设待加签节点的id为N1,该节点的出边为C1,则新增和删除连接对象的具体步骤可以包括:在connectors对象的list集合中,增加一个connector对象,该对象的from为N1.id,to为新增节点的id,再增加一个connector对象,该对象的from为新增节点的id,to为C1.to,然后在connectors对象的list集合中,删除C1这个connector对象。For example, if the id of the node to be signed is N1, and the outgoing edge of the node is C1, the specific steps for adding and deleting connection objects may include: adding a connector object to the list collection of the connectors object, and the from It is N1.id, to is the id of the new node, and then a connector object is added. The from of the object is the id of the new node, and to is C1.to, and then in the list collection of the connectors object, delete the connector object C1 .

可选地,若所述加签节点类型为会签审批节点,则步骤103可以包括:根据加签请求在所述节点集合对象的集合中增加并发分裂节点对象,并配置所述并发分裂节点对象的标识;对于所述加签请求中的所述会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并配置所述单签审批节点对象的属性;在所述节点集合对象的集合中增加同步节点对象,并配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。其中,所述单签审批节点对象的属性包括审批方式和审批人。Optionally, if the type of the signed node is a countersigned approval node, step 103 may include: adding a concurrent split node object to the set of the node set objects according to the signed request, and configuring the concurrent split node object. identification; for each element in the counter-sign approval node in the signing request, add a single-sign approval node object to the set of node set objects, and configure the attributes of the single-sign approval node object; A synchronization node object is added to the set of node set objects, and an identifier of the synchronization node object and an identifier of the corresponding concurrent split node object are configured. The attributes of the single-signature approval node object include approval mode and approver.

与步骤102类似,如果需要增加的节点的类型为会签审批节点,则根据加签请求在nodes对象的list集合中,增加一个fork对象,配置该对象的id为S;接着,生成单签审批节点对象:对于加签请求中的会签审批节点的elements中的每个元素(D、E、F、G),在nodes对象的list集合中,增加一个approval对象,配置该对象的method属性为“单签”,name属性为该元素对应的单个审批人;最后,生成同步节点对象:在nodes对象的list集合中,增加一个join对象,配置该对象的forkID为S,配置该对象的id为T。Similar to step 102, if the type of the node to be added is a counter-sign approval node, a fork object is added to the list set of the nodes object according to the signing request, and the id of the object is configured as S; then, a single-sign approval node is generated Object: For each element (D, E, F, G) in the elements of the countersign approval node in the signing request, add an approval object to the list collection of the nodes object, and configure the method attribute of the object as "single". "Sign", the name attribute is the single approver corresponding to the element; finally, the synchronization node object is generated: in the list collection of the nodes object, add a join object, configure the forkID of the object to be S, and configure the id of the object to be T.

步骤104,将所述新的流程定义对象映射为由可扩展标记语言表示的新的流程定义。Step 104: Map the new process definition object to a new process definition represented by an extensible markup language.

在该步骤中,由内存中的JAVA对象依据规范映射为以XML格式表示的流程定义,然后流程引擎依据新的流程定义继续往下执行。In this step, the JAVA object in the memory is mapped to a process definition expressed in XML format according to the specification, and then the process engine continues to execute according to the new process definition.

根据上面所述的各种实施例,可以看出本发明实施例通过根据流程定义配置节点对象的属性和连线对象的属性,根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象的技术手段,解决了现有技术中手动加签操作繁琐的技术问题。本发明实施例能够根据业务流程的需要动态地指定会签人数,并提供前后加签功能,能够在不影响会签效率的情况下,实现动态的会签与加签互相嵌套,而且操作简单,通过调用流程生成接口即可实现。According to the various embodiments described above, it can be seen that the embodiment of the present invention configures the attributes of the node object and the attribute of the connection object according to the process definition, adds the node object and the connection object according to the signing request, and configures the new The attribute of the node object and the attribute of the newly added connection object are obtained, so as to obtain the technical means of the new process definition object, which solves the technical problem of the tedious manual signing operation in the prior art. The embodiment of the present invention can dynamically specify the number of countersigners according to the needs of the business process, and provides the function of adding front and back signatures, and can realize the dynamic nesting of countersigning and adding signatures without affecting the efficiency of countersigning, and the operation is simple. The process generation interface can be implemented.

图5是根据本发明一个可参考实施例的生成流程的方法的主要流程的示意图。作为本发明的又一个实施例,如图5所示,所述生成流程的方法可以包括:FIG. 5 is a schematic diagram of the main flow of a method for generating a flow according to a referenced embodiment of the present invention. As another embodiment of the present invention, as shown in FIG. 5 , the method for generating a flow may include:

步骤501,将由XML格式表示的流程定义映射为由JAVA对象表示的流程定义对象。Step 501: Map the process definition represented by the XML format to the process definition object represented by the JAVA object.

其中,所述JAVA对象包括节点对象和连线对象。具体地,XML格式表示的nodes节点会映射为nodes对象,不同的节点会映射为不同的node对象,取决于节点的type,比如:审批节点会映射为approval对象,并发分裂节点会映射为fork对象,同步节点会映射为join对象,XML格式表示的connectors会映射为connectors对象,XML格式表示的connector会映射为connector对象。Wherein, the JAVA object includes a node object and a connection object. Specifically, the nodes represented in XML format will be mapped to nodes objects, and different nodes will be mapped to different node objects, depending on the type of the nodes, for example: approval nodes will be mapped to approval objects, concurrent split nodes will be mapped to fork objects , the synchronization node will be mapped to the join object, the connectors represented in XML format will be mapped to the connectors object, and the connectors represented by the XML format will be mapped to the connector object.

步骤502,在所述节点集合对象的集合中增加并发分裂节点对象,并根据所述流程定义配置所述并发分裂节点对象的标识。Step 502: Add a concurrent split node object to the set of node set objects, and configure the identifier of the concurrent split node object according to the process definition.

在nodes对象的list集合中,增加一个fork对象,配置该对象的id为X。In the list collection of the nodes object, add a fork object and configure the id of the object to be X.

步骤503,对于所述流程定义中的会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并根据所述流程定义配置所述单签审批节点对象的属性。其中,所述单签审批节点对象的属性包括审批方式和审批人。Step 503, for each element in the counter-sign approval node in the process definition, add a single-sign approval node object to the set of node set objects, and configure the single-sign approval node object according to the process definition. Attributes. The attributes of the single-signature approval node object include approval mode and approver.

对于流程定义中的会签审批节点的elements中的每个元素(A、B、C),在nodes对象的list集合中,增加一个approval对象,配置该对象的method属性为“单签”,name属性为该元素对应的单个审批人。For each element (A, B, C) in the elements of the countersign approval node in the process definition, add an approval object to the list collection of the nodes object, configure the method attribute of the object as "single signature", and the name attribute is the single approver corresponding to this element.

步骤504,在所述节点集合对象的集合中增加同步节点对象,并根据所述流程定义配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。Step 504: Add a synchronization node object to the set of node set objects, and configure the identification of the synchronization node object and the identification of the corresponding concurrent split node object according to the process definition.

在nodes对象的list集合中,增加一个join对象,配置该对象的forkID为X,配置该对象的id为Y。In the list collection of the nodes object, add a join object, configure the forkID of the object to be X, and configure the id of the object to be Y.

步骤505,对于所述流程定义中的会签审批节点中的每个元素,在所述连线集合对象的集合中增加连线对象,并配置所述连线对象的属性。Step 505 , for each element in the countersign approval node in the process definition, add a connection object to the collection of connection collection objects, and configure the properties of the connection object.

对于流程定义中的会签审批节点的elements中的每个元素(A、B、C),在connectors对象的list集合中,增加两个connector对象,其中一个连线对象的from为X,to节点A的id(以节点A为例),另一个对象的from为节点A(以节点A为例)的id,to为Y。节点B和节点的连线对象类似,不再赘述。For each element (A, B, C) in the elements of the countersign approval node in the process definition, add two connector objects to the list collection of the connectors object, and one of the connection objects' from is X and to node A id (take node A as an example), the from of another object is the id of node A (take node A as an example), and to is Y. The connection objects of node B and node are similar, and will not be described again.

步骤506,根据加签请求在所述节点集合对象的集合中增加并发分裂节点对象,并配置所述并发分裂节点对象的标识。Step 506 , add a concurrent split node object to the set of node set objects according to the signing request, and configure an identifier of the concurrent split node object.

本发明实施例可以通过调用接口的方式自动地实现加签操作,当加签请求传入时,根据加签请求携带的加签信息在步骤505的基础上进一步增加新的节点对象和新的连线对象,然后配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象。This embodiment of the present invention can automatically implement the signing operation by calling an interface. When a signing request is incoming, a new node object and a new connection are further added on the basis of step 505 according to the signing information carried in the signing request. Line object, and then configure the properties of the new node object and the properties of the new connection object, so as to obtain a new process definition object.

若所述加签节点类型为会签审批节点,采用步骤506-509的进行加签操作,与步骤502-505类似,不再赘述。If the type of the sign-on node is a counter-sign approval node, the sign-on operations in steps 506-509 are used, which are similar to steps 502-505, and are not repeated here.

步骤507,对于所述加签请求中的所述会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并配置所述单签审批节点对象的属性。Step 507 , for each element in the counter-sign approval node in the signing request, add a single-sign approval node object to the set of node set objects, and configure attributes of the single-sign approval node object.

步骤508,在所述节点集合对象的集合中增加同步节点对象,并配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。Step 508: Add a synchronization node object to the set of node set objects, and configure the identifier of the synchronization node object and the identifier of the corresponding concurrent split node object.

步骤509,根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性。Step 509 , adding a connection object to the set of connection collection objects according to the signing request, and configuring the properties of the newly added connection object.

步骤510,从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到由JAVA对象表示的新的流程定义对象。Step 510: Delete the connection objects between the node object to be signed and its adjacent node objects from the set of connection set objects, so as to obtain a new process definition object represented by the JAVA object.

步骤511,将所述由JAVA对象表示的新的流程定义对象映射为由XML格式表示的新的流程定义。Step 511: Map the new process definition object represented by the JAVA object to the new process definition represented by the XML format.

由内存中的JAVA对象依据规范映射为以XML格式表示的流程定义,然后流程引擎依据新的流程定义继续往下执行。The JAVA object in the memory is mapped to the process definition expressed in XML format according to the specification, and then the process engine continues to execute according to the new process definition.

另外,在本发明一个可参考实施例中生成流程的方法的具体实施内容,在上面所述生成流程的方法中已经详细说明了,故在此重复内容不再说明。In addition, the specific implementation content of the method for generating a process flow in a referenced embodiment of the present invention has been described in detail in the above-mentioned method for generating a process flow, so the repeated content is not described here.

图6是根据本发明实施例的生成流程的装置的主要模块的示意图。如图6所示,所述生成流程的装置600包括对象转换模块601、配置模块602、加签模块603和定义转换模块604;其中,对象转换模块601用于将由可扩展标记语言表示的流程定义映射为流程定义对象;其中,所述流程定义对象包括节点对象和连线对象;配置模块602用于根据所述流程定义配置所述节点对象的属性和所述连线对象的属性;加签模块603用于根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象;定义转换模块604用于将所述新的流程定义对象映射为由可扩展标记语言表示的新的流程定义。FIG. 6 is a schematic diagram of main modules of an apparatus for generating a flow according to an embodiment of the present invention. As shown in FIG. 6 , the apparatus 600 for generating a process includes an object conversion module 601, a configuration module 602, a tagging module 603 and a definition conversion module 604; wherein, the object conversion module 601 is used to define the process represented by the extensible markup language Mapped to a process definition object; wherein, the process definition object includes a node object and a connection object; the configuration module 602 is configured to configure the attributes of the node object and the connection object according to the process definition; the tagging module 603 is used to add new node objects and connection objects according to the signing request, and configure the properties of the newly added node objects and the properties of the newly added connection objects, thereby obtaining a new process definition object; the definition conversion module 604 is used to convert the The new process definition object maps to a new process definition represented by the Extensible Markup Language.

可选地,所述对象转换模块601还用于:Optionally, the object conversion module 601 is further configured to:

将由可扩展标记语言表示的节点集合映射为节点集合对象;Mapping node collections represented by Extensible Markup Language into node collection objects;

将由可扩展标记语言表示的不同属性的节点映射为不同的节点对象;其中,所述不同的节点对象包括并发分裂节点对象、单签审批节点对象和同步节点对象;mapping nodes with different attributes represented by extensible markup language into different node objects; wherein, the different node objects include concurrent split node objects, single-sign approval node objects and synchronization node objects;

将由可扩展标记语言表示的连线集合映射为连线集合对象;Mapping a wire collection represented by the Extensible Markup Language to a wire collection object;

将由可扩展标记语言表示的连线映射为连线对象。Maps wires represented by Extensible Markup Language to wire objects.

可选地,所述配置模块602还用于:Optionally, the configuration module 602 is also used for:

根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性;Configure the attributes of the concurrent split node object, the single-sign approval node object and the synchronization node object in sequence according to the process definition;

根据所述流程定义配置所述连线对象的属性。Properties of the wire object are configured according to the process definition.

可选地,所述配置模块602还用于:Optionally, the configuration module 602 is also used for:

在所述节点集合对象的集合中增加并发分裂节点对象,并根据所述流程定义配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects, and configuring the identifier of the concurrent split node object according to the process definition;

对于所述流程定义中的会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并根据所述流程定义配置所述单签审批节点对象的属性;其中,所述单签审批节点对象的属性包括审批方式和审批人;For each element in the counter-sign approval node in the process definition, add a single-sign approval node object to the set of node set objects, and configure the properties of the single-sign approval node object according to the process definition; wherein , the attributes of the single-sign approval node object include an approval method and an approver;

在所述节点集合对象的集合中增加同步节点对象,并根据所述流程定义配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of the node set objects, and the identifier of the synchronization node object and the identifier of the corresponding concurrent split node object are configured according to the process definition.

可选地,所述配置模块602还用于:Optionally, the configuration module 602 is also used for:

对于所述流程定义中的会签审批节点中的每个元素,在所述连线集合对象的集合中增加连线对象,并配置所述连线对象的属性。For each element in the countersignature approval node in the process definition, a connection object is added to the collection of connection collection objects, and the properties of the connection object are configured.

可选地,所述加签请求携带待加签节点和加签节点类型;其中,所述加签节点类型包括单签审批节点和会签审批节点。Optionally, the signing request carries the node to be signed and the type of the signing node; wherein, the signing node type includes a single signing approval node and a countersigning approval node.

可选地,所述加签模块603还用于:Optionally, the signing module 603 is also used for:

根据加签请求在所述节点集合对象的集合中增加节点对象,配置新增的节点对象的属性;adding a node object to the set of node set objects according to the signing request, and configuring the properties of the newly added node object;

根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性;adding a connection object to the set of connection collection objects according to the signing request, and configuring the properties of the newly added connection object;

从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到新的流程定义对象。The connection objects between the node object to be signed and its adjacent node objects are deleted from the set of connection set objects, so as to obtain a new process definition object.

可选地,若所述加签节点类型为会签审批节点;Optionally, if the type of the signed node is a countersigned approval node;

所述加签模块603还用于:The signing module 603 is also used for:

根据加签请求在所述节点集合对象的集合中增加并发分裂节点对象,并配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects according to the signing request, and configuring the identifier of the concurrent split node object;

对于所述加签请求中的所述会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并配置所述单签审批节点对象的属性;For each element in the counter-sign approval node in the signing request, add a single-sign approval node object to the set of node set objects, and configure the attributes of the single-sign approval node object;

在所述节点集合对象的集合中增加同步节点对象,并配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of node set objects, and an identifier of the synchronization node object and an identifier of the corresponding concurrent split node object are configured.

根据上面所述的各种实施例,可以看出本发明实施例通过根据流程定义配置节点对象的属性和连线对象的属性,根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象的技术手段,解决了现有技术中手动加签操作繁琐的技术问题。本发明实施例能够根据业务流程的需要动态地指定会签人数,并提供前后加签功能,能够在不影响会签效率的情况下,实现动态的会签与加签互相嵌套,而且操作简单,通过调用流程生成接口即可实现。According to the various embodiments described above, it can be seen that the embodiment of the present invention configures the attributes of the node object and the attribute of the connection object according to the process definition, adds the node object and the connection object according to the signing request, and configures the new The attribute of the node object and the attribute of the newly added connection object are obtained, so as to obtain the technical means of the new process definition object, which solves the technical problem of the tedious manual signing operation in the prior art. The embodiment of the present invention can dynamically specify the number of countersigners according to the needs of the business process, and provides the function of adding front and back signatures, and can realize the dynamic nesting of countersigning and adding signatures without affecting the efficiency of countersigning, and the operation is simple. The process generation interface can be implemented.

需要说明的是,在本发明所述生成流程的装置的具体实施内容,在上面所述生成流程的方法中已经详细说明了,故在此重复内容不再说明。It should be noted that the specific implementation content of the apparatus for generating a process flow according to the present invention has been described in detail in the method for generating a process flow described above, so the repeated content will not be described here.

图7示出了可以应用本发明实施例的生成流程的方法或生成流程的装置的示例性系统架构700。FIG. 7 shows an exemplary system architecture 700 of a method for generating a process or an apparatus for generating a process to which embodiments of the present invention may be applied.

如图7所示,系统架构700可以包括终端设备701、702、703,网络704和服务器705。网络704用以在终端设备701、702、703和服务器705之间提供通信链路的介质。网络704可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 7 , the system architecture 700 may include terminal devices 701 , 702 , and 703 , a network 704 and a server 705 . The network 704 is the medium used to provide the communication link between the terminal devices 701 , 702 , 703 and the server 705 . Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备701、702、703通过网络704与服务器705交互,以接收或发送消息等。终端设备701、702、703上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。The user can use the terminal devices 701, 702, 703 to interact with the server 705 through the network 704 to receive or send messages and the like. Various communication client applications may be installed on the terminal devices 701 , 702 and 703 , such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

终端设备701、702、703可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 701, 702, 703 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.

服务器705可以是提供各种服务的服务器,例如对用户利用终端设备701、702、703所浏览的购物类网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的物品信息查询请求等数据进行分析等处理,并将处理结果反馈给终端设备。The server 705 may be a server that provides various services, such as a background management server that provides support for shopping websites browsed by the terminal devices 701 , 702 , and 703 (just an example). The background management server can analyze and process the received item information query request and other data, and feed back the processing result to the terminal device.

需要说明的是,本发明实施例所提供的生成流程的方法一般由服务器705执行,相应地,所述生成流程的装置一般设置在服务器705中。本发明实施例所提供的生成流程的方法也可以由终端设备701、702、703执行,相应地,所述生成流程的装置可以设置在终端设备701、702、703中。It should be noted that the method for generating a process provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the apparatus for generating a process is generally set in the server 705 . The method for generating a process provided in the embodiment of the present invention may also be executed by terminal devices 701 , 702 , and 703 , and correspondingly, the apparatus for generating a process may be set in the terminal devices 701 , 702 , and 703 .

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

下面参考图8,其示出了适于用来实现本发明实施例的终端设备的计算机系统800的结构示意图。图8示出的终端设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring next to FIG. 8 , it shows a schematic structural diagram of a computer system 800 suitable for implementing a terminal device according to an embodiment of the present invention. The terminal device shown in FIG. 8 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

如图8所示,计算机系统800包括中央处理单元(CPU)801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储部分808加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有系统800操作所需的各种程序和数据。CPU 801、ROM 802以及RAM803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG. 8, a computer system 800 includes a central processing unit (CPU) 801, which can be loaded into a random access memory (RAM) 803 according to a program stored in a read only memory (ROM) 802 or a program from a storage section 808 Instead, various appropriate actions and processes are performed. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801 , the ROM 802 , and the RAM 803 are connected to each other through a bus 804 . An input/output (I/O) interface 805 is also connected to bus 804 .

以下部件连接至I/O接口805:包括键盘、鼠标等的输入部分806;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分807;包括硬盘等的存储部分808;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分809。通信部分809经由诸如因特网的网络执行通信处理。驱动器810也根据需要连接至I/O接口805。可拆卸介质811,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器810上,以便于从其上读出的计算机程序根据需要被安装入存储部分808。The following components are connected to the I/O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc. ; 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被安装。在该计算机程序被中央处理单元(CPU)801执行时,执行本发明的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs in accordance with the disclosed embodiments of the present invention. For example, embodiments disclosed herein include a computer program comprising a computer program carried on a computer-readable 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 central processing unit (CPU) 801, the above-described functions defined in the system of the present invention are performed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, 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. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer programs according to various embodiments of the present invention. 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.

描述于本发明实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括对象转换模块、配置模块、加签模块和定义转换模块,其中,这些模块的名称在某种情况下并不构成对该模块本身的限定。The modules involved in the embodiments of the present invention may be implemented in a software manner, and may also be implemented in a hardware manner. The described modules can also be provided in the processor, for example, it can be described as: a processor includes an object conversion module, a configuration module, a tagging module and a definition conversion module, wherein the names of these modules are in some cases the same. It does not constitute a limitation on the module itself.

作为另一方面,本发明还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,该设备实现如下方法:将由可扩展标记语言表示的流程定义映射为流程定义对象;其中,所述流程定义对象包括节点对象和连线对象;根据所述流程定义配置所述节点对象的属性和所述连线对象的属性;根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象;将所述新的流程定义对象映射为由可扩展标记语言表示的新的流程定义。As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or may exist alone without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device implements the following method: mapping a process definition represented by an extensible markup language into a process definition object; wherein, The process definition object includes a node object and a connection object; configure the attributes of the node object and the connection object according to the process definition; add a node object and a connection object according to the signing request, and configure new The attributes of the added node object and the added attribute of the connection object are obtained, thereby obtaining a new process definition object; the new process definition object is mapped to a new process definition represented by an extensible markup language.

根据本发明实施例的技术方案,因为采用根据流程定义配置节点对象的属性和连线对象的属性,根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象的技术手段,所以克服了现有技术中手动加签操作繁琐的技术问题。本发明实施例能够根据业务流程的需要动态地指定会签人数,并提供前后加签功能,能够在不影响会签效率的情况下,实现动态的会签与加签互相嵌套,而且操作简单,通过调用流程生成接口即可实现。According to the technical solution of the embodiment of the present invention, because the attributes of the node object and the attribute of the connection object are configured according to the process definition, the node object and the connection object are added according to the signing request, and the attributes of the newly added node object and the new connection object are configured. The attribute of the connection object is added, thereby obtaining a technical means of a new process definition object, thus overcoming the technical problem of cumbersome manual signing operation in the prior art. The embodiment of the present invention can dynamically specify the number of countersigners according to the needs of the business process, and provides the function of adding front and back signatures, and can realize the dynamic nesting of countersigning and adding signatures without affecting the efficiency of countersigning, and the operation is simple. The process generation interface can be implemented.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,取决于设计要求和其他因素,可以发生各种各样的修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (11)

1.一种生成流程的方法,其特征在于,包括:1. a method for generating flow, is characterized in that, comprises: 将由可扩展标记语言表示的流程定义映射为流程定义对象;其中,所述流程定义对象包括节点对象和连线对象;Mapping the process definition represented by the extensible markup language into a process definition object; wherein, the process definition object includes a node object and a connection object; 根据所述流程定义配置所述节点对象的属性和所述连线对象的属性;Configure the attribute of the node object and the attribute of the connection object according to the process definition; 根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象;Add a node object and a connection object according to the signing request, and configure the properties of the new node object and the new connection object, so as to obtain a new process definition object; 将所述新的流程定义对象映射为由可扩展标记语言表示的新的流程定义。The new process definition object is mapped to a new process definition represented by an extensible markup language. 2.根据权利要求1所述的方法,其特征在于,将由可扩展标记语言表示的流程定义映射为流程定义对象,包括:2. The method according to claim 1, wherein the process definition represented by the extensible markup language is mapped to a process definition object, comprising: 将由可扩展标记语言表示的节点集合映射为节点集合对象;Mapping node collections represented by Extensible Markup Language into node collection objects; 将由可扩展标记语言表示的不同属性的节点映射为不同的节点对象;其中,所述不同的节点对象包括并发分裂节点对象、单签审批节点对象和同步节点对象;mapping nodes with different attributes represented by extensible markup language into different node objects; wherein, the different node objects include concurrent split node objects, single-sign approval node objects and synchronization node objects; 将由可扩展标记语言表示的连线集合映射为连线集合对象;Mapping a wire collection represented by the Extensible Markup Language to a wire collection object; 将由可扩展标记语言表示的连线映射为连线对象。Maps wires represented by Extensible Markup Language to wire objects. 3.根据权利要求2所述的方法,其特征在于,根据所述流程定义配置所述节点对象的属性和所述连线对象的属性,包括:3. The method according to claim 2, wherein configuring the attributes of the node objects and the attributes of the connection objects according to the process definition comprises: 根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性;Configure the attributes of the concurrent split node object, the single-sign approval node object and the synchronization node object in sequence according to the process definition; 根据所述流程定义配置所述连线对象的属性。Properties of the wire object are configured according to the process definition. 4.根据权利要求3所述的方法,其特征在于,根据所述流程定义依次配置并发分裂节点对象、单签审批节点对象和同步节点对象的属性,包括:4. The method according to claim 3, wherein according to the process definition, sequentially configuring the attributes of the concurrent split node object, the single-sign approval node object and the synchronization node object, comprising: 在所述节点集合对象的集合中增加并发分裂节点对象,并根据所述流程定义配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects, and configuring the identifier of the concurrent split node object according to the process definition; 对于所述流程定义中的会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并根据所述流程定义配置所述单签审批节点对象的属性;其中,所述单签审批节点对象的属性包括审批方式和审批人;For each element in the counter-sign approval node in the process definition, add a single-sign approval node object to the set of node set objects, and configure the properties of the single-sign approval node object according to the process definition; wherein , the attributes of the single-sign approval node object include an approval method and an approver; 在所述节点集合对象的集合中增加同步节点对象,并根据所述流程定义配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of the node set objects, and the identifier of the synchronization node object and the identifier of the corresponding concurrent split node object are configured according to the process definition. 5.根据权利要求3所述的方法,其特征在于,根据所述流程定义配置所述连线对象的属性,包括:5. The method according to claim 3, wherein configuring the properties of the connection object according to the process definition comprises: 对于所述流程定义中的会签审批节点中的每个元素,在所述连线集合对象的集合中增加连线对象,并配置所述连线对象的属性。For each element in the countersignature approval node in the process definition, a connection object is added to the collection of connection collection objects, and the properties of the connection object are configured. 6.根据权利要求1所述的方法,其特征在于,所述加签请求携带待加签节点和加签节点类型;其中,所述加签节点类型包括单签审批节点和会签审批节点。6 . The method according to claim 1 , wherein the signing request carries the node to be signed and the signing node type; wherein the signing node type includes a single signing approval node and a countersigning approval node. 7 . 7.根据权利要求6所述的方法,其特征在于,根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象,包括:7. The method according to claim 6, characterized in that, adding a new node object and a connection object according to the signing request, and configuring the attributes of the newly added node object and the newly added connection object, thereby obtaining a new process definition objects, including: 根据加签请求在所述节点集合对象的集合中增加节点对象,配置新增的节点对象的属性;adding a node object to the set of node set objects according to the signing request, and configuring the properties of the newly added node object; 根据所述加签请求在所述连线集合对象的集合中增加连线对象,并配置新增的连线对象的属性;adding a connection object to the set of connection collection objects according to the signing request, and configuring the properties of the newly added connection object; 从所述连线集合对象的集合中删除待加签节点对象与其相邻节点对象之间的连线对象,从而得到新的流程定义对象。The connection objects between the node object to be signed and its adjacent node objects are deleted from the set of connection set objects, so as to obtain a new process definition object. 8.根据权利要求7所述的方法,其特征在于,若所述加签节点类型为会签审批节点;8. The method according to claim 7, wherein, if the type of the signed node is a countersigned approval node; 根据加签请求在所述节点集合对象的集合中增加节点对象,配置新增的节点对象的属性,包括:Add a node object to the set of node set objects according to the signing request, and configure the properties of the newly added node object, including: 根据加签请求在所述节点集合对象的集合中增加并发分裂节点对象,并配置所述并发分裂节点对象的标识;adding a concurrent split node object to the set of node set objects according to the signing request, and configuring the identifier of the concurrent split node object; 对于所述加签请求中的所述会签审批节点中的每个元素,在所述节点集合对象的集合中增加单签审批节点对象,并配置所述单签审批节点对象的属性;For each element in the counter-sign approval node in the signing request, add a single-sign approval node object to the set of node set objects, and configure the attributes of the single-sign approval node object; 在所述节点集合对象的集合中增加同步节点对象,并配置所述同步节点对象的标识及其对应的并发分裂节点对象的标识。A synchronization node object is added to the set of node set objects, and an identifier of the synchronization node object and an identifier of the corresponding concurrent split node object are configured. 9.一种生成流程的装置,其特征在于,包括:9. A device for generating a process, comprising: 对象转换模块,用于将由可扩展标记语言表示的流程定义映射为流程定义对象;其中,所述流程定义对象包括节点对象和连线对象;an object conversion module for mapping a process definition represented by an extensible markup language into a process definition object; wherein, the process definition object includes a node object and a connection object; 配置模块,用于根据所述流程定义配置所述节点对象的属性和所述连线对象的属性;a configuration module, configured to configure the attributes of the node objects and the attributes of the connection objects according to the process definition; 加签模块,用于根据加签请求新增节点对象和连线对象,并配置新增的节点对象的属性和新增的连线对象的属性,从而得到新的流程定义对象;The signing module is used to add a node object and a connection object according to the signing request, and configure the attributes of the newly added node object and the newly added connection object, so as to obtain a new process definition object; 定义转换模块,用于将所述新的流程定义对象映射为由可扩展标记语言表示的新的流程定义。A definition conversion module is used to map the new process definition object into a new process definition represented by an extensible markup language. 10.一种电子设备,其特征在于,包括:10. An electronic device, comprising: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,storage means for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行时,所述一个或多个处理器实现如权利要求1-8中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method of any of claims 1-8. 11.一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-8中任一所述的方法。11. A computer-readable medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-8 is implemented.
CN202210166033.8A 2022-02-23 2022-02-23 A method and apparatus for generating a process Pending CN114546344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210166033.8A CN114546344A (en) 2022-02-23 2022-02-23 A method and apparatus for generating a process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210166033.8A CN114546344A (en) 2022-02-23 2022-02-23 A method and apparatus for generating a process

Publications (1)

Publication Number Publication Date
CN114546344A true CN114546344A (en) 2022-05-27

Family

ID=81676846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210166033.8A Pending CN114546344A (en) 2022-02-23 2022-02-23 A method and apparatus for generating a process

Country Status (1)

Country Link
CN (1) CN114546344A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118485408A (en) * 2024-06-14 2024-08-13 福建省电子政务建设运营有限公司 Method, device, equipment and medium for dynamically adding approval node in business process

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163237A (en) * 2011-04-29 2011-08-24 北京空间飞行器总体设计部 Implementation method of loosely coupled flow
CN109447406A (en) * 2018-09-20 2019-03-08 武汉达梦数据库有限公司 A kind of method of visioning procedure and the device of visioning procedure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163237A (en) * 2011-04-29 2011-08-24 北京空间飞行器总体设计部 Implementation method of loosely coupled flow
CN109447406A (en) * 2018-09-20 2019-03-08 武汉达梦数据库有限公司 A kind of method of visioning procedure and the device of visioning procedure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
大龄码农有梦想: "BPM常见流程案例:会签流程、或签流程、分支流程、并行流程", Retrieved from the Internet <URL:《https://blog.csdn.net/wxz258/article/details/115742802》> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118485408A (en) * 2024-06-14 2024-08-13 福建省电子政务建设运营有限公司 Method, device, equipment and medium for dynamically adding approval node in business process
CN118485408B (en) * 2024-06-14 2024-11-08 福建省电子政务建设运营有限公司 Method, device, equipment and medium for dynamically adding approval node in business process

Similar Documents

Publication Publication Date Title
CN113760948A (en) Method and device for querying data
CN113536748B (en) A method and device for generating chart data
CN110764769B (en) Method and device for processing user request
CN113760698B (en) A method and device for converting test case file data
CN113467775A (en) Method and device for generating page
CN110764770A (en) Method and device for conversion and assignment between objects
CN110704200A (en) Methods and devices for converting invocation interfaces
CN111831461A (en) A method and apparatus for processing business processes
CN112486482A (en) Page display method and device
CN110134427A (en) A method and device for generating code files
CN112948138A (en) Method and device for processing message
CN108052290A (en) For storing the method and apparatus of data
CN115134208A (en) Message conversion method, device, electronic device and storage medium
CN113742321B (en) Data updating method and device
CN110807535A (en) Construction method of unified reservation platform, construction device and unified reservation platform system
CN110806967A (en) A unit testing method and apparatus
CN115174282A (en) Information interaction method, device, equipment and medium
CN114546344A (en) A method and apparatus for generating a process
CN113760271B (en) A method and device for generating code for describing a page
CN114780263A (en) Service calling method, device, equipment and storage medium
CN113283991A (en) Processing method and device for transaction data on block chain
CN110851343A (en) A test method and device based on decision tree
CN110908867B (en) Task completion judging method and device, storage medium and electronic equipment
CN114896244B (en) Method, apparatus, device and computer readable medium for configuring database tables
CN112068853A (en) Cross-project synchronous updating method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220527

RJ01 Rejection of invention patent application after publication