CN114895980A - Application program running method and device, electronic equipment and storage medium - Google Patents
Application program running method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114895980A CN114895980A CN202210493151.XA CN202210493151A CN114895980A CN 114895980 A CN114895980 A CN 114895980A CN 202210493151 A CN202210493151 A CN 202210493151A CN 114895980 A CN114895980 A CN 114895980A
- Authority
- CN
- China
- Prior art keywords
- configuration
- target
- application program
- node
- nodes
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 88
- 230000008569 process Effects 0.000 claims abstract description 43
- 238000009434 installation Methods 0.000 claims abstract description 17
- 238000004590 computer program Methods 0.000 claims description 15
- 238000011161 development Methods 0.000 abstract description 13
- 238000012423 maintenance Methods 0.000 abstract description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 9
- 230000008878 coupling Effects 0.000 description 7
- 238000010168 coupling process Methods 0.000 description 7
- 238000005859 coupling reaction Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000000644 propagated effect Effects 0.000 description 2
- 238000004064 recycling Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses an application program running method, an application program running device, electronic equipment and a storage medium, wherein the application program running method comprises the following steps: acquiring a process configuration file from an installation package corresponding to a target application program, and loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for operating the target application program; and sequentially loading each configuration node from the preset application protocol, and acquiring the target resource corresponding to each configuration node until the target resources corresponding to the configuration nodes are all successfully executed, so that the normal operation of the application program on the financial machine can be realized. According to the technical scheme provided by the embodiment of the invention, when the application program is installed on the financial machine tool, the decoupling of the financial machine tool and the application program hardware module is realized, and the application program can be operated on any financial machine tool supporting the preset protocol, so that the application program has universality, and the beneficial effects of improving the development efficiency and reducing the maintenance cost are achieved.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an application program running method and device, electronic equipment and a storage medium.
Background
The financial machine means the daily hardware equipment that uses of financial institution such as bank. For example, an Automatic Teller Machine (ATM), a Cash Recycling System (CRS), an intelligent terminal, a self-service inquiry Machine, and a point of sale (POS), etc. These hardware devices usually include various hardware with specific functions and related hardware modules, for example, the CRS device includes a card reader, a printer, a password keyboard, a deposit module, a withdrawal module, an indicator light module, and a receipt printing module, and the intelligent terminal includes hardware such as a camera, a printer, and a high-speed camera.
In the traditional scheme, when business software is developed on a financial machine, programming is generally required to be performed facing the financial machine, namely corresponding application programs are required to be developed aiming at different characteristics of different financial machines, and when the development is completed, all functional modules in the application programs are usually packaged together to be delivered together with the financial machine as an integral executable program.
In the development process of a traditional financial tool application program, the coupling between the financial tool and each hardware functional module in the application program is strong, so that the application program is not universal, and the later maintenance cost is high.
Disclosure of Invention
Embodiments of the present invention provide an application program running method and apparatus, an electronic device, and a storage medium, which can reduce coupling between a financial device and each hardware function module in an application program, reduce maintenance cost, and improve development efficiency.
In a first aspect, an embodiment of the present invention provides an application program running method, including:
acquiring a process configuration file from an installation package corresponding to a target application program, and loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for operating the target application program;
and sequentially loading each configuration node from a preset application protocol, and acquiring the target resource corresponding to each configuration node until all the target resources corresponding to the configuration nodes are successfully executed.
In a second aspect, an embodiment of the present invention provides an application running apparatus, where the apparatus includes:
the configuration file acquisition module is used for acquiring a process configuration file from an installation package corresponding to a target application program, and loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for operating the target application program;
and the target resource execution module is used for sequentially loading each configuration node from a preset application protocol and acquiring the target resource corresponding to each configuration node until all the target resources corresponding to the configuration nodes are successfully executed.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the application execution method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to, when executed by a processor, implement the application running method according to any embodiment of the present invention.
The application program running method provided by the embodiment of the invention comprises the steps of firstly obtaining a process configuration file from an installation package corresponding to a target application program, and then loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for running the target application program; and sequentially loading each configuration node from the preset application protocol, and acquiring the target resource corresponding to each configuration node until the target resources corresponding to the configuration nodes are all successfully executed, so that the normal operation of the application program on the financial machine can be realized. According to the technical scheme provided by the embodiment of the invention, the target resource required by the target application program is loaded from the preset application protocol, and the operation of the application program is realized in a mode that the configuration node is loaded to correspond to the target resource, so that when the application program is installed on a financial machine tool, the decoupling of the financial machine tool and an application program hardware module is realized, and the financial machine tool can be operated on any financial machine tool supporting the preset protocol; the problem of among the prior art financial machines and tools with each among the application program hardware functional module coupling nature stronger is solved for the application program possesses the commonality, has got the beneficial effect that promotes development efficiency, reduces the maintenance cost.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of embodiments of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of an application running method according to an embodiment of the present invention;
FIG. 2 is another schematic flow chart diagram illustrating an application running method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an application running apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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.
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a schematic flowchart of an application running method according to an embodiment of the present invention, where the embodiment is applicable to a case where an application is run on a financial instrument, and the method may be executed by an application running device, where the application running device may be implemented in a form of hardware and/or software, and the application running device may be configured in a computer device such as a server.
Referring to fig. 1, the method may specifically include the following steps:
s110, acquiring a process configuration file from an installation package corresponding to the target application program, and loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for operating the target application program.
An application program refers to a computer program that is developed to run on an operating system to accomplish a specific task or tasks, and by running the application program, calls a hardware instance in the application program to implement a corresponding application function.
For example, in the financial field, the application may be a withdrawal transaction application, a deposit transaction application, an inquiry transaction application, a transfer transaction application, or a password modification transaction application of a financial instrument (e.g., a cash-and-deposit machine), etc.; in the medical field, the application program may be a self-help registration service application program, a medical record query service application program, a report printing service application program, a payment service application program, and the like, and the field and type of the specific application program are not limited herein.
Taking the financial field as an example, in the existing scheme, an application program needs to be developed in a targeted manner in combination with business functions of current financial machines and tools, illustratively, an automatic teller machine has business functions of money withdrawal, card transfer, balance inquiry, password modification and the like, a cash recycling machine further has a deposit business function and the like on the basis of having the automatic teller machine function, and developers need to develop corresponding application programs according to the business functions required by the current financial machines and tools and bind different hardware modules on the basis of having different business functions, so that the problems that the development process is complicated, the coupling between the application programs and the hardware modules is high, the application programs in different types of financial machines and tools do not have universality and the like exist. In view of this, the embodiment of the invention provides an application program running method to improve the above problem.
The target application program represents any application program in the current financial equipment, and it is easy to understand that the application program referred to in the embodiment of the present invention may be a program of the financial equipment corresponding to the business function.
The financial machine tool comprises installation packages corresponding to the application programs, the installation package corresponding to each application program can be represented by a jar package or a zip package, and source codes can be directly packaged by using a development tool.
The installation package corresponding to the application program generally includes a plurality of files, for example, a process configuration file, a node type file, an operation log file, and the like. The process configuration file can be searched in the installation package corresponding to the target application program according to the file identifiers of different files, and the process configuration file contains configuration nodes required by the target application program, so that the node operation process of the target application program, namely the execution sequence of the configuration nodes, is realized by loading each configuration node.
And S120, sequentially loading each configuration node from the preset application protocol, and acquiring the target resource corresponding to each configuration node until all the target resources corresponding to the configuration nodes are successfully executed.
The preset application protocol provided by the embodiment of the invention is as follows: TpaaS application protocol. When the application program is developed based on the TpaaS protocol, the service application program needs to be developed according to the specification of the TpaaS protocol, and the running platform schedules and manages the application program according to the protocol and provides related resources such as hardware, storage, networks and the like for the running of the application program.
Generally, the preset application protocol specifies the resources that can be used by the application program required by all the financial instruments, and the resources can be divided into control resources, device hardware module resources, page resource storage resources, interface call resources, and the like. Taking the hardware module resource of the device as an example, in the concrete implementation, the hardware modules corresponding to all application programs contained in all the financial machines are counted firstly, and only one hardware module is needed to be stored for multiple financial machines with the same hardware module, so that the advantage of reducing the development workload is realized.
Specifically, according to step S110, after obtaining a plurality of configuration nodes in the target application program flow configuration file, a configuration flow required for implementing the target application program may be obtained, in the configuration flow, a first node is generally a "start" node or a "start" node, and then a target resource corresponding to each configuration node is sequentially obtained from the TpaaS protocol according to a sequence of the configuration nodes in the configuration flow. The method comprises the steps that for a current configuration node, a target resource corresponding to the current node name can be obtained from a preset application protocol according to the node name of the current configuration node, after the target resource is obtained, an application platform can execute the current configuration node according to actual content defined by the target resource, and when all target resources contained in a configuration flow are successfully executed, the current application program on a financial machine tool is indicated to be successfully operated.
Specifically, when the application platform can execute the current configuration node according to the actual content defined by the target resource, the target resource may only contain interface display resources, for example, the current node only needs to display the corresponding interface on the access machine; or the current node needs to call at least one corresponding hardware module, so as to realize the call of the corresponding hardware instance according to the hardware module resource defined in the target resource. The content contained in the specific target resource is not limited herein, so that the actual requirement of the developer in writing the application program is the standard.
Optionally, the application program running method provided by the embodiment of the invention can determine the calling condition of the hardware module according to the selection instruction of the user on the financial instrument. Exemplarily, taking a "withdrawal application program" as an example, after the withdrawal is completed, whether a receipt is printed or not is displayed on an entry machine, if the user selects "yes", a printing module is acquired in an application protocol, a hardware instance printer is started to perform a printing operation, if the user selects "no", the start of the current application program is ended, and a configuration node in a configuration file is transferred to "end", which indicates that the withdrawal application program is completely run.
The application program running method provided by the embodiment of the invention comprises the steps of firstly obtaining a process configuration file from an installation package corresponding to a target application program, and then loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for running the target application program; and sequentially loading each configuration node from the preset application protocol, and acquiring the target resource corresponding to each configuration node until the target resources corresponding to the configuration nodes are all successfully executed, so that the normal operation of the application program on the financial machine can be realized. According to the technical scheme provided by the embodiment of the invention, the target resource required by the target application program is loaded from the preset application protocol, and the operation of the application program is realized in a mode that the configuration node is loaded to correspond to the target resource, so that when the application program is installed on a financial machine tool, the decoupling of the financial machine tool and an application program hardware module is realized, and the financial machine tool can be operated on any financial machine tool supporting the preset protocol; the problem of among the prior art financial machines and tools with each among the application program hardware functional module coupling nature stronger is solved for the application program possesses the commonality, has got the beneficial effect that promotes development efficiency, reduces the maintenance cost.
Fig. 2 is another schematic flow chart of an application program running method according to an embodiment of the present invention, and the relationship between the present embodiment and the foregoing embodiment further details corresponding features of the foregoing embodiment. As shown in fig. 2, the method may include the steps of:
s210, acquiring a process configuration file from an installation package corresponding to the target application program.
And S220, acquiring a target format file in the process configuration file.
The target format file is stored in a flow configuration (config) directory of the target application program installation package, and files in various formats can be obtained by loading the config.
In order to obtain a configuration node of a target application program, a target format file provided in an embodiment of the present invention is an extensible markup language (xml) format file. However, the target format file mentioned in the embodiment of the present invention is not limited to the xml format file, and optionally, the target format file may also be a docx format file, an xlsx format file, an xls format file, and the like.
The configuration node in the target application may be obtained by loading a file formatted as xml under the config directory.
S221, sequentially loading a plurality of configuration nodes in the target format file.
Each object format file comprises a plurality of configuration nodes, and the configuration nodes are nodes required by running the object application program, so that the configuration process of the object application program is obtained by loading the configuration nodes.
S222, obtaining the loading duration of the configuration nodes in the loading target format file.
For each configuration node, there is a corresponding configuration attribute, and the configuration attribute may be a default attribute generally or an attribute defined by the node. The load duration attribute, which represents the time required to load the currently configured node, may generally be included in the default attribute. The purpose of obtaining the loading time length is to judge whether the current configuration node can be loaded normally, so as to determine whether the target application program can run normally.
And S223, judging whether the loading time exceeds a preset value.
The preset value may be 0.5 second or 1 second, and the specific preset value is not limited herein, subject to the actual requirement of the developer.
If the preset time duration is exceeded, step S224 is executed, and if the preset time duration is not exceeded, step S225 is executed.
And S224, the target application program fails to run.
And if the target application program fails to run, the current running process is ended.
Optionally, when the loading duration of the current configuration node exceeds a preset value, displaying early warning information through a running log can be displayed, so that a developer can perform targeted optimization in a later maintenance period.
And S225, when all the configuration nodes are loaded, obtaining the configuration flow when the target application program runs.
Each configuration node in the configuration file is loaded once, so that the sequence of running the configuration nodes when the corresponding functions of the target application program are realized can be obtained, namely the configuration process when the target application program runs is obtained.
And S230, sequentially loading each configuration node from the preset application protocol, and acquiring a target resource corresponding to each configuration node.
And acquiring a first configuration node according to the acquired configuration flow, and acquiring a target resource corresponding to each configuration node from a preset application protocol according to the sequence of the configuration nodes defined in the configuration flow.
In an optional embodiment, for any configuration node i in a plurality of configuration nodes, the configuration node i is loaded from a preset application protocol, and a target resource corresponding to the configuration node i is acquired:
A) and acquiring the node name of the configuration node i according to the target format file.
In the target format file, the node name of the configuration node may be named by the hardware name represented by the current node, or named by an Identity Document (ID for short), and generally, the node name of the current node is consistent with the name in the target hardware module, which is convenient for the subsequent step to identify the target hardware module.
B) And determining the target resource of the configuration node i from a preset application protocol according to the node name of the configuration node i.
The target resource represents a resource required when the target hardware module is loaded from a preset application protocol according to the current configuration node. The target resources may include control resources, device module resources, page resources, storage resources, interface call resources, and the like.
When the configuration node i of the target application program is scheduled, the corresponding target resource is obtained in the preset application protocol according to the node name of the current configuration node, and the current configuration node is executed according to the actual content contained in the target resource.
C) And judging whether the target resources contain the target hardware module.
If yes, executing step D); if not, execute step E).
D) And loading a target hardware module corresponding to the configuration node i from the target resource, and calling a target hardware instance corresponding to the target hardware module.
And when the target resource contains the target hardware module, loading the protocol interface of the target hardware module from the target resource according to the mode defined by the application protocol, thereby realizing the calling of the target hardware instance.
An optional embodiment, when a target hardware instance corresponding to a target hardware module is called, includes:
acquiring target interface information corresponding to a target hardware module; and calling the target hardware instance according to the target interface information.
The target interface information may be an interface name, identification information of the target interface, or a protocol address of the target interface, and the specific target interface information is not limited herein as long as the target hardware can be identified by the interface information of the target interface.
When the target hardware instance is called according to the target interface information, the target hardware instance can be called 'camera', called 'printer', called 'card reader', called 'password keyboard', and the like.
The current step may further include judging whether all the target hardware instances corresponding to the configuration nodes included in the configuration flow are successfully called, if so, successfully calling the target hardware instances corresponding to the configuration nodes, and if not, re-acquiring the next configuration node to perform the corresponding target hardware instance calling operation.
E) And executing the target resource corresponding to the configuration node i.
S240, all target resources corresponding to the configuration nodes are successfully executed.
And S250, acquiring the node name of the last configuration node obtained according to the configuration flow.
And S260, when the node name is the preset name, confirming that the target application program is operated completely.
When the hardware instance corresponding to the node name is called along with the configuration process, the node designates the state code when exiting, and the exit can point the state code to the next execution process. If the next attribute is configured as END, this indicates that the app call is ended.
Illustratively, the preset name may be "end" or "end", that is, when the node name is "end" or "end", it is confirmed that the target application program is completely run.
The embodiment of the present invention further provides an optional embodiment, where before acquiring a target resource corresponding to a previous configuration node from a preset application protocol, and acquiring a target resource corresponding to a next configuration node from the preset application protocol, the method for running an application program according to the embodiment of the present invention further includes: loading a configuration flow corresponding to any application program to obtain a new configuration flow, wherein the new configuration flow comprises a plurality of new configuration nodes; sequentially calling resources corresponding to each new configuration node according to the new configuration flow; and when the node name of the last new configuration node in the new configuration flow is the preset name, confirming that the operation of any application program is completed. The method has the advantages that mutual calling among the application programs can be realized, and the application programs do not influence each other.
In the TPaaS protocol, a Server/Client (C/S) method is used as a default to develop an application program. That is, the logic of the application is written in the nodes of the financial instrument. The platform can provide development support of a Browser/Server (B/S) mode application program based on the characteristics of a TPaaS protocol.
The B/S mode is actually a single-node C/S mode application program, and includes only one fixed-name node, which supports accessing a remote location system (Uniform Resource Locator, URL for short) and interface hopping to support the B/S mode application program. For example, the application program in the B/S mode does not need to control hardware resources such as a card reader to implement a card reading operation, but should call the card reading application program and obtain an output of the card reading application program to implement a card reading function. The development mode realizes the mutual calling among the application programs, and the application programs do not influence each other.
Specifically, the following describes an application running method provided by the embodiment of the present invention with a complete embodiment:
application programs required by financial instruments can be divided into an application 1, an application 2, an application 3 and the like according to different execution functions, when a service application program is developed based on a TPaaS protocol, the application program is developed according to the specifications of the TPaaS protocol, resources corresponding to each application program are specified in the TPaaS protocol, and current resources can be divided into flow scheduling resources, page display resources, storage resources, hardware equipment resources, transaction resources and the like. When an application program runs on a terminal financial machine tool, an application program installation package required by the current financial machine tool is stored in the financial machine tool, a configuration flow is obtained by obtaining a configuration file in the current installation package, corresponding resources are loaded from an application protocol on an application platform according to configuration nodes in the configuration flow, target resources corresponding to the current configuration nodes are further obtained, the current configuration nodes are executed according to the content contained in the current target resources, if the target resources contain hardware module resources, calling of corresponding hardware is required, calling of hardware instances is achieved according to hardware interfaces of the hardware modules, and when all target resources corresponding to all the configuration nodes are completely executed, the current application program runs.
The application program running method provided by the embodiment of the invention has the advantages that the service application program developed based on the TPaaS protocol can run on any running platform supporting the TPaaS protocol, so that the compatibility of different operating systems and hardware equipment can be realized; in the TPaaS protocol, financial equipment hardware equipment is abstracted to be corresponding resources, and a third party developer can develop financial equipment application based on the TPaaS protocol only by knowing the TPaaS protocol; each application program runs in an independent thread space, and the application programs are not influenced mutually; each application program is loaded in an independent class space, and the class spaces of different application programs are isolated from each other; the applications are allowed to call each other. By using the scheme provided by the embodiment of the invention, the universality of a set of application programs can be realized, and the maintenance cost can be reduced.
Fig. 3 is a schematic structural diagram of an application running apparatus according to an embodiment of the present invention, which is adapted to execute the application running method according to the embodiment of the present invention. The application running device can be implemented in the form of hardware and/or software, and the application running device can be configured in a computer device such as a server. As shown in fig. 3, the apparatus may specifically include: a configuration file obtaining module 310 and a target resource executing module 320, wherein:
a configuration file obtaining module 310, configured to obtain a process configuration file from an installation package corresponding to a target application program, and load a plurality of configuration nodes in the process configuration file, where the configuration nodes are nodes required for running the target application program;
the target resource executing module 320 is configured to sequentially load each configuration node from a preset application protocol, and acquire a target resource corresponding to each configuration node until all target resources corresponding to the configuration nodes are successfully executed.
The application program running device provided by the embodiment of the invention firstly obtains a process configuration file from an installation package corresponding to a target application program, and then loads a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for running the target application program; and sequentially loading each configuration node from the preset application protocol, and acquiring the target resource corresponding to each configuration node until the target resources corresponding to the configuration nodes are all successfully executed, so that the normal operation of the application program on the financial machine can be realized. According to the technical scheme provided by the embodiment of the invention, the target resource required by the target application program is loaded from the preset application protocol, and the operation of the application program is realized in a mode that the configuration node is loaded to correspond to the target resource, so that when the application program is installed on a financial machine tool, the decoupling of the financial machine tool and an application program hardware module is realized, and the financial machine tool can be operated on any financial machine tool supporting the preset protocol; the problem of among the prior art financial machines and tools with each among the application program hardware functional module coupling nature stronger is solved for the application program possesses the commonality, has got the beneficial effect that promotes development efficiency, reduces the maintenance cost.
In an embodiment, the configuration file obtaining module 310 includes: the system comprises a target format file acquisition unit, a configuration node loading unit and a configuration flow acquisition unit, wherein:
a target format file acquiring unit, configured to acquire a target format file in the process configuration file;
a configuration node loading unit, configured to sequentially load a plurality of configuration nodes in the target format file;
and the configuration flow obtaining unit is used for obtaining the configuration flow when the target application program runs when all the configuration nodes are loaded.
In an embodiment, the configuration file obtaining module 310 further includes: a loading duration obtaining unit and a loading duration judging unit, wherein:
a loading duration obtaining unit, configured to obtain loading durations for loading the plurality of configuration nodes in the target format file;
and the loading duration judging unit is used for confirming that the target application program fails to operate when the loading duration exceeds a preset value.
In one embodiment, the target resource execution module 320 includes: a node name acquisition unit and a target resource acquisition unit, wherein:
a node name obtaining unit, configured to obtain a node name of a configuration node i according to the target format file;
and the target resource acquisition unit is used for determining the target resource of the configuration node i from the preset application protocol according to the node name of the configuration node i.
In one embodiment, the target resource execution module 320 further includes: a judgment unit;
the judging unit is used for judging whether the target resource comprises a target hardware module; if yes, loading a target hardware module corresponding to the configuration node i from the target resource, and calling a target hardware instance corresponding to the target hardware module; and if not, executing the target resource corresponding to the configuration node i.
In one embodiment, the target resource execution module 320 further comprises: interface information acquisition unit and hardware instance call unit, wherein:
an interface information obtaining unit, configured to obtain target interface information corresponding to the target hardware module;
and the hardware instance calling unit is used for calling the target hardware instance according to the target interface information.
In one embodiment, the apparatus further comprises: node name acquisition module and program operation confirm module, wherein:
a node name obtaining module, configured to obtain a node name of a last configuration node obtained according to the configuration flow;
and the program operation confirming module is used for confirming that the target application program is operated and completed when the node name is a preset name.
In one embodiment, the apparatus further comprises: a configuration flow loading module, wherein:
the configuration flow loading module is used for loading a configuration flow corresponding to any application program to obtain a new configuration flow, and the new configuration flow comprises a plurality of new configuration nodes;
the resource calling module is specifically used for sequentially calling the resources corresponding to the new configuration nodes according to the new configuration process;
and the program operation confirming module is specifically configured to confirm that the operation of any application program is completed when the node name of the last new configuration node in the new configuration flow is a preset name.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the functional module, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the application program running method according to any embodiment of the present invention.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used for enabling a processor to implement the application program running method according to any embodiment of the present invention when executed.
Referring now to FIG. 4, shown is a block diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 4, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, and may be described as: a processor includes a profile acquisition module and a target resource execution module. Wherein the names of the modules do not in some cases constitute a limitation of the module itself.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not assembled into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: acquiring a process configuration file from an installation package corresponding to a target application program, and loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for operating the target application program;
and sequentially acquiring the target hardware modules corresponding to the configuration nodes from a preset application protocol, and calling the target hardware instances corresponding to the target hardware modules until all the target hardware instances corresponding to the configuration nodes are successfully called.
According to the technical scheme of the embodiment of the invention, the normal operation of the application program on the financial machine can be realized. According to the technical scheme provided by the embodiment of the invention, the target resource required by the target application program is loaded from the preset application protocol, and the operation of the application program is realized in a mode that the configuration node is loaded to correspond to the target resource, so that when the application program is installed on a financial machine tool, the decoupling of the financial machine tool and an application program hardware module is realized, and the financial machine tool can be operated on any financial machine tool supporting the preset protocol; the problem of among the prior art financial machines and tools with each among the application program hardware functional module coupling nature stronger is solved for the application program possesses the commonality, has got the beneficial effect that promotes development efficiency, reduces the maintenance cost.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (11)
1. An application program running method, characterized in that the method comprises:
acquiring a process configuration file from an installation package corresponding to a target application program, and loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for operating the target application program;
and sequentially loading each configuration node from a preset application protocol, and acquiring the target resource corresponding to each configuration node until all the target resources corresponding to the configuration nodes are successfully executed.
2. The method of claim 1, wherein loading a plurality of configuration nodes in the process configuration file comprises:
acquiring a target format file in the process configuration file;
sequentially loading a plurality of configuration nodes in the target format file;
and when the configuration nodes are completely loaded, obtaining the configuration flow of the target application program in operation.
3. The method of claim 2, further comprising:
acquiring loading time for loading a plurality of configuration nodes in the target format file;
and when the loading duration exceeds a preset value, confirming that the target application program fails to operate.
4. The method according to claim 2, wherein for any configuration node i in the plurality of configuration nodes, the loading the configuration node i from a preset application protocol and acquiring a target resource corresponding to the configuration node i comprises:
acquiring a node name of a configuration node i according to the target format file;
and determining the target resource of the configuration node i from the preset application protocol according to the node name of the configuration node i.
5. The method of claim 4, further comprising:
judging whether the target resource contains a target hardware module;
if yes, loading a target hardware module corresponding to the configuration node i from the target resource, and calling a target hardware instance corresponding to the target hardware module;
and if not, executing the target resource corresponding to the configuration node i.
6. The method of claim 5, wherein said invoking the target hardware instance corresponding to the target hardware module comprises:
acquiring target interface information corresponding to the target hardware module;
and calling the target hardware instance according to the target interface information.
7. The method according to claim 2, wherein after all the target resources corresponding to the configuration node are successfully executed, the method further comprises:
acquiring the node name of the last configuration node obtained according to the configuration flow;
and when the node name is a preset name, confirming that the target application program is operated completely.
8. The method according to claim 1, wherein before obtaining the target resource corresponding to the previous configuration node from the preset application protocol, and before obtaining the target resource corresponding to the next configuration node from the preset application protocol, the method further comprises:
loading a configuration flow corresponding to any application program to obtain a new configuration flow, wherein the new configuration flow comprises a plurality of new configuration nodes;
sequentially calling resources corresponding to the new configuration nodes according to the new configuration flow;
and when the node name of the last new configuration node in the new configuration flow is a preset name, confirming that the operation of any application program is completed.
9. An application execution apparatus, comprising:
the configuration file acquisition module is used for acquiring a process configuration file from an installation package corresponding to a target application program, and loading a plurality of configuration nodes in the process configuration file, wherein the configuration nodes are nodes required for operating the target application program;
and the target resource execution module is used for sequentially loading each configuration node from a preset application protocol and acquiring the target resource corresponding to each configuration node until all the target resources corresponding to the configuration nodes are successfully executed.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the application program execution method of any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for running an application according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210493151.XA CN114895980A (en) | 2022-05-07 | 2022-05-07 | Application program running method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210493151.XA CN114895980A (en) | 2022-05-07 | 2022-05-07 | Application program running method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114895980A true CN114895980A (en) | 2022-08-12 |
Family
ID=82722496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210493151.XA Pending CN114895980A (en) | 2022-05-07 | 2022-05-07 | Application program running method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114895980A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034481A (en) * | 2011-10-10 | 2013-04-10 | 深圳市证通电子股份有限公司 | Financial self-service terminal and interface realizing method thereof |
CN105354071A (en) * | 2015-12-15 | 2016-02-24 | 武汉长光科技有限公司 | Method for realizing compatibility between embedded software and hardware |
CN109830069A (en) * | 2019-01-29 | 2019-05-31 | 浪潮金融信息技术有限公司 | A kind of bank self-help wisdom teller machine (ATM) system that process is configurable |
CN110275723A (en) * | 2019-06-25 | 2019-09-24 | 北京字节跳动网络技术有限公司 | Obtain method, apparatus, electronic equipment and the readable medium of resource |
CN110968343A (en) * | 2019-11-29 | 2020-04-07 | 合肥美的电冰箱有限公司 | Resource file configuration method, configuration device, refrigerator and readable storage medium |
CN112698888A (en) * | 2020-12-28 | 2021-04-23 | 广州虎牙科技有限公司 | Application modularization, component calling and component initialization method and device |
CN113805973A (en) * | 2021-09-26 | 2021-12-17 | 工银科技有限公司 | Application program control method and device and application program development method and device |
WO2022027569A1 (en) * | 2020-08-07 | 2022-02-10 | 厦门雅基软件有限公司 | Application running method and apparatus, electronic device, and readable storage medium |
-
2022
- 2022-05-07 CN CN202210493151.XA patent/CN114895980A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034481A (en) * | 2011-10-10 | 2013-04-10 | 深圳市证通电子股份有限公司 | Financial self-service terminal and interface realizing method thereof |
CN105354071A (en) * | 2015-12-15 | 2016-02-24 | 武汉长光科技有限公司 | Method for realizing compatibility between embedded software and hardware |
CN109830069A (en) * | 2019-01-29 | 2019-05-31 | 浪潮金融信息技术有限公司 | A kind of bank self-help wisdom teller machine (ATM) system that process is configurable |
CN110275723A (en) * | 2019-06-25 | 2019-09-24 | 北京字节跳动网络技术有限公司 | Obtain method, apparatus, electronic equipment and the readable medium of resource |
CN110968343A (en) * | 2019-11-29 | 2020-04-07 | 合肥美的电冰箱有限公司 | Resource file configuration method, configuration device, refrigerator and readable storage medium |
WO2022027569A1 (en) * | 2020-08-07 | 2022-02-10 | 厦门雅基软件有限公司 | Application running method and apparatus, electronic device, and readable storage medium |
CN112698888A (en) * | 2020-12-28 | 2021-04-23 | 广州虎牙科技有限公司 | Application modularization, component calling and component initialization method and device |
CN113805973A (en) * | 2021-09-26 | 2021-12-17 | 工银科技有限公司 | Application program control method and device and application program development method and device |
Non-Patent Citations (1)
Title |
---|
南淮北安: "一篇文章带你搞定程序的耦合和解耦", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/nanhuaibeian/article/details/106059409> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108804140B (en) | Batch instruction analysis method, device and equipment | |
CN110866709A (en) | Order combination method and device | |
CN111125106B (en) | Batch running task execution method, device, server and storage medium | |
CN111651494B (en) | Data processing method, device, equipment and computer readable storage medium | |
CN111666201A (en) | Regression testing method, device, medium and electronic equipment | |
CN111881392A (en) | Page display method and device | |
CN112463729A (en) | Data file storage method and device, electronic equipment and medium | |
CN113112348A (en) | Processing method and device of social security data, electronic equipment and storage medium | |
US8290916B2 (en) | Rule-based record profiles to automate record declaration of electronic documents | |
CN112948306B (en) | Method and device for expanding system interface | |
CN108182628B (en) | Method, system, equipment and storage medium for ordering travel | |
CN113641633A (en) | File processing method, file processing device, electronic equipment, medium and computer program | |
CN114895980A (en) | Application program running method and device, electronic equipment and storage medium | |
US11614981B2 (en) | Handling of metadata for microservices processing | |
CN110971664B (en) | Interface service management system | |
CN112131257B (en) | Data query method and device | |
CN114529382A (en) | Account checking data processing method and device | |
CN114648410A (en) | Stock staring method, apparatus, system, device and medium | |
CN113448960A (en) | Method and device for importing form file | |
CN112261072A (en) | Service calling method, device, equipment and storage medium | |
US12079866B1 (en) | Cross-system integration platform | |
CN113268417B (en) | Task execution method and device | |
CN117193990B (en) | Scheduling management method, device, equipment and storage medium of http interface | |
CN117609352A (en) | Data processing method, device, equipment and storage medium | |
CN114238411A (en) | Transaction data processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |