CN114819906A - BPMN business process conversion method and device - Google Patents

BPMN business process conversion method and device Download PDF

Info

Publication number
CN114819906A
CN114819906A CN202210490437.2A CN202210490437A CN114819906A CN 114819906 A CN114819906 A CN 114819906A CN 202210490437 A CN202210490437 A CN 202210490437A CN 114819906 A CN114819906 A CN 114819906A
Authority
CN
China
Prior art keywords
bpmn
node
nodes
standard
object corresponding
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
CN202210490437.2A
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.)
Guangzhou Youxin Technology Co ltd
Original Assignee
Guangzhou Youxin 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 Guangzhou Youxin Technology Co ltd filed Critical Guangzhou Youxin Technology Co ltd
Priority to CN202210490437.2A priority Critical patent/CN114819906A/en
Publication of CN114819906A publication Critical patent/CN114819906A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Data Mining & Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a business process conversion method and device for a Business Process Management Network (BPMN). The method comprises the steps of pre-configuring a first mapping table, a second mapping table and a third mapping table, converting each first node into a corresponding BPMN object based on the first mapping table, newly adding a BPMN object to each second node based on the second mapping table, converting each second node into a corresponding BPMN object, converting each connection into a corresponding BPMN object based on the third mapping table, and performing process icon standardization verification, standard primitive generation and standard primitive combination on all the first nodes, all the second nodes and the BPMN objects corresponding to all the connections to obtain an MN BPMN protocol file.

Description

