Process simulation method and device and process engine
By building simulation models of form instances and process instances in the process engine, the work order flow process is simulated automatically, solving the problem of low efficiency in traditional process simulation and improving simulation efficiency and problem detection capabilities.
Patent Information
- Application Number
- CN202411130708.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-22
AI Technical Summary
Traditional process simulation suffers from low simulation efficiency, especially when testers need to repeatedly perform a large number of simple operations.
This paper provides a process simulation method. By determining the process to be simulated and the simulation parameters, a target simulation model is constructed, including form instances and process instances. The simulation is performed using a process engine, and simulation log information and reports are generated, reducing manual intervention and improving the degree of automation.
It has achieved automated simulation of the work order flow process, improved simulation efficiency, reduced the testing workload, and enabled timely detection of problems and optimization of the process.
Smart Images

Figure CN119003359A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of simulation technology, and in particular to a process simulation method, device and process engine. Background Art
[0002] With the rapid development of information technology and computer science, managing workflows in a digital way has become a common practice for many organizations and enterprises. In practical applications, digital management needs to rely on work order systems and other implementations. Among them, the work order system is a software system used to create, assign, track and close work orders. The work order is specifically a document used to record, process and track the completion of work, which can include information such as the content, assignment, completion and history of the work. Therefore, before deploying the work order system in a real environment, it is crucial to ensure that the software functions, performance and stability of the work order system meet the expected standards. In order to reduce development costs, reduce the cost of later modifications, and discover and fix potential problems in the early stages, process simulation technology came into being.
[0003] The general process simulation includes: collecting historical data or creating simulation data, running the work order system in a simulation environment based on the work order flow process, and then the tester manually triggers each work order flow process and fills in historical data or simulation data, observes the performance and response of the system, and records key indicator data.
[0004] However, for some business scenarios, testers are required to repeatedly perform a large number of simple operations during the test process, such as filling in a small amount of data or submitting. A large number of repetitive operations increase the burden of testing work and reduce the efficiency of simulation. Summary of the invention
[0005] The embodiments of the present application provide a process simulation method, device and process engine to solve the problem of low simulation efficiency in traditional process simulation.
[0006] In a first aspect, an embodiment of the present application provides a process simulation method, comprising: determining a process to be simulated and simulation parameters; wherein the process to be simulated is used to represent the flow process of a target work order; the step of determining the process to be simulated includes determining the category of simulation parameters and determining one or more task links involved in the flow of the target work order; the simulation parameters are parameters that are filled in the to-be-filled items of the target work order when the task link is running; building a target simulation model in a process engine based on the process to be simulated; the target simulation model includes at least a form instance and a process instance, the form instance is used to define the category of the simulation parameters and the task link to which it belongs, and the process instance is used to define the task link and the sequential calling relationship between each task link; based on the target simulation model and the simulation parameters, the process to be simulated is simulated in the process engine, and simulation log information is generated; a simulation report is generated based on the simulation log information.
[0007] In one feasible manner, the step of constructing a target simulation model in a process engine based on the process to be simulated also includes: setting a timer for each task link; wherein the timing duration of the timer is preset by the process engine, and after the timer times out, it is used to trigger the task link to call other subsequent task links to run.
[0008] In one feasible method, after determining the process to be simulated and the simulation parameters, the method further includes: determining the simulation parameters based on the category of the simulation parameters; or obtaining the historical work order corresponding to the target work order from the work order library, and extracting the simulation parameters from the historical work order; and saving the simulation parameters in a preset database.
[0009] In one feasible manner, based on the target simulation model and simulation parameters, the simulation process is simulated in the process engine, and the steps of generating simulation log information include: if the target task link is a starting task link, then in response to a simulation start signal, the target task link is run; if the target task link is a non-starting task link, then in response to a target timer timeout, the target task link is run, wherein the target timer corresponds to a task link that is located before the target task link in a sequential calling relationship; and simulation parameters corresponding to the target task link are randomly obtained from a preset database, and the simulation parameters are filled in the to-be-filled items corresponding to the target task link.
[0010] In one feasible method, after randomly obtaining the simulation parameters corresponding to the target task link from a preset database and filling the simulation parameters into the items to be filled in corresponding to the target task link, it also includes: obtaining a preset configuration table from the preset database, and judging whether the simulation parameters filled in the items to be filled in meet the preset configuration based on the preset configuration table; if the simulation parameters meet the preset configuration, generating simulation log information, and the simulation log information includes first information, and the first information is used to indicate that the target task link is normal; if the simulation parameters do not meet the preset configuration, generating simulation log information, and the simulation log information includes second information, and the second information is used to indicate that the target task link is abnormal; after randomly obtaining the simulation parameters corresponding to the target task link from the preset database and filling the simulation parameters into the items to be filled in corresponding to the target task link, it also includes: when a null pointer exception occurs during the operation of the target task link, generating simulation log information, and the simulation log information includes second information.
[0011] In one feasible method, after randomly obtaining simulation parameters corresponding to the target task link from a preset database and filling the simulation parameters into the to-be-filled items corresponding to the target task link, it also includes: executing a preset number of process simulations based on the target simulation model, and generating corresponding simulation log information; if the simulation log information does not include the second information, the target simulation model is determined as an executable process model.
[0012] In one achievable method, before the step of constructing a target simulation model in a process engine based on the process to be simulated, it also includes: configuring a form template and a process template for the process engine, the form template includes at least a first control, the first control is used to represent the simulation parameters, and the process template includes at least a second control, the second control is used to represent the task link; the step of constructing a target simulation model in the process engine based on the process to be simulated includes: creating a new form instance and a new process instance in the process engine; adding multiple first controls in the form instance according to the category of the simulation parameters, and adding one or more second controls in the process instance according to one or more task links involved in the target work order.
[0013] In one feasible method, the generated simulation report includes: a detailed record of the simulation process, a graphical display of the simulation results, and optimization suggestions; the optimization suggestions include at least one of the following: parameter adjustment suggestions, preset configuration table adjustment suggestions, simulation process adjustment suggestions, timer timing adjustment suggestions; after the step of generating a simulation report based on the simulation log information, it also includes: based on the optimization suggestions, rebuilding the target simulation model and performing simulation.
[0014] In the second aspect, an embodiment of the present application also provides a process engine, including: a first process determination module, used to determine the process to be simulated and simulation parameters; wherein, the process to be simulated is used to represent the flow process of the target work order; the step of determining the process to be simulated includes determining the category of the simulation parameters and determining one or more task links involved in the flow of the target work order; the simulation parameters are parameters filled in the to-be-filled items of the target work order when the task link is running; a first model determination module, used to build a target simulation model based on the process to be simulated; the target simulation model includes at least a form instance and a process instance, the form instance is used to define the category of the simulation parameters and the task link to which it belongs, and the process instance is used to define the task link and the sequential calling relationship between each task link; the first simulation module, based on the target simulation model and simulation parameters, simulates the process to be simulated, and generates simulation log information; the first generation module, used to generate a simulation report based on the simulation log information.
[0015] In a third aspect, an embodiment of the present application further provides a process simulation device, comprising: a second process determination module, used to determine the process to be simulated and simulation parameters; wherein, the process to be simulated is used to represent the flow process of a target work order; the step of determining the process to be simulated includes determining the category of simulation parameters and determining one or more task links involved in the flow of the target work order; the simulation parameters are parameters filled in the to-be-filled items of the target work order when the task link is running; a second model determination module, used to build a target simulation model in a process engine based on the process to be simulated; the target simulation model includes at least a form instance and a process instance, the form instance is used to define the category of simulation parameters and the task link to which they belong, and the process instance is used to define the task link and the sequential calling relationship between each task link; a second simulation module, used to simulate the process to be simulated in the process engine based on the target simulation model and simulation parameters, and generate simulation log information; a second generation module, used to generate a simulation report based on the simulation log information.
[0016] From the above content, it can be seen that the embodiment of the present application provides a process simulation method, device and process engine, the method includes determining the process to be simulated and the simulation parameters; wherein the process to be simulated is used to represent the flow process of the target work order; the step of determining the process to be simulated includes determining the category of the simulation parameters and determining one or more task links involved in the flow target work order; the simulation parameters are the parameters in the to-be-filled items filled in the target work order when the task link is running; a target simulation model is constructed in the process engine based on the process to be simulated; the target simulation model at least includes a form instance and a process instance, the form instance is used to define the category of the simulation parameter and the task link to which it belongs, and the process instance is used to define the task link and the sequential calling relationship between each task link; based on the target simulation model and the simulation parameters, the process to be simulated is simulated in the process engine, and simulation log information is generated; a simulation report is generated based on the simulation log information. In this way, automated simulation can be performed for different scenarios of work order flow, which can not only timely discover problems and improve simulation efficiency, but also reduce the burden of testing work, and the testing efficiency is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a process simulation method provided in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of a target work order provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a form example provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of a process example provided in an embodiment of the present application;
[0021] Figure 5A schematic diagram of the interface of the process engine provided in the embodiment of the present application;
[0022] Figure 6 A schematic diagram of a simulation report provided for an embodiment of the present application;
[0023] Figure 7 A schematic diagram of a process flow for simulating a process to be simulated provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of the underlying architecture of the process engine provided in the embodiment of the present application;
[0025] Fig. 9 A schematic diagram of the structure of the process engine provided in the embodiment of the present application;
[0026] Fig.10 A schematic diagram of the structure of a process simulation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0028] A work order system is a software system used to create, assign, track and close work orders. In the fields of manufacturing, service industry, IT operation and maintenance, the work order system can help enterprises optimize work processes, improve work efficiency and ensure work quality. Through the work order system, enterprises can achieve real-time monitoring and management of work processes to ensure that work is carried out according to predetermined plans and standards.
[0029] A work order is a document used to record, process and track the completion of work, which can include information such as the content, assignment, completion and history of the work. Work orders are generally processed according to the following process: First, a staff member or system automatically creates a work order and fills in relevant information; then, the work order is assigned to the corresponding processing personnel or department; the processing personnel work according to the content and requirements of the work order and update the status of the work order; finally, when the work is completed, the work order is closed and relevant information is recorded. During the entire processing process, the work order system can automatically track the status and processing of the work order, and provide various statistical and analytical functions to help enterprises better understand workflow and performance.
[0030] Simulating the software of the work order system can help enterprises improve the accuracy of system design, predict and evaluate system performance, reduce risks and costs, optimize workflow and resource allocation, support decision making, improve customer satisfaction, and support continuous improvement. These advantages make simulation an indispensable part of the work order software development and operation process.
[0031] The embodiments of the present application provide a process simulation method and device, which can automatically simulate the work order flow process to reduce the repetitive operations of testers and improve simulation efficiency.
[0032] Figure 1 A flowchart of a process simulation method provided in an embodiment of the present application.
[0033] like Figure 1 As shown, an embodiment of the present application provides a process simulation method, which includes the following steps S100-S400.
[0034] S100: Determine the process to be simulated and the simulation parameters; wherein the process to be simulated is used to represent the flow process of the target work order, and the steps of determining the process to be simulated include determining the category of the simulation parameters and determining one or more task links involved in the flow of the target work order. The simulation parameters are the parameters that are filled in the to-be-filled items of the target work order when the task link is running.
[0035] In the embodiment of the present application, the target work order can be any work order in the work order system, for example, it can be a leave approval work order, a purchase work order, or a resource application process work order. In actual applications, a work order system can be created in a process engine. The process engine is a software tool that can be used to manage business processes or workflows. Based on the technical support of the process engine, the work order system can run based on predefined process models and rules. In this way, users can perform operations such as creating work orders, approving work order content, and archiving work orders, which can ensure the correctness and stability of the process operation logic. In the embodiment of the present application, the product number of the process engine is not specifically limited.
[0036] The leave approval work order is, for example, a work order corresponding to personal leave approval, or a work order corresponding to sick leave approval. Exemplarily, the personal leave approval work order may include the following flow process: First, the leave applicant runs the process engine and enters the software system, and creates a new leave work order in the software system. The leave work order includes items to be filled in, and the items to be filled in may include the name of the leave applicant, the reason for the leave, the start time of the leave, the end time of the leave, and the number of days of leave. After the leave applicant fills in these items to be filled in, he can submit the work order to his immediate superior or the human resources department. After receiving the leave work order, the immediate superior can review and approve it according to the company's leave policy and the employee's work arrangement. The review and approval steps may include filling in the person in charge and the review and approval results. If approved, the work order will flow to the next link; if not approved, the process will end, or it will be returned to the leave applicant to reapply or modify the application. When the human resources department needs a second review, the work order can flow to the human resources department after the immediate superior approves it. The human resources department can verify the leave information and compliance again and fill in the review and approval opinions in the work order. After the leave is approved, the work order can be archived and saved as a record for query and statistics. For sick leave approval work orders, the items to be filled in the leave work order may also include attachments of sick leave certification documents, etc. This is only an exemplary introduction and the embodiments of the present application do not make specific limitations on this.
[0037] It can be seen that for leave approval work orders, the categories of simulation parameters may at least include the name of the person requesting leave, the reason for leave, the start time of leave, the end time of leave, the number of days of leave and / or supporting documents. The task links may at least include work order initiation, work order filling, first-level approval, second-level approval, work order closure and work order archiving. It is worth noting that in actual applications, the flow of work orders is a relatively complex process, involving many task links, and the order relationship between task links is relatively complex. The categories of simulation parameters and task links here are only illustrative introductions, and the embodiments of the present application do not make specific limitations on this.
[0038] The embodiment of the present application can be based on the actual flow process of the target work order, and it can be grouped into a process to be simulated, which is an overall embodiment of the flow process of the target work order. It can be understood that by determining the steps of the process to be simulated, the goals and requirements of the process simulation can be clarified. Based on step S100, the simulation process, simulation purpose, simulation parameters and simulation configuration required for the process, etc. can be specifically clarified.
[0039] It should also be noted that the steps for determining the simulation parameters will be described in detail below and will not be repeated here.
[0040] Figure 2 A schematic diagram of a target work order provided in an embodiment of the present application.
[0041] Figure 2The resource application process worksheet is shown, which includes multiple items to be filled in, such as the applicant, the applicant's department and telephone number, etc. The embodiment of the present application can determine the process to be simulated based on the actual filling process of the resource application process worksheet.
[0042] S200: constructing a target simulation model in a process engine based on the process to be simulated; the target simulation model includes at least a form instance and a process instance, the form instance is used to define the category of simulation parameters and the task links to which they belong, and the process instance is used to define the task links and the sequential calling relationship between each task link.
[0043] In the embodiment of the present application, the target simulation model is an abstract model, and the process engine can provide a graphical tool, which can be used to build the target simulation model. Based on this, the process model can form a graphical process model of a specific unified standard, and the unified standard is, for example, the BPMN 2.0 standard, which is not specifically limited in the embodiment of the present application. In this way, each task link and flow relationship of the business process can be more intuitively displayed.
[0044] The following is an introduction to the visualization of the target simulation model.
[0045] Figure 3 A schematic diagram of a form example provided in an embodiment of the present application.
[0046] like Figure 3 As shown, in the process of building the target simulation model, a form instance can be created, and the category of the simulation parameter involved in the target work order can be input in the form instance, and the subordination relationship between the category of the simulation parameter and the task link to which it belongs can be saved in the preset database of the process engine in the form of a subordination table. The step of determining the subordination table can be performed after step S100. The preset database is, for example, MongoDB, which is not specifically limited in the embodiment of the present application.
[0047] Figure 4 A schematic diagram of a process example provided for an embodiment of the present application.
[0048] like Figure 4 As shown, the process instance may include at least four task links, namely, start, task link 1, task link 2 and end, and each task link may be performed in sequence. It is worth noting that this is only an exemplary introduction. In actual applications, the process instance may be configured based on the actual process behavior and status.
[0049] It is also necessary to add that after the model is built, the process engine can automatically execute the corresponding business process according to the logic and rules defined in the model to achieve automatic simulation. The establishment of the target simulation model can improve the automation level of the simulation process and reduce the need for manual intervention, thereby saving time, improving efficiency and reducing errors. At the same time, through the integration of predefined and configured form instances and process instances, the need for users to manually enter information can be reduced, further saving time and improving work efficiency.
[0050] S300: Based on the target simulation model and simulation parameters, the process to be simulated is simulated in the process engine, and simulation log information is generated.
[0051] Among them, the simulation parameters can be obtained from the preset database. Exemplarily, for the category of the simulation parameter of the name of the person taking leave, the corresponding simulation parameters can be Zhang San, Li Si, Wang Wu, and for the category of the simulation parameter of the reason for the leave, the corresponding simulation parameter can be annual leave or personal leave, etc. In this way, during the simulation process, based on the task link being run, the subordinate relationship table can be queried in the preset database to determine which categories of simulation parameters in the form instance belong to the task link running at this time, and obtain the simulation parameters. For example, when the currently running task link is to fill in a work order, the category of the simulation parameter corresponding to the task link initiated by the work order can be queried in the preset database, and the simulation parameter corresponding to the category can be obtained, such as: Wang Wu, annual leave.
[0052] In the embodiment of the present application, after each task link is executed, a simulation log information can be formed, and the simulation log information is used to record the simulation results of the task link. When the simulation log information is generated, it can be saved in a preset database. Exemplarily, the simulation log information can specifically include normal information of the task link or abnormal information of the task link, that is, the processing result, and can also include the link name, the processor of each task link, and the processing time of each task link, etc., which is not specifically limited in the embodiment of the present application.
[0053] S400: Generate a simulation report based on the simulation log information.
[0054] The embodiment of the present application can query a preset database, obtain simulation log information from the preset database, then extract part of the information from the simulation log information, and integrate the extracted information into a simulation report.
[0055] Figure 5 A schematic diagram of the interface of the process engine provided in an embodiment of the present application.
[0056] like Figure 5As shown, the interface of the process engine may include information such as the work order number, work order title, current link, current handler, etc., and may also include a visual display of the process model, and may also include a visual display of the simulation record. In addition, the interface may also include buttons such as "Set Simulation Parameters", "Process Simulation" and "View Simulation Report" so that the tester can manually start the simulation and set the simulation parameters. At the same time, the simulation record (simulation log information) in the interface can be used to determine whether there is an abnormality in the task link during the simulation.
[0057] For example, the work order number may be demo-20240422-0004, and the work order title may be 2024-04-22
[0058] 15:54:37-[Simulation process] Simulation, the current link can be closed.
[0059] Figure 6 A schematic diagram of a simulation report provided for an embodiment of the present application.
[0060] like Figure 6 As shown in the figure, the simulation report is also called the test report, which can include basic information, such as the process name, test case name and tester. It can also include test feedback, such as test results, time consumption and abnormal problems. It can also include the test process, which can specifically include each task link and its corresponding simulation log information. In actual applications, testers can clearly display abnormal problems by viewing the information in the simulation report, and can accurately find the number of lines of code corresponding to the corresponding error information in the code through the abnormal information.
[0061] If there is no simulation test step, when the process engine is deployed in a real environment, it is difficult to provide timely feedback to developers when problems occur in the work order flow, and it becomes extremely difficult for developers to locate problems due to the large amount of logs, the need for customer cooperation, and confidentiality restrictions on production environment data. Based on the method provided in the embodiment of the present application, testers can accurately locate the problem code during the simulation process, thereby improving the efficiency of error correction.
[0062] In some implementations, the simulation report may include a detailed record of the simulation process, a graphical display of the simulation results, optimization suggestions and improvement measures, etc. This allows relevant personnel to understand the simulation process and results and provide a reference for subsequent decision-making.
[0063] As can be seen from the above content, the embodiment of the present application provides a process simulation method, which includes determining the process to be simulated and simulation parameters; wherein, the process to be simulated is used to represent the flow process of the target work order, and the steps of determining the process to be simulated include determining the category of the simulation parameters and determining one or more task links involved in the flow target work order, and the simulation parameters are parameters in the to-be-filled items filled in the target work order when the task link is running; a target simulation model is constructed in the process engine based on the process to be simulated; the target simulation model includes at least a form instance and a process instance, the form instance is used to define the category of the simulation parameter and the task link to which it belongs, and the process instance is used to define the task link and the sequential calling relationship between each task link; based on the target simulation model and the simulation parameters, the process to be simulated is simulated in the process engine, and simulation log information is generated; a simulation report is generated based on the simulation log information. In this way, automated simulation can be performed for different scenarios of work order flow, which can not only timely discover problems and improve simulation efficiency, but also reduce the burden of testing work, and make testing more efficient.
[0064] In the embodiment of the present application, after step S200, the following step S500 may be further included: setting a timer for each task link, wherein the timing duration of the timer is preset by the process engine, and after the timer times out, it is used to trigger the task link to call other subsequent task links to run.
[0065] The step of presetting the timer may be performed after step S100, and the presetting timer may be implemented based on the timed calling technology. The timed calling technology is a commonly used method in computer programming and system management. Based on the timed calling technology, a certain operation or task can be automatically executed at a predetermined time interval. The timed calling technology can be applied to scenarios such as system maintenance, data backup, and timed notification.
[0066] In actual applications, the timer duration can be set to 5 seconds by default based on the data processing time in the task link. The steps of presetting the timer duration can be performed during the process engine development phase. Furthermore, when the data processing volume of a task link is too large or the processing time is too long, the timing duration can be set based on the specific scenario. In other words, the calling time interval between task links can be adjusted according to the different task links to ensure that the data generated during the simulation process has enough time to store and realize the secondary development of the process engine.
[0067] Exemplarily, when the target work order is a purchase work order, the circulation process of the work order generally involves cross-system calls. For example, the process engine can call a payment system, an inventory management system, or a logistics tracking system, etc. Furthermore, when a task link receives a purchase success identifier or other return value sent by other systems, it can indicate that the current task link has passed normally. If the duration of the timer is set too short, the current task link may call the subsequent task link before receiving the return value, causing an abnormality in the current task link. Therefore, the embodiment of the present application can determine the timing duration of the timer based on the actual processing flow of the task link, so that the simulation process fits the real scene and reduces the simulation failure rate.
[0068] It can be understood that the embodiments of the present application can integrate the timed call mechanism with the process logic. When the timed call is triggered, the corresponding process logic is called for execution, which can ensure the collaborative work between the timed call and the process logic to simulate the time behavior of the actual process.
[0069] In the embodiment of the present application, step S100 may also include the following steps S101-S102.
[0070] S101: Determine the simulation parameters based on the categories of the simulation parameters; or obtain the historical work orders corresponding to the target work orders from the work order library, and extract the simulation parameters from the historical work orders.
[0071] After determining the category of the simulation parameters, the embodiment of the present application can determine the simulation parameters based on two methods. The first method is to determine the required simulation parameters based on the category of the simulation parameters according to the characteristics and requirements of the simulation task, ensuring that these parameters can accurately reflect the actual situation of the simulation and meet the analysis requirements.
[0072] Another way is to obtain the historical work orders corresponding to the target work order from the work order library. By searching and analyzing these historical work orders, we can determine the scenarios similar or identical to the target work order and extract the relevant simulation parameters from them, which can improve the accuracy and reliability of the simulation.
[0073] S102: Save the simulation parameters in a preset database.
[0074] In this way, simulation parameters can be obtained from the preset database when performing simulation.
[0075] It should be noted that the embodiment of the present application can set multiple groups of different simulation parameters for the same target work order, and simulate the multiple groups of simulation parameters separately to test the stability of the flow of the target work order. For example, for a leave approval work order, two groups of simulation parameters can be set. The first group of simulation parameters corresponds to the work order created due to personal leave, and the second group of simulation parameters corresponds to the work order created due to sick leave. Then, the second group of simulation parameters adds an attachment of sick leave certificate documents relative to the first group of simulation parameters. In this way, the comprehensiveness and authenticity of the simulation can be improved.
[0076] Figure 7 A schematic diagram of a process for simulating a process to be simulated provided in an embodiment of the present application.
[0077] like Figure 7 As shown, step S300 may include the following steps S301-S306.
[0078] S301: If the target task link is the starting task link, then in response to a simulation start signal, the target task link is run.
[0079] Among them, whether the target task link is the starting task link can be determined based on the process instance. If the target task link is the task link 1 after the process starts, then the target task link can be determined to be the starting task link. In actual applications, when creating a form instance, task IDs can be added to each task link in the process order. In this way, based on the task ID, it can be determined whether the target task link is the starting task link.
[0080] In an embodiment of the present application, the simulation start signal may be manually sent by the tester, for example, the tester clicks the "start simulation" button on the process engine interface to trigger the simulation. In some implementations, the simulation configuration may also be performed before the simulation, and the simulation configuration may include the simulation start time and the simulation end time, for example, the simulation start time may be 17:30:56, and the simulation end time may be 17:31:11. In this way, when the start time arrives, the process engine may automatically execute step S300, and when the end time arrives, the process engine may stop the simulation. Based on this, the accuracy and range of the simulation may be adjusted.
[0081] S302: If the target task link is a non-starting task link, respond to the target timer timeout and run the target task link; wherein the target timer corresponds to the task link that is located before the target task link in the sequential calling relationship.
[0082] It is understandable that if the target task link is not the task link 1 after the process starts, then the target task link can be determined as a non-starting task link. When the target timer corresponding to the task link before the target task link times out, the target task link can also be triggered to execute. For example, the first-level approval is the task link before the second-level approval. When the target timer corresponding to the first-level approval times out, the first-level approval can be triggered to call the second-level approval for execution.
[0083] S303: randomly obtain simulation parameters corresponding to the target task link from a preset database, and fill the simulation parameters into the to-be-filled items corresponding to the target task link.
[0084] In the embodiment of the present application, for each target task link, a plurality of sets of simulation parameters may be stored in the preset database. During the simulation process, a set of simulation parameters may be randomly obtained from the preset database and filled into the items to be filled, which may improve the flexibility and diversity of the simulation.
[0085] The simulation process can include single-step execution or automatic execution to meet different simulation requirements. In the single-step execution mode, the simulation parameters need to be filled in step by step by the tester according to the actual flow of the process. For example, when a work order is initiated, the tester needs to fill in the initial work order information; after entering the approval stage, the tester needs to fill in the approval results and approval opinions, etc. Based on this execution method, the tester can gradually check and confirm the input of each step, and can promptly discover abnormalities in the simulation process.
[0086] In the automatic execution mode, the simulation process can be automatically executed according to the preset simulation parameters without manual intervention of the test. In order to optimize the simulation efficiency, the embodiment of the present application sets the call time interval between each task link to 5 seconds by default, and the call time interval can be flexibly adjusted based on the actual situation such as the amount of data in the task link or the interface response time. This execution mode can significantly improve the speed and efficiency of the simulation and is suitable for scenarios where a large number of processes need to be simulated quickly.
[0087] S304: Obtain a preset configuration table from a preset database, and determine whether the simulation parameters filled in the items to be filled in conform to the preset configuration based on the preset configuration table.
[0088] The embodiment of the present application may define simulation configuration rules after step S100, and the rule definition includes but is not limited to a preset configuration table, which may include, for example, parameter ranges and default values. Exemplarily, when the target work order is a purchase work order, the preset configuration table may limit the approvers of various purchase items. For example, the purchase of a mobile phone requires approval from Zhang San, and the purchase of a computer requires approval from Li Si. In this way, after filling in the simulation parameters in the items to be filled in, the preset configuration table can be obtained from the preset database, and then the simulation process can be continued based on the preset configuration table to determine whether there is a problem with the flow of the work order.
[0089] S305: If the simulation parameters meet the preset configuration, simulation log information is generated, and the simulation log information includes first information, and the first information is used to indicate that the target task link is normal.
[0090] For example, when the purchased item is a computer, based on the preset simulation parameters, the simulation process can fill in "computer" and "Zhang San" into the pending items of the purchase work order. Then, the reviewer corresponding to the computer can be obtained from the preset configuration table as Zhang San, and the task link can pass and generate simulation log information including the first information. Figure 5 and Figure 6 The “normal” in the task can mean that the task link has been passed.
[0091] S306: If the simulation parameters do not conform to the preset configuration, a simulation log information is generated, and the simulation log information includes second information, and the second information is used to indicate that the target task link is abnormal.
[0092] For example, when the purchased item is a mouse, if "mouse" and the empty value null are filled in the to-be-filled items, or "mouse" and any approver such as "Zhang San" are filled in the to-be-filled items of the purchase work order, since the approver corresponding to the purchase of the mouse is not pre-set in the preset configuration table, the simulation will fail. At this time, the simulation log information corresponding to the task link may include the second information, so that the tester can locate the problem of the work order flow, that is, discover the problem of unreasonable approver setting.
[0093] Furthermore, when generating a simulation report, the first information and / or the second information may be obtained from the simulation log information so that the tester may be informed of problems existing in the simulation process.
[0094] Furthermore, the following step S307 may be included after step S303: when a null pointer exception occurs during the operation of the target task link, simulation log information is generated, and the simulation log information includes second information.
[0095] Among them, NullPointerException (NPE) is a program exception. When the program attempts to access or modify a member of a null value object (such as calling a method or accessing a property), a NullPointerException is thrown. When this exception occurs in the target task link, the embodiment of the present application can terminate the simulation and generate simulation log information including the second information, so that the tester can quickly locate the problematic code line.
[0096] Furthermore, after step S303, the following steps S308-S309 may be included:
[0097] S308: Execute a preset number of process simulations based on the target simulation model, and generate corresponding simulation log information.
[0098] In the embodiment of the present application, in order to verify the stability and reliability of the target simulation model under different conditions, a preset number of process simulations can be performed based on the target simulation model. The preset number of times can be, for example, 3 times or 5 times, and the embodiment of the present application does not specifically limit this. Simulation parameters can be randomly obtained for each simulation to cover various possible operating conditions as much as possible. In each simulation process, corresponding simulation log information can be generated to record the detailed process and results of the simulation. The simulation log information can provide data support for subsequent analysis and evaluation.
[0099] S309: If the simulation log information does not include the second information, the target simulation model is determined as an executable process model.
[0100] If the simulation log information obtained from multiple simulations does not include the second information, it means that no errors such as null pointer exceptions occur during the simulation process, and it can be determined that the target simulation model runs stably and reliably.
[0101] It should be noted that, in addition to defining the target simulation model, step S200 can also determine other rule definitions, such as determining the output items of each task link and saving the output items in a preset database. For example, the input items of the task link can be determined as the output items of the previous task link, so that after the task link is called, the preset database can be accessed to obtain the input items, thereby ensuring that the simulation process can be executed in the order and time requirements described in the target simulation model and rule definitions.
[0102] In an embodiment of the present application, the following step S600 may also be included before step S200: configuring a form template and a process template for the process engine, wherein the form template includes at least a first control, the first control is used to represent simulation parameters, and the process template includes at least a second control, the second control is used to represent task links.
[0103] Among them, step S600 can be performed in the process engine development stage, and the form template and the process template can be used to build a target simulation model. Figure 3 The first control is shown in FIG. Figure 4 The second control is exemplarily shown in FIG. When the tester adds the first control in the form instance of the target simulation model, the first control can represent the simulation parameter and be used to indicate the category of the simulation parameter. When the tester adds the second control in the process instance of the target simulation model, the second control can represent the task link.
[0104] Further, step S200 may include the following steps S201-S202.
[0105] S201: Create a new form instance and a new process instance in the process engine.
[0106] In the embodiment of the present application, the order of creating form instances and process instances is not limited.
[0107] S202: Add multiple first controls in the form instance according to the category of the simulation parameter, and add one or more second controls in the process instance according to one or more task links involved in the target work order.
[0108] It is understandable that the number of first controls depends on the number of items to be filled in the target work order. In actual application, first controls can be added in the interface of the form instance according to the category and order of simulation parameters. These controls will be used by testers to input or display the category of simulation parameters.
[0109] The number of second controls depends on the number of task links in the target work order. When building a process instance, you can add corresponding second controls according to the order and logical relationship of the task links. The process instance can be used to define the direction and execution logic of the process.
[0110] It is worth noting that in the embodiment of the present application, the generated simulation report may also include: a detailed record of the simulation process, a graphical display of the simulation results and optimization suggestions; the optimization suggestions include at least one of the following: parameter adjustment suggestions, preset configuration table adjustment suggestions, simulation process adjustment suggestions, and timer timing duration adjustment suggestions.
[0111] Specifically, the detailed record of the simulation process may include the input data of the model, initialization settings, and settings of various parameters, as well as the simulation time period, event triggering conditions, etc. The graphical display of the simulation results can be achieved through visualization tools, such as tables, bar charts, or line charts, which can be used to compare the results of multiple process simulations, so that the changing trend of the simulation results can be clearly presented. Parameter adjustment suggestions can specifically refer to reconfiguring simulation parameters, adding or deleting some simulation parameters, etc. The preset configuration table adjustment suggestions can specifically refer to adjusting the parameter range and default values in the preset configuration table. The adjustment suggestions for the process to be simulated can specifically refer to: based on the simulation results, making improvement suggestions for the business process to be simulated, such as adding or deleting certain links, to optimize the simulation process. The timer timing adjustment suggestion is, for example, to increase or shorten the timer timing, which can be adjusted according to the actual running time of each task link. The adjustment suggestions for different timers can be different to optimize the simulation process.
[0112] It can be seen that the method provided in the embodiment of the present application can optimize the process model and logic based on the analysis and evaluation of the simulation results and according to actual needs, improve the logic of the process, adjust the parameters of the timed call, etc., so as to improve the accuracy and efficiency of the simulation.
[0113] Step S400 may be followed by step S700: rebuilding the target simulation model based on the optimization suggestion and performing simulation.
[0114] In this way, it is possible to optimize the simulation model, improve process efficiency, reduce costs and reduce waste of resources. In some implementations, the embodiments of the present application can analyze and evaluate the simulation report, compare the difference between the actual process and the simulation result, analyze the possible reasons and improvement directions, optimize the target simulation model and related rule definitions, for example, improve the call logic of the task link and adjust the timing call parameters, etc., and reconstruct the model. Continuously optimizing the target simulation model can improve the accuracy and efficiency of the simulation, reduce costs, reduce waste of resources, ensure the effectiveness of the model, and provide a basis for subsequent optimization and improvement. In addition, the embodiments of the present application can update the simulation targets and requirements according to the changes in actual needs to adapt to the changing business processes.
[0115] In some implementations, before executing step S200 to build the target simulation model in the process engine, the target simulation model may be pre-designed, and the pre-design step may be performed by a tester to ensure the accuracy of the execution logic of the target simulation model.
[0116] Figure 8 A schematic diagram of the underlying architecture of the process engine provided in an embodiment of the present application.
[0117] like Figure 8 As shown, the embodiment of the present application provides that the process engine can adopt a layered architecture to ensure the stability, scalability and flexibility of the process engine. In the presentation layer, the embodiment of the present application can adopt IE9+ browsers, Chrome and Firefox that support the HTTPS protocol to provide a secure user access experience, and adopts VUE and Jquery as the front-end framework, and uses CSS3 to achieve interface design and interactive effects. In the application layer, the embodiment of the present application can adopt an interface design based on the RESTful architecture, combined with JDK 1.8 and Tomcat 8 servers, to achieve high performance and stability. Furthermore, the basic service platform layer can adopt SpringBoot to provide basic support and rapid development capabilities for the process engine. The data layer can use MySql, Elasticsearch and Mongodb as databases for data storage and retrieval to ensure the reliability and efficiency of the data.
[0118] The embodiment of the present application provides a process simulation method, which can realize process simulation based on the timed call technology. Specifically, the method can realize the simulation and analysis of the process by clarifying the goals and requirements, pre-designing the process model, designing the timed call mechanism, building the target simulation model to realize the process logic, integrating the timed call and the process logic, configuring the simulation parameters, running the simulation, analyzing the simulation results, optimizing the simulation model and logic, and continuously iterating and improving, etc., to provide strong support for the optimization and improvement of the business process.
[0119] Fig. 9 A schematic diagram of the structure of the process engine provided in the embodiment of the present application.
[0120] like Fig. 9 As shown, the embodiment of the present application also provides a process engine, including:
[0121] The first process determination module 1001 is used to determine the process to be simulated and the simulation parameters; wherein the process to be simulated is used to represent the flow process of the target work order; the step of determining the process to be simulated includes determining the type of simulation parameters and determining one or more task links involved in the flow target work order; the simulation parameters are parameters filled in the to-be-filled items of the target work order when the task link is running;
[0122] The first model determination module 1002 is used to construct a target simulation model based on the process to be simulated; the target simulation model at least includes a form instance and a process instance, the form instance is used to define the category of simulation parameters and the task link to which they belong, and the process instance is used to define the task link and the sequential calling relationship between each task link;
[0123] The first simulation module 1003 simulates the process to be simulated based on the target simulation model and simulation parameters, and generates simulation log information;
[0124] The first generating module 1004 is used to generate a simulation report based on the simulation log information.
[0125] In one implementation, the process engine also includes a first timing module, which is used to set a timer for each task link; wherein the timing duration of the timer is preset by the process engine, and after the timer times out, it is used to trigger the task link to call other subsequent task links to run.
[0126] In one implementation, the first process determination module 1001 is also used to determine the simulation parameters based on the category of the simulation parameters; or, obtain the historical work order corresponding to the target work order from the work order library, extract the simulation parameters from the historical work order; and save the simulation parameters in a preset database.
[0127] In one implementation, the first simulation module 1003 is specifically used for: if the target task link is a starting task link, then in response to a simulation start signal, running the target task link; if the target task link is a non-starting task link, then in response to a timer timeout, running the target task link; wherein the timer corresponds to a task link that is located before the target task link in a sequential calling relationship; randomly obtaining simulation parameters corresponding to the target task link from a preset database, and filling the simulation parameters into the to-be-filled items corresponding to the target task link.
[0128] In one implementation, the first simulation module 1003 is also used to obtain a preset configuration table from a preset database, and based on the preset configuration table, determine whether the simulation parameters filled in the to-be-filled items meet the preset configuration; if the simulation parameters meet the preset configuration, generate simulation log information, and the simulation log information includes first information, and the first information is used to indicate that the target task link is normal; if the simulation parameters do not meet the preset configuration, generate simulation log information, and the simulation log information includes second information, and the second information is used to indicate that the target task link is abnormal.
[0129] In one implementation, the first simulation module 1003 is also used to generate simulation log information when a null pointer exception occurs during the execution of the target task link, and the simulation log information includes the second information.
[0130] In some implementations, the first simulation module 1003 is further used to perform a preset number of process simulations based on the target simulation model and generate corresponding simulation log information; if the simulation log information does not include the second information, the target simulation model is determined as an executable process model.
[0131] In one implementation, the process engine also includes a first template determination module, which is used to configure a form template and a process template for the process engine. The form template includes at least a first control, which is used to represent simulation parameters. The process template includes at least a second control, which is used to represent task links.
[0132] In one implementation, the first model determination module 1002 is specifically used to create a new form instance and a new process instance in the process engine; add multiple first controls in the form instance according to the category of simulation parameters, and add one or more second controls in the process instance according to one or more task links involved in the target work order.
[0133] In one implementation, the generated simulation report includes: a detailed record of the simulation process, a graphical display of the simulation results, and optimization suggestions; the optimization suggestions include at least one of the following: parameter adjustment suggestions, preset configuration table adjustment suggestions, to-be-simulated process adjustment suggestions, and timer timing duration adjustment suggestions; after the step of generating a simulation report based on the simulation log information, it also includes: based on the optimization suggestions, rebuilding the target simulation model and performing simulation.
[0134] Fig.10 A schematic diagram of the structure of a process simulation device provided in an embodiment of the present application.
[0135] like Fig.10 As shown, the embodiment of the present application also provides a process simulation device, including:
[0136] The second process determination module 2001 is used to determine the process to be simulated and the simulation parameters; wherein the process to be simulated is used to represent the flow process of the target work order; the step of determining the process to be simulated includes determining the type of simulation parameters and determining one or more task links involved in the flow of the target work order; the simulation parameters are parameters filled in the to-be-filled items of the target work order when the task link is running;
[0137] The second model determination module 2002 is used to construct a target simulation model in the process engine based on the process to be simulated; the target simulation model at least includes a form instance and a process instance, the form instance is used to define the category of simulation parameters and the task link to which they belong, and the process instance is used to define the task link and the sequential calling relationship between each task link;
[0138] The second simulation module 2003 is used to simulate the process to be simulated in the process engine based on the target simulation model and simulation parameters, and generate simulation log information;
[0139] The second generating module 2004 is used to generate a simulation report based on the simulation log information.
[0140] In one implementation, in one implementation, the process simulation device also includes a second timing module, which is used to set a timer for each task link; wherein the timing duration of the timer is preset by the process engine, and after the timer times out, it is used to trigger the task link to call other subsequent task links to run.
[0141] In one implementation, the second process determination module 2001 is also used to determine the simulation parameters based on the category of the simulation parameters; or, obtain the historical work order corresponding to the target work order from the work order library, extract the simulation parameters from the historical work order; and save the simulation parameters in a preset database.
[0142] In one implementation, the second simulation module 2003 is specifically used for: if the target task link is a starting task link, then in response to a simulation start signal, running the target task link; if the target task link is a non-starting task link, then in response to a timer timeout, running the target task link; wherein the timer corresponds to a task link that is located before the target task link in a sequential calling relationship; randomly obtaining simulation parameters corresponding to the target task link from a preset database, and filling the simulation parameters into the to-be-filled items corresponding to the target task link.
[0143] In one implementation, the second simulation module 2003 is also used to obtain a preset configuration table from a preset database, and based on the preset configuration table, determine whether the simulation parameters filled in the to-be-filled items meet the preset configuration; if the simulation parameters meet the preset configuration, generate simulation log information, and the simulation log information includes first information, and the first information is used to indicate that the target task link is normal; if the simulation parameters do not meet the preset configuration, generate simulation log information, and the simulation log information includes second information, and the second information is used to indicate that the target task link is abnormal.
[0144] In one implementation, the second simulation module 2003 is also used to generate simulation log information when a null pointer exception occurs during the operation of the target task link, and the simulation log information includes the second information.
[0145] In some implementations, the second simulation module 2003 is further used to perform a preset number of process simulations based on the target simulation model and generate corresponding simulation log information; if the simulation log information does not include the second information, the target simulation model is determined as an executable process model.
[0146] In one implementation, the process simulation device also includes a second template determination module, which is used to configure a form template and a process template for the process engine. The form template includes at least a first control, and the first control is used to represent the simulation parameters. The process template includes at least a second control, and the second control is used to represent the task link.
[0147] In one implementation, the second model determination module 2002 is specifically used to create a new form instance and a new process instance in the process engine; add multiple first controls in the form instance according to the category of simulation parameters, and add one or more second controls in the process instance according to one or more task links involved in the target work order.
[0148] In one implementation, the generated simulation report includes: a detailed record of the simulation process, a graphical display of the simulation results, and optimization suggestions; the optimization suggestions include at least one of the following: parameter adjustment suggestions, preset configuration table adjustment suggestions, to-be-simulated process adjustment suggestions, and timer timing duration adjustment suggestions; after the step of generating a simulation report based on the simulation log information, it also includes: based on the optimization suggestions, rebuilding the target simulation model and performing simulation.
[0149] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the storage medium may include some or all of the steps in each embodiment of the process simulation method provided by the present invention, and the storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviated: ROM) or a random access memory (English: random access memory, abbreviated: RAM), etc.
[0150] It is easy to understand that those skilled in the art can combine, split, reorganize, etc. the embodiments of the present application to obtain other embodiments based on the several embodiments provided in the present application, and these embodiments do not exceed the protection scope of the present application.
[0151] The above specific implementation methods further explain in detail the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not used to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. A process simulation method, It is characterized in that include: Determine the process to be simulated and the simulation parameters; wherein the process to be simulated is used to represent the flow process of the target work order; the step of determining the process to be simulated includes determining the category of the simulation parameters and determining one or more task links involved in the flow of the target work order; the simulation parameters are parameters filled in the to-be-filled items of the target work order when the task link is running; A target simulation model is constructed in a process engine based on the process to be simulated; the target simulation model at least includes a form instance and a process instance, the form instance is used to define the category of the simulation parameter and the task link to which it belongs, and the process instance is used to define the task link and the sequential calling relationship between each task link; Based on the target simulation model and the simulation parameters, simulating the process to be simulated in the process engine, and generating simulation log information; A simulation report is generated based on the simulation log information.
2. The process simulation method according to claim 1, It is characterized in that After the step of constructing a target simulation model in the process engine based on the process to be simulated, the method further includes: A timer is set for each of the task links; wherein the timing duration of the timer is preset by the process engine, and after the timer times out, it is used to trigger the task link to call other subsequent task links to run.
3. The process simulation method according to claim 2, It is characterized in that The steps of determining the process to be simulated and the simulation parameters also include: Determine the simulation parameter based on the category of the simulation parameter; or obtain the historical work order corresponding to the target work order from a work order library, and extract the simulation parameter from the historical work order; The simulation parameters are stored in a preset database.
4. The process simulation method according to claim 3, It is characterized in that Based on the target simulation model and the simulation parameters, the steps of simulating the process to be simulated in the process engine and generating simulation log information include: If the target task link is the starting task link, then in response to the simulation start signal, the target task link is run; If the target task link is a non-starting task link, in response to the target timer timing out, the target task link is executed; wherein the target timer corresponds to the task link that is located before the target task link in the sequential calling relationship; The simulation parameters corresponding to the target task link are randomly obtained from the preset database, and the simulation parameters are filled into the to-be-filled items corresponding to the target task link.
5. The process simulation method according to claim 4, It is characterized in that After the step of randomly acquiring simulation parameters corresponding to the target task link from the preset database and filling the simulation parameters into the items to be filled in corresponding to the target task link, the method further includes: Obtaining a preset configuration table from the preset database, and judging whether the simulation parameters filled in the items to be filled in conform to the preset configuration based on the preset configuration table; If the simulation parameters meet the preset configuration, the simulation log information is generated, and the simulation log information includes first information, and the first information is used to indicate that the target task link is normal; If the simulation parameters do not conform to the preset configuration, the simulation log information is generated, and the simulation log information includes second information, and the second information is used to indicate that the target task link is abnormal; After the step of randomly acquiring simulation parameters corresponding to the target task link from the preset database and filling the simulation parameters into the items to be filled in corresponding to the target task link, the method further includes: When a null pointer exception occurs during the operation of the target task link, the simulation log information is generated, and the simulation log information includes the second information.
6. The process simulation method according to claim 5, It is characterized in that After randomly acquiring simulation parameters corresponding to the target task link from the preset database and filling the simulation parameters into the to-be-filled items corresponding to the target task link, the method further includes: executing a preset number of process simulations based on the target simulation model and generating corresponding simulation log information; If the simulation log information does not include the second information, the target simulation model is determined as an executable process model.
7. The process simulation method according to claim 1, It is characterized in that Before the step of constructing a target simulation model in the process engine based on the process to be simulated, the method further includes: Configuring a form template and a process template for the process engine, wherein the form template includes at least a first control, the first control is used to represent the simulation parameter, and the process template includes at least a second control, the second control is used to represent the task link; The step of constructing a target simulation model in the process engine based on the process to be simulated includes: Creating a new form instance and a new process instance in the process engine; According to the category of the simulation parameters, a plurality of the first controls are added to the form instance, and according to one or more task links involved in the target work order, one or more of the second controls are added to the process instance.
8. The process simulation method according to claim 2, It is characterized in that The generated simulation report includes: detailed records of the simulation process, graphical presentation of simulation results and optimization suggestions; The optimization suggestion includes at least one of the following: a parameter adjustment suggestion, a preset configuration table adjustment suggestion, a to-be-simulated process adjustment suggestion, and a timer timing duration adjustment suggestion; After the step of generating a simulation report based on the simulation log information, the method further includes: rebuilding a target simulation model based on the optimization suggestion and performing simulation.
9. A process engine, It is characterized in that include: The first process determination module is used to determine the process to be simulated and the simulation parameters; wherein the process to be simulated is used to represent the flow process of the target work order; the step of determining the process to be simulated includes determining the category of the simulation parameters and determining one or more task links involved in the flow of the target work order; the simulation parameters are parameters filled in the to-be-filled items of the target work order when the task link is running; A first model determination module is used to construct a target simulation model based on the process to be simulated; the target simulation model at least includes a form instance and a process instance, the form instance is used to define the category of the simulation parameters and the task link to which they belong, and the process instance is used to define the task link and the sequential calling relationship between each of the task links; A first simulation module simulates the process to be simulated based on the target simulation model and the simulation parameters, and generates simulation log information; The first generating module is used to generate a simulation report based on the simulation log information.
10. A process simulation device, It is characterized in that include: The second process determination module is used to determine the process to be simulated and the simulation parameters; wherein the process to be simulated is used to represent the flow process of the target work order; the step of determining the process to be simulated includes determining the category of the simulation parameters and determining one or more task links involved in the flow of the target work order; the simulation parameters are parameters filled in the to-be-filled items of the target work order when the task link is running; A second model determination module is used to construct a target simulation model in a process engine based on the process to be simulated; the target simulation model at least includes a form instance and a process instance, the form instance is used to define the category of the simulation parameter and the task link to which it belongs, and the process instance is used to define the task link and the sequential calling relationship between each of the task links; A second simulation module, used for simulating the process to be simulated in the process engine based on the target simulation model and the simulation parameters, and generating simulation log information; The second generating module is used to generate a simulation report based on the simulation log information.
Citation Information
Cited By
Process data simulation method and device, electronic equipment and readable storage medium
CN120849280A
