CN117592311B - Multi-level simulation method, device and equipment for workflow and readable medium - Google Patents

Multi-level simulation method, device and equipment for workflow and readable medium Download PDF

Info

Publication number
CN117592311B
CN117592311B CN202410065351.4A CN202410065351A CN117592311B CN 117592311 B CN117592311 B CN 117592311B CN 202410065351 A CN202410065351 A CN 202410065351A CN 117592311 B CN117592311 B CN 117592311B
Authority
CN
China
Prior art keywords
simulation
workflow
grade
target workflow
level
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.)
Active
Application number
CN202410065351.4A
Other languages
Chinese (zh)
Other versions
CN117592311A (en
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.)
Shanghai Pengxi Semiconductor Co ltd
Original Assignee
Shanghai Pengxi Semiconductor 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 Shanghai Pengxi Semiconductor Co ltd filed Critical Shanghai Pengxi Semiconductor Co ltd
Priority to CN202410065351.4A priority Critical patent/CN117592311B/en
Publication of CN117592311A publication Critical patent/CN117592311A/en
Application granted granted Critical
Publication of CN117592311B publication Critical patent/CN117592311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/067Enterprise or organisation modelling
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Manufacturing & Machinery (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a multi-level simulation method, device and equipment of a workflow and a readable medium. The method comprises the following steps: identifying a simulation grade label of a target workflow in response to a simulation running instruction of the target workflow; determining the simulation grade of the target workflow according to the simulation grade label; and executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow. According to the technical scheme, the operation of different simulation levels of the target workflow can be realized through the identification of the simulation label of the target workflow. Based on the flow engine and the resource allocation which are configured for the target workflow in advance, the simulation of different levels under the same environment is realized, and the environment does not need to be switched, so that the simulation process is more efficient, and particularly in the scene of coping with the simulation of different levels, the efficient simulation operation can be realized, and the extremely high compatibility is reflected.

Description

Multi-level simulation method, device and equipment for workflow and readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a readable medium for multi-level simulation of a workflow.
Background
In recent years, with the rapid development of the technology level, the development of the semiconductor industry has also received extensive attention from the society. The manufacturing precision of the semiconductor wafer is high, the production scene is many and complex, and in order to improve the productivity and the chip yield of a semiconductor factory, the production efficiency is improved, and the factory automation level is required to be continuously improved. In automatic production, the service flow is visualized by using automatic flow software, an off-line production scene is subjected to on-line visualization, the service line is carded, integrated and optimized by taking the flow as a core, and the follow-up and monitoring flow is performed in a simulation manner, so that the resource allocation of a semiconductor factory and the optimization of the service flow are facilitated.
However, the inventors found that there are at least the following technical problems in the related art:
the traditional workflow debugging method in the semiconductor industry at present has the following problems: firstly, the process debugging must be carried out by isolating according to the environment. When different types and levels of workflow simulation are performed, different environments need to be switched, and the frequent switching environments in the semiconductor industry with a plurality of production scenes are too time-consuming and complicated, and the leakage of production data is easy to cause; secondly, a large number of different types of external interfaces are needed to be relied on in the process of flow simulation debugging. The configuration is too cumbersome; thirdly, errors can only be removed by performing tasks step by step and observing the output. For complex workflows in the semiconductor industry, conventional workflow simulation debugging methods are very cumbersome and time-consuming.
Disclosure of Invention
The application provides a multi-level simulation method, device, equipment and readable medium for workflow, which are at least used for solving the problems of complexity and time consumption of simulation type switching. The purpose of the present application is: based on the flow engine and the resource allocation which are configured for the target workflow in advance, the simulation of different levels under the same environment is realized, and the environment does not need to be switched, so that the simulation process is more efficient, and particularly in the scene of coping with the simulation of different levels, the efficient simulation operation can be realized, and the extremely high compatibility is reflected.
To achieve the above object, some embodiments of the present application provide the following aspects:
in a first aspect, some embodiments of the present application provide a method of multi-level simulation of a workflow, the method comprising:
identifying a simulation grade label of a target workflow in response to a simulation running instruction of the target workflow;
determining the simulation grade of the target workflow according to the simulation grade label;
and executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow.
In a second aspect, some embodiments of the present application further provide a multi-level simulation apparatus of a workflow, the apparatus comprising:
the simulation grade label identification module is used for responding to a simulation operation instruction of a target workflow and identifying a simulation grade label of the target workflow;
the simulation grade determining module is used for determining the simulation grade of the target workflow according to the simulation grade label;
and the target workflow simulation module is used for executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow.
In a third aspect, some embodiments of the present application further provide a computer apparatus, the apparatus comprising:
one or more processors; and a memory storing computer program instructions that, when executed, cause the processor to perform a multi-level simulation method of a workflow as described above.
In a fourth aspect, some embodiments of the present application also provide a computer readable medium having stored thereon computer program instructions executable by a processor to implement a multi-level simulation method of a workflow as described above.
Compared with the prior art, in the scheme provided by the embodiment of the application, the simulation grade label of the target workflow is identified in response to the simulation operation instruction of the target workflow; determining the simulation grade of the target workflow according to the simulation grade label; and executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow. The method and the device can realize the operation of different simulation levels of the target workflow through the identification of the simulation label of the target workflow. Based on the flow engine and the resource allocation which are configured for the target workflow in advance, the simulation of different levels under the same environment is realized, and the environment does not need to be switched, so that the simulation process is more efficient, and particularly in the scene of coping with the simulation of different levels, the efficient simulation operation can be realized, and the extremely high compatibility is reflected.
Drawings
FIG. 1 is a flow chart of a multi-level simulation method of a workflow according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an analog level determination process provided in accordance with an embodiment of the present application;
FIG. 3 is a flow chart of a multi-level simulation method of a workflow according to a second embodiment of the present application;
FIG. 4 is a schematic structural diagram of a multi-level simulation device for workflow provided in the third embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The technical scheme provided by the embodiment of the application is described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Example 1
Fig. 1 is a flow chart of a multi-level simulation method of a workflow according to an embodiment of the present application. As shown in fig. 1, the method specifically comprises the following steps: the process comprises the following steps:
step S101, responding to a simulation operation instruction of a target workflow, and identifying a simulation grade label of the target workflow;
the target workflow may be a workflow to be executed. The operation mode can adopt a simulation operation mode or a formal operation mode. The simulated running instructions herein may be used to initiate the running of the target workflow.
It may be understood that the simulation operation instruction may include a simulation level of the target workflow, or may include only starting the operation of the target workflow, and determining the simulation level of the target workflow from the information of the target workflow.
The target workflow comprises a simulation grade label. Thus, after receiving the simulation run instruction, the simulation level of the target workflow may be determined according to the simulation level tag. For example, if the flag in the simulation level tag is 1, the operation is performed in the full simulation level, if the flag in the simulation level tag is 2, the operation is performed in the half-simulation level, and if the flag in the simulation level tag is 3, the operation is performed in the pre-production level.
The simulation level label can be configured for the target workflow, namely, when a flow engine simulates and runs a flow template of any workflow, the marking value of the simulation level label is preferentially read, so that the simulation level of the workflow is determined.
The Process Template (Process Template) is a model of the workflow, and defines elements such as steps, participants, conditions, rules and the like in the workflow. It is a generic description of a workflow and can be instantiated as a specific workflow instance. The flow template defines the structure and behavior of the workflow, and provides a reusable template that allows similar workflows to be used in different scenarios. One or more process nodes, process nodes (Workflow nodes), may be included in the process template, which is a specific step or activity in the Workflow. Each flow node represents a task, decision point, or event that needs to be performed by a participant or system. The flow nodes may include performing certain operations, waiting for external input, or triggering other related flow nodes. Together they constitute the execution path and logic of the workflow.
If during the reading process, the target workflow is found to have no simulated level tag, or the tag value in the simulated level tag is empty, it may be determined that the target workflow is running in a formal form, and not running in a simulated manner of any level.
Step S102, determining the simulation grade of the target workflow according to the simulation grade label;
in this scheme, the simulation level of the target workflow is determined according to the simulation level tag, and the simulation operation mode corresponding to the target workflow can be determined specifically according to the flag value in the simulation level tag and the tag of the API simulation level.
For example, if the flag in the simulation level tag is 1, the operation is performed in the full simulation level, if the flag in the simulation level tag is 2, the operation is performed in the half-simulation level, and if the flag in the simulation level tag is 3, the operation is performed in the pre-production level.
Wherein, simulation (Mock) is the simulation of a system, process or phenomenon to obtain an understanding or prediction of its behavior, performance and characteristics. It is a model-based method for modeling the behavior and results of an actual system without the need for experimentation or observation in the actual environment.
In the process of workflow debugging, the workflow simulation is divided into a plurality of levels, each level contains a group of related tasks or steps, and each level is independently simulated and verified, so that the allowable resource operation degree of each level is different.
Fig. 2 is a schematic diagram of an analog level determination process according to an embodiment of the present application. As shown in fig. 2, after the execution is started, whether the target workflow supports simulation (Mock) may be preferentially identified, in the case where simulation is supported, a simulation level (Mock level) may be determined, and in the case where simulation is not supported, the target workflow may be determined to be formally running. When the simulation grades are respectively 1, 2 and 3, the simulation grades respectively correspond to the full simulation grade, the half-simulation grade and the pre-production grade.
Step S103, executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow.
The resources can be various interfaces, message middleware, data sources and other external data carriers usable by the system. The resource configuration set by each flow node can classify and hierarchically divide the resources in the system according to service requirements, such as an API, a message cluster, SQL, redis and the like, wherein the API can define whether the API allows simulation operation or not, and can define related simulation rule configurations to cooperate with the execution of different-level flow simulation.
Wherein, the specific resource configuration can be seen in the following table:
as can be seen in the table above, there may be different resource operations corresponding to different flow simulation levels.
After all the flow nodes are executed according to the flow sequence of the target workflow, a simulation result of the target workflow can be obtained. Specifically, according to the operation condition of each flow node, the simulation result is determined to pass the simulation test or the problem exposed in the simulation test, and further the target workflow can be further adjusted to obtain the target workflow meeting the online operation requirement.
In this scheme, step-by-Step debugging (Step-by-Step debugging) may be adopted, i.e. from the top level, tasks in the workflow are executed Step by Step, and whether the output meets the expectations is verified, so as to identify and eliminate errors Step by Step. Among them, for error recognition (Error identification), there may be a process of finding and confirming the location and detailed information of an error in the workflow debugging process.
In one embodiment, the resource configuration comprises a data interface configuration;
executing each flow node of the target workflow according to the simulation level and the resource configuration preset for each flow node, wherein the method comprises the following steps:
if the simulation grade is half-simulation grade and the configuration information of the data interface is read-only, determining that the data interface of the current flow node operates in a formal mode;
and if the simulation grade is half-simulation grade and the configuration information of the data interface is of a non-read-only type, determining that the data interface of the current flow node operates in a simulation mode.
It can be understood that when the flow simulation level is the half-simulation level and the API level is read-only, only reading is allowed and writing is not allowed, and the method does not affect the database, so that the method allows access to the real database, namely adopts a formal mode operation; when the API level is non-read only, allowing both reading and writing can have an impact on the formal database, in which case only the analog mode of operation can be used.
In this embodiment, a step-by-step determination or the like may be adopted to determine the simulation level of the target workflow preferentially, and after determining the simulation level, the configuration information of the data interface is further determined, and specifically, whether the read-only type or the non-read-only type is configured in the configuration data may be read. If the data interface is of a read-only type, the data interface of the current flow node can be determined to operate in a formal mode, and if the data interface is of a non-read-only type, the data interface of the current flow node can be determined to operate in an analog mode.
By means of the arrangement, different operation modes, such as formal mode operation or simulation mode operation, can be realized according to the configuration difference of the data interfaces under the condition of half-mode operation. Flow debugging can be performed without isolating various environments.
On the basis of the above embodiments, executing each flow node of the target workflow according to the simulation level and the resource configuration preset for each flow node, further includes:
if the simulation level is a full simulation level, determining that the data interfaces of all flow nodes of the target workflow operate in a simulation mode;
the method comprises the steps of,
and if the simulation grade is the pre-production grade, determining that the data interfaces of all flow nodes of the target workflow are operated in a formal mode.
In the formal operation mode, the data interface may directly send a request to access the real database and return the real data in the database.
Here, the analog scale may include: 1-full simulation, 2-half simulation and 3-pre-production. Accordingly, the description form of "digital+stub+analog class name" may also be employed in the configuration of the platform.
When the operation mode is simulated, the data interface does not access the real database, and corresponding data is returned according to the preset request conditions and the data generation rules.
Through the arrangement, the scheme can meet various process debugging requirements without setting up and switching environments, and improves the process debugging efficiency.
In one embodiment, after determining that the data interface of the current flow node is operating in the simulation mode, the method further comprises:
receiving request data;
and determining response data matched with the request data based on at least one request matching rule configured for the data interface in advance, and returning the response data through the data interface.
The request data may be sent by a previous process node or manually in the test process. The data interface will be configured with a return result, and return a corresponding result as long as the received request condition meets the trigger condition. Here, a plurality of request conditions are configured with a plurality of return results. The returned results for different request conditions may be the same or different.
By the arrangement, different result data can be returned according to different trigger conditions of configuration in the process of carrying out multi-level simulation of the workflow, so that simulation tests of various functions are realized.
In one embodiment, the response data specifically includes: the status code of the response, the header parameters, and the content of the response body.
In the configuration of API simulation rules, among other things, requests and responses to simulate APIs may be defined to simulate specific situations or behaviors.
Request rules: one or more request matching rules may be defined to determine which requests should trigger the simulation rules.
Response rules: once the request matches the rule, one or more response rules may be defined to configure the response of the simulation API. The response rules may determine the status code, header parameters, body content (e.g., JSON or XML data) of the response, and any other attributes associated with the response.
The scheme can realize feedback of various response information based on the flexibility of configuration and cause the change of the follow-up flow based on the response information.
In one embodiment, the data interface is pre-simulatively configured with a response delay, a response timeout, and an error status code;
the response delay is used for performing network delay simulation when the simulation mode is operated;
the response timeout is used for performing response timeout simulation when the simulation mode is operated;
the error state code is used for performing error state code simulation when the simulation mode is operated.
Delay and timeout: the response delay or timeout time of the simulated API may be configured to simulate the behavior of the real API. The delay may simulate the network delay of processing the request. The timeout may simulate a timeout condition that occurs during the request.
Error simulation: simulation rules may be configured to simulate error conditions, such as returning a particular error status code or error message. The system's ability to handle abnormal situations can be tested.
Custom data: dynamic data may be generated in the response of the simulation API or some transformation may be performed on the requested or responded data.
In the scheme, the data body of the response data can be determined, so that various data such as delay, errors and the like can be better seen, and the reliability of the test result is improved.
According to the technical scheme provided by the embodiment, the simulation grade label of the target workflow is identified by responding to the simulation operation instruction of the target workflow; determining the simulation grade of the target workflow according to the simulation grade label; and executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow. Based on the flow engine and the resource allocation which are configured for the target workflow in advance, the simulation of different levels under the same environment is realized, and the environment does not need to be switched, so that the simulation process is more efficient, and particularly in the scene of coping with the simulation of different levels, the efficient simulation operation can be realized, and the extremely high compatibility is reflected.
Example two
Fig. 3 is a flow chart of a multi-level simulation method of a workflow according to a second embodiment of the present application. As shown in fig. 3, the method specifically comprises the following steps:
step S301, in response to a simulation operation instruction of a target workflow, identifying whether a simulation grade label exists in the target workflow;
step S302, if the target workflow is identified to have no simulation grade label, determining that the target workflow operates in a production mode.
The present solution gives another branch of the above embodiment, namely determining that the target workflow is operating in production mode if it is identified that the target workflow does not have a simulation level tag.
It can be understood that the scheme adopts decoupling of resource management and flow design, unified management of internal resources and external resources, and unified configuration of external system resources such as APIs and message clusters by using resource management. Flow template simulation verification may be supported. And (3) performing simulation verification on a resource call flow, variable calculation, a message output result and the like through a simulation flow template operation process, so as to ensure that the output of each node accords with an expected result.
In complex business environments, support for multi-level simulation runs is an important requirement. Resource allocation and flow engines are two core technologies that work together to efficiently support multi-level simulation operations.
The scheme utilizes the flow engine to simulate and execute the flow template, and automatically processes the allocation, execution and control of tasks. In the process of flow simulation operation, when the flow is transferred to the active class node related to the resource, the corresponding resource operation is executed according to the pre-configured simulation level. The process engine can automatically trigger the execution of the task according to the conditions and rules defined in the process template, and monitor and control the state of the task.
By the arrangement, the multi-level simulation of the workflow can be carried out in the same environment without modifying the flow configuration, and the debugging means with different degrees of reality can be provided in the debugging stage, so that the method is more flexible to meet the needs of each stage of debugging;
in addition, the debugging method can improve the efficiency of multi-level simulation. By defining the flow of different simulation levels and the mode of operation of the resources, the workflow can be divided into multiple phases and the complexity is increased step by step. In the debugging process, the correctness of basic functions and simple tasks can be verified a priori, and then the real production scene is gradually closed. The step-by-step iteration mode can reduce debugging time and quickly discover and solve problems.
In addition, the scheme supports the custom configuration of various simulation rules of the API, can simulate normal production scenes and abnormal scenes, can help a user to simulate different complex scenes, and can more effectively and comprehensively obtain the running results of different scenes, thereby improving the quality and accuracy of different workflows.
In general, the workflow debugging method supporting multi-level simulation can improve the debugging efficiency, improve the accuracy of simulation results, optimize the resource utilization rate and reduce risks. The method can help workflow developers to more effectively debug and optimize multi-level simulation, thereby improving the overall workflow quality and performance.
Example III
Fig. 4 is a schematic structural diagram of a multi-level simulation device for workflow provided in the third embodiment of the present application. As shown in fig. 4, the method specifically includes the following steps:
a simulation level tag identification module 410, configured to identify a simulation level tag of a target workflow in response to a simulation running instruction of the target workflow;
a simulation level determining module 420, configured to determine a simulation level of the target workflow according to the simulation level tag;
and the target workflow simulation module 430 is configured to execute each flow node of the target workflow according to the simulation level and the resource configuration preset for each flow node, so as to obtain a simulation result of the target workflow.
The multi-level simulation device of the workflow in the embodiment of the application can be a device, and also can be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The multi-level simulation device of the workflow in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The multi-level simulation device for workflow provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and in order to avoid repetition, details are not repeated here.
Example IV
In addition, the embodiment of the application also provides a computer device, and fig. 5 is a schematic structural diagram of the computer device provided in the fourth embodiment of the application. The arrangement of the device is shown in fig. 5, the device comprising a memory 51 for storing computer readable instructions and a processor 52 for executing the computer readable instructions, wherein the computer readable instructions, when executed by the processor, trigger the processor to execute the method.
The methods and/or embodiments of the present application may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. The above-described functions defined in the method of the present application are performed when the computer program is executed by a processing unit.
It should be noted that, the computer readable medium described in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, 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), an optical fiber, 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 document, a computer readable 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.
In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the staff computer, partly on the staff computer, as a stand-alone software package, partly on the staff computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the personal computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowchart or block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices, methods and computer program products according to various embodiments of the present application. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more computer readable instructions executable by a processor to implement the steps of the methods and/or techniques of the various embodiments of the present application described above.
In a typical configuration of the present application, the terminals, the devices of the services network each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device.
In addition, the embodiment of the application also provides a computer program which is stored in the computer equipment, so that the computer equipment executes the method for executing the control code.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, using Application Specific Integrated Circuits (ASIC), a general purpose computer or any other similar hardware device. In some embodiments, the software programs of the present application may be executed by a processor to implement the above steps or functions. Likewise, the software programs of the present application (including associated data structures) may be stored on a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. In addition, some steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the apparatus claims can also be implemented by means of one unit or means in software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.

Claims (9)

1. A method of multi-level simulation of a workflow, the method comprising:
identifying a simulation grade label of a target workflow in response to a simulation running instruction of the target workflow;
determining the simulation grade of the target workflow according to the simulation grade label;
executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow;
wherein the resource configuration comprises a data interface configuration;
executing each flow node of the target workflow according to the simulation level and the resource configuration preset for each flow node, wherein the method comprises the following steps:
if the simulation grade is half-simulation grade and the configuration information of the data interface is read-only, determining that the data interface of the current flow node operates in a formal mode;
and if the simulation grade is half-simulation grade and the configuration information of the data interface is of a non-read-only type, determining that the data interface of the current flow node operates in a simulation mode.
2. The method of claim 1, wherein executing the flow nodes of the target workflow according to the simulation level and the resource configuration previously set for each flow node, further comprises:
if the simulation level is a full simulation level, determining that the data interfaces of all flow nodes of the target workflow operate in a simulation mode;
the method comprises the steps of,
and if the simulation grade is the pre-production grade, determining that the data interfaces of all flow nodes of the target workflow are operated in a formal mode.
3. The method of claim 1, wherein after determining that the data interface of the current flow node is operating in the analog mode, the method further comprises:
receiving request data;
and determining response data matched with the request data based on at least one request matching rule configured for the data interface in advance, and returning the response data through the data interface.
4. A method according to claim 3, wherein the response data comprises: the status code of the response, the header parameters, and the content of the response body.
5. The method of claim 1, wherein the data interface is preconfigured with a response delay, a response timeout, and an error status code;
the response delay is used for performing network delay simulation when the simulation mode is operated;
the response timeout is used for performing response timeout simulation when the simulation mode is operated;
the error state code is used for performing error state code simulation when the simulation mode is operated.
6. The method of claim 1, wherein after responding to simulated running instructions of a target workflow, the method further comprises:
and if the target workflow is identified to not have the simulation grade label, determining that the target workflow is operated in a production mode.
7. A multi-level simulation apparatus of a workflow, the apparatus comprising:
the simulation grade label identification module is used for responding to a simulation operation instruction of a target workflow and identifying a simulation grade label of the target workflow;
the simulation grade determining module is used for determining the simulation grade of the target workflow according to the simulation grade label;
the target workflow simulation module is used for executing each flow node of the target workflow according to the simulation grade and the resource configuration preset for each flow node so as to obtain a simulation result of the target workflow;
wherein the resource configuration comprises a data interface configuration;
the target workflow simulation module is specifically configured to:
if the simulation grade is half-simulation grade and the configuration information of the data interface is read-only, determining that the data interface of the current flow node operates in a formal mode;
and if the simulation grade is half-simulation grade and the configuration information of the data interface is of a non-read-only type, determining that the data interface of the current flow node operates in a simulation mode.
8. A computer device, the device comprising:
one or more processors; and
a memory storing computer program instructions that, when executed, cause the processor to perform the multi-level simulation method of a workflow of any of claims 1-6.
9. A computer readable medium having stored thereon computer program instructions executable by a processor to implement a multi-level simulation method of a workflow according to any of claims 1-6.
CN202410065351.4A 2024-01-17 2024-01-17 Multi-level simulation method, device and equipment for workflow and readable medium Active CN117592311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410065351.4A CN117592311B (en) 2024-01-17 2024-01-17 Multi-level simulation method, device and equipment for workflow and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410065351.4A CN117592311B (en) 2024-01-17 2024-01-17 Multi-level simulation method, device and equipment for workflow and readable medium

