CN115630835A - Activity-based workflow general parameter configuration method and system - Google Patents

Activity-based workflow general parameter configuration method and system Download PDF

Info

Publication number
CN115630835A
CN115630835A CN202211186888.3A CN202211186888A CN115630835A CN 115630835 A CN115630835 A CN 115630835A CN 202211186888 A CN202211186888 A CN 202211186888A CN 115630835 A CN115630835 A CN 115630835A
Authority
CN
China
Prior art keywords
function
activity
workflow
workflow model
processed
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
CN202211186888.3A
Other languages
Chinese (zh)
Inventor
崔伦哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211186888.3A priority Critical patent/CN115630835A/en
Publication of CN115630835A publication Critical patent/CN115630835A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The invention relates to an Activity-based parameter configuration method for workflow, which comprises the following steps: the function parameter table is used for recording the function to be processed and parameters required by the function to be processed; the flow parameter table is used for recording the incidence relation between the workflow model of Activity and the function to be processed; decomposing the workflow submission request into a plurality of functions to be processed; judging whether an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table or not; if yes, carrying out flow operation by adapting the Activity workflow model; if not, configuring an Activity workflow model, and performing flow operation by configuring the Activity workflow model; acquiring request information of a workflow submission request through a Spring interceptor; associating the parameters required by the functions to be processed recorded in the function parameter table with the dereferencing paths of the parameters required by the functions to be processed recorded in the process parameter table to obtain a function parameter dereferencing strategy; and carrying out value taking from the request information of the workflow submission request according to the function parameter value taking strategy.

Description

Activity-based workflow general parameter configuration method and system
Technical Field
The invention relates to the technical field of workflow configuration, in particular to a workflow general parameter configuration method and a workflow general parameter configuration system based on Activity.
Background
The existing Activity is simply developed, generally, when a workflow is started, values are fixedly taken from a form, parameters are put in, or documents are simply obtained from a main form of the form for parameter submission, and the complex workflow requirements of a client cannot be met.
And multiple conditions need to be supported, the approval process is flexibly configured, if the payment account is A, the approval is carried out through a user A, and if the payment account is other, the approval is carried out through a user B. In this case, it is necessary to flexibly configure the flow conditions of the approval workflow to support workflow flow according to the amount of the form, or the account, the unit, or the like, so it is necessary to submit the Activity workflow parameters and flexibly configure the parameters.
Under the micro-service architecture, each module of the application calls a workflow module, under the condition, the workflow is not bound with an independent business app and is generally deployed independently to provide flow service, and under the architecture, the parameter setting of the business document, especially the parameter setting with complex logic, becomes more complex under the condition of not modifying a business code.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides an Activity-based workflow general parameter configuration method and an Activity-based workflow general parameter configuration system, and aims to solve the problem that workflow parameters can be flexibly set and uniformly planned under the condition of not invading business under a micro-service architecture.
In order to achieve the above purpose, the technical scheme adopted by the invention comprises the following steps:
an Activity-based parameter configuration method for workflow is characterized by comprising the following steps:
s1, pre-configuring a function parameter table, wherein the function parameter table comprises function codes and parameters required by functions;
a flow parameter table is preconfigured, and the flow parameter table comprises function codes and value paths of parameters required by the functions;
pre-configuring an Activity workflow model table, the Activity workflow model table comprising: an Activity workflow model and an Activity workflow model code;
pre-configuring a Spring interceptor;
s2, acquiring a workflow submission request;
s3, acquiring request information of a workflow submission request through a Spring interceptor; decomposing the workflow submission request information into a plurality of functions to be processed;
s4, matching the function to be processed with the functions in the function parameter table and the process parameter table to obtain a function code of the function to be processed;
s5, judging whether an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table or not;
s6, if an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table, performing flow operation by the adaptive Activity workflow model;
s7, if the Activity workflow model table does not have the Activity workflow model adaptive to the function to be processed, configuring the Activity workflow model, and performing flow operation by configuring the Activity workflow model;
s8, correlating the parameters required by the functions recorded by the function parameter table with the dereferencing paths of the parameters required by the functions recorded by the process parameter table to obtain a function parameter dereferencing strategy;
and S9, carrying out value taking from the request information of the workflow submission request according to the function parameter value taking strategy.
Further, the function parameter table is used for recording functions and parameters required by the functions, and the function parameter table further comprises function names.
Further, the process parameter table is used for recording the association relationship between the workflow model of Activity and the function; the process parameter table further includes: the method comprises the steps of function name, activity workflow model code corresponding to the function and Activity workflow model name corresponding to the function.
Further, the step S5 includes the sub-steps of:
s51, acquiring a function code of the function to be processed, and inquiring whether an Activity workflow model code associated with the function code to be processed exists in a process parameter table;
s52, if an Activity workflow model code associated with the function code to be processed exists, an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table and is an adaptive Activity workflow model;
and S53, if the Activity workflow model code associated with the function code to be processed does not exist, the Activity workflow model adaptive to the function to be processed does not exist in the Activity workflow model table.
Further, the step S7 further includes: adding the configured Activity workflow model into an Activity workflow model table; and recording the association relationship between the configured Activity workflow model and the to-be-processed function in the process parameter table.
The invention also relates to an Activity-based parameter configuration system for workflow, which is characterized by comprising the following steps:
the pre-configuration module is used for pre-configuring a function parameter table, and the function parameter table comprises function codes and parameters required by functions;
a flow parameter table is preconfigured, and the flow parameter table comprises function codes and value paths of parameters required by the functions;
pre-configuring an Activity workflow model table, the Activity workflow model table comprising: an Activity workflow model and an Activity workflow model code;
pre-configuring a Spring interceptor;
the request acquisition module is used for acquiring a workflow submission request;
the function decomposition module is used for acquiring request information of a workflow submission request through a Spring interceptor; decomposing the workflow submission request information into a plurality of functions to be processed;
the function matching module is used for matching the function to be processed with the functions in the function parameter table and the process parameter table to obtain a function code of the function to be processed;
the model matching module is used for judging whether an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table or not;
the process operation module is used for carrying out process operation through the adaptive Activity workflow model if the Activity workflow model table has the Activity workflow model adaptive to the function to be processed;
the model configuration module is used for configuring the Activity workflow model and carrying out flow operation by configuring the Activity workflow model if the Activity workflow model adaptive to the function to be processed does not exist in the Activity workflow model table;
the correlation module is used for correlating the parameter required by the function to be processed and the value taking path of the parameter required by the function to be processed, which are recorded by the process parameter table, so as to obtain a function parameter value taking strategy;
and the value taking module is used for taking values from the request information of the workflow submission request according to the function parameter value taking strategy.
The invention also relates to a computer readable storage medium, which is characterized in that the storage medium is stored with a computer program, and the computer program is executed by a processor to realize the Activity-based workflow general parameter configuration method.
The invention also relates to an electronic device, characterized in that it comprises a processor and a memory;
the memory is used for storing a function parameter table and a process parameter table;
the processor is used for executing the workflow general parameter configuration method based on Activity by calling the function parameter table and the flow parameter table.
The invention also relates to a computer program product comprising a computer program and/or instructions, characterized in that the computer program and/or instructions, when executed by a processor, implement the steps of the Activity-based workflow generic parameter configuration method described above.
The beneficial effects of the invention are as follows:
by adopting the Activity-based workflow general parameter configuration method and system, the configuration function parameter table records parameters supporting client configuration at the current stage of each function to be realized and the parameter value taking method; the configuration flow parameter table associates the workflow model of Activity with the parameters of the functions to be realized, the corresponding business functions and the unit data; intercepting a flow submission request of a workflow through a spring interceptor; the method and the system solve the problems that under a micro-service architecture, under the condition that the workflow engines are integrated by an independent micro-service deployment unit, the workflow parameters are difficult to flexibly configure and uniformly manage under the condition of not invading service codes. On the business level, the method and the system can effectively improve the degree of freedom of the working process of the client configuration and support more business scenes. In the development level, more requirements can be supported after one-time development, and the subsequent development workload is reduced.
Drawings
Fig. 1 is a schematic flow chart of a method for configuring parameters for workflow based on Activity according to the present invention.
FIG. 2 is a schematic structural diagram of an Activity-based parameter configuration system for workflow applications according to the present invention.
Detailed Description
For a clearer understanding of the contents of the present invention, reference will be made to the accompanying drawings and examples.
Workflow (Workflow) refers to "automation of a portion or the whole of a business process in a computer application environment". The method is abstract and general description of the workflow and the business rules among the operation steps. In computers, workflows are part of computer-supported collaborative work (CSCW). The latter is a common study on how a group can achieve cooperative work with the help of computers.
The main problems mainly solved by the workflow are as follows: to achieve a business goal, documents, information, or tasks are automatically communicated between multiple participants using a computer according to some predetermined rule.
In practice, workflow is intended to allow information to be communicated between multiple business objects according to certain rules.
Activity is workflow, and Activity is one of four major components of Android. Is a visual interface operated by a user; it provides a window for the user to complete the operation instruction. After the Activity is created, calling a setContentView () method to complete the display of the interface; thereby providing the user with an interactive portal. Activity is relied on in the android App as long as the visibility is almost all, so Activity is one of the most frequently used components in development.
The lifecycle method of activiy is mainly seven: onCreate (), onRestart (), onStart (), onResume (), onPause (), onStop (), onDestorey (). The life cycle is also the starting sequence principle of Activity
Operational step in work
(1) Installation plug-in
Install Activity plug-in Eclipse to let you draw Activity workflow graph in Eclipse
(2) Configuration engine
ProcessEngine object, activity workflow Engine. This is the core of Activiti's work. And the system is responsible for generating various examples and data during the process operation, monitoring and managing the process operation.
All operations are started from the acquisition engine, so the engine is generally used as a global variable
ProcessEngine processEngine=ProcessEngines.getDefaultProcessEngine();
(3) 1 configuration file
activiti. Cfg. Xml. Activiti core configuration file, basic parameters of configuration process engine creation tool and database connection pool parameters
(4) 5 database tables
The background of activti is supported by the database and all tables begin with ACT. The second part is a two letter designation representing the purpose of the table. The usage also corresponds to the API of the service.
ACT _ RE _: 'RE' represents repository. This prefix table contains the flow definitions and flow static resources (pictures, rules, etc.).
ACT _ RU _: 'RU' means runtime. These runtime tables contain data in-flight, such as process instances, tasks, variables, asynchronous tasks, and the like. Activiti only saves this data during the execution of the flow instance and deletes the records at the end of the flow. Thus the run-time table can be kept small and fast.
'ID' represents identity. These tables contain identity information such as user, group, etc.
ACT _ HI _: 'HI' represents history. These tables contain historical data such as historical process instances, variables, tasks, and the like.
ACT _ GE _generaldata, used in different scenes, such as storing resource files.
The invention relates to a method for configuring parameters for workflow based on Activity, which comprises the following steps of:
workflow parameter management:
and the system operation and maintenance personnel maintain and manage each function and parameters which can be currently supported.
Workflow parameter maintenance:
the client side administrator uses and maintains the specific parameters used in each specific process of the client system.
Converting the workflow into xml that the workflow engine can actually execute:
converting a flow chart designed by a designer into a GXL (XML) -file format and storing the GXL (XML) -file format on a local server by adopting a flow chart data structure XML model based on JGRAPH open source software and calling a flow chart coding and decoding method of a JGraphGXLCodec type; the GXL file format is a simple graphic XML file storage format, and then the flow chart data stored in the XML file is converted into a database for storage by calling a ParserGxl class and a GxlToDatabase class, so that the JWFD flow engine processes the flow chart data.
Converting the workflow into xml that the workflow engine can actually execute:
the configuration file is obtained, that is, the configuration file is converted into an Extensible Markup Language (XML) file executable by a workflow engine, where XML may be used to tag data and define data types, and is a source Language allowing a user to define its own Markup Language.
And converting each module to be called into a corresponding flow activity node according to the calling type information of each module, wherein the flow activity node is an executable XML fragment.
Each module has corresponding call type information, and the call type information of different modules may be the same or different, for example, the call type information of module a is synchronous interface call, the call type information of module B is synchronous interface call, and the call type information of module C is asynchronous interface call.
S1, pre-configuring a function parameter table, wherein the function parameter table comprises function codes and parameters required by functions;
and the function parameter table is used for recording parameters supporting the configuration of the client at the current stage of each function and a parameter value taking method, such as value taking from a bill master table or inquiry value taking through a complex number taking method, and configuration expansion can be carried out subsequently.
Function parameter table wf _ function _ para: the fields comprise function names, codes, parameter codes, value strategies, merchant identifiers, corresponding functions and workflow parameter management.
A pre-configuration flow parameter table for recording the incidence relation between the workflow model of Activity and the function to be processed;
the flow parameter table includes: the method comprises the steps of encoding a function to be processed, name of the function to be processed, encoding an Activity workflow model corresponding to the function to be processed, name of the Activity workflow model corresponding to the function to be processed and value-taking paths of parameters required by the function to be processed.
Flow parameter table (wf _ process _ para): the fields comprise function names, codes, parameter names, access strategy implementation beans and workflow model codes.
The method comprises the steps of pre-configuring an Activity workflow model table, wherein the Activity workflow model table comprises the following components: an Activity workflow model and an Activity workflow model code;
workflow parameter maintenance: and configuring specific parameters for each specific function, and performing library falling, wherein the specific parameters comprise the following steps: for the public payment function, unit 1, workflow model 1, the parameters are maintained as: accountno (account number), amount (transaction amount), agentytype (unit type).
S2, acquiring a workflow submission request;
s3, acquiring request information of a workflow submission request through a Spring interceptor; decomposing the workflow submission request information into a plurality of functions to be processed;
parameter reading in workflow services: writing a spring interceptor, intercepting a workflow submission request, inquiring a workflow parameter table according to unit information, workflow model information and function type information in the submission request, acquiring parameter setting, and judging whether the parameter type is a value taken from a main table or a strategy value;
the interceptor in Spring MVC is mainly used for intercepting user requests and carrying out corresponding processing. For example, the interceptor can perform authorization verification, log the requested information, determine whether the user logs in, and the like.
The method for using the interceptor in Spring MVC comprises the following steps:
defining and configuring an interceptor class;
the interceptor class may be implemented in two ways:
1. defined by implementing a handlerrinterreceptor interface, or an implementation class that inherits a handlerrinterreceptor interface (such as handlerrintercaptoradapter).
2. By implementing a WebRequestInterreceptor interface, or inheriting an implementation class for a WebRequestInterreceptor interface.
The configuration method of the interceptor comprises the following steps: the user-defined interceptor class is enabled to take effect and needs to be configured in a configuration file of Spring MVC.
Creating a Spring interceptor: creating a Demo Interreceptor class to realize a HandlerInterreceptor interface, rewriting three methods of preHandle (), postHandle (), and afterCompletion ();
after the interceptor is created, registering the interceptor into a Spring program: and creating a Spring configuration class to realize a WebMvcConfigrer interface, and rewriting an addInterchesters () method for adding the interceptor into the program.
Creating an interface for viewing the execution effect of the interceptor; and (3) testing the interface: the preHandle () method is executed before the Controller method is executed, and the postHandle () and afterCompletion () methods are placed after the print statement;
performing source code parsing through a Spring interceptor:
the main execution code is in the Dispatcterservlet class, wherein the method of the dosatch () executes the interface processing logic, and the interceptor executes the method of the dosatch () written in sequence.
Thus, the preHandle () is executed before the processor executes, the postHandle () is executed after the processor executes, and when the processor returns abnormally, the postHandle () will not execute, and the afterCompletion () must execute.
S4, matching the function to be processed with the functions in the function parameter table and the process parameter table to obtain a function code of the function to be processed;
s5, judging whether an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table or not;
the step S5 comprises the following steps:
s51, acquiring a function code of the function to be processed, and inquiring whether an Activity workflow model code associated with the function code to be processed exists in a process parameter table;
s52, if an Activity workflow model code associated with the function code to be processed exists, an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table and is an adaptive Activity workflow model;
and S53, if the Activity workflow model code associated with the function code to be processed does not exist, the Activity workflow model adaptive to the function to be processed does not exist in the Activity workflow model table.
S6, if an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table, performing flow operation by the adaptive Activity workflow model;
s7, if the Activity workflow model table does not have an Activity workflow model adaptive to the function to be processed, configuring the Activity workflow model, and performing flow operation by configuring the Activity workflow model;
s8, associating the parameters required by the function to be processed recorded in the function parameter table with the value taking paths of the parameters required by the function to be processed recorded in the process parameter table to obtain a function parameter value strategy;
and S9, carrying out value taking from the request information of the workflow submission request according to the function parameter value taking strategy.
If the main table value is the main table value, obtaining the receipt information from the request submitted by the workflow, then obtaining the parameter field value, and putting the parameter field value into the parameter field of the workflow engine
If the value is the strategy value, acquiring a strategy implementation interface, calling a corresponding interface, acquiring a parameter value, and then putting the parameter value into a workflow engine parameter field.
And storing the configuration parameters and the parameter values of the workflow instances into a process parameter map of Activity.
And after the logic of the interceptor is finished, calling a process starting method of the workflow engine, and carrying out a standard submission process.
In the micro-service engineering of the workflow, a process submission request of the workflow is intercepted through a spring interceptor, a specific configuration parameter of a current workflow instance is confirmed according to the code, unit code and function code of the current workflow, a process parameter table is inquired, then a specific method is called according to a data access strategy to carry out value taking, then the parameter and a corresponding value are put into a process parameter map of Activity, the workflow is started, and the workflow is flexibly circulated according to the configuration parameter.
Another aspect of the present invention further relates to an Activity-based parameter configuration system for workflow, which has a structure shown in fig. 2 and includes:
the pre-configuration module is used for pre-configuring a function parameter table, and the function parameter table comprises function codes and parameters required by functions;
a flow parameter table is preconfigured and comprises function codes and a value path of parameters required by the functions;
pre-configuring an Activity workflow model table, the Activity workflow model table comprising: an Activity workflow model and an Activity workflow model code;
pre-configuring a Spring interceptor;
the request acquisition module is used for acquiring a workflow submission request;
the function decomposition module is used for acquiring request information of a workflow submission request through a Spring interceptor; decomposing the workflow submission request information into a plurality of functions to be processed;
the function matching module is used for matching the function to be processed with the functions in the function parameter table and the process parameter table to obtain a function code of the function to be processed;
the model matching module is used for judging whether an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table or not;
the process operation module is used for carrying out process operation through the adaptive Activity workflow model if the Activity workflow model table has the Activity workflow model adaptive to the function to be processed;
the model configuration module is used for configuring the Activity workflow model and carrying out flow operation by configuring the Activity workflow model if the Activity workflow model adaptive to the function to be processed does not exist in the Activity workflow model table;
the correlation module is used for correlating the parameter required by the function to be processed recorded by the function parameter table with the value taking path of the parameter required by the function to be processed recorded by the process parameter table to obtain a function parameter value taking strategy;
and the value taking module is used for taking values from the request information of the workflow submission request according to the function parameter value taking strategy.
By using this system, the above-described arithmetic processing method can be executed and a corresponding technical effect can be achieved.
Embodiments of the present invention also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments, the computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements all the steps of the method in the above embodiments.
Embodiments of the present invention also provide an electronic device for executing the method, as an implementation apparatus of the method, the electronic device at least has a processor and a memory, in particular, the memory stores data required for executing the method and related computer programs, such as the like, and all steps of the implementation method are executed by calling the data and programs in the memory by the processor, and corresponding technical effects are obtained.
Preferably, the electronic device may comprise a bus architecture, which may include any number of interconnected buses and bridges that link together various circuits, including one or more processors and memory. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the receiver and transmitter. The receiver and transmitter may be the same element, i.e., a transceiver, providing a means for communicating with various other systems over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used to store data used by the processor in performing operations.
Additionally, the electronic device may further include a communication module, an input unit, an audio processor, a display, a power supply, and the like. The processor (or controller, operational controls) employed may include a microprocessor or other processor device and/or logic device that receives input and controls the operation of various components of the electronic device; the memory may be one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices, and may store the above related data information, and may further store a program for executing the related information, and the processor may execute the program stored in the memory to realize information storage or processing, etc.; the input unit is used for providing input to the processor, and can be a key or touch input device; the power supply is used for supplying power to the electronic equipment; the display is used for displaying display objects such as images and characters, and may be an LCD display, for example. A communication module is a transmitter/receiver that sends and receives signals via an antenna. The communication module (transmitter/receiver) is coupled to the processor to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal. Based on different communication technologies, a plurality of communication modules, such as a cellular network module, a bluetooth module and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) is also coupled to a speaker and a microphone via an audio processor to provide audio output via the speaker and receive audio input from the microphone to implement the usual telecommunication functions. The audio processor may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor is also coupled to the central processor, so that recording on the local machine can be performed through the microphone, and sound stored on the local machine can be played through the loudspeaker.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are also within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (9)

1. An Activity-based parameter configuration method for workflow is characterized by comprising the following steps:
s1, pre-configuring a function parameter table, wherein the function parameter table comprises function codes and parameters required by functions;
a flow parameter table is preconfigured and comprises function codes and a value path of parameters required by the functions;
pre-configuring an Activity workflow model table, the Activity workflow model table comprising: an Activity workflow model and an Activity workflow model code;
pre-configuring a Spring interceptor;
s2, acquiring a workflow submission request;
s3, acquiring request information of a workflow submission request through a Spring interceptor; decomposing the workflow submission request information into a plurality of functions to be processed;
s4, matching the function to be processed with the functions in the function parameter table and the process parameter table to obtain a function code of the function to be processed;
s5, judging whether an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table or not;
s6, if an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table, performing flow operation by the adaptive Activity workflow model;
s7, if the Activity workflow model table does not have an Activity workflow model adaptive to the function to be processed, configuring the Activity workflow model, and performing flow operation by configuring the Activity workflow model;
s8, associating the function required parameters recorded by the function parameter table with the value taking paths of the function required parameters recorded by the process parameter table to obtain a function parameter value taking strategy;
and S9, carrying out value taking from the request information of the workflow submission request according to the function parameter value taking strategy.
2. The method of claim 1, wherein the function parameter table is used to record a function and parameters required by the function, and the function parameter table further comprises a function name.
3. The method of claim 1, wherein the flow parameter table is used to record the association of workflow models and functions of Activity; the process parameter table further includes: the method comprises the steps of function name, activity workflow model code corresponding to the function and Activity workflow model name corresponding to the function.
4. The method according to claim 1, characterized in that said step S5 comprises the sub-steps of:
s51, acquiring a function code of the function to be processed, and inquiring whether an Activity workflow model code associated with the function code to be processed exists in a process parameter table;
s52, if an Activity workflow model code associated with the function code to be processed exists, an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table and is an adaptive Activity workflow model;
and S53, if the Activity workflow model code associated with the to-be-processed function code does not exist, the Activity workflow model adaptive to the to-be-processed function does not exist in the Activity workflow model table.
5. The method of claim 1, wherein the step S7 further comprises: adding the configured Activity workflow model into an Activity workflow model table; and recording the association relationship between the configured Activity workflow model and the to-be-processed function in the process parameter table.
6. An Activity-based parameter configuration system for workflow, comprising:
the pre-configuration module is used for pre-configuring a function parameter table, and the function parameter table comprises function codes and parameters required by functions;
a flow parameter table is preconfigured, and the flow parameter table comprises function codes and value paths of parameters required by the functions;
the method comprises the steps of pre-configuring an Activity workflow model table, wherein the Activity workflow model table comprises the following components: an Activity workflow model and an Activity workflow model code;
pre-configuring a Spring interceptor;
the request acquisition module is used for acquiring a workflow submission request;
the function decomposition module is used for acquiring request information of a workflow submission request through a Spring interceptor; decomposing the workflow submission request information into a plurality of functions to be processed;
the function matching module is used for matching the function to be processed with the functions in the function parameter table and the process parameter table to obtain a function code of the function to be processed;
the model matching module is used for judging whether an Activity workflow model adaptive to the function to be processed exists in the Activity workflow model table or not;
the process operation module is used for carrying out process operation through the adaptive Activity workflow model if the Activity workflow model table has the Activity workflow model adaptive to the function to be processed;
the model configuration module is used for configuring the Activity workflow model and carrying out flow operation by configuring the Activity workflow model if the Activity workflow model adaptive to the function to be processed does not exist in the Activity workflow model table;
the correlation module is used for correlating the parameter required by the function to be processed recorded by the function parameter table with the value taking path of the parameter required by the function to be processed recorded by the process parameter table to obtain a function parameter value taking strategy;
and the value taking module is used for taking values from the request information of the workflow submission request according to the function parameter value taking strategy.
7. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the Activity-based workflow generic parameter configuration method of any of claims 1 to 5.
8. An electronic device comprising a processor and a memory;
the memory is used for storing a function parameter table and a process parameter table;
the processor is used for executing the Activity-based workflow general parameter configuration method of any one of claims 1 to 5 by calling the function parameter table and the process parameter table.
9. A computer program product comprising a computer program and/or instructions which, when executed by a processor, carry out the steps of the Activity-based workflow parameter configuration method of any one of claims 1 to 5.
CN202211186888.3A 2022-09-27 2022-09-27 Activity-based workflow general parameter configuration method and system Pending CN115630835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211186888.3A CN115630835A (en) 2022-09-27 2022-09-27 Activity-based workflow general parameter configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211186888.3A CN115630835A (en) 2022-09-27 2022-09-27 Activity-based workflow general parameter configuration method and system

Publications (1)

Publication Number Publication Date
CN115630835A true CN115630835A (en) 2023-01-20

Family

ID=84904786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211186888.3A Pending CN115630835A (en) 2022-09-27 2022-09-27 Activity-based workflow general parameter configuration method and system

Country Status (1)

Country Link
CN (1) CN115630835A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028915A (en) * 2023-03-29 2023-04-28 江苏智云天工科技有限公司 Single-point authentication method, system and medium for user access

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028915A (en) * 2023-03-29 2023-04-28 江苏智云天工科技有限公司 Single-point authentication method, system and medium for user access

Similar Documents

Publication Publication Date Title
US9342364B2 (en) Workflow managed composite applications
US20190243665A1 (en) Application runtime configuration using design time artifacts
CN112558980A (en) Multi-software-package management method and device
KR101086620B1 (en) Smart office system and server for managing the sames and method for managing the sames
CN110659018A (en) Flow engine implementation method and device
CN111221606A (en) Device management workflow service control method based on Activiti control
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN115630835A (en) Activity-based workflow general parameter configuration method and system
CN105096104A (en) Form operation authority control method, apparatus and office automation system
CN110727575B (en) Information processing method, system, device and storage medium
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
EP4007955A1 (en) Parallel cloned workflow execution
US10061686B2 (en) Method, electronic apparatus, system, and storage medium for automated testing of application user interface
US20220138323A1 (en) Methods and Systems for Implementing Automated Controls Assessment in Computer Systems
CN114116679A (en) Multi-database environment operation and maintenance method and system
CN114035786A (en) Dependency-based micro-front-end compatible migration method and system
CN114489674A (en) Data verification method and device of dynamic data model
CN113064698A (en) Method for providing product environment and corresponding device, system, equipment and medium
CN113253991A (en) Task visualization processing method and device, electronic equipment and storage medium
CN112000366B (en) System parameter configuration method and device based on code generator
CN111061789A (en) Smart power grids capital construction information management system
CN110827133A (en) Bank business system change commissioning and account-supplementing method and device
CN113516545B (en) Internal control compliance service management method and device
CN115543969B (en) Data migration method, device, equipment and medium
CN110874713A (en) Service state management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination