CN116070891A - Flow processing method, device, equipment and storage medium - Google Patents

Flow processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116070891A
CN116070891A CN202310037597.6A CN202310037597A CN116070891A CN 116070891 A CN116070891 A CN 116070891A CN 202310037597 A CN202310037597 A CN 202310037597A CN 116070891 A CN116070891 A CN 116070891A
Authority
CN
China
Prior art keywords
link
flow
matching
role
personnel
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
CN202310037597.6A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310037597.6A priority Critical patent/CN116070891A/en
Publication of CN116070891A publication Critical patent/CN116070891A/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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • 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

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 present disclosure provides a flow processing method, apparatus, device and storage medium, applied to the fields of information technology and financial science and technology, including: extracting constituent elements of the flow chart, wherein the constituent elements comprise flow links, execution roles and personnel; generating a link routing table, a link role table and a personnel role table based on flow logic of the flow chart, wherein the link routing table records the matching relation between each flow link and the next flow link, the link role table records the execution roles of each flow link, and the personnel role table records personnel taking the role; responding to the flow action request, and executing the current flow link based on matching the personnel corresponding to the execution role of the current flow link between the link role table and the personnel role table; and (3) matching the next flow link of the current flow link based on the link routing table, and repeating the previous step until the execution of the flow chart is completed. The method uses the link routing table to represent the flow chart, thereby facilitating the modification of the flow and leading the expression of the flow to be richer and more flexible.

Description

Flow processing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of information technology and financial technology, and in particular, to a process flow method, apparatus, device, and storage medium.
Background
Because the workflow in the information system is strongly associated with the business processing flow, the business processing flow in reality is often changed iteratively along with the actual management requirement, so that the flow in the information system is continuously modified, and the complexity and management cost of system management are increased.
At present, the method for automatically managing the system flow mainly comprises the following 3 schemes. In the state machine method, several fields are used to record the state value of the current stage, and each time the flow is twisted, the state value is updated to record the state of the flow. The state machine method is suitable for simple processes, and adopts a sub-table mode to record the states of the processes for various processes. Secondly, a general flow design method is that a workflow engine is used to solve the flow problem, all the currently known flows are uniformly carded and analyzed, a flow chart is drawn, the flow chart comprises all flow scenes, and each time the flow change is calculated by the workflow engine, the flow chart is twisted. And thirdly, a characteristic flow design method, which uses a workflow engine to solve the flow problem, wherein a flow chart is independently drawn for each business flow, and each flow is independently designed and independently processed.
The state machine method is only suitable for simple processes, and for complex processes, the service logic layer needs to consider not only the change of service logic but also the change of process states, which often results in high complexity of codes and logic confusion. The general flow design method is convenient to realize because the workflow engine is introduced, the business logic layer can process business logic without considering the change of flow state, but when any flow is modified, the influence caused by the general flow design is global, and other flow torsion can be influenced. In addition, when a new flow occurs, a situation that the new flow cannot be combined with the existing flow may occur, and at this time, only new flow branches can be redesigned, so that the flow chart is more complex. The characteristic flow design method is designed and developed specifically for each flow, so that the modification of each flow does not affect other flows, the isolation between the flows is good, the modification of one flow does not affect other flows, but the method has more coding quantity and higher maintenance cost.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a flow processing method, apparatus, device, and storage medium.
According to a first aspect of the present disclosure, there is provided a flow processing method, including: extracting constituent elements of the flow chart, wherein the constituent elements comprise flow links, execution roles and personnel; generating a link routing table, a link role table and a personnel role table based on the flow logic of the flow chart, wherein the link routing table records the matching relation between each flow link and the next flow link, the link role table records the execution role of each flow link, and the personnel role table records the personnel taking the execution role; responding to a flow action request, and executing a current flow link based on matching personnel corresponding to an execution role of the current flow link by the link role table and the personnel role table; and repeating the previous step based on the link routing table matching the next flow link of the current flow link until the execution of the flow chart is completed.
According to an embodiment of the disclosure, the elements of the link routing table include a current flow link number, a next flow Cheng Huanjie number, a first matching value and a routing value, wherein the first matching value represents a result of matching the current flow link and the next flow link based on a first preset condition, and the routing value is a path representation of the current flow link advancing to the next flow link; the step of matching the next flow link based on the link routing table with the current flow link comprises the following steps: obtaining the first matching value based on the first preset condition matching; and obtaining a routing value corresponding to the first matching value from the link routing table to obtain the next flow link matching matched with the current flow link.
According to an embodiment of the present disclosure, the method further comprises: generating a link preamble action table based on the flow logic of the flow chart; the link preamble action table records a current flow link, a second matching value and a preamble action corresponding to the second matching value, wherein the second matching value represents a result of condition matching based on a second preset condition before the current flow link is executed, and is used for judging whether the first preset condition needs to be modified based on the preamble action.
According to an embodiment of the present disclosure, before executing the current flow link, the method further includes: obtaining a second matching value based on the second preset condition matching; when the second matching value meets the preamble condition, performing a preamble action, wherein the preamble action is used for changing the first preset condition so that the next flow link is changed according to the first preset condition; and executing the current flow link when the second matching value does not meet the preamble condition.
According to an embodiment of the present disclosure, the method further comprises: generating a link follow-up action table based on the flow logic of the flow chart; the link subsequent action table records a current flow link, a next flow link, a third matching value and subsequent actions corresponding to the third matching value, wherein the third matching value represents a result of condition matching based on a third preset condition before entering the next flow Cheng Huanjie after the current flow link is finished, and is used for judging whether the next flow link needs to be changed based on the subsequent actions.
According to an embodiment of the present disclosure, after the current execution link is executed, the method further includes: obtaining a third matching value based on the third preset condition matching; when the third matching value meets a subsequent condition, executing a subsequent action, wherein the subsequent action is used for modifying the routing value and changing the next flow link; and when the third matching value does not meet the follow-up condition, entering the next flow link of successful original matching.
According to an embodiment of the present disclosure, the method further comprises: and when the flow chart is changed, modifying the link routing table, the link color table and the personnel color table based on change logic.
Another aspect of the present disclosure provides a flow processing apparatus, including: the flow element extraction module is used for extracting constituent elements of the flow chart, wherein the constituent elements comprise flow links, execution roles and personnel; the relation table generation module is used for generating a link routing table, a link role table and a personnel role table based on the flow logic of the flow chart, wherein the link routing table records the matching relation between each flow link and the next flow link, the link role table records the execution role of each flow link, and the personnel role table records the personnel taking the execution role; the action request execution module is used for responding to a flow action request, matching personnel corresponding to an execution role of a current flow link based on the link role table and the personnel role table, and executing the current flow link; and the flow progress pushing module is used for matching the next flow link of the current flow link based on the link routing table, and repeating the previous step until the execution of the flow chart is completed.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described method.
According to the flow processing method, the device, the equipment and the storage medium, the flow is simplified into various constituent elements, various tables reflecting flow logic are generated based on the constituent elements, and the flow is managed through the tables, so that the expression of the flow is more flexible, and the management and the modification of the flow are facilitated. According to the method, when the flow is changed, part of the flow logic can be changed by adjusting the link routing table, so that the operation is simple, and the whole logic is not influenced.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a flow processing method, apparatus, device, and storage medium according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a flow processing method according to an embodiment of the disclosure;
FIG. 3A schematically illustrates an example of a flow chart according to an embodiment of the present disclosure;
FIG. 3B schematically illustrates an example of a flow chart according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a flow processing apparatus according to an embodiment of the disclosure; and
fig. 5 schematically illustrates a block diagram of an electronic device adapted to implement a flow processing method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the related data (such as including but not limited to personal information of a user) are collected, stored, used, processed, transmitted, provided, disclosed, applied and the like, all conform to the regulations of related laws and regulations, necessary security measures are adopted, and the public welcome is not violated.
The embodiment of the disclosure provides a flow processing method, which simplifies a flow into a plurality of constituent elements, generates a plurality of tables reflecting flow logic based on the constituent elements, and enables the expression of the flow to be more flexible and facilitates the modification and management of the flow through the table management flow.
Fig. 1 schematically illustrates an application scenario diagram of a flow processing method and apparatus according to an embodiment of the disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a flow usage scenario of the financial industry. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (merely an example) providing support for websites browsed by the user with the first terminal apparatus 101, the second terminal apparatus J02, and the third terminal apparatus 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the flow processing method provided in the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the flow processing apparatus provided in the embodiments of the present disclosure may be generally disposed in the server 105. The flow processing method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the flow processing apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The flow processing method of the disclosed embodiment will be described in detail below with reference to fig. 2 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flowchart of a flow processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the flow processing method of this embodiment includes operations S210 to S240.
In operation S210, constituent elements of the flowchart including the flow links, the execution roles, and the personnel are extracted.
Specifically, the flow chart comprises a plurality of flow links which are sequentially arranged according to a logic sequence, and when one flow link is executed, the flow is transferred to the next flow link to be executed continuously. In each flow link, the object for processing the flow link and the object to be processed, namely the role in the flow link are included. Each character is mapped to the actual application and corresponds to a person who is actually involved. The following table records may be used to extract the flow links, roles and personnel in the flow chart. In the link table, the role table and the personnel table, ID may be used to refer to a unit of which region the link is applied to when the procedure is applicable to a unit of a plurality of regions, for example, regions in table 1, in which some description items may be newly added to the table according to actual conditions.
Table 1 link table
Sequence number Link id Link name Region of ……
Table 2 role table
Sequence number Character id Character name ……
TABLE 3 personnel watch
Sequence number Personnel id Name of person ……
In operation S220, based on the flow logic of the flow chart, a link routing table, a link role table, and a personnel role table are generated, the link routing table records the matching relationship between each flow link and the next flow link, the link role table records the execution roles of each flow link, and the personnel role table records the personnel who play roles.
Table 4 link routing table
Figure SMS_1
Figure SMS_2
Table 4 schematically shows a link routing table, where elements of the link routing table include a current flow link number, a next flow Cheng Huanjie number, a first matching value and a routing value, where the first matching value represents a result of matching the current flow link and the next flow link based on a first preset condition, and the routing value is a path representation of the current flow link advancing to the next flow link. The first preset condition may be a condition form of a plurality of matching modes, including but not limited to a comparison expression, a regular expression, a function, a chained process, an Sql process, and the like. The multiple matching modes are matched for use, so that the route selection of the flow link is more flexible. Table 5 specifically illustrates the matching method and the matching value.
Table 5 matching method and matching value
Figure SMS_3
In this embodiment, according to table 4, a first matching value may be obtained based on a first preset condition, and a routing value corresponding to the first matching value is obtained from the link routing table, so as to obtain a next flow link matched with the current flow link.
TABLE 6 Linked character table
Sequence number Link id Character id ……
In this embodiment, the link role table records the correspondence between links and roles, and has the corresponding roles, so that the events of the corresponding links can be seen.
TABLE 7 personnel color chart
Figure SMS_4
Figure SMS_5
In this embodiment, the person-character table records the correspondence between the person and the character, and the correspondence between the person and the character may be a many-to-many relationship.
In operation S230, in response to the flow action request, the current flow link is executed based on the link role table and the person role table matching the person corresponding to the execution role of the current flow link.
In this embodiment, the flow action request may be initiated by a requester of the current flow link before each flow link is executed, or may be initiated at an initial link of a flow in sequence, and then each flow link is executed sequentially. In each flow link, corresponding personnel of the corresponding role can be obtained from the link role table and the personnel role table according to the link id so as to execute the current flow link.
In operation S240, the previous step is repeated based on the link routing table matching the next flow link of the current flow link until the execution of the flow chart is completed.
In this embodiment, according to the link routing table, a matching value of the current routing link is calculated to obtain a next flow link, and the flow is advanced to the next flow link. After entering the next process, the next process becomes the current process, and operations S230 and S240 are repeatedly executed to continue advancing the process progress.
According to the flow processing method provided by the embodiment of the disclosure, the flow chart is changed into the use of table record management, the representation mode is flexible, and the management and the modification of the flow are facilitated.
The flow processing method provided by the embodiment of the present disclosure may further include operation S250 on the basis of operations S210 to S240.
In operation S250, a link preamble action table is generated based on the flow logic of the flowchart.
Table 8 link preamble action table
Figure SMS_6
As shown in table 8, the link preamble action table records the current flow link, the second matching value, and the preamble action corresponding to the second matching value. The second matching value represents a result of performing condition matching based on a second preset condition before executing the current flow link after the previous flow Cheng Huanjie is matched and enters the current flow link, and is used for judging whether the first preset condition needs to be modified based on the preamble action. The second preset condition at least comprises a comparison expression, a regular expression, a function, chain processing and Sq1 processing in several matching modes.
In this embodiment, the link preamble action table is applied before executing the current flow link, and includes operations S251 to S253.
In operation S251, a second matching value is obtained based on the second preset condition matching. Specifically, the second preset condition may define an overall execution condition of the process, and may be used to cope with a specific requirement.
In operation S252, when the second matching value satisfies the preamble condition, a preamble action is performed, and the preamble action is used to change the first preset condition, so that the next flow Cheng Huanjie is changed according to the first preset condition.
In operation S253, when the second matching value does not satisfy the preamble condition, the current flow link is executed, and the next flow link is determined based on the original first preset condition.
For example, a judgment condition is set before the current flow link, for example, the current time is 11 months and 7 days, and the peak meeting time of Beijing Kaapec is originally the working day, but since the local rule is that the peak meeting period is falsified, the working day is calculated at this time. Because a 1-comparison expression is used, the value 1 > 0 is constant, and then the preamble action BJHoliday method is performed, converting 1107 to holidays. When the current flow link is processed, the processing logic of the current flow link can be changed into the processing logic of a special date. The setting of the link preamble action table increases the flexibility and richness of the flow links, and compared with the drawing of the flow chart, the complexity of flow management can be simplified.
It should be noted that, in operation S252, the modification of the first preset condition may be at least one of a plurality of defined attributes included in the modification of the first preset condition, for example, assume that the original first preset condition is a regular expression:
worktime@Holiday@location@@11*|**0;
the regular expression is used for judging whether the current flow link occurs in working time, holidays and appointed places, and obtaining a matching value of the next flow link based on the three combined conditions, when the conditions are changed, at least one of the working time, holidays and appointed places can be changed according to actual conditions, so that the original first preset condition is changed, and the first matching value obtained according to the first preset condition is also changed accordingly, so that the next flow link is changed.
Alternatively, the modification of the first preset condition may also be modification of the first preset condition itself, for example, when the original first preset condition is a comparison expression, the first preset condition may be modified into a regular expression combining multiple conditions in some special periods.
The flow processing method provided by the embodiment of the present disclosure may further include operation S260.
In operation S260, a link subsequent action table is generated based on the flow logic of the flowchart.
Table 9 link follow-up action table
Figure SMS_7
As shown in table 9, the link subsequent action table records the current flow link, the next flow link, the third matching value and the subsequent actions corresponding to the third matching value, and the third matching value represents the result of the condition matching based on the third preset condition before entering the next flow Cheng Huanjie after the current flow link is finished, so as to determine whether the next flow link needs to be modified based on the subsequent actions. The third preset condition at least comprises a comparison expression, a regular expression, a function, chain processing and Sq1 processing in several matching modes.
In this embodiment, the link subsequent action table is applied after executing the current flow link, and includes operations S261 to S263.
In operation S261, a third matching value is obtained based on the third preset condition matching.
In operation S262, when the third matching value satisfies the subsequent condition, a subsequent action is performed, the subsequent action being used to modify the routing value and to modify the next flow link.
In operation S263, when the third matching value does not satisfy the follow-up condition, the next procedure of the original matching success is entered.
For example, in a unit dispatching process, when dispatching a car in a unit on a working day according to a general dispatching process, a dispatching car dispatching link B can be entered only after a department responsible person examines and approves a link A; when temporary adjustment such as dispatching vehicles to the outside occurs, dispatching vehicles can be dispatched only through the unit responsible person approval link C. According to the flow processing method provided by the embodiment of the disclosure, in response to the temporary adjustment, after the approval of the part of responsible persons in the approval link A of the original department, a third preset condition is added to perform subsequent judgment, namely, whether the vehicle is dispatched to the outside is judged, and the judgment result is a third matching value, wherein the third matching value can be represented by numerical value, inequality, true value and the like. When the vehicle is dispatched to the outside, the value of the third matching value can be expressed as 1, and when the vehicle is dispatched to the inside, the value of the third matching value can be expressed as 0. In this embodiment, assuming that the post condition is to determine whether the third matching value is greater than 0, when the third matching value is greater than 0, that is, the current dispatching is to be outward dispatching, a post action needs to be added, and a unit responsible person approval link C is added between the department responsible person approval link a and the dispatching link B, that is, the next procedure link of the responsible person approval link a is changed into the unit responsible person approval link C; when the third matching value is not greater than 0, namely the current dispatching is in-pair dispatching, a follow-up action adjustment flow is not required to be added, and the department responsible person examination and approval link A and the dispatching link B are sequentially executed according to the original flow. Further, in some strict management periods, if the dispatching flow is more strict, the following condition must be executed, for example, the following condition may be 1 > 0, which is a constant condition, and the dispatching flow in the strict management period is strictly limited to a department responsible person approval link a→a unit responsible person approval link c→a dispatching link B.
The flow processing method provided by the embodiment of the disclosure uses the link pre-sequence action table and the link post-sequence action table to be matched, so that the flow is more abundant and flexible in expression and higher in adaptability.
In this embodiment, when the flow chart is changed, the link routing table, the link color table, and the personnel color table are modified based on the change logic. When the link preamble table and the link postamble table exist, the link preamble table and the link postamble table can be changed according to actual demands. The method provided by the embodiment of the disclosure arranges the constituent elements and the logic relations in the flow chart into form management, simplifies the representation mode of the flow chart, enables the constituent elements to be combined more flexibly, enhances the expressive force, has stronger adaptability, and is simpler and more convenient to manage and modify than the flow chart.
Fig. 3A and 3B schematically illustrate one example of a flow chart according to an embodiment of the present disclosure, respectively.
Fig. 3A and 3B show the dispatching process of a unit in Yunnan and Beijing division, respectively. The Yunnan pie vehicle procedure comprises links YN001, YN002, YN003, YN004, YN005 and YN006, and the Beijing pie vehicle procedure comprises links BJ001, BJ002, BJ003, BJ004 and BJ005. The two flows can be managed by using the same link routing table.
Table 10
Figure SMS_8
In the table, yunnan is abbreviated as YN, beijing is abbreviated as BJ, the matching mode refers to the matching mode corresponding to the serial number shown in the table 5, and the matching value is a specific matching condition. As shown in table 10, in the Yunnan taxi-taking flow, the next link of the link YN002 includes YN003, YN004 and YN006, and the matching modes are regular expressions. When the YN002 is successfully matched with the YN003 according to the regular expression, the corresponding route value is 1, and the flow is continuously executed to the flow branch where the YN003 is located according to the route guided by the route value; when YN002 is successfully matched with YN004 according to the regular expression, the corresponding route value is 2, and the flow is continuously executed to the flow branch where YN004 is located according to the route guided by the route value; when the YN002 is successfully matched with the YN006 according to the regular expression, the corresponding route value is 3, and the flow is continuously executed to the flow branch where the YN006 is located according to the path guided by the route value.
Table 11 shows a link preamble action in the beijing pie flow.
Watch ]
Figure SMS_9
Figure SMS_10
For example, the current time is 11 months and 7 days, and the peak meeting time of Beijing Kaapec is originally the working day, but since the local period is defined as the false meeting period, the working day is calculated at this time. Because a 1-comparison expression is used, the value 1 > 0 is constant, and then the BJHoliday method is performed, converting 1107 to holidays.
Table 12 shows two follow-up actions in the yunnan pie flow.
Table 12
Figure SMS_11
As shown in table 12, if the next link of the current link YN002 is YN006 or YN004 after matching, the subsequent action matching is performed by sql statement. For example, some network points start to strictly manage in a period of time, all bus applications must be approved by a line leading (YN 005) to be used, that is, YN002 can only reach the node of YN003 and then reach the node of YN005, and the mode of sql can be used for matching, that is, if the next link of YN002 is originally YN006, at this time, after being executed by sql, the condition of strictly managing is matched, the modirute method is executed, the next flow Cheng Huanjie is changed to be YN003, and after passing through YN005, YN006 is executed. The modiRoute method is actually modifying the routing value of the current node that matches the next node.
According to the flow processing method provided by the embodiment of the disclosure, the flow is simplified into various component elements, various tables reflecting the flow logic are generated based on the component elements, the flow is managed through the tables, the flow is convenient to modify, and if the flow is changed, the link routing table is directly adjusted. The method is matched with the link pre-procedure action table and the link post-procedure action table, so that the flow is expressed more abundantly and flexibly, the adaptability is stronger, and different actions can be set according to different conditions. The method also uses a plurality of matching modes, so that the route selection is more flexible.
Based on the above flow processing method, the disclosure further provides a flow processing device. The device will be described in detail below in connection with fig. 4.
Fig. 4 schematically shows a block diagram of a flow processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the flow processing apparatus 400 of this embodiment includes a flow element extraction module 410, a relationship table generation module 420, an action request execution module 430, and a flow progress advancing module 440.
The flow element extraction module 410 is configured to extract constituent elements of the flow chart, where the constituent elements include a flow link, an execution role, and a person. In an embodiment, the flow element extraction module 410 may be configured to perform the operation S210 described above, which is not described herein.
The relationship table generating module 420 is configured to generate a link routing table, a link role table, and a personnel role table based on the flow logic of the flow chart, where the link routing table records a matching relationship between each flow link and a next flow link, the link role table records an execution role of each flow link, and the personnel role table records personnel acting as the execution role. In an embodiment, the relationship table generating module 420 may be used to perform the operation S220 described above, which is not described herein.
The action request execution module 430 is configured to execute the current flow link based on the link role table and the personnel role table matching personnel corresponding to the execution role of the current flow link in response to the flow action request. In an embodiment, the action request execution module 430 may be configured to execute the operation S230 described above, which is not described herein.
The process progress pushing module 440 is configured to match a next process link of the current process link based on the link routing table, and repeat the previous step until the execution of the flowchart is completed. In an embodiment, the process progress pushing module 440 may be used to perform the operation S240 described above, which is not described herein.
According to an embodiment of the disclosure, the elements of the link routing table include a current flow link number, a next flow Cheng Huanjie number, a first matching value, and a routing value, where the first matching value represents a result of matching the current flow link and the next flow link based on a first preset condition, and the routing value is a path representation of the current flow link advancing to the next flow link.
The process progress pushing module 440 is specifically configured to obtain the first matching value based on the first preset condition matching; and obtaining a routing value corresponding to the first matching value from the link routing table to obtain a next flow link matched with the current flow link.
According to an embodiment of the present disclosure, the flow processing apparatus 400 further includes a link preamble module, configured to generate a link preamble action table based on the flow logic of the flow chart; the link preamble action table records the current flow link, a second matching value and a preamble action corresponding to the second matching value, wherein the second matching value represents a result of performing condition matching based on a second preset condition before executing the current flow link after the previous flow Cheng Huanjie is matched and enters the current flow link, and is used for judging whether the first preset condition needs to be modified based on the preamble action.
The link preamble module comprises a preamble condition judging unit and a preamble condition executing unit. The preamble condition judging unit is used for obtaining the second matching value based on second preset condition matching. And the preamble condition execution unit is used for executing a preamble action when the second matching value meets the preamble condition, wherein the preamble action is used for changing the first preset condition so that the next flow link is changed according to the first preset condition.
According to an embodiment of the present disclosure, the flow processing apparatus 400 further includes a link follow-up module. The link follow-up module is used for generating a link follow-up action table based on the flow logic of the flow chart; the link subsequent action table records a current flow link, a next flow link, a third matching value and a corresponding subsequent action, wherein the third matching value represents a result of condition matching based on a third preset condition before entering the next flow Cheng Huanjie after the current flow link is finished, and is used for judging whether the next flow link needs to be changed based on the subsequent action.
The link follow-up module comprises a follow-up condition judging unit and a follow-up condition executing unit. The subsequent condition judging unit is used for obtaining a third matching value based on third preset condition matching. The subsequent condition executing unit is used for executing subsequent actions when the third matching value meets the subsequent condition, wherein the subsequent actions are used for modifying the routing value and changing the next flow link; and when the third matching value does not meet the follow-up condition, entering the next flow link of successful original matching.
According to an embodiment of the present disclosure, the flow processing apparatus 400 further includes a change processing module, configured to modify the link routing table, the link color table, and the personnel color table based on change logic when the flow chart is changed.
Any of the flow element extraction module 410, the relationship table generation module 420, the action request execution module 430, and the flow progress advancement module 440 may be combined in one module or any of the modules may be split into multiple modules according to embodiments of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. At least one of the flow element extraction module 410, the relationship table generation module 420, the action request execution module 430, and the flow progress advancement module 440 may be implemented, at least in part, as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or as hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or as any one of or a suitable combination of any of the three. Alternatively, at least one of the flow element extraction module 410, the relationship table generation module 420, the action request execution module 430, and the flow progress advancement module 440 may be implemented, at least in part, as computer program modules that, when executed, perform the corresponding functions.
Fig. 5 schematically illustrates a block diagram of an electronic device adapted to implement a flow processing method according to an embodiment of the disclosure.
As shown in fig. 5, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 501 may also include on-board memory for caching purposes. The processor 501 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 503, various programs and data required for the operation of the electronic apparatus 500 are stored. The processor 501, ROM 502, and RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the program may be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 500 may also include an input/output (I/O) interface 505, the input/output (I/O) interface 505 also being connected to the bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the item recommendation method provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 501. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or installed from a removable medium 511 via the communication portion 509. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 501. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block 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 will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A flow processing method, comprising:
extracting constituent elements of the flow chart, wherein the constituent elements comprise flow links, execution roles and personnel;
Generating a link routing table, a link role table and a personnel role table based on the flow logic of the flow chart, wherein the link routing table records the matching relation between each flow link and the next flow link, the link role table records the execution role of each flow link, and the personnel role table records the personnel taking the execution role;
responding to a flow action request, and executing a current flow link based on matching personnel corresponding to an execution role of the current flow link by the link role table and the personnel role table;
and repeating the previous step based on the link routing table matching the next flow link of the current flow link until the execution of the flow chart is completed.
2. The method of claim 1, wherein the elements of the link routing table include a current flow link number, a next flow Cheng Huanjie number, a first match value, and a routing value, wherein the first match value represents a result of matching the current flow link and the next flow link based on a first preset condition, the routing value being a path representation of the current flow link advancing to the next flow link;
The step of matching the next flow link based on the link routing table with the current flow link comprises the following steps:
obtaining the first matching value based on the first preset condition matching;
and obtaining a routing value corresponding to the first matching value from the link routing table to obtain the next flow link matched with the current flow link.
3. The method according to claim 2, wherein the method further comprises:
generating a link preamble action table based on the flow logic of the flow chart;
the link preamble action table records a current flow link, a second matching value and a preamble action corresponding to the second matching value, wherein the second matching value represents a result of condition matching based on a second preset condition before the current flow link is executed, and is used for judging whether the first preset condition needs to be modified based on the preamble action.
4. A method according to claim 3, wherein prior to executing the current flow link, the method further comprises:
obtaining a second matching value based on the second preset condition matching;
when the second matching value does not meet the preamble condition, executing the current flow link, and determining the next flow link based on the original first preset condition;
And when the second matching value meets the preamble, executing the preamble, wherein the preamble is used for changing the first preset condition so that the next flow link is changed according to the first preset condition.
5. The method according to claim 2, wherein the method further comprises:
generating a link follow-up action table based on the flow logic of the flow chart;
the link subsequent action table records a current flow link, a next flow link, a third matching value and subsequent actions corresponding to the third matching value, wherein the third matching value represents a result of condition matching based on a third preset condition before entering the next flow Cheng Huanjie after the current flow link is finished, and is used for judging whether the next flow link needs to be changed based on the subsequent actions.
6. The method of claim 5, wherein after the current execution link is executed, the method further comprises:
obtaining a third matching value based on the third preset condition matching;
when the third matching value meets a subsequent condition, executing the subsequent action, wherein the subsequent action is used for modifying the routing value and changing the next flow link;
And when the third matching value does not meet the follow-up condition, entering the next flow link of successful original matching.
7. The method according to claim 1, wherein the method further comprises:
and when the flow chart is changed, modifying the link routing table, the link color table and the personnel color table based on change logic.
8. A flow processing apparatus, comprising:
the flow element extraction module is used for extracting constituent elements of the flow chart, wherein the constituent elements comprise flow links, execution roles and personnel;
the relation table generation module is used for generating a link routing table, a link role table and a personnel role table based on the flow logic of the flow chart, wherein the link routing table records the matching relation between each flow link and the next flow link, the link role table records the execution role of each flow link, and the personnel role table records the personnel taking the execution role;
the action request execution module is used for responding to a flow action request, matching personnel corresponding to an execution role of a current flow link based on the link role table and the personnel role table, and executing the current flow link;
And the flow progress pushing module is used for matching the next flow link of the current flow link based on the link routing table, and repeating the previous step until the execution of the flow chart is completed.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-7.
CN202310037597.6A 2023-01-10 2023-01-10 Flow processing method, device, equipment and storage medium Pending CN116070891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310037597.6A CN116070891A (en) 2023-01-10 2023-01-10 Flow processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310037597.6A CN116070891A (en) 2023-01-10 2023-01-10 Flow processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116070891A true CN116070891A (en) 2023-05-05

Family

ID=86171103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310037597.6A Pending CN116070891A (en) 2023-01-10 2023-01-10 Flow processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116070891A (en)

Similar Documents

Publication Publication Date Title
US8229973B2 (en) Infrastructure and architecture for development and execution of predictive models
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN115795345A (en) Information processing method, device, equipment and storage medium
CN116070891A (en) Flow processing method, device, equipment and storage medium
CN115543428A (en) Simulated data generation method and device based on strategy template
CN113010666B (en) Digest generation method, digest generation device, computer system, and readable storage medium
CN115526587A (en) Method and device for generating customs message
CN114780807A (en) Service detection method, device, computer system and readable storage medium
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN113032256A (en) Automatic test method, device, computer system and readable storage medium
CN113342646B (en) Use case generation method, device, electronic equipment and medium
CN110991923B (en) Architecture construction method and device, electronic equipment and medium
CN116301732A (en) Asset architecture analysis method and system for use cases
CN116881736A (en) Information matching method, device, equipment and storage medium
CN118093698A (en) Data processing method, device, electronic equipment and computer storage medium
CN116128518A (en) Electronic archive management method, device, equipment and storage medium
CN117032789A (en) Business rule configuration and execution method, system, computer equipment and storage medium
CN115688725A (en) Report frame template generation method and device, electronic equipment and medium
CN116703143A (en) Workflow configuration method, device, equipment and medium
CN117493206A (en) Test data generation method, device, equipment and storage medium
CN116049508A (en) Test element information generation method, device, equipment and storage medium
CN117806977A (en) Test method, apparatus, device, medium and program product
CN118153959A (en) Risk identification method, apparatus, device and storage medium
CN117093609A (en) Query statement processing method, device, equipment, medium and program product

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