BPMN business process conversion method and device
Technical Field
The invention relates to the technical field of computers, in particular to a business process conversion method and device for a Business Process Management Node (BPMN).
Background
When an enterprise develops a custom business process, it is expected to use an existing process framework on the market for business circulation, and the existing process framework on the market mainly adopts business process modeling notation language (BPMN).
Based on the prior art, if design data of an enterprise self-defined business process is to be converted into business process modeling symbolic language (BPMN) to obtain the BPMN business process, both front-end and back-end research and development personnel are required to learn professional knowledge for using the business process modeling symbolic language (BPMN), to be familiar with the use scene of the business process modeling symbolic language (BPMN), and the like, even development and maintenance personnel are required to have related skills, and are seriously dependent on manual operation, so that the BPMN business process conversion efficiency is difficult to improve.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a BPMN business process conversion method and a BPMN business process conversion device, which can universally convert enterprise self-defined business processes into BPMN business processes and effectively improve the conversion efficiency of the BPMN business processes.
In order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides a BPMN service flow conversion method, including:
generating a JSON protocol file according to the enterprise user-defined business process; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines;
respectively converting each first node into a BPMN stream object based on a first mapping table configured in advance, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes;
respectively adding a BPMN flow object and a BPMN sequential flow object to each second node based on a pre-configured second mapping table, converting each second node into a BPMN flow object, and setting attribute information of the BPMN flow object and the BPMN sequential flow object corresponding to each second node to obtain the BPMN objects corresponding to all the second nodes;
respectively converting each connection line into a BPMN (business process model) sequential flow object based on a preset third mapping table, and setting attribute information of the BPMN sequential flow object corresponding to each connection line to obtain the BPMN objects corresponding to all the connection lines;
performing process icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines;
and when the process icon is subjected to standardization verification, generating a first standard primitive according to the BPMN object corresponding to each first node, generating a second standard primitive according to the BPMN object corresponding to each second node, and generating a third standard primitive according to the BPMN object corresponding to each connecting line so as to combine all the first standard primitives, all the second standard primitives and all the third standard primitives to obtain a BPMN protocol file.
Further, before the converting each first node into a BPMN stream object based on the preconfigured first mapping table, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes, the method further includes:
and traversing each node, judging whether the current node is associated with a single connecting line, if so, taking the current node as a first node, and if not, taking the current node as a second node.
Further, the generating a JSON protocol file according to the enterprise customized business process specifically includes:
defining a plurality of events according to the business type of the enterprise self-defined business process;
and respectively taking each event as a node, and adding connecting lines between nodes corresponding to the associated events according to the execution sequence among the associated events to generate a JSON protocol file.
Further, the process icon standardization verification is performed on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines, specifically:
judging whether the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines meet the predefined process icon standardization verification condition or not;
if the flow icon normalization verification is not met, judging that the flow icon normalization verification is not passed;
the process icon normalization verification conditions comprise the condition that a node with the node type being a starting node is only used as a starting point of a connecting line, the condition that a node with the node type being an ending node is only used as an end point of the connecting line, and the condition that each connecting line has only one starting point and one end point.
Further, the generating of the first standard primitive according to the BPMN object corresponding to each first node, the generating of the second standard primitive according to the BPMN object corresponding to each second node, and the generating of the third standard primitive according to the BPMN object corresponding to each connection line respectively specifically include:
traversing the BPMN object corresponding to each first node, setting the size information of the BPMN object corresponding to the current first node according to the node type of the current first node to generate a first standard primitive, and obtaining all the first standard primitives;
traversing the BPMN object corresponding to each second node, setting the size information of the BPMN object corresponding to the current second node according to the node type of the current second node to generate a second standard primitive, and obtaining all the second standard primitives;
and traversing the BPMN object corresponding to each connection line, setting the size information of the BPMN object corresponding to the current connection line according to the connection line type of the current connection line, and generating a third standard primitive to obtain all third standard primitives.
In a second aspect, an embodiment of the present invention provides a BPMN service flow conversion apparatus, including:
the JSON protocol file acquisition module is used for generating a JSON protocol file according to the enterprise user-defined business process; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines;
the first BPMN object conversion module is used for respectively converting each first node into a BPMN stream object based on a first mapping table configured in advance, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes;
the second BPMN object conversion module is used for respectively adding a BPMN stream object and a BPMN sequential stream object to each second node based on a second mapping table configured in advance, converting each second node into the BPMN stream object, and setting attribute information of the BPMN stream object and the BPMN sequential stream object corresponding to each second node to obtain the BPMN objects corresponding to all the second nodes;
the third BPMN object conversion module is used for respectively converting each connection line into a BPMN sequential flow object based on a preset third mapping table, and setting attribute information of the BPMN sequential flow object corresponding to each connection line to obtain the BPMN objects corresponding to all the connection lines;
the flow icon standardization verification module is used for carrying out flow icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines;
and the BPMN protocol file acquisition module is used for generating a first standard primitive according to the BPMN object corresponding to each first node, generating a second standard primitive according to the BPMN object corresponding to each second node and generating a third standard primitive according to the BPMN object corresponding to each connecting line when the process icon is subjected to standardization verification so as to combine all the first standard primitives, all the second standard primitives and all the third standard primitives to obtain the BPMN protocol file.
Further, the BPMN service flow conversion apparatus further includes:
and a node connection condition judging module, configured to respectively convert each first node into a BPMN stream object based on the preconfigured first mapping table, set attribute information of the BPMN stream object corresponding to each first node, traverse each node before obtaining the BPMN objects corresponding to all the first nodes, and judge whether the current node is associated with a single connection line, if so, use the current node as the first node, otherwise, use the current node as the second node.
Further, the JSON protocol file obtaining module includes:
the event definition unit is used for defining a plurality of events according to the business type of the enterprise self-defined business process;
and the file generation unit is used for taking each event as a node, adding connecting lines between the nodes corresponding to the associated events according to the execution sequence of the associated events, and generating the JSON protocol file.
Further, the process icon normalization verification module is specifically configured to determine whether the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines satisfy predefined process icon normalization verification conditions; if the flow icon normalization verification is not met, judging that the flow icon normalization verification is not passed; the process icon normalization verification conditions comprise the condition that a node with the node type being a starting node is only used as a starting point of a connecting line, the condition that a node with the node type being an ending node is only used as an end point of the connecting line, and the condition that each connecting line has only one starting point and one end point.
Further, the BPMN protocol file acquiring module includes:
the first standard primitive generating unit is used for traversing the BPMN object corresponding to each first node, setting the size information of the BPMN object corresponding to the current first node according to the node type of the current first node to generate a first standard primitive, and obtaining all first standard primitives;
the second standard primitive generating unit is used for traversing the BPMN object corresponding to each second node, setting the size information of the BPMN object corresponding to the current second node according to the node type of the current second node to generate a second standard primitive, and obtaining all second standard primitives;
and the third standard primitive generating unit is used for traversing the BPMN object corresponding to each connection line, setting the size information of the BPMN object corresponding to the current connection line according to the connection line type of the current connection line, and generating a third standard primitive to obtain all the third standard primitives.
The embodiment of the invention has the following beneficial effects:
generating a JSON protocol file according to an enterprise user-defined business process; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines; respectively converting each first node into a BPMN stream object based on a first mapping table configured in advance, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes; respectively adding a BPMN flow object and a BPMN sequential flow object to each second node based on a pre-configured second mapping table, converting each second node into a BPMN flow object, and setting attribute information of the BPMN flow object and the BPMN sequential flow object corresponding to each second node to obtain the BPMN objects corresponding to all the second nodes; respectively converting each connection line into a BPMN (business process model) sequential flow object based on a preset third mapping table, and setting attribute information of the BPMN sequential flow object corresponding to each connection line to obtain the BPMN objects corresponding to all the connection lines; performing process icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines; and when the process icon standardization verification is passed, generating a first standard primitive according to the BPMN object corresponding to each first node, generating a second standard primitive according to the BPMN object corresponding to each second node, and generating a third standard primitive according to the BPMN object corresponding to each connecting line, so as to combine all the first standard primitives, all the second standard primitives and all the third standard primitives to obtain a BPMN protocol file, thereby converting the enterprise self-defined service process into the BPMN service process conversion. Compared with the prior art, the embodiment of the invention maps various first nodes with various BPMN flow objects by pre-configuring a first mapping table, maps various second nodes with various BPMN flow objects and various BPMN sequential flow objects by configuring a second mapping table, maps various connecting lines with various BPMN sequential flow objects by configuring a third mapping table, converts each first node into a corresponding BPMN object based on the first mapping table, newly adds a BPMN object to each second node based on the second mapping table, converts each second node into a corresponding MN BPobject, converts each connecting line into a corresponding BPMN object based on the third mapping table, performs process icon standardization verification, standard primitive generation and standard primitive combination treatment on all first nodes, all second nodes and the BPMN objects corresponding to all connecting lines to obtain a BPMN protocol file, and can comprehensively convert a self-defined enterprise business flow into a BPMN business flow, the enterprise self-defined business process is not required to be manually converted into the BPMN business process, and the conversion efficiency of the BPMN business process is effectively improved.
Drawings
Fig. 1 is a schematic flow chart of a BPMN service flow conversion method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating an exemplary BPMN service flow conversion method according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a BPMN service flow conversion apparatus according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, the step numbers in the text are only for convenience of explanation of the specific embodiments, and do not serve to limit the execution sequence of the steps. The method provided by the embodiment can be executed by the relevant terminal device, and the server is taken as an example for explanation below.
As shown in fig. 1, a first embodiment provides a BPMN service flow conversion method, which includes steps S1-S6:
s1, generating a JSON protocol file according to the enterprise custom service flow; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines;
s2, respectively converting each first node into a BPMN flow object based on a first mapping table configured in advance, and setting attribute information of the BPMN flow object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes;
s3, respectively adding a BPMN flow object and a BPMN sequential flow object to each second node based on a pre-configured second mapping table, converting each second node into a BPMN flow object, and setting attribute information of the BPMN flow object and the BPMN sequential flow object corresponding to each second node to obtain the BPMN objects corresponding to all the second nodes;
s4, respectively converting each connection line into a BPMN sequential flow object based on a pre-configured third mapping table, and setting attribute information of the BPMN sequential flow object corresponding to each connection line to obtain the BPMN objects corresponding to all the connection lines;
s5, performing process icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines;
and S6, when the process icon standardization verification is passed, generating a first standard primitive according to the BPMN object corresponding to each first node, generating a second standard primitive according to the BPMN object corresponding to each second node, and generating a third standard primitive according to the BPMN object corresponding to each connection line, so as to combine all the first standard primitives, all the second standard primitives and all the third standard primitives, thereby obtaining a BPMN protocol file.
It is understood that in BPMN, Flow Objects (Flow Objects) include events, tasks, activities, gateways, which are core elements of BPMN; the connection Objects (Connecting Objects) include sequence flow, message flow, association.
It should be noted that the first mapping table stores mapping relationships between various first nodes and various BPMN flow objects, and mapping relationships between various BPMN flow objects and attribute information of various BPMN flow objects; the second mapping table stores mapping relations between various second nodes and various BPMN flow objects and various BPMN sequential flow objects, mapping relations between various BPMN flow objects and attribute information of various BPMN flow objects, and mapping relations between various BPMN sequential flow objects and attribute information of various BPMN sequential flow objects; the third mapping table stores the mapping relationship between various connecting lines and various BPMN sequential flow objects and the mapping relationship between various BPMN sequential flow objects and various BPMN sequential flow object attribute information.
The nodes can be roughly divided into a starting node, an intermediate node and an ending node according to the node types, and the intermediate node can be subdivided according to the service scene. The BPMN stream objects can be roughly divided into examination and approval stream objects, monitoring stream objects, script stream objects and the like according to the type distinction of the BPMN stream objects. The attribute information of the BPMN stream object includes extension information, stream conditions, and the like, such as setting a monitoring function, setting a monitoring stream condition, and the like.
The connection type is determined by synthesizing the node type of the nodes on the connection, the trend of the connection and other factors, and the connection of different connection types corresponds to the BPMN sequential flow objects of different BPMN sequential flow object types. The attribute information of the BPMN sequential flow object comprises expansion information, flow conditions and the like.
As shown in fig. 2, as an example, in step S1, after the technician designs the enterprise customized business process, a JSON protocol file is generated according to the enterprise customized business process, where the JSON protocol file includes a plurality of nodes and a plurality of connecting lines connecting the nodes, and all the nodes include a plurality of first nodes associated with a single connecting line and/or a plurality of second nodes associated with at least two connecting lines.
In step S2, a plurality of first nodes are split from the JSON protocol file, each first node is traversed, based on a first mapping table configured in advance, the type of the BPMN stream object corresponding to the current first node is determined according to the node type of the current first node, the current first node is converted into the BPMN stream object of the type, based on the first mapping table, the attribute information of the BPMN stream object is set according to the attribute information corresponding to the BPMN stream object of the type, and the BPMN objects corresponding to all the first nodes are obtained.
In step S3, the JSON protocol file is divided into a plurality of second nodes, each second node is traversed, and based on a second mapping table configured in advance, determining the BPMN stream object type and BPMN sequence stream object type which can be newly added by the current second node according to the node type of the current second node, adding BPMN flow objects and BPMN sequence flow objects of the same type to the current second node, and based on the second mapping table, setting the attribute information of the newly added BPMN flow object and BPMN sequence flow object according to the attribute information corresponding to the BPMN flow object and the BPMN sequence flow object of the same type, meanwhile, determining the BPMN flow object type corresponding to the current second node, converting the current second node into the BPMN flow object of the type, and based on the second mapping table, and setting the attribute information of the BPMN flow object according to the attribute information corresponding to the BPMN flow object of the type to obtain the BPMN objects corresponding to all the second nodes.
In step S4, a plurality of links are split from the JSON protocol file, each link is traversed, a link type of the current link is determined according to a node type of a node on the current link, a link trend, and the like, a BPMN sequential flow object type corresponding to the current link is determined according to the link type of the current link based on a preconfigured third mapping table, the current link is converted into a BPMN sequential flow object of the type, and attribute information of the BPMN sequential flow object is set according to attribute information corresponding to the BPMN sequential flow object of the type based on the third mapping table.
In step S5, after obtaining all the BPMN objects corresponding to the first nodes, all the BPMN objects corresponding to the second nodes, and all the BPMN objects corresponding to the connection lines, the process icon standardization verification is performed on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines, so as to check whether all the BPMN objects meet the requirements of integrity and rationality of the standardized process diagram.
In step S6, after the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines pass through the process icon standardization verification, a first standard primitive is generated according to the BPMN object corresponding to each first node, a second standard primitive is generated according to the BPMN object corresponding to each second node, a third standard primitive is generated according to the BPMN object corresponding to each connection line, that is, a standard primitive of a corresponding type is generated according to each BPMN object, and all the first standard primitives, all the second standard primitives, and all the third standard primitives are combined to obtain a BPMN protocol file.
In the embodiment, various first nodes and various BPMN flow objects are mapped by configuring a first mapping table in advance, various second nodes and various BPMN flow objects and various BPMN sequence flow objects are mapped by configuring a second mapping table, various connecting lines and various BPMN sequence flow objects are mapped by configuring a third mapping table, each first node is converted into a corresponding BPMN object based on the first mapping table, each second node is newly added with the BPMN object based on the second mapping table, each second node is converted into the corresponding BPMN object, each connecting line is converted into the corresponding BPMN object based on the third mapping table, and all first nodes, all second nodes and the BPMN objects corresponding to all connecting lines are subjected to flow icon standardization verification, standard primitive generation and standard primitive combination to obtain a BPMN protocol file, so that an enterprise service flow can be converted into a BPMN self-defined service flow, the enterprise self-defined business process is not required to be manually converted into the BPMN business process, and the conversion efficiency of the BPMN business process is effectively improved.
In a preferred embodiment, before the converting each first node into a BPMN stream object based on the preconfigured first mapping table, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes, the method further includes: and traversing each node, judging whether the current node is associated with a single connecting line, if so, taking the current node as a first node, and if not, taking the current node as a second node.
Illustratively, after a JSON protocol file is generated according to an enterprise-defined business process, each node in the JSON protocol file is divided into a first node or a second node according to a connection condition associated with each node, so as to perform different processing according to the number of the connections, the connection type and the connection condition associated with the node, for example, a BPMN stream object such as a gateway object is appropriately added and a BPMN sequential stream object are subjected to process trend processing, and attribute information of the BPMN stream object and the BPMN sequential stream object corresponding to the node is set, thereby completing execution and stream processing of an event.
In a preferred embodiment, the generating a JSON protocol file according to the enterprise customized business process specifically includes: defining a plurality of events according to the business type of the enterprise self-defined business process; and respectively taking each event as a node, and adding connecting lines between nodes corresponding to the associated events according to the execution sequence among the associated events to generate a JSON protocol file.
As an example, an enterprise customized business process may be obtained first, then a plurality of events are defined according to the enterprise customized business process, each event is used as a node, and a connection is added between nodes corresponding to the associated events according to an execution sequence between the associated events to generate a JSON protocol file, or the JSON protocol file uploaded by the enterprise may be directly received.
In a preferred embodiment, the process icon standardization verification is performed on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines, specifically: judging whether the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines meet the predefined process icon standardization verification condition or not; if the flow icon normalization verification is not met, judging that the flow icon normalization verification is not passed; the process icon standardization verification conditions comprise a condition that a node with a node type being a starting node is only used as a starting point of a connecting line, a condition that a node with a node type being an ending node is only used as an end point of the connecting line, and a condition that each connecting line has only one starting point and one end point.
Exemplarily, when obtaining BPMN objects corresponding to all first nodes, BPMN objects corresponding to all second nodes, and BPMN objects corresponding to all connection lines, in order to ensure accuracy of a finally obtained BPMN service flow, it is necessary to perform flow icon standardization verification on the BPMN objects corresponding to all first nodes, the BPMN objects corresponding to all second nodes, and the BPMN objects corresponding to all connection lines, and check whether all BPMN objects conform to integrity of a standardized flow chart, or not by defining in advance flow icon standardization verification conditions such as a condition that a node whose node type is a start node only serves as a connection start point, a condition that a node whose node type is an end node only serves as a connection end point, a condition that a node whose node type is an intermediate node may serve as a connection start point or a connection end point, each connection line has only one start point and one end point, and conditions from the start point to the end point, and the like, And (5) rationality requirements.
In a preferred embodiment, the generating the first standard primitive according to the BPMN object corresponding to each first node, the generating the second standard primitive according to the BPMN object corresponding to each second node, and the generating the third standard primitive according to the BPMN object corresponding to each connection line respectively specifically include: traversing the BPMN object corresponding to each first node, setting the size information of the BPMN object corresponding to the current first node according to the node type of the current first node to generate a first standard primitive, and obtaining all the first standard primitives; traversing the BPMN object corresponding to each second node, setting the size information of the BPMN object corresponding to the current second node according to the node type of the current second node to generate a second standard primitive, and obtaining all the second standard primitives; and traversing the BPMN object corresponding to each connection line, setting the size information of the BPMN object corresponding to the current connection line according to the connection line type of the current connection line, and generating a third standard primitive to obtain all third standard primitives.
Illustratively, in BPMN, different stream objects, connection objects are set by coordinates, etc., and can be processed as corresponding standard primitives. Starting from a starting node, setting fixed coordinate data as a starting point of the whole process, traversing all nodes and connecting lines from the starting node, setting different width and height data by type distinguishing, setting fixed width between each node as the length of the connecting lines, and generating standard primitives in one-to-one correspondence.
Based on the same inventive concept as the first embodiment, the second embodiment provides a BPMN service flow conversion apparatus as shown in fig. 3, including:
a JSON protocol file obtaining module 21, configured to generate a JSON protocol file according to the enterprise customized service flow; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines;
the first BPMN object conversion module 22 is configured to convert each first node into a BPMN stream object respectively based on a first mapping table configured in advance, and set attribute information of the BPMN stream object corresponding to each first node to obtain BPMN objects corresponding to all the first nodes;
the second BPMN object conversion module 23 is configured to add a BPMN stream object and a BPMN sequential stream object to each second node based on a second mapping table configured in advance, convert each second node into a BPMN stream object, and set attribute information of the BPMN stream object and the BPMN sequential stream object corresponding to each second node, so as to obtain BPMN objects corresponding to all second nodes;
a third BPMN object conversion module 24, configured to convert each connection into a BPMN sequential flow object respectively based on a preconfigured third mapping table, and set attribute information of the BPMN sequential flow object corresponding to each connection, to obtain BPMN objects corresponding to all connections;
the process icon standardization verification module 25 is used for carrying out process icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines;
and the BPMN protocol file obtaining module 26 is configured to, when the process icon standardization verification is passed, generate a first standard primitive according to the BPMN object corresponding to each first node, generate a second standard primitive according to the BPMN object corresponding to each second node, and generate a third standard primitive according to the BPMN object corresponding to each connection line, so as to combine all the first standard primitives, all the second standard primitives, and all the third standard primitives, thereby obtaining a BPMN protocol file.
In a preferred embodiment, the BPMN service flow converting apparatus further includes:
and a node connection condition judging module, configured to respectively convert each first node into a BPMN stream object based on the preconfigured first mapping table, set attribute information of the BPMN stream object corresponding to each first node, traverse each node before obtaining the BPMN objects corresponding to all the first nodes, and judge whether the current node is associated with a single connection line, if so, use the current node as the first node, otherwise, use the current node as the second node.
In a preferred embodiment, the JSON protocol file obtaining module 21 includes:
the event definition unit is used for defining a plurality of events according to the business type of the enterprise self-defined business process;
and the file generation unit is used for respectively taking each event as a node, adding a connecting line between the nodes corresponding to the associated events according to the execution sequence between the associated events, and generating the JSON protocol file.
In a preferred embodiment, the process icon normalization verification module 25 is specifically configured to determine whether the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines satisfy a predefined process icon normalization verification condition; if the flow icon normalization verification is not met, judging that the flow icon normalization verification is not passed; the process icon normalization verification conditions comprise the condition that a node with the node type being a starting node is only used as a starting point of a connecting line, the condition that a node with the node type being an ending node is only used as an end point of the connecting line, and the condition that each connecting line has only one starting point and one end point.
In a preferred embodiment, the BPMN protocol file obtaining module 26 includes:
the first standard primitive generating unit is used for traversing the BPMN object corresponding to each first node, setting the size information of the BPMN object corresponding to the current first node according to the node type of the current first node to generate a first standard primitive, and obtaining all first standard primitives;
the second standard primitive generating unit is used for traversing the BPMN object corresponding to each second node, setting the size information of the BPMN object corresponding to the current second node according to the node type of the current second node to generate a second standard primitive, and obtaining all second standard primitives;
and the third standard primitive generating unit is used for traversing the BPMN object corresponding to each connection line, setting the size information of the BPMN object corresponding to the current connection line according to the connection line type of the current connection line, and generating a third standard primitive to obtain all the third standard primitives.
In summary, the embodiment of the present invention has the following advantages:
generating a JSON protocol file according to an enterprise user-defined business process; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines; respectively converting each first node into a BPMN stream object based on a first mapping table configured in advance, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes; respectively adding a BPMN flow object and a BPMN sequential flow object to each second node based on a pre-configured second mapping table, converting each second node into a BPMN flow object, and setting attribute information of the BPMN flow object and the BPMN sequential flow object corresponding to each second node to obtain the BPMN objects corresponding to all the second nodes; respectively converting each connection line into a BPMN (business process model) sequential flow object based on a preset third mapping table, and setting attribute information of the BPMN sequential flow object corresponding to each connection line to obtain the BPMN objects corresponding to all the connection lines; performing process icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines; when the process icon standardization verification is passed, generating first standard primitives according to the BPMN object corresponding to each first node, generating second standard primitives according to the BPMN object corresponding to each second node, generating third standard primitives according to the BPMN object corresponding to each connection line, and combining all the first standard primitives, all the second standard primitives and all the third standard primitives to obtain a BPMN protocol file, so that the enterprise self-defined business process is converted into BPMN business process conversion. The embodiment of the invention maps various first nodes with various BPMN flow objects by pre-configuring a first mapping table, maps various second nodes with various BPMN flow objects and various BPMN sequence flow objects by configuring a second mapping table, maps various connecting lines with various BPMN sequence flow objects by configuring a third mapping table, converts each first node into a corresponding BPMN object based on the first mapping table, newly adds a BPMN object to each second node based on the second mapping table, converts each second node into a corresponding BPMN object, converts each connecting line into a corresponding BPMN object based on the third mapping table, performs flow icon standardization verification, standard primitive generation and standard primitive combination treatment on all first nodes, all second nodes and the BPMN objects corresponding to all connecting lines to obtain a BPMN protocol file, and can comprehensively convert enterprise self-defined service flows into BPMN service flows, the enterprise self-defined business process is not required to be manually converted into the BPMN business process, and the conversion efficiency of the BPMN business process is effectively improved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
It will be understood by those skilled in the art that all or part of the processes of the above embodiments may be implemented by hardware related to instructions of a computer program, and the computer program may be stored in a computer readable storage medium, and when executed, may include the processes of the above embodiments. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (10)

1. A BPMN business process conversion method is characterized by comprising the following steps:
generating a JSON protocol file according to the enterprise user-defined business process; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines;
respectively converting each first node into a BPMN stream object based on a first mapping table configured in advance, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes;
respectively adding a BPMN flow object and a BPMN sequential flow object to each second node based on a pre-configured second mapping table, converting each second node into a BPMN flow object, and setting attribute information of the BPMN flow object and the BPMN sequential flow object corresponding to each second node to obtain the BPMN objects corresponding to all the second nodes;
respectively converting each connection line into a BPMN (business process model) sequential flow object based on a preset third mapping table, and setting attribute information of the BPMN sequential flow object corresponding to each connection line to obtain the BPMN objects corresponding to all the connection lines;
performing process icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines;
and when the process icon is subjected to standardization verification, generating a first standard primitive according to the BPMN object corresponding to each first node, generating a second standard primitive according to the BPMN object corresponding to each second node, and generating a third standard primitive according to the BPMN object corresponding to each connecting line so as to combine all the first standard primitives, all the second standard primitives and all the third standard primitives to obtain a BPMN protocol file.
2. The BPMN business process transformation method of claim 1, wherein before the transforming each first node into a BPMN stream object based on the preconfigured first mapping table, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all first nodes, the method further comprises:
and traversing each node, judging whether the current node is associated with a single connecting line, if so, taking the current node as a first node, and if not, taking the current node as a second node.
3. The BPMN business process transformation method according to claim 1, wherein the generating a JSON protocol file according to the enterprise-defined business process specifically includes:
defining a plurality of events according to the business type of the enterprise self-defined business process;
and respectively taking each event as a node, and adding connecting lines between nodes corresponding to the associated events according to the execution sequence among the associated events to generate a JSON protocol file.
4. The BPMN business process conversion method according to claim 1, wherein the process icon standardization verification is performed on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines, specifically:
judging whether the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines meet the predefined process icon standardization verification condition or not;
if the flow icon normalization verification is not met, judging that the flow icon normalization verification is not passed;
the process icon normalization verification conditions comprise the condition that a node with the node type being a starting node is only used as a starting point of a connecting line, the condition that a node with the node type being an ending node is only used as an end point of the connecting line, and the condition that each connecting line has only one starting point and one end point.
5. The BPMN business process transformation method according to claim 1, wherein the generating of the first standard primitive according to the BPMN object corresponding to each first node, the generating of the second standard primitive according to the BPMN object corresponding to each second node, and the generating of the third standard primitive according to the BPMN object corresponding to each connection line respectively specifically comprises:
traversing the BPMN object corresponding to each first node, setting the size information of the BPMN object corresponding to the current first node according to the node type of the current first node to generate a first standard primitive, and obtaining all the first standard primitives;
traversing the BPMN object corresponding to each second node, setting the size information of the BPMN object corresponding to the current second node according to the node type of the current second node to generate a second standard primitive, and obtaining all the second standard primitives;
and traversing the BPMN object corresponding to each connection line, setting the size information of the BPMN object corresponding to the current connection line according to the connection line type of the current connection line, and generating a third standard primitive to obtain all third standard primitives.
6. A BPMN traffic flow switching apparatus, comprising:
the JSON protocol file acquisition module is used for generating a JSON protocol file according to the enterprise user-defined business process; the JSON protocol file comprises a plurality of nodes and a plurality of connecting lines for connecting the nodes, wherein all the nodes comprise a plurality of first nodes related to a single connecting line and/or a plurality of second nodes related to at least two connecting lines;
the first BPMN object conversion module is used for respectively converting each first node into a BPMN stream object based on a first mapping table configured in advance, and setting attribute information of the BPMN stream object corresponding to each first node to obtain the BPMN objects corresponding to all the first nodes;
the second BPMN object conversion module is used for respectively adding a BPMN stream object and a BPMN sequential stream object to each second node based on a second mapping table configured in advance, converting each second node into the BPMN stream object, and setting attribute information of the BPMN stream object and the BPMN sequential stream object corresponding to each second node to obtain the BPMN objects corresponding to all the second nodes;
the third BPMN object conversion module is used for respectively converting each connection line into a BPMN sequential flow object based on a preset third mapping table, and setting attribute information of the BPMN sequential flow object corresponding to each connection line to obtain the BPMN objects corresponding to all the connection lines;
the flow icon standardization verification module is used for carrying out flow icon standardization verification on the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes and the BPMN objects corresponding to all the connecting lines;
and the BPMN protocol file acquisition module is used for generating a first standard primitive according to the BPMN object corresponding to each first node, generating a second standard primitive according to the BPMN object corresponding to each second node and generating a third standard primitive according to the BPMN object corresponding to each connecting line when the process icon is subjected to standardization verification so as to combine all the first standard primitives, all the second standard primitives and all the third standard primitives to obtain the BPMN protocol file.
7. The BPMN traffic flow switching apparatus according to claim 6, further comprising:
and a node connection condition judging module, configured to respectively convert each first node into a BPMN stream object based on the preconfigured first mapping table, set attribute information of the BPMN stream object corresponding to each first node, traverse each node before obtaining the BPMN objects corresponding to all the first nodes, and judge whether the current node is associated with a single connection line, if so, use the current node as the first node, otherwise, use the current node as the second node.
8. The BPMN business process translation device of claim 6, wherein the JSON protocol file acquisition module comprises:
the event definition unit is used for defining a plurality of events according to the business type of the enterprise self-defined business process;
and the file generation unit is used for taking each event as a node, adding connecting lines between the nodes corresponding to the associated events according to the execution sequence of the associated events, and generating the JSON protocol file.
9. The BPMN business process switching apparatus according to claim 6, wherein the process icon normalization verification module is specifically configured to determine whether the BPMN objects corresponding to all the first nodes, the BPMN objects corresponding to all the second nodes, and the BPMN objects corresponding to all the connection lines satisfy predefined process icon normalization verification conditions; if the flow icon normalization verification is not met, judging that the flow icon normalization verification is not passed; the process icon normalization verification conditions comprise the condition that a node with the node type being a starting node is only used as a starting point of a connecting line, the condition that a node with the node type being an ending node is only used as an end point of the connecting line, and the condition that each connecting line has only one starting point and one end point.
10. The BPMN business process switching apparatus of claim 6, wherein the BPMN protocol file obtaining module comprises:
the first standard primitive generating unit is used for traversing the BPMN object corresponding to each first node, setting the size information of the BPMN object corresponding to the current first node according to the node type of the current first node to generate a first standard primitive, and obtaining all first standard primitives;
the second standard primitive generating unit is used for traversing the BPMN object corresponding to each second node, setting the size information of the BPMN object corresponding to the current second node according to the node type of the current second node to generate a second standard primitive, and obtaining all second standard primitives;
and the third standard primitive generating unit is used for traversing the BPMN object corresponding to each connection line, setting the size information of the BPMN object corresponding to the current connection line according to the connection line type of the current connection line, and generating a third standard primitive to obtain all the third standard primitives.
CN202210490437.2A 2022-05-06 2022-05-06 BPMN business process conversion method and device Pending CN114819906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210490437.2A CN114819906A (en) 2022-05-06 2022-05-06 BPMN business process conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210490437.2A CN114819906A (en) 2022-05-06 2022-05-06 BPMN business process conversion method and device

Publications (1)

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

Family

ID=82511393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210490437.2A Pending CN114819906A (en) 2022-05-06 2022-05-06 BPMN business process conversion method and device

Country Status (1)

Country Link
CN (1) CN114819906A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072884A1 (en) * 2010-09-22 2012-03-22 Sap Ag Converting business process models to component models in a service oriented architecture domain
CN103617486A (en) * 2013-11-21 2014-03-05 中国电子科技集团公司第十五研究所 Method and system for conducting dynamic graphical monitoring on complex service processes
US20140282366A1 (en) * 2013-03-15 2014-09-18 Oracle International Corporation Flexible microinstruction system for constructing microprograms which execute tasks, gateways, and events of bpmn models
CN106600238A (en) * 2016-12-26 2017-04-26 上海轻维软件有限公司 Network service fulfillment realization method based on Activiti flow engine and apparatus thereof
CN113918138A (en) * 2020-07-09 2022-01-11 阿里巴巴集团控股有限公司 Flow processing method and device and computer system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072884A1 (en) * 2010-09-22 2012-03-22 Sap Ag Converting business process models to component models in a service oriented architecture domain
US20140282366A1 (en) * 2013-03-15 2014-09-18 Oracle International Corporation Flexible microinstruction system for constructing microprograms which execute tasks, gateways, and events of bpmn models
CN103617486A (en) * 2013-11-21 2014-03-05 中国电子科技集团公司第十五研究所 Method and system for conducting dynamic graphical monitoring on complex service processes
CN106600238A (en) * 2016-12-26 2017-04-26 上海轻维软件有限公司 Network service fulfillment realization method based on Activiti flow engine and apparatus thereof
CN113918138A (en) * 2020-07-09 2022-01-11 阿里巴巴集团控股有限公司 Flow processing method and device and computer system

Similar Documents

Publication Publication Date Title
US20150193558A1 (en) Method and device for generating engineering topology of digital substation
CN114003451B (en) Interface testing method, device, system and medium
US11107028B2 (en) Numerical graphical flow diagram conversion and comparison
CN110198254A (en) A kind of communication protocol inline diagnosis method and diagnostic system
EP2511841A2 (en) System and method for generation of cim-based power system circuit models
US20050234845A1 (en) End-to-end business integration testing tool
CN117749899A (en) Protocol conversion framework, device communication method, device and computer storage medium
CN114448802B (en) Gateway configuration method, device, electronic equipment and storage medium
CN117035318A (en) Robot automation flow design and scheduling method and device based on large language model
CN113347060B (en) Method, device and system for detecting power network fault based on process automation
CN111597166B (en) Power database model construction method, device, computer equipment and storage medium
CN106844819B (en) Intelligent station secondary graph model library design tool database acquisition system
CN114819906A (en) BPMN business process conversion method and device
CN110324280A (en) Protocol configuration systems, devices and methods in industrial cloud
CN114064469A (en) Interface automation test method and storage medium
CN114219109A (en) Conference room patrol record management method and device and electronic equipment
CN112532432A (en) Automatic mapping method and system based on LTU terminal
CN110377463A (en) Interface test method, device, terminal and computer readable storage medium
CN110912741A (en) Intelligent label generation method and device based on reverse analysis
CN111783391A (en) Online artificial text marking system and method
CN115473837B (en) Communication test tool capable of configuring protocol and communication test method based on communication test tool
CN108170836A (en) A kind of processing method and its system of cables of nuclear power termination big data
CN114090607B (en) Comprehensive wiring visual management platform, method and storage medium
CN109858796A (en) A kind of information system requirement management system and method
CN116610683B (en) Data binding 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: 20220729

RJ01 Rejection of invention patent application after publication