Publications (2)

Publication Number Publication Date
CN117592311A CN117592311A (en) 2024-02-23
CN117592311B true CN117592311B (en) 2024-04-16

Family

ID=89910226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410065351.4A Active CN117592311B (en) 2024-01-17 2024-01-17 Multi-level simulation method, device and equipment for workflow and readable medium

Country Status (1)

Country Link
CN (1) CN117592311B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102687130A (en) * 2009-11-12 2012-09-19 系统科技国际公司 System and method for the management and design of complex production processes
WO2017189639A1 (en) * 2016-04-28 2017-11-02 Microsoft Technology Licensing, Llc Debugging a workflow
CN111258773A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service call flow information processing method and device and electronic equipment
CN112395196A (en) * 2020-11-18 2021-02-23 上海浦东发展银行股份有限公司 Data operation development test method, device, equipment, system and storage medium
CN112579606A (en) * 2020-12-24 2021-03-30 平安普惠企业管理有限公司 Workflow data processing method and device, computer equipment and storage medium
CN114896108A (en) * 2022-05-17 2022-08-12 中电太极(集团)有限公司 Test verification system
CN117234916A (en) * 2023-09-15 2023-12-15 中国银行股份有限公司 Workflow application testing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11621978B2 (en) * 2017-12-21 2023-04-04 International Business Machines Corporation Temporary interface to provide intelligent application access

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102687130A (en) * 2009-11-12 2012-09-19 系统科技国际公司 System and method for the management and design of complex production processes
WO2017189639A1 (en) * 2016-04-28 2017-11-02 Microsoft Technology Licensing, Llc Debugging a workflow
CN111258773A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service call flow information processing method and device and electronic equipment
CN112395196A (en) * 2020-11-18 2021-02-23 上海浦东发展银行股份有限公司 Data operation development test method, device, equipment, system and storage medium
CN112579606A (en) * 2020-12-24 2021-03-30 平安普惠企业管理有限公司 Workflow data processing method and device, computer equipment and storage medium
CN114896108A (en) * 2022-05-17 2022-08-12 中电太极(集团)有限公司 Test verification system
CN117234916A (en) * 2023-09-15 2023-12-15 中国银行股份有限公司 Workflow application testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117592311A (en) 2024-02-23

Similar Documents

Publication Publication Date Title
CN108920135B (en) User-defined service generation method and device, computer equipment and storage medium
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN112579446A (en) Interface testing method and device, electronic equipment and storage medium
CN110688111A (en) Configuration method, device, server and storage medium of business process
US20210263837A1 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
CN113392002B (en) Test system construction method, device, equipment and storage medium
CN112579402B (en) Method and device for positioning faults of application system
CN117592311B (en) Multi-level simulation method, device and equipment for workflow and readable medium
CN112069158A (en) Data restoration method, device, equipment and storage medium
US20210294735A1 (en) Test case failure with root cause isolation
CN113360365A (en) Flow testing method and flow testing system
CN111049988A (en) Intimacy prediction method, system, equipment and storage medium for mobile equipment
CN112416746A (en) Test case generation method, device, equipment and medium
CN112506781B (en) Test monitoring method, device, electronic equipment, storage medium and program product
US11429513B1 (en) Testing and verifying cloud services using a computational graph
CN113742197B (en) Model management device, method, data management device, method and system
CN111176718B (en) Script online method and device, storage medium and electronic equipment
CN114218100A (en) Business model testing method, device, system, equipment, medium and program product
CN113434382A (en) Database performance monitoring method and device, electronic equipment and computer readable medium
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN114692382B (en) Management method and device for nuclear power simulation model development data and computer equipment
US12072786B2 (en) Dynamic debug tracing with machine learning
CN115221974B (en) Data identifier training, data identification method and device, electronic equipment and medium
CN113298636A (en) Risk control method, device and system based on simulation resource application
CN116414434A (en) Code branch construction method, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant