CN113159723A - Method and device for realizing visual configuration of business process - Google Patents

Method and device for realizing visual configuration of business process Download PDF

Info

Publication number
CN113159723A
CN113159723A CN202110459207.5A CN202110459207A CN113159723A CN 113159723 A CN113159723 A CN 113159723A CN 202110459207 A CN202110459207 A CN 202110459207A CN 113159723 A CN113159723 A CN 113159723A
Authority
CN
China
Prior art keywords
module
jump
business process
general function
transaction
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
CN202110459207.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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110459207.5A priority Critical patent/CN113159723A/en
Publication of CN113159723A publication Critical patent/CN113159723A/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/10Office automation; Time management
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Technology Law (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for realizing visual configuration of a business process, and relates to the field of finance. The method comprises the following steps: receiving a business process configuration instruction; adding a plurality of general function modules for corresponding services according to the service flow configuration instruction, wherein the general function modules correspond to the transaction steps of the services one by one; changing the configuration parameters of the corresponding general function module according to the name of each transaction step and the mapping relation between the transaction step and the class file, wherein the configuration parameters at least comprise the name and the called class file; and establishing the jump relation among the general function modules according to the jump logic among the transaction steps. The method supports the visual configuration of the business process, and can clearly see the skip relation between each transaction step of the business; meanwhile, the transaction step multiplexing is supported, the workload of developers is reduced, and the reusability is improved.

Description

Method and device for realizing visual configuration of business process
Technical Field
The invention relates to the field of finance, in particular to a method and a device for realizing visual configuration of a business process.
Background
In an actual business system, one transaction needs to be completed through a plurality of transaction steps. Wherein, each transaction step respectively executes a part of processing in the transaction service, and the transaction steps jump according to the flow logic of the transaction service. And when all the transaction steps are executed, integrating the processing result of each transaction step into the return message, and finishing the execution of the transaction service. At present, two common modes for configuring transaction step skip are provided when a business system is developed, wherein one mode is that the transaction step skip is realized through skip among java classes or the skip is realized by repeating a large number of redundant codes in one java class; and the other method is to configure the flow logic of the transaction service in a configuration file (such as xml and the like) to realize transaction step jump. Both the two configuration modes need to configure a large number of character strings, so that various coding problems such as case, spelling loss, errors and the like are easily caused, and the code maintenance is not facilitated; meanwhile, the two modes can not visually display the skip logic between the transaction steps.
Disclosure of Invention
In order to solve the problems in the prior art, the application provides a method for realizing visual configuration of a business process, and relates to the field of finance. The method for realizing the visual configuration of the business process comprises the following steps:
receiving a business process configuration instruction;
adding a plurality of general function modules for the corresponding business process according to the business process configuration instruction, wherein the general function modules correspond to the transaction steps of the business process one by one;
changing the configuration parameters of the corresponding general function module according to the name of each transaction step and the mapping relation between the transaction step and the class file, wherein the configuration parameters at least comprise the name and the called class file;
and establishing the jump relation among the general function modules according to the jump logic among the transaction steps.
In one embodiment, the jump logic includes a jump direction and a jump condition;
the establishing of the jump relation among the general function modules according to the jump logic among the transaction steps comprises the following steps:
determining the jumping direction among the general function modules according to the jumping direction among the transaction steps;
and determining the jump condition among the universal function modules according to the jump condition among the transaction steps.
In an embodiment, the method for implementing business process visualization configuration further includes:
adding a starting module and establishing a jump relation between the starting module and a general function module corresponding to the transaction step executed firstly; and
adding a stopping module and establishing a jump relation between the stopping module and the general function module corresponding to the transaction step executed last.
In an embodiment, the method for implementing business process visualization configuration further includes:
generating a corresponding source code according to the class file called by the general function module;
the source code comprises a jump code, and the jump code corresponds to a jump logic of a preset transaction step corresponding to the general function module.
In an embodiment, the method for implementing business process visualization configuration further includes:
generating the arrangement sequence of the source codes corresponding to the general function modules according to the jump logic among the general function modules, the starting module and the stopping module;
and arranging the source codes according to the arrangement sequence to generate a source code file corresponding to the service.
In an embodiment, when the class file called by the generic function module cannot meet the configuration of the skip logic of the preset transaction step corresponding to the generic function module, the method for implementing visual configuration of a business process further includes:
and calling a code editing interface of the universal function module, and displaying a program code of the class file called by the universal function module.
In an embodiment, the method for implementing business process visualization configuration further includes:
and generating and recording the coordinates of each universal function module, the starting module and the stopping module.
The present application further provides a device for implementing visual configuration of a business process, where the device is used to implement the method for implementing visual configuration of a business process provided by the present application, and the device includes:
the adding module is used for adding a plurality of general function modules according to the received business process configuration instruction, and the general function modules correspond to the business steps one by one;
the graphic display module is used for displaying the universal function module added by the adding module;
the parameter configuration module is used for changing the configuration parameters of the corresponding general function module according to the name of the transaction step and the mapping relation between the transaction step and the class file, and the configuration parameters at least comprise the name and the called class file;
and the jump relation establishing module is used for establishing jump relations among the general function modules according to the jump logics among the transaction steps.
Wherein the jump logic comprises a jump direction and a jump condition;
the jump relation establishing module comprises:
the skip direction determining unit is used for determining skip directions among the general function modules according to the skip directions among the transaction steps;
and the jump condition determining unit is used for determining jump conditions among the universal function modules according to the jump conditions among the transaction steps.
In one embodiment, the adding module is further configured to:
adding a starting module and a stopping module;
the jump relation establishing module is further configured to: establishing a jump relation between the starting module and a general function module corresponding to the transaction step executed firstly; and
and establishing a jump relation between the stopping module and the general function module corresponding to the transaction step executed last.
In an embodiment, the apparatus for implementing business process visualization configuration further includes:
the source code generating module is used for generating a corresponding source code according to the class file called by the general function module;
the source code comprises a jump code, and the jump code corresponds to a jump logic of a preset transaction step corresponding to the general function module.
In an embodiment, the apparatus for implementing business process visualization configuration further includes:
and the source code display module is used for generating the arrangement sequence of the source codes corresponding to the general function modules according to the jump logic among the general function modules, the start module and the stop module and displaying the source codes according to the arrangement sequence.
In an embodiment, the general function module further includes a code editing display module, configured to invoke a code editing interface according to the received code editing instruction to display a program code of a class file invoked by the corresponding general function module.
In an embodiment, the apparatus for implementing business process visualization configuration further includes:
and the coordinate display module is used for generating and displaying the coordinates of each universal function module, the starting module and the stopping module.
The method and the device for realizing the visual configuration of the business process have the following advantages: 1) visual configuration of a business process is supported, and the skip relation among each transaction step of the business can be clearly seen; 2) the method supports the reuse of transaction steps, provides a common module for common transaction steps such as transaction management, log recording, exception handling and the like, reduces the workload of developers and improves the reusability; 3) the business designer can flexibly design the transaction granularity according to the requirement.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a method for implementing a business process visual configuration.
Fig. 2 is another schematic diagram of a method for implementing a business process visualization configuration.
Fig. 3 is a schematic diagram of an apparatus for implementing a business process visualization configuration.
FIG. 4 is a schematic diagram of a graphical display interface.
FIG. 5 is a schematic structural diagram of a jump relation establishing module.
FIG. 6 is another schematic diagram of a graphical display interface.
FIG. 7 is another schematic diagram of a graphical display interface.
Fig. 8 is another schematic diagram of an apparatus for implementing a business process visualization configuration.
FIG. 9 is a schematic diagram of a source code display interface.
FIG. 10 is a schematic view of a coordinate display interface.
Fig. 11 is a schematic diagram of an electronic device.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the present application provides a method for implementing visual configuration of a business process, which includes the following steps:
step S101, receiving a business process configuration instruction. Specifically, the service flow configuration instruction includes transaction steps of the service to be configured, names corresponding to the transaction steps, and mapping relationships between the transaction steps and the class files.
Step S102, adding a plurality of general function modules for the corresponding business according to the business process configuration instruction, wherein the general function modules correspond to the business steps one by one. Specifically, each general function module of the method corresponds to one transaction step, so that the same number of general function modules are added according to the number of the transaction steps to represent each transaction step.
And step S103, changing the configuration parameters of the corresponding universal function module according to the name of each transaction step and the mapping relation between the transaction step and the class file, wherein the configuration parameters at least comprise the name and the called class file.
In step S102, corresponding general function modules are added to each transaction step, and the configuration parameters of each general function module are all initialization configuration parameters before being changed. After the configuration parameters of the general function modules are changed based on the corresponding relation between the general function modules and the transaction steps, the general function modules can execute the transaction steps.
Specifically, the name of the corresponding general function module is changed according to the name of each transaction step so as to visually display the transaction steps corresponding to the function modules; and modifying the class file called by the corresponding general function module according to the mapping relation between each transaction step and the class file. And when the generic function module calls the class file, the corresponding transaction steps can be executed.
And step S104, establishing the jump relation among the general function modules according to the jump logic among the transaction steps.
It can be understood that there is a jump logic executed successively between each transaction step, for example, step 2 is executed after step 1 is executed, step 3 is executed when the result obtained after step 2 is executed is 1, step 4 is executed when the result is-1, and the like. And determining the jump relation between the general function modules representing the transaction steps based on the jump logic between the transaction steps.
Specifically, the jump logic includes a jump direction and a jump condition; the skip direction refers to the next step which may be executed after the current step is executed, and the skip condition refers to a condition which needs to be met when the current step skips to the next step. For example, after the step a is executed, the step B is skipped to if the execution result is 1; and C, jumping to the step C after the step A is executed, wherein the execution result is-1. Jump logic may exist between one step and a plurality of other steps, and the jump direction is selected according to the corresponding jump condition and the execution result of the current step.
Establishing a jump relation among the general function modules according to the jump logic among the transaction steps, which specifically comprises the following steps:
1) determining the skip direction between the general function modules according to the skip direction between the transaction steps, for example, after the step a is executed, the step a can skip to the step B or the step C according to different execution results, and then the skip direction of the general function module corresponding to the step a includes skipping to the general function module corresponding to the step B and skipping to the general function module corresponding to the step C.
2) Determining the jump conditions among the general function modules according to the jump conditions among the transaction steps; for example, if the jump condition for jumping to step B in step a is that the execution result is 1, the general-purpose function module corresponding to step a jumps to the general-purpose function module corresponding to step B when the execution result obtained is 1, and if the jump condition for jumping to step C in step a is that the execution result obtained is-1, the general-purpose function module corresponding to step a jumps to the general-purpose function module corresponding to step C when the execution result obtained is-1.
The method comprises the steps of representing each transaction step by a general configuration module, determining a class file called by a corresponding general function module according to the mapping relation between the transaction step and the class file, and determining the jump relation between the general function modules according to the jump logic between the transaction steps. And the visual configuration of the business process can be realized by adding the universal function modules and changing the configuration parameters of the universal function modules, so that the workload of developers is reduced.
In an embodiment, the method for implementing business process visualization configuration further includes:
adding a starting module and establishing a jump relation between the starting module and a general function module corresponding to the transaction step executed firstly; and
adding a stopping module and establishing a jump relation between the stopping module and the general function module corresponding to the transaction step executed last.
The starting module indicates that the business process starts to be executed, and generally, a jump relationship exists between the starting module and the general function module corresponding to the first executed transaction step, and the jump relationship can be unconditionally jumping to the general function module corresponding to the first executed transaction step. After the configuration of the business process is finished, if a business process execution instruction is received, the execution can be started from the starting module, and the subsequent jump logic is sequentially jumped to other general function modules to execute other transaction steps.
The stop module indicates that the execution of the service flow is completed, and it can be understood that there is at least one general functional module having a jump logic with the stop module, and the jump logic can be unconditionally jumping to the stop module. The stopping module generates a prompt message to prompt that the execution of the business process is finished.
In an embodiment, the method for implementing business process visualization configuration further includes:
and generating a corresponding source code according to the class file called by the general function module.
Specifically, according to the mapping relationship between the transaction steps and the class files, the generic function module calls the class files with the mapping relationship between the transaction steps and the class files corresponding to the generic function module. Each class file is a generic code that is applicable to a class of transaction steps. After the generic function module calls the class file, the called class file is rewritten by field replacement according to the information of the corresponding transaction step, and a section of source code capable of executing the transaction step corresponding to the generic function module is obtained.
The source code comprises a jump code, and the jump code corresponds to a jump logic of a preset transaction step corresponding to the general function module.
In an embodiment, as shown in fig. 2, the method for implementing visual configuration of a business process further includes:
step S105, generating the arrangement sequence of the source codes corresponding to the general function modules according to the jump logic among the general function modules, the start module and the stop module;
and step S106, arranging the source codes according to the arrangement sequence, and generating a source code file of the corresponding business process.
Actually, the source code file of the business process is a code file generated by arranging the source codes generated by the general configuration modules corresponding to the transaction steps according to a certain arrangement order, wherein the arrangement order is determined according to the skip logic between the transaction steps of the business process.
In an embodiment, when the class file called by the generic function module cannot meet the configuration of the skip logic of the preset transaction step corresponding to the generic function module, the method for implementing visual configuration of a business process further includes:
and calling a code editing interface of the universal function module, and displaying a program code of the class file called by the universal function module.
The embodiment provides a method for editing a class file called by a general function module, wherein when a jump logic included in a program code of the class file cannot meet the jump relation in the step, a general configuration module calls a code editing interface according to a received instruction, and the code editing interface displays the program code of the class file called by the general function module. In the code editing interface, rewriting can be performed on the basis of the class file, for example, a new jump relation is added, so that the source code corresponding to the general function module can realize the corresponding transaction step.
In an embodiment, the method for implementing business process visualization configuration further includes:
and generating and recording the coordinates of each universal function module, the starting module and the stopping module.
And recording the coordinates of each module on the interface where the module is positioned after each universal function module, the starting module and the stopping module are added. When the modules are in abnormity such as dislocation due to some reasons, the original positions of the modules can be quickly restored according to the recorded coordinates of the general function modules, the starting module and the stopping module.
In an embodiment, when the business data required by the transaction step corresponding to the general configuration module is different from the business data received when the business process is executed, the method for implementing the business process visual configuration further includes:
and starting the data conversion function of the general configuration module.
The data conversion function is further explained by taking an example as follows. Suppose that the current business process of the transfer transaction needs to be configured, including information check (checking information of a payer, a payment account number, a payee, a collection account number and the like), identity check (checking whether the payer, the payee, the payment account number and the collection account number are in a blacklist) and balance check (checking whether the balance of the payment account is not less than the transfer amount). When a transfer request of a user is received, the business process of the transfer transaction starts to be executed. The transfer request includes information such as the payer, the payment account, the payee, the collection account, and the transfer amount. The steps of information checking and identity checking only use the information in the transfer request, so that the data conversion function of the universal functional module corresponding to the two transaction steps of information checking and identity checking does not need to be started. The balance of the payment account in the balance checking step is not included in the transfer request, and if the balance of the payment account is not acquired, the balance checking step cannot be completed. Therefore, a data conversion function of the general function module corresponding to the balance check needs to be started, before the step of balance check is executed, the general function module corresponding to the balance check firstly queries the balance of the payment account in the database according to the payment account in the transfer request, and then performs balance check according to the acquired balance of the payment account.
It follows that not every general-purpose functional module needs to turn on the data conversion function. And only when the service data required by the transaction step corresponding to the general configuration module is different from the service data received when the service flow is executed, the universal configuration module is started.
The method for realizing the visual configuration of the business process supports the visual configuration of the business process, and can clearly see the skip relation between each transaction step of the business of the current transaction; meanwhile, the transaction step multiplexing is supported, common modules are provided for common transaction steps such as transaction management, log recording, exception handling and the like, the workload of developers is reduced, and the reusability is improved; the business designer can flexibly design the transaction granularity according to the requirement.
Based on the same inventive concept, the embodiment of the present application further provides a device for implementing business process visualization configuration, which can be used for implementing the method described in the above embodiment, as described in the following embodiments. Because the principle of the device for realizing the visual configuration of the business process for solving the problems is similar to that of the method for realizing the visual configuration of the business process, the implementation of the device for realizing the visual configuration of the business process can refer to the implementation of the method for realizing the visual configuration of the business process, and repeated parts are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
The application also provides a device for realizing the visual configuration of the business process, which is used for realizing the method for realizing the visual configuration of the business process. As shown in fig. 3, the apparatus includes:
and the adding module 21 is configured to add a plurality of general function modules according to the received service flow configuration instruction, where the general function modules correspond to the transaction steps of the service one to one. The business process configuration instruction comprises the transaction steps of the business to be configured, the names corresponding to the transaction steps, and the mapping relation between the transaction steps and the class files. The adding module 21 adds the same number of general function modules according to the number of transaction steps included in the service to be configured.
And the graphic display module 22 is used for displaying the general functional modules added by the adding module.
Specifically, the image display module 22 calls a graphic display interface 221, and the graphic display interface 221 displays the general function module 222 added by the adding module 21, as shown in fig. 4.
The parameter configuration module 23 is configured to change the configuration parameters of the corresponding generic function module 222 according to the name of the transaction step and the mapping relationship between the transaction step and the class file, where the configuration parameters at least include the name and the called class file.
Specifically, the parameter configuration module 23 sets the name of the corresponding general function module 222 according to the name of the transaction step; the parameter configuration module 23 sets the address of the class file called by the general configuration module 222 according to the mapping relationship between the transaction step and the class file, so as to call the class file.
And the jump relation establishing module 24 is used for establishing the jump relation between the general function modules 222 according to the jump logic between the transaction steps.
Wherein, the jump logic between each transaction step comprises jump direction and jump condition; the skip direction is, for example, step a to step B, step B to step C or step D. The jump condition corresponds to the jump direction one by one, for example, if the jump condition for jumping to the step B from the step A is unconditional jump, the step A can jump to the step B after the step A is executed; the jump condition of jumping from the step B to the step C is that the execution result of the step B is 1; the jump condition for jumping from the step B to the step D is that the execution result of the step B is-1.
Because the general function modules are in one-to-one correspondence with the transaction steps, the jump logic between the transaction steps is in one-to-one correspondence with the jump relationship between the general function modules. As shown in fig. 5, the jump relation establishing module 24 includes:
a skip direction determining unit 241 for determining skip directions between the general function modules 222 according to skip directions between the transaction steps;
a jump condition determining unit 242, configured to determine a jump condition between the general function modules 222 according to a jump condition between transaction steps.
In order to visually represent the jump relationship between the general-purpose function modules 222, the adding module 21 of the embodiment adds a plurality of connecting lines 223 between the corresponding general-purpose function modules 222 according to the jump logic between the transaction steps, as shown in fig. 6, the arrows of the connecting lines 223 refer to the general-purpose function modules corresponding to the next transaction step. Wherein, the attribute of each connecting line is consistent with the jump relationship between the two general function modules connected with the connecting line. For example, when the jump relation between the general configuration module a corresponding to the step a and the general function module B corresponding to the step B is unconditional jump, the attribute of the connection line connecting the general configuration module a and the general function module B may be set to unconditional jump correspondingly; and C, when the jump relation between the general configuration module B corresponding to the step B and the general function module C corresponding to the step C is that the execution result is 1, jumping when the execution result is 1, and correspondingly setting the attribute of a connecting line for connecting the general configuration module B and the general function module C as the jump when the execution result is 1.
In an embodiment, the adding module 21 is further configured to:
adding a start module 224 and a stop module 225;
the jump relation establishing module is further configured to: establishing a jump relationship between the starting module 224 and the general function module corresponding to the first executed transaction step; and
establishing a jump relationship between the stopping module 225 and the general function module corresponding to the last executed transaction step.
For example, a connection line is added for the general-purpose functional module corresponding to the first executed transaction step executed by the start module 224, and a connection line is added for the general-purpose functional module corresponding to the last executed transaction step directed to the stop module 225. Wherein at least one general function module has a jump relationship with the stop module 224, and the jump relationship can be unconditionally jumping to the stop module 224.
As shown in FIG. 7, the graphic display module 22 displays the start module 224, the stop module 225, together with the general function module 222 and the connecting line 223, on the called graphic display interface 221.
In one embodiment, as shown in fig. 8, the parameter configuration module 23 is further configured to configure the data conversion function of the general function module 222.
Specifically, when the service data required by the transaction step corresponding to the general configuration module is different from the service data received when the service flow is executed, the parameter configuration module 23 starts the data conversion function of the general configuration module.
The data conversion function is further explained by taking an example as follows. Suppose that the current business process of the transfer transaction needs to be configured, including information check (checking information of a payer, a payment account number, a payee, a collection account number and the like), identity check (checking whether the payer, the payee, the payment account number and the collection account number are in a blacklist) and balance check (checking whether the balance of the payment account is not less than the transfer amount). When a transfer request of a user is received, the business process of the transfer transaction starts to be executed. The transfer request includes information such as the payer, the payment account, the payee, the collection account, and the transfer amount. The steps of information checking and identity checking only use the information in the transfer request, so that the data conversion function of the universal functional module corresponding to the two transaction steps of information checking and identity checking does not need to be started. The balance of the payment account in the balance checking step is not included in the transfer request, and if the balance of the payment account is not acquired, the balance checking step cannot be completed. Therefore, a data conversion function of the general function module corresponding to the balance check needs to be started, before the step of balance check is executed, the general function module corresponding to the balance check firstly queries the balance of the payment account in the database according to the payment account in the transfer request, and then performs balance check according to the acquired balance of the payment account.
It follows that not every generic function module 222 needs to turn on the data conversion function. The parameter configuration module 23 will start the data conversion function of the corresponding general configuration module 222 only when the service data required by the transaction step corresponding to the general configuration module 222 is different from the service data received when the service flow is executed.
In an embodiment, as shown in fig. 8, the apparatus for implementing a business process visualization configuration further includes:
and the source code generating module 25 is configured to generate a corresponding source code according to the class file called by the general function module.
Specifically, according to the mapping relationship between the transaction steps and the class files, the generic function module calls the class files with the mapping relationship between the transaction steps and the class files corresponding to the generic function module. Each class file is a generic code that is applicable to a class of transaction steps. After the generic function module calls the class file, the called class file is rewritten by field replacement according to the information of the corresponding transaction step, and a section of source code capable of executing the transaction step corresponding to the generic function module is obtained.
The source code comprises a jump code, and the jump code corresponds to a jump logic of a preset transaction step corresponding to the general function module.
In an embodiment, as shown in fig. 8, the apparatus for implementing a business process visualization configuration further includes:
the source code display module 26 is configured to generate an arrangement order of the source codes corresponding to the general-purpose function modules 222 according to the jump logic among the general-purpose function modules 222, the start module 224, and the stop module 225, and display the source codes according to the arrangement order.
Specifically, as shown in fig. 9, the source code display module 26 calls a source code display interface 261 to display the source codes corresponding to the general function modules 222 according to the arrangement order of the source codes corresponding to the general function modules 222.
The arrangement sequence of the source codes is generated according to jump logic among the general function modules, the starting module and the stopping module. And arranging the source codes to obtain a source code file of the corresponding business process.
Actually, the source code file of the business process is a code file generated by arranging the source codes generated by the general configuration modules corresponding to the transaction steps according to a certain arrangement order, wherein the arrangement order is determined according to the skip logic between the transaction steps of the business process.
In an embodiment, as shown in fig. 8, the general function module further includes a code editing display module 27, configured to call a code editing interface according to the received code editing instruction to display the program code of the class file called by the corresponding general function module.
When the jump logic contained in the program code of the class file cannot meet the jump relation in the step, the general configuration module calls a code editing interface according to the received instruction, and the code editing interface displays the program code of the class file called by the general function module. In the code editing interface, rewriting can be performed on the basis of the class file, for example, a new jump relation is added, so that the source code corresponding to the general function module can realize the corresponding transaction step.
In an embodiment, as shown in fig. 8, the apparatus for implementing a business process visualization configuration further includes:
and a coordinate display module 28 for generating and displaying the coordinates of the general function modules, the start module and the stop module.
Specifically, as shown in fig. 10, the coordinate display module 28 calls a coordinate display interface 281, and when each of the general function modules 222, the start module 224, and the stop module 225 is added, records the coordinates of each module on the graphic display interface 221, and displays the coordinates on the coordinate display interface 281. When the modules are in abnormity such as dislocation due to some reasons, the original positions of the modules can be quickly restored according to the recorded coordinates of the general function modules, the starting module and the stopping module. When the connection relationship between the modules is represented by the connection line 223, the coordinates of the connection line 223 are also displayed on the coordinate display interface 281.
The method and the device for realizing the visual configuration of the business process have the following advantages: 1) visual configuration of a business process is supported, and the skip relation among each transaction step of the business can be clearly seen; 2) the method supports the reuse of transaction steps, provides a common module for common transaction steps such as transaction management, log recording, exception handling and the like, reduces the workload of developers and improves the reusability; 3) the business designer can flexibly design the transaction granularity according to the requirement.
The present application further provides an electronic device including the apparatus for implementing business process visualization configuration in the foregoing embodiment, referring to fig. 11, where the electronic device 100 specifically includes:
a central processing unit (processor)110, a memory (memory)120, a communication module (Communications)130, an input unit 140, an output unit 150, and a power supply 160.
The memory (memory)120, the communication module (Communications)130, the input unit 140, the output unit 150 and the power supply 160 are respectively connected to the central processing unit (processor) 110. The memory 120 stores a computer program, the central processing unit 110 can call the computer program, and when the central processing unit 110 executes the computer program, all the steps of the method for implementing the visual configuration of the business process in the above embodiments are implemented.
The present application further provides a computer storage medium for storing a computer program executable by a processor. Wherein, the computer program realizes any method for realizing business process visual configuration provided by the invention when being executed by a processor.
Those skilled in the art will appreciate that embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the relevant points of the method embodiment and the device embodiment, reference may be made to the description of the relevant portions. In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of an embodiment of the specification.
In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction. The above description is only an example of the embodiments of the present disclosure, and is not intended to limit the embodiments of the present disclosure. Various modifications and variations to the embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present specification should be included in the scope of the claims of the embodiments of the present specification.

Claims (16)

1. A method for realizing visual configuration of a business process is characterized by comprising the following steps:
receiving a business process configuration instruction;
adding a plurality of general function modules for the corresponding business process according to the business process configuration instruction, wherein the general function modules correspond to the transaction steps of the business process one by one;
changing the configuration parameters of the corresponding general function module according to the name of each transaction step and the mapping relation between the transaction step and the class file, wherein the configuration parameters at least comprise the name and the called class file;
and establishing the jump relation among the general function modules according to the jump logic among the transaction steps.
2. The method for implementing visual configuration of business process according to claim 1, wherein said jump logic comprises a jump direction and a jump condition;
the establishing of the jump relation among the general function modules according to the jump logic among the transaction steps comprises the following steps:
determining the jumping direction among the general function modules according to the jumping direction among the transaction steps;
and determining the jump condition among the universal function modules according to the jump condition among the transaction steps.
3. The method for implementing visual configuration of business process according to claim 2, further comprising:
adding a starting module and establishing a jump relation between the starting module and a general function module corresponding to the transaction step executed firstly; and
adding a stopping module and establishing a jump relation between the stopping module and the general function module corresponding to the transaction step executed last.
4. The method for implementing visual configuration of business process according to claim 3, further comprising:
generating a corresponding source code according to the class file called by the general function module;
the source code comprises a jump code, and the jump code corresponds to a jump logic of a preset transaction step corresponding to the general function module.
5. The method for implementing visual configuration of business process according to claim 4, further comprising:
generating the arrangement sequence of the source codes corresponding to the general function modules according to the jump logic among the general function modules, the starting module and the stopping module;
and arranging the source codes according to the arrangement sequence to generate a source code file corresponding to the business process.
6. The method for implementing visual configuration of business process according to claim 4, wherein when the class file called by the generic function module fails to satisfy the configuration of the skip logic of the preset transaction step corresponding to the generic function module, the method further comprises:
and calling a code editing interface of the universal function module, and displaying a program code of the class file called by the universal function module.
7. The method for implementing visual configuration of business process according to claim 4, further comprising:
and generating and recording the coordinates of each universal function module, the starting module and the stopping module.
8. An apparatus for implementing visual configuration of a business process, comprising:
the adding module is used for adding a plurality of general function modules according to the received business process configuration instruction, and the general function modules correspond to the transaction steps of the corresponding business process one by one;
the graphic display module is used for displaying the universal function module added by the adding module;
the parameter configuration module is used for changing the configuration parameters of the corresponding general function module according to the name of the transaction step and the mapping relation between the transaction step and the class file, and the configuration parameters at least comprise the name and the called class file;
and the jump relation establishing module is used for establishing jump relations among the general function modules according to the jump logics among the transaction steps.
9. The apparatus for implementing visual configuration of business process according to claim 8, wherein said jump logic comprises a jump direction and a jump condition;
the jump relation establishing module comprises:
the skip direction determining unit is used for determining skip directions among the general function modules according to the skip directions among the transaction steps;
and the jump condition determining unit is used for determining jump conditions among the universal function modules according to the jump conditions among the transaction steps.
10. The apparatus for implementing visual configuration of a business process according to claim 9, wherein the adding module is further configured to:
adding a starting module and a stopping module;
the jump relation establishing module is further configured to: establishing a jump relation between the starting module and a general function module corresponding to the transaction step executed firstly; and
and establishing a jump relation between the stopping module and the general function module corresponding to the transaction step executed last.
11. The apparatus for implementing visual configuration of business process according to claim 10, further comprising:
the source code generating module is used for generating a corresponding source code according to the class file called by the general function module;
the source code comprises a jump code, and the jump code corresponds to a jump logic of a preset transaction step corresponding to the general function module.
12. The apparatus for implementing visual configuration of business process according to claim 11, further comprising:
and the source code display module is used for generating the arrangement sequence of the source codes corresponding to the general function modules according to the jump logic among the general function modules, the start module and the stop module and displaying the source codes according to the arrangement sequence.
13. The apparatus for implementing visual configuration of business process according to claim 12, wherein the generic function module further includes a code editing display module, configured to invoke a code editing interface according to the received code editing instruction to display the program code of the class file invoked by the corresponding generic function module.
14. The apparatus for implementing visual configuration of business process according to claim 13, further comprising:
and the coordinate display module is used for generating and displaying the coordinates of each universal function module, the starting module and the stopping module.
15. An electronic device, comprising:
the system comprises a central processing unit, a memory and a communication module, wherein the central processing unit can call a computer program stored in the memory, and when the central processing unit executes the computer program, the method for realizing business process visual configuration as claimed in any one of claims 1-7 is realized.
16. A computer storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements a method of implementing a business process visualization configuration as claimed in any one of claims 1-7.
CN202110459207.5A 2021-04-27 2021-04-27 Method and device for realizing visual configuration of business process Pending CN113159723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110459207.5A CN113159723A (en) 2021-04-27 2021-04-27 Method and device for realizing visual configuration of business process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110459207.5A CN113159723A (en) 2021-04-27 2021-04-27 Method and device for realizing visual configuration of business process

Publications (1)

Publication Number Publication Date
CN113159723A true CN113159723A (en) 2021-07-23

Family

ID=76871400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110459207.5A Pending CN113159723A (en) 2021-04-27 2021-04-27 Method and device for realizing visual configuration of business process

Country Status (1)

Country Link
CN (1) CN113159723A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048093A1 (en) * 2004-08-25 2006-03-02 Prashant Jain Mapping software code to business logic
CN106775729A (en) * 2016-12-21 2017-05-31 浪潮通信信息系统有限公司 A kind of mobile client business rendering method and system based on data description
CN110554866A (en) * 2019-09-12 2019-12-10 北京工商大学 MVC transaction type based intelligent contract interactive design method
CN111176635A (en) * 2019-12-09 2020-05-19 深圳市博思恒业信息技术有限公司 Modularized quantization system, execution method thereof and electronic equipment
CN112433722A (en) * 2020-11-27 2021-03-02 深圳前海微众银行股份有限公司 Modular system code development method, device, equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060048093A1 (en) * 2004-08-25 2006-03-02 Prashant Jain Mapping software code to business logic
CN106775729A (en) * 2016-12-21 2017-05-31 浪潮通信信息系统有限公司 A kind of mobile client business rendering method and system based on data description
CN110554866A (en) * 2019-09-12 2019-12-10 北京工商大学 MVC transaction type based intelligent contract interactive design method
CN111176635A (en) * 2019-12-09 2020-05-19 深圳市博思恒业信息技术有限公司 Modularized quantization system, execution method thereof and electronic equipment
CN112433722A (en) * 2020-11-27 2021-03-02 深圳前海微众银行股份有限公司 Modular system code development method, device, equipment and system

Similar Documents

Publication Publication Date Title
CN111176802B (en) Task processing method and device, electronic equipment and storage medium
CN110188135B (en) File generation method and equipment
EP2437524A1 (en) M2m service platform and work method thereof
KR20100122890A (en) Information processing method and storage medium for xml driven-architecture
CN112187933B (en) Method and system for monitoring services in multi-architecture cloud platform
CN112148278A (en) Visual block chain intelligent contract framework and intelligent contract development and deployment method
CN110599341A (en) Transaction calling method and system
CN111695827A (en) Business process management method and device, electronic equipment and storage medium
CN112650487A (en) Hybrid application development method, system, computer device and storage medium
CN115993966A (en) Application development system and method
CN114895935A (en) Method and device for flashing vehicle ECU, electronic equipment and storage medium
CN112925583B (en) Host application capability extension method, device, equipment and storage medium
CN111488144A (en) Data processing method and equipment
CN113159723A (en) Method and device for realizing visual configuration of business process
CN110599112B (en) Network page development and maintenance method and device
CN110908644A (en) Configuration method and device of state node, computer equipment and storage medium
CN114416305A (en) Robot engine implementation method and system and electronic equipment
CN114679491A (en) Micro front-end service application method and device, storage medium and electronic equipment
CN111459583A (en) Menu creating method and device
CN112418796B (en) Sub-process task node activation method and device, electronic equipment and storage medium
CN115686676B (en) Dynamic calling method and device for object and electronic equipment
CN116166394A (en) Task execution method, device, system, storage medium and processor
CN112000366B (en) System parameter configuration method and device based on code generator
CN112631620B (en) Method, system, equipment and medium for manufacturing operating system
CN117032673A (en) Lightweight coded service arrangement method, system and computer equipment

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