CN116339701A - Flow engine creation method for avoiding flow engine parameter coverage and flow engine - Google Patents

Flow engine creation method for avoiding flow engine parameter coverage and flow engine Download PDF

Info

Publication number
CN116339701A
CN116339701A CN202310317455.5A CN202310317455A CN116339701A CN 116339701 A CN116339701 A CN 116339701A CN 202310317455 A CN202310317455 A CN 202310317455A CN 116339701 A CN116339701 A CN 116339701A
Authority
CN
China
Prior art keywords
parameter
node
flow engine
engine
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310317455.5A
Other languages
Chinese (zh)
Inventor
涂志勇
芮波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Miyun Digital Technology Co ltd
Original Assignee
Hangzhou Miyun Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Miyun Digital Technology Co ltd filed Critical Hangzhou Miyun Digital Technology Co ltd
Priority to CN202310317455.5A priority Critical patent/CN116339701A/en
Publication of CN116339701A publication Critical patent/CN116339701A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of flow engines, in particular to a flow engine creation method and a flow engine capable of avoiding flow engine parameter coverage, and aims to solve the problem that in the prior art, an operation result is wrong due to variable parameter coverage in the operation process of the flow engine. In the invention, firstly, a node is created and a flow engine is formed; defining input parameters in the format of input+ parameter names; secondly, defining node parameters of each node in a format of node name + parameter name, and prompting optional parameters; and finally, the process engine is established, and the process output result is operated. The invention effectively solves the problem of parameter coverage of the flow engine in the prior art, is applicable to the flow engines of all businesses, and can realize parameter prompt for other flow engines according to the method for prompting the optional parameters in the flow engine, so that the flow engine has universality and portability.

Description

Flow engine creation method for avoiding flow engine parameter coverage and flow engine
Technical Field
The invention belongs to the technical field of flow engines, and particularly relates to a flow engine creation method and a flow engine capable of avoiding flow engine parameter coverage.
Background
A process Engine (Workflow Engine) is "automation of part or all of a business process in a computer application environment," which is primarily addressed by "automating the process of delivering documents, information, or tasks between multiple participants according to some predefined rule, thereby achieving some intended business objective, or causing the achievement of such objective. In short, a process is a step of cooperatively completing something by using multiple business objects, and the step is changed into a form which can be understood by a computer, namely a process engine.
The Parameter (Parameter) is also called a form factor (form factor) in programming, and is a special variable that transfers data to a subroutine when the subroutine is called, wherein the transferred data is the value of the form factor. The ordered list of parameters is typically included in the definition of the subroutine, so that each time the subroutine is called, these incoming arguments are also calculated and the corresponding data is sent to the subroutine. Under the most common transfer value call condition, the parameter can serve as a new local variable in the subprogram and is initialized to the value of the argument, and at the moment, the parameter becomes the argument variable; when a subroutine is called, the argument variable may be affected by the operation in the called subroutine.
In the operation of the flow engine in the prior art, how to correctly give the prompt of the user parameters, and ensuring that the parameters led by each node for prompting the user can accord with the expected transmission into the node is a great difficulty. There is a problem in that a variable parameter may cause an error in the result of the operation of the flow engine. For example, as shown in fig. 3, in the flow engine, node C expects to obtain the value 1 of the a parameter processed by node a, but actually obtains the value 2 of a covered by node B. When a user uses a flow engine to carry out parameter prompt, the variable prompt is always a, so that the user cannot acquire a specific node a Is a value of (2).
Disclosure of Invention
The invention provides a flow engine creation method and a flow engine for avoiding flow engine parameter coverage, and aims to solve the problem that in the prior art, an operation result is wrong due to variable parameter coverage in the operation process of the flow engine.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for creating a flow engine, which avoids the coverage of parameters of the flow engine, comprising the following steps:
s100, creating nodes and forming a flow engine; defining input parameters, wherein the format of the input parameters is input+ parameter names;
s200, defining node parameters of each node, and prompting optional parameters; the format of the node parameter is node name + parameter name;
s300, the process engine is established, processes are operated, and a result is output.
The further scheme is as follows: the input parameters or the node parameters are defined in a character string format.
Based on the above scheme, the character string has non-variability, so that the input parameter and the node parameter have non-variability, and further, the variable parameter in the flow engine becomes a quantitative parameter, so that the input parameter or the node parameter is prevented from being influenced by the operation of the flow engine.
The further scheme is as follows: in the flow engine, at least 2 nodes are created.
Based on the scheme, the nodes in the flow engine can be created and defined according to specific services, so that the flow engine is more flexible and changeable and is more suitable for various types of services.
The further scheme is as follows: the optional parameter prompt at the first node is an input parameter;
optional parameter prompts at the nth node are input parameters and node parameters before the nth node; wherein N is more than or equal to 2.
Based on the scheme, the node is provided with the optional parameter prompt, so that a user can acquire the value of a specific node.
In a second aspect, the present invention provides a process engine created by any one of the process engine creation methods described in the first aspect, where the process engine parameter coverage is avoided.
In a third aspect, the present invention provides an electronic device, comprising:
at least one memory for storing a program;
at least one processor for executing the programs stored in the memory;
an input device for inputting a program into the memory;
the output device is used for displaying the result after the processor executes the program stored in the memory;
wherein the processor is configured to perform a flow engine creation method that avoids flow engine parameter overrides as described in any of the first aspects when the program stored in the memory is executed.
In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions that cause the computer to implement a flow engine creation method for avoiding flow engine parameter coverage as described in any one of the first aspects.
The beneficial effects of the invention are as follows:
1. the input parameters and the node parameters are defined in the format, so that the input parameters and the node parameters have clear-ideated prompt information, and the prompt information comprises node names and parameter names, so that a user can distinguish the parameters according to the node names and the parameter names and confirm the wanted parameters.
2. According to the invention, the optional parameter prompt is carried out on the nodes, so that the user wants to acquire the value of a specific node at each node, and the parameter coverage problem caused by the variable parameter in the prior art is effectively avoided.
3. The invention effectively solves the problem that the operation result is wrong due to the coverage of variable parameters in the operation process of the flow engine in the prior art, and the invention does not destroy the codes of the flow engine.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for creating a flow engine to avoid flow engine parameter override in the present invention;
FIG. 2 is a schematic diagram of a flow engine according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a prior art flow engine;
fig. 4 is a schematic structural diagram of an electronic device according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without creative efforts, are included in the protection scope of the present invention based on the embodiments of the present invention.
Embodiment one:
as shown in fig. 1, the present embodiment provides a method for creating a flow engine, which avoids the parameter coverage of the flow engine, and includes the following steps:
s100, creating nodes and forming a flow engine; defining input parameters, wherein the format of the input parameters is input+ parameter names;
specifically, for example, an input parameter is defined as a, and the format of the input parameter is input.
S200, defining node parameters of each node, and prompting optional parameters; the format of the node parameter is node name + parameter name;
specifically, for example, the node parameter is defined as a, and the format of the defined parameter is a.a.
S300, the process engine is established, processes are operated, and a result is output.
The improved scheme is as follows:
the input parameters or the node parameters are defined in a character string format.
In the flow engine, at least 2 nodes are created.
Specifically, the number of nodes in the flow engine may be created and defined according to a specific service; for example, the number of nodes may be 2: node a and node B; the number of the nodes is 3: node a, node B and node C; or the number of the nodes is 4: node a, node B, node C, and node D.
The optional parameter prompt at the first node is an input parameter;
optional parameter prompts at the nth node are input parameters and node parameters before the nth node; wherein N is more than or equal to 2.
Specifically, when the number of nodes in the flow engine is 2, namely node a and node B; the optional parameter at node a is prompted to be the input parameter (input.a) and the optional parameter at node B is prompted to be the input parameter (input.a) and the node a parameter (a.a).
When the number of the nodes in the flow engine is 4, namely, a node A, a node B, a node C and a node D; the optional parameters at node a are prompted to be input parameters (input.a), the optional parameters at node B are prompted to be input parameters (input.a) and node a parameters (a.a), the optional parameters at node C are prompted to be input parameters (input.a), node a parameters (a.a) and node B parameters (b.a), and the optional parameters at node D are prompted to be input parameters (input.a), node a parameters (a.a), node B parameters (b.a) and node C parameters (C.a).
As shown in fig. 2, the present embodiment is further described below in connection with the specific case:
taking an input parameter a=1, two nodes are defined as a node a and a node B, which specifically include the following steps:
s100, creating a flow engine, and defining an input parameter a; the format of the input parameter is input.a;
s200, defining a first node A parameter, wherein the format of the node A parameter is A.a; prompting the optional parameters, wherein the optional parameter prompt is input.a;
s300, defining a second node B parameter, wherein the format of the node B parameter is B.a; prompting optional parameters, wherein the optional parameter prompts are input.a and A.a;
s400, the process engine is established; let input parameter a=1, parameter information of node a be a.a=input.a+1, and parameter information of node B be b.a=a.a×2;
s500, running the flow engine and outputting a result.
Specifically, the flow engine operates according to the parameter information of each node, when the flow engine operates to the node a, and the parameter information of the node a is a.a=input.a+1, the selectable parameter is selected as input.a, and a.a=2; when the node B is operated, and the parameter information of the node B is b.a=a.a.2, the optional parameter is selected to be a.a, where a.a=2, b.a=4.
After the whole flow engine is operated, the output result is as follows: input.a=1, a.a=2, and b.a=4.
Embodiment two:
the present embodiment provides a flow engine created by the method for creating a flow engine that avoids flow engine parameter coverage described in any one of the first embodiments.
Embodiment III:
the present embodiment provides an electronic device, including:
at least one memory for storing a program;
at least one processor for executing the programs stored in the memory;
an input device for inputting a program into the memory;
the output device is used for displaying the result after the processor executes the program stored in the memory;
wherein the processor is configured to execute a flow engine creation method that avoids flow engine parameter overrides as described in any of the embodiments when the program stored in the memory is executed.
Specifically, the input device may be a keyboard, a mouse, a camera, etc., and in this embodiment, the input device is a keyboard; the output device may be: sound, display, printer, etc., the input device in this embodiment being a display.
The memory is also called a memory, and is a storage space that the processor can directly address. The Memory includes random access Memory (RandomAccess Memory, RAM), read Only Memory (ROM), cache (Cache), and external Memory.
The processor may be a central processing unit (central processing unit, CPU), but may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The central processing Unit comprises a controller (Control Unit, CU) and an operator (Arithmetic Logic Unit, ALU); the controller is a command system of the point-in-device and is used for completing command work of the electronic equipment; the operator is used for executing arithmetic operation and logical operation.
As shown in fig. 4, the relationship among the memory, the processor, the input device, and the output device is:
the input device inputs a program, the input program is stored in the memory, the processor fetches the program from the memory and executes the program, and the output device displays the result of executing the program by the processor.
Embodiment four:
the present embodiment provides a computer-readable storage medium storing computer instructions that cause the computer to implement a flow engine creation method for avoiding flow engine parameter coverage as described in any one of the embodiments.
Specifically, when the computer instructions are executed on a computer, a flow engine creation method for avoiding flow engine parameter coverage according to the above embodiment is fully or partially generated. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
The invention is not limited to the above-described alternative embodiments, and any person who may derive other various forms of products in the light of the present invention, however, any changes in shape or structure thereof, all falling within the technical solutions defined in the scope of the claims of the present invention, fall within the scope of protection of the present invention.

Claims (7)

1. A process engine creation method for avoiding process engine parameter coverage, comprising the steps of:
s100, creating nodes and forming a flow engine; defining input parameters, wherein the format of the input parameters is input+ parameter names;
s200, defining node parameters of each node, and prompting optional parameters; the format of the node parameter is node name + parameter name;
s300, the process engine is established, processes are operated, and a result is output.
2. The process engine creation method for avoiding process engine parameter override of claim 1, wherein: the input parameters or the node parameters are defined in a character string format.
3. The process engine creation method for avoiding process engine parameter override of claim 1, wherein: in the flow engine, at least 2 nodes are created.
4. A process engine creation method for avoiding process engine parameter override as recited in claim 3, wherein: the optional parameter prompt at the first node is an input parameter;
optional parameter prompts at the nth node are input parameters and node parameters before the nth node; wherein N is more than or equal to 2.
5. A flow engine, characterized by: created by a process engine creation method avoiding process engine parameter override as recited in any one of claims 1-4.
6. An electronic device, comprising:
at least one memory for storing a program;
at least one processor for executing the programs stored in the memory;
an input device for inputting a program into the memory;
the output device is used for displaying the result after the processor executes the program stored in the memory;
wherein the processor is configured to perform a flow engine creation method that avoids flow engine parameter overrides as recited in any one of claims 1-4 when the memory stored program is executed.
7. A computer-readable storage medium, characterized by: the computer-readable storage medium stores computer instructions that cause the computer to implement a flow engine creation method that avoids flow engine parameter overrides as recited in any one of claims 1-4.
CN202310317455.5A 2023-03-29 2023-03-29 Flow engine creation method for avoiding flow engine parameter coverage and flow engine Pending CN116339701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310317455.5A CN116339701A (en) 2023-03-29 2023-03-29 Flow engine creation method for avoiding flow engine parameter coverage and flow engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310317455.5A CN116339701A (en) 2023-03-29 2023-03-29 Flow engine creation method for avoiding flow engine parameter coverage and flow engine

Publications (1)

Publication Number Publication Date
CN116339701A true CN116339701A (en) 2023-06-27

Family

ID=86889135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310317455.5A Pending CN116339701A (en) 2023-03-29 2023-03-29 Flow engine creation method for avoiding flow engine parameter coverage and flow engine

Country Status (1)

Country Link
CN (1) CN116339701A (en)

Similar Documents

Publication Publication Date Title
JP2021197137A (en) Method, device, electronic apparatus, storage medium, and computer program for training model
US7428725B2 (en) Inserting devices specific content
US8688765B2 (en) Methods and system for distributing data to technical computing workers
JP7063935B2 (en) Rendering methods, devices, electronic devices, storage media, and programs
US11775269B2 (en) Generating a synchronous digital circuit from a source code construct defining a function call
JP2021170335A (en) Application construction method, device, electronic facility, storage medium, and program
US20130185694A1 (en) Declarative dynamic control flow in continuation-based runtime
EP3786851A1 (en) Method and apparatus for providing recommendations for completion of an engineering project
KR20070053127A (en) Message oriented construction of web service
CN113094125B (en) Business process processing method, device, server and storage medium
US11163590B2 (en) Graphical user interface command pattern
CN109254778B (en) Method and apparatus for deploying an information flow system
US20030212647A1 (en) Method, system and program product for maintaining a change history for a database design
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN117077599B (en) Method and device for generating field programmable gate array view
CN113672671B (en) Method and device for realizing data processing
CN116339701A (en) Flow engine creation method for avoiding flow engine parameter coverage and flow engine
CN117492743A (en) Target application generation method and device based on large language model and storage medium
US8539496B1 (en) Method and apparatus for configuring network systems implementing diverse platforms to perform business tasks
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN116483707A (en) Test method, test device, test apparatus, test program, and test program
CN113111111A (en) Multi-data source database access method
JP2022525547A (en) Action decisions for case management
CN113760344A (en) Dynamic configuration method, device, electronic equipment and storage medium
US9800692B2 (en) Expression based declarative data service execution chaining

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