CN110708202B - Configuration method, device, equipment and storage medium of plug-in node - Google Patents

Configuration method, device, equipment and storage medium of plug-in node Download PDF

Info

Publication number
CN110708202B
CN110708202B CN201910977749.4A CN201910977749A CN110708202B CN 110708202 B CN110708202 B CN 110708202B CN 201910977749 A CN201910977749 A CN 201910977749A CN 110708202 B CN110708202 B CN 110708202B
Authority
CN
China
Prior art keywords
node
target
configuration
plug
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910977749.4A
Other languages
Chinese (zh)
Other versions
CN110708202A (en
Inventor
万纯
林挺
卢道和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910977749.4A priority Critical patent/CN110708202B/en
Publication of CN110708202A publication Critical patent/CN110708202A/en
Application granted granted Critical
Publication of CN110708202B publication Critical patent/CN110708202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a configuration method, a device, equipment and a storage medium of a plug-in node, wherein the method is realized by acquiring static node data and dynamic configuration data of the node to be configured in a file to be configured; invoking a template grammar in a target plug-in, and rendering the static style of the node to be configured based on static node data to generate icon information; and determining target configuration data corresponding to the target configuration node in the dynamic configuration data, adding the target configuration data to a general event template component, binding a corresponding node event, and generating a target node in the target plug-in based on a target event component after the node event is bound. According to the method and the device for configuring the flow chart plug-in, when the flow chart plug-in is developed at the front end, node configuration can be customized according to service requirements, low coupling of service logic and the plug-in is achieved, high coupling on the plug-in configuration data is achieved, and the applicable scene of the flow chart plug-in is improved.

Description

Configuration method, device, equipment and storage medium of plug-in node
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a method, an apparatus, a device, and a computer readable storage medium for configuring a plug-in node.
Background
With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, and the traditional financial industry is gradually changing to the financial technology (Fintech), but due to the requirements of security and real-time performance of the financial industry, higher requirements are also put forward on the technologies. The node types of the existing drawing plug-in are generally geometric figures, the supported types are relatively fixed, and the service requirements of a banking system are difficult to meet. Therefore, different drawing plug-ins need to be developed according to different business requirements of the banking system, development workload is increased, and development efficiency of the drawing plug-ins in the banking system is reduced.
Disclosure of Invention
The invention mainly aims to provide a configuration method, a device, equipment and a computer readable storage medium of a plug-in node, which aim to solve the technical problem of development efficiency of drawing plug-ins in the existing banking system.
In order to achieve the above object, the present invention provides a method for configuring a plug-in node, the method for configuring a plug-in node comprising the steps of:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, wherein the basic configuration information comprises static node data and dynamic configuration data;
invoking a template grammar in a target plug-in, rendering a static pattern of each node to be configured based on static node data of the node to be configured, and generating icon information corresponding to the node to be configured so that a user drags the icon information to determine a target configuration node in the nodes to be configured;
determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to a universal event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data;
binding the target event component with the corresponding node event, and generating a target node in the target plug-in based on the target time component after binding the node event.
Optionally, when the to-be-configured file uploaded by the user is received, acquiring basic configuration information of the to-be-configured node in the to-be-configured file, where the basic configuration information includes static node data and dynamic configuration data, and after the step of:
setting corresponding arrays for each node to be configured, and storing basic configuration information corresponding to each node to be configured to the corresponding arrays respectively.
Optionally, the step of calling the template grammar in the target plugin, rendering the static style of each node to be configured based on the static node data of the node to be configured, and generating icon information corresponding to the node to be configured, so that a user drags the icon information to determine the target configuration node in the node to be configured, further includes:
and storing the dynamic configuration data to a state manager of a target plug-in, and registering the node event corresponding to the dynamic configuration data according to the event name and the target instruction in the dynamic configuration data.
Optionally, the step of calling the template grammar in the target plugin, rendering the static style of the node to be configured based on the static node data of each node to be configured, and generating icon information corresponding to the node to be configured, so that the step of determining the target configuration node in the node to be configured by the user dragging the icon information further includes:
when a node adjustment instruction triggered by a user based on a user-defined input box is detected, acquiring a current node name and node setting information in the node adjustment instruction;
and modifying initial node information corresponding to the current node stored in the state manager based on the node setting information so as to adjust page information of the current node.
Optionally, after the step of binding the target event component to the corresponding node event and generating the target node in the target plug-in based on the target time component after binding the node event, the method further includes:
and acquiring a node configuration sequence of the target configuration node and a corresponding registration node event, and creating a target workflow corresponding to the target configuration node based on the registration node time and the node configuration sequence.
Optionally, when the to-be-configured file uploaded by the user is received, acquiring basic configuration information of the to-be-configured node in the to-be-configured file, where the basic configuration information includes static node data and dynamic configuration data specifically includes:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, and whether the nodes to be configured are configurable nodes or not is judged according to a preset white list;
if the node to be configured is an unconfigurable node, determining relevant configuration information corresponding to the unconfigurable node, and deleting the relevant configuration information from the basic configuration information.
Optionally, the step of calling the template grammar in the target plugin, rendering the static style of each node to be configured based on the static node data of the node to be configured, and generating icon information corresponding to the node to be configured, so that a user drags the icon information to determine the target configuration node in the node to be configured, further includes:
acquiring the node type of the node to be configured, and acquiring script content corresponding to the node to be configured when the node type of the node to be configured is a script type;
rendering the static style of the node to be configured based on the execution result corresponding to the script content, and generating icon information corresponding to the node to be configured.
Optionally, the configuration method of the plug-in node further includes:
and when detecting that the shielding key words exist in the to-be-configured file, acquiring the to-be-shielded node name, and setting the to-be-shielded node as unavailable in the target plug-in unit based on the to-be-shielded node name.
In addition, to achieve the above object, the present invention further provides a configuration device of a plug-in node, the configuration device of a plug-in node including:
the data configuration module is used for acquiring basic configuration information of nodes to be configured in a file to be configured when receiving the file to be configured uploaded by a user, wherein the basic configuration information comprises static node data and dynamic configuration data;
the icon generating module is used for calling the template grammar in the target plug-in and rendering the static style of each node to be configured based on the static node data of the node to be configured to generate icon information corresponding to the node to be configured so that a user drags the icon information to determine the target configuration node in the nodes to be configured;
the data confirmation module is used for determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to the universal event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data;
the node configuration module is used for binding the target event component with the corresponding node event and generating a target node in the target plug-in based on the target time component after binding the node event.
Optionally, the configuration device of the plug-in node further includes:
the node event registration module is used for storing the dynamic configuration data to a state manager of a target plug-in, and registering the node event corresponding to the dynamic configuration data according to the event name and the target instruction in the dynamic configuration data.
Optionally, the configuration device of the plug-in node further includes:
and the workflow creation module is used for acquiring the node configuration sequence of the target configuration node and the corresponding registered node event, and creating the target workflow corresponding to the target configuration node based on the registered node time and the node configuration sequence.
Optionally, the configuration device of the plug-in node further includes a node information screening module, where the node information screening module is configured to:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, and whether the nodes to be configured are configurable nodes or not is judged according to a preset white list;
if the node to be configured is an unconfigurable node, determining relevant configuration information corresponding to the unconfigurable node, and deleting the relevant configuration information from the basic configuration information.
In addition, to achieve the above object, the present invention also provides a configuration device of a plug-in node, including: the configuration program of the plug-in node comprises a memory, a processor and a configuration program of the plug-in node which is stored in the memory and can run on the processor, wherein the configuration program of the plug-in node realizes the steps of the configuration method of the plug-in node when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a configuration program of a plug-in node, which when executed by a processor, implements the steps of the configuration method of a plug-in node as described above.
The invention provides a configuration method of plug-in nodes, which comprises the steps of obtaining basic configuration information of the nodes to be configured in a file to be configured when receiving the file to be configured uploaded by a user, wherein the basic configuration information comprises static node data and dynamic configuration data; invoking a template grammar in a target plug-in, rendering a static pattern of each node to be configured based on static node data of the node to be configured, and generating icon information corresponding to the node to be configured so that a user drags the icon information to determine a target configuration node in the nodes to be configured; determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to a universal event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data; binding the target event component with the corresponding node event, and generating a target node in the target plug-in based on the target time component after binding the node event. By the method, when the flow chart plug-in is developed at the front end according to the user-defined file to be configured, the node configuration can be customized according to the service requirement, the low coupling between the service logic and the plug-in is realized, the high coupling on the plug-in configuration data is realized, the applicable scene of the flow chart plug-in is improved, and the technical problem of the development efficiency of the drawing plug-in the conventional banking system is solved.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of a configuration method of a plug-in node according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention.
The configuration device of the plug-in node in the embodiment of the invention can be a PC or a server device, and a Java virtual machine is operated on the configuration device.
As shown in fig. 1, the configuration device of the plug-in node may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a configuration program of a plug-in node.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to call a configuration program of a plug-in node stored in the memory 1005 and perform operations in a configuration method of a plug-in node described below.
Based on the above hardware structure, the configuration method embodiment of the plug-in node is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a configuration method of a plug-in node according to the present invention, where the configuration method of the plug-in node includes:
step S10, when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, wherein the basic configuration information comprises static node data and dynamic configuration data;
the nodes in the existing plug-in are all geometric figures, so that for users with weak professionals, it is difficult for people to understand the expression meaning and the application of each node; in addition, the existing plug-in nodes are relatively fixed in type, only can meet the project of specific requirements, the nodes cannot be customized, for example, right-click events of the nodes are wanted to be created, the nodes are configured by using native javaScript operation, the operation is very inconvenient, and development workload is increased.
In order to solve the technical problem, the method and the device can realize the self-defined node configuration according to the service requirement when the flow chart plug-in is developed at the front end according to the user-defined file to be configured, realize the low coupling of the service logic and the plug-in, realize the high coupling on the plug-in configuration data and improve the applicable scene of the flow chart plug-in. In particular, the present invention applies to a flow diagram plug-in, named vue-process. vue-process is a self-developed plug-in based on vue open source framework supporting dynamic transfer of data between components via v-bind (vue instructions). And sending a to-be-configured file of user configuration data to vue-process through an interface for receiving data by the vue-process plug-in, thereby registering the configuration data of the to-be-configured node in a flow chart component in vue-process, namely, vue-process acquires basic configuration information corresponding to each to-be-configured node in the to-be-configured file when receiving the to-be-configured file uploaded by a user. The user can define the basic configuration information of each node to be configured into the file to be configured in the form of an object. Wherein the basic configuration information includes static node data and dynamic configuration data. The static node data specifically comprises node types, node icons, node sizes and the like, and the dynamic configuration information comprises node events, mask function nodes, inheritance function nodes and the like.
Further, in order to realize low coupling of the service logic and the plug-in, high coupling on configuration data is realized, each node to be configured is provided with a corresponding array, and basic configuration information corresponding to each node to be configured is respectively stored into the corresponding array. Therefore, the configuration data corresponding to one node is stored in one array, and the data is convenient to call and manage.
Step S20, calling a template grammar in a target plug-in, rendering a static pattern of each node to be configured based on static node data of the node to be configured, and generating icon information corresponding to the node to be configured so that a user drags the icon information to determine a target configuration node in the nodes to be configured;
in this embodiment, the basic configuration information in the to-be-configured file is transferred to a corresponding template component in the vue-process, where the template component is called a target plug-in, and the corresponding template component calls vue a template grammar, renders a node static style corresponding to each to-be-configured node based on static node data corresponding to each to-be-configured node, and generates corresponding icon information. And binding icon information corresponding to each node to a draggable event, and transmitting configuration information of each node to the draggable event in a parameter form so that a user drags each node to be configured into a canvas as an original node to configure a required target configuration node based on the icon information corresponding to each node to be configured.
Step S30, determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to a general event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data;
in this embodiment, when it is detected that a user drags a node to be configured to a canvas through a mouse, the node is a target configuration node, parameters of a drag event are obtained, that is, a node type of a current drag node is obtained, and target configuration data corresponding to the node type, such as a node type, a width and height, an icon, and a name or an icon defining an event, are filtered from stored basic configuration information. And determining a corresponding universal event template component in the target plug-in according to the node type in the target configuration data so as to generate a required target event component on the basis of the universal event template component. And adding target configuration data to the universal event template component, carrying out relevant configuration on the universal event template component, and generating a target event component by configuration.
Step S40, the target event component is bound with the corresponding node event, and a target node is generated in the target plug-in based on the target time component after the node event is bound.
In this embodiment, after data is added, that is, the configured target event component binds the node event customized in the to-be-configured file, so that the target node can be generated in the target plug-in. If the acquired event data is injected into the right-key menu component, when the user triggers a right-key instruction, a corresponding menu list is displayed. And when the user clicks the menu item, the event operation is transmitted to the outside of the component for external use by a $emit method, namely a vue sub-component triggering the custom event method of the parent component.
Further, step S40 further includes:
and acquiring a node configuration sequence of the target configuration node and a corresponding registration node event, and creating a target workflow corresponding to the target configuration node based on the registration node time and the node configuration sequence.
In this embodiment, after the node initiates rendering at vue-process plugin, the workflow can be customized at the page dragging node, after the user dragging node is detected, the node configuration sequence is determined according to the direction of the connecting line arrow between the dragging nodes, and the corresponding registered node event, such as a right key triggering menu list, is used to create the completed workflow.
The embodiment provides a configuration method of a plug-in node, which comprises the steps of obtaining basic configuration information of a node to be configured in a file to be configured when receiving the file to be configured uploaded by a user, wherein the basic configuration information comprises static node data and dynamic configuration data; invoking a template grammar in a target plug-in, rendering a static pattern of each node to be configured based on static node data of the node to be configured, and generating icon information corresponding to the node to be configured so that a user drags the icon information to determine a target configuration node in the nodes to be configured; determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to a universal event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data; binding the target event component with the corresponding node event, and generating a target node in the target plug-in based on the target time component after binding the node event. By the method, when the flow chart plug-in is developed at the front end according to the user-defined file to be configured, the node configuration can be customized according to the service requirement, the low coupling between the service logic and the plug-in is realized, the high coupling on the plug-in configuration data is realized, the applicable scene of the flow chart plug-in is improved, and the technical problem of the development efficiency of the drawing plug-in the conventional banking system is solved.
Further, based on the first embodiment of the configuration method of the plug-in node of the present invention, a second embodiment of the configuration method of the plug-in node of the present invention is provided.
In this embodiment, before the step S20, the method further includes:
and storing the dynamic configuration data to a state manager of a target plug-in, and registering the node event corresponding to the dynamic configuration data according to the event name and the target instruction in the dynamic configuration data.
In this embodiment, the configuration data of the node to be configured is transferred to the flowchart component through a parameter transferring mode between the vue parent-child components, such as a v-bind instruction, the static node data is bound to an html template, and the dynamic configuration data is stored in the vuex state manager for global use by the component.
When a node adjustment instruction triggered by a user based on a user-defined input box is detected, acquiring a current node name and node setting information in the node adjustment instruction;
and modifying initial node information corresponding to the current node stored in the state manager based on the node setting information so as to adjust page information of the current node.
In this embodiment, a function of user-defining and convenient modification of node related information is provided, that is, a user-defined input box is added to a plug-in page of a flowchart, and when a user inputs the width and height of a corresponding node and confirms, a node adjustment instruction is triggered. And acquiring the current node name and the node setting information in the node adjustment instruction, and modifying the initial node information, such as the width and height data, of the corresponding node in the vuex as the initial information of all the nodes is stored in the state manager in the vuex. When the node template is created, css style data are both bound in two directions, so that the node information in the vuex is modified, the size of a corresponding node in the plug-in can respond to the change, and the page information of the current node can be adjusted.
Further, based on the third embodiment of the configuration method of the plug-in node of the present invention, the third embodiment of the configuration method of the plug-in node of the present invention is provided.
In this embodiment, the step 10 specifically includes:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, and whether the nodes to be configured are configurable nodes or not is judged according to a preset white list;
if the node to be configured is an unconfigurable node, determining relevant configuration information corresponding to the unconfigurable node, and deleting the relevant configuration information from the basic configuration information.
In this embodiment, basic configuration information in a file to be configured is filtered through a white list provided by an interface through a user permission interface provided by a background, so as to obtain a filtered supportable node configuration list, so that the supportable node configuration list can be managed conveniently according to different users, and controllability is enhanced.
Further, before the step 20, the method further includes:
acquiring the node type of the node to be configured, and acquiring script content corresponding to the node to be configured when the node type of the node to be configured is a script type;
rendering the static style of the node to be configured based on the execution result corresponding to the script content, and generating icon information corresponding to the node to be configured.
In this embodiment, the node custom type can be supported, i.e. the required type is custom defined according to different service requirements. If a node of a shell script type is defined, setting { type: shell } in a node object of a file to be configured, and when a user drags the node to a canvas to perform related business operation, if a double-click node obtains corresponding script content from a background through an interface, then the corresponding script content can be obtained according to the node type. And rendering the static style of the node to be configured based on the execution result corresponding to the script content, and generating icon information corresponding to the node to be configured.
Further, after the step S40, the method further includes:
and when detecting that the shielding key words exist in the to-be-configured file, acquiring the to-be-shielded node name, and setting the to-be-shielded node as unavailable in the target plug-in unit based on the to-be-shielded node name.
In this embodiment, when using the vue-process plugin, the node may have default menu events (e.g., delete, copy, view basic information), so as to better meet the customization needs of the user, provide the user with specific functions of shielding, and perform custom configuration. For example, the copy function is masked, that is, the configuration file parameter of the copy node is set to defaultmenu=false in the to-be-configured file.
The invention also provides a configuration device of the plug-in node, which comprises:
the data configuration module is used for acquiring basic configuration information of nodes to be configured in a file to be configured when receiving the file to be configured uploaded by a user, wherein the basic configuration information comprises static node data and dynamic configuration data;
the icon generating module is used for calling the template grammar in the target plug-in and rendering the static style of each node to be configured based on the static node data of the node to be configured to generate icon information corresponding to the node to be configured so that a user drags the icon information to determine the target configuration node in the nodes to be configured;
the data confirmation module is used for determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to the universal event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data;
the node configuration module is used for binding the target event component with the corresponding node event and generating a target node in the target plug-in based on the target time component after binding the node event.
Further, the configuration device of the plug-in node further includes:
the node event registration module is used for storing the dynamic configuration data to a state manager of a target plug-in, and registering the node event corresponding to the dynamic configuration data according to the event name and the target instruction in the dynamic configuration data.
Further, the configuration method of the plug-in node further comprises a node adjustment module, wherein the node adjustment module is used for:
when a node adjustment instruction triggered by a user based on a user-defined input box is detected, acquiring a current node name and node setting information in the node adjustment instruction;
and modifying initial node information corresponding to the current node stored in the state manager based on the node setting information so as to adjust page information of the current node.
Further, the configuration device of the plug-in node further includes:
and the workflow creation module is used for acquiring the node configuration sequence of the target configuration node and the corresponding registered node event, and creating the target workflow corresponding to the target configuration node based on the registered node time and the node configuration sequence.
Further, the configuration device of the plug-in node further comprises a node information screening module, wherein the node information screening module is used for:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, and whether the nodes to be configured are configurable nodes or not is judged according to a preset white list;
if the node to be configured is an unconfigurable node, determining relevant configuration information corresponding to the unconfigurable node, and deleting the relevant configuration information from the basic configuration information.
Further, the data configuration module is further configured to:
setting corresponding arrays for each node to be configured, and storing basic configuration information corresponding to each node to be configured to the corresponding arrays respectively.
Further, the configuration device of the plug-in node further comprises a node custom module, wherein the node custom module is used for:
acquiring the node type of the node to be configured, and acquiring script content corresponding to the node to be configured when the node type of the node to be configured is a script type;
rendering the static style of the node to be configured based on the execution result corresponding to the script content, and generating icon information corresponding to the node to be configured.
Further, the configuration device of the plug-in node further comprises a node shielding module, wherein the node shielding module is used for:
and when detecting that the shielding key words exist in the to-be-configured file, acquiring the to-be-shielded node name, and setting the to-be-shielded node as unavailable in the target plug-in unit based on the to-be-shielded node name.
The method executed by each program module may refer to each embodiment of the configuration method of the plug-in node of the present invention, which is not described herein.
The invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores therein a configuration program of a plug-in node, which when executed by a processor, implements the steps of the configuration method of a plug-in node as described above.
The method implemented when the configuration program of the plug-in node running on the processor is executed may refer to various embodiments of the configuration method of the plug-in node of the present invention, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (14)

1. The configuration method of the plug-in node is characterized by comprising the following steps of:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, wherein the basic configuration information comprises static node data and dynamic configuration data;
invoking a template grammar in a target plug-in, rendering a static pattern of each node to be configured based on static node data of the node to be configured, and generating icon information corresponding to the node to be configured so that a user drags the icon information to determine a target configuration node in the nodes to be configured;
determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to a universal event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data;
binding the target event component with the corresponding node event, and generating a target node in the target plug-in based on the target event component after binding the node event.
2. The method for configuring plug-in nodes according to claim 1, wherein when receiving a file to be configured uploaded by a user, obtaining basic configuration information of the nodes to be configured in the file to be configured, where the basic configuration information includes static node data and dynamic configuration data, and further includes:
setting corresponding arrays for each node to be configured, and storing basic configuration information corresponding to each node to be configured to the corresponding arrays respectively.
3. The method for configuring plug-in nodes according to claim 1, wherein the step of calling the template grammar in the target plug-in and rendering the static style of each node to be configured based on the static node data of the node to be configured to generate icon information corresponding to the node to be configured so that a user drags the icon information to determine the target configuration node in the nodes to be configured further comprises:
and storing the dynamic configuration data to a state manager of a target plug-in, and registering the node event corresponding to the dynamic configuration data according to the event name and the target instruction in the dynamic configuration data.
4. The method for configuring plug-in nodes according to claim 3, wherein the step of calling the template grammar in the target plug-in and rendering the static style of each node to be configured based on the static node data of the node to be configured to generate icon information corresponding to the node to be configured so that a user drags the icon information to determine the target configuration node in the nodes to be configured further comprises:
when a node adjustment instruction triggered by a user based on a user-defined input box is detected, acquiring a current node name and node setting information in the node adjustment instruction;
and modifying initial node information corresponding to the current node stored in the state manager based on the node setting information so as to adjust page information of the current node.
5. The method for configuring plug-in nodes according to claim 1, wherein the step of binding the target event component to the corresponding node event and generating the target node in the target plug-in based on the target event component after the node event binding further comprises:
acquiring a node configuration sequence of the target configuration node and a corresponding registration node event, and creating a target workflow corresponding to the target configuration node based on the registration node event and the node configuration sequence.
6. The method for configuring plug-in nodes according to claim 1, wherein when receiving a file to be configured uploaded by a user, the step of obtaining basic configuration information of the nodes to be configured in the file to be configured, where the basic configuration information includes static node data and dynamic configuration data specifically includes:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, and whether the nodes to be configured are configurable nodes or not is judged according to a preset white list;
if the node to be configured is an unconfigurable node, determining relevant configuration information corresponding to the unconfigurable node, and deleting the relevant configuration information from the basic configuration information.
7. The method for configuring plug-in nodes according to claim 1, wherein the step of calling the template grammar in the target plug-in and rendering the static style of each node to be configured based on the static node data of the node to be configured to generate icon information corresponding to the node to be configured so that a user drags the icon information to determine the target configuration node in the nodes to be configured further comprises:
acquiring the node type of the node to be configured, and acquiring script content corresponding to the node to be configured when the node type of the node to be configured is a script type;
rendering the static style of the node to be configured based on the execution result corresponding to the script content, and generating icon information corresponding to the node to be configured.
8. The method for configuring a plug-in node according to any one of claims 1 to 7, wherein the method for configuring a plug-in node further comprises:
and when detecting that the shielding key words exist in the to-be-configured file, acquiring the to-be-shielded node name, and setting the to-be-shielded node as unavailable in the target plug-in unit based on the to-be-shielded node name.
9. A configuration device of a plug-in node, characterized in that the configuration device of a plug-in node comprises:
the data configuration module is used for acquiring basic configuration information of nodes to be configured in a file to be configured when receiving the file to be configured uploaded by a user, wherein the basic configuration information comprises static node data and dynamic configuration data;
the icon generating module is used for calling the template grammar in the target plug-in and rendering the static style of each node to be configured based on the static node data of the node to be configured to generate icon information corresponding to the node to be configured so that a user drags the icon information to determine the target configuration node in the nodes to be configured;
the data confirmation module is used for determining target configuration data corresponding to the target configuration node in the dynamic configuration data according to the node information of the target configuration node, adding the target configuration data to the universal event template component, and generating a corresponding target event component according to the node type of the target configuration node and the target configuration data;
the node configuration module is used for binding the target event component with the corresponding node event and generating a target node in the target plug-in based on the target event component after binding the node event.
10. The device for configuring a plug-in node according to claim 9, wherein the device for configuring a plug-in node further comprises:
the node event registration module is used for storing the dynamic configuration data to a state manager of a target plug-in, and registering the node event corresponding to the dynamic configuration data according to the event name and the target instruction in the dynamic configuration data.
11. The device for configuring a plug-in node according to claim 9, wherein the device for configuring a plug-in node further comprises:
and the workflow creation module is used for acquiring the node configuration sequence of the target configuration node and the corresponding registration node event, and creating the target workflow corresponding to the target configuration node based on the registration node event and the node configuration sequence.
12. The device for configuring a plug-in node according to claim 9, wherein the device for configuring a plug-in node further comprises a node information filtering module for:
when a to-be-configured file uploaded by a user is received, basic configuration information of nodes to be configured in the to-be-configured file is obtained, and whether the nodes to be configured are configurable nodes or not is judged according to a preset white list;
if the node to be configured is an unconfigurable node, determining relevant configuration information corresponding to the unconfigurable node, and deleting the relevant configuration information from the basic configuration information.
13. A configuration device of a plug-in node, characterized in that the configuration device of a plug-in node comprises: memory, a processor and a configuration program of a plug-in node stored on the memory and executable on the processor, which configuration program of a plug-in node, when executed by the processor, implements the steps of the configuration method of a plug-in node according to any one of claims 1 to 8.
14. A computer-readable storage medium, on which a configuration program of a plug-in node is stored, which when executed by a processor implements the steps of the configuration method of a plug-in node according to any one of claims 1 to 8.
CN201910977749.4A 2019-10-15 2019-10-15 Configuration method, device, equipment and storage medium of plug-in node Active CN110708202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910977749.4A CN110708202B (en) 2019-10-15 2019-10-15 Configuration method, device, equipment and storage medium of plug-in node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910977749.4A CN110708202B (en) 2019-10-15 2019-10-15 Configuration method, device, equipment and storage medium of plug-in node

Publications (2)

Publication Number Publication Date
CN110708202A CN110708202A (en) 2020-01-17
CN110708202B true CN110708202B (en) 2023-12-05

Family

ID=69199902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910977749.4A Active CN110708202B (en) 2019-10-15 2019-10-15 Configuration method, device, equipment and storage medium of plug-in node

Country Status (1)

Country Link
CN (1) CN110708202B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542796B (en) * 2020-04-22 2023-08-08 腾讯科技(深圳)有限公司 Video evaluation method, device, computer equipment and storage medium
CN111522601A (en) * 2020-04-22 2020-08-11 北京思特奇信息技术股份有限公司 Back-end operation method and system for flexibly configuring multiple component tasks
CN111651160B (en) * 2020-06-02 2023-07-04 上海泛微网络科技股份有限公司 Plug-in construction and webpage design method and device
CN112130856B (en) * 2020-09-29 2023-11-03 重庆紫光华山智安科技有限公司 Strong-expansibility front-end visual interface generation method, system, medium and terminal
CN113050927B (en) * 2021-04-12 2024-01-23 平安国际智慧城市科技股份有限公司 Authority control method and device based on custom instruction and computer equipment
CN113687872B (en) * 2021-07-19 2024-03-29 三六零数字安全科技集团有限公司 Selection component control method, device, storage medium and apparatus
CN114253630B (en) * 2021-12-23 2023-07-25 上海新炬网络信息技术股份有限公司 Method for realizing log storage based on Java section modification Form change information

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668229A (en) * 1992-05-27 1994-03-11 Nec Corp Graphic user interface preparation support system
CN101464805A (en) * 2008-12-24 2009-06-24 中兴通讯股份有限公司 Plug-in management method and system thereof
CN103617505A (en) * 2013-12-05 2014-03-05 用友软件股份有限公司 Dynamic analysis and display system and method for enterprise flow chart
CN105808217A (en) * 2014-12-30 2016-07-27 航天信息软件技术有限公司 Flow chart drawing method and system based on XML
CN106897809A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Workflow creation method, workflow designer and workflow system
US9846682B1 (en) * 2013-11-25 2017-12-19 Amazon Technologies, Inc. Cross-platform presentation of digital content
CN108053873A (en) * 2017-12-29 2018-05-18 安徽方正医疗信息技术有限公司 A kind of design method of the public control node tree based on full institute's general service
CN108345482A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 The self-defined edit methods of dynamic page, device, electronic equipment and storage medium
CN108597028A (en) * 2018-04-11 2018-09-28 北京邮电大学 A kind of method, apparatus and equipment of continuous load Web AR objects
CN109522005A (en) * 2018-11-15 2019-03-26 苏州友教习亦教育科技有限公司 Cross-platform GRAPHICAL PROGRAMMING method
CN110232162A (en) * 2019-05-29 2019-09-13 北京中亦安图科技股份有限公司 A kind of flow defining method and system based on HTML5

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110047557A1 (en) * 2009-08-19 2011-02-24 Nokia Corporation Method and apparatus for expedited service integration using action templates
US8307277B2 (en) * 2010-09-10 2012-11-06 Facebook, Inc. Efficient event delegation in browser scripts
US8994746B2 (en) * 2012-06-27 2015-03-31 Google Inc. System and method for generating a flow based on multiple types of interactions
US10397064B2 (en) * 2016-04-20 2019-08-27 Servicenow, Inc. System and method for custom graph generation

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0668229A (en) * 1992-05-27 1994-03-11 Nec Corp Graphic user interface preparation support system
CN101464805A (en) * 2008-12-24 2009-06-24 中兴通讯股份有限公司 Plug-in management method and system thereof
US9846682B1 (en) * 2013-11-25 2017-12-19 Amazon Technologies, Inc. Cross-platform presentation of digital content
CN103617505A (en) * 2013-12-05 2014-03-05 用友软件股份有限公司 Dynamic analysis and display system and method for enterprise flow chart
CN105808217A (en) * 2014-12-30 2016-07-27 航天信息软件技术有限公司 Flow chart drawing method and system based on XML
CN106897809A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Workflow creation method, workflow designer and workflow system
CN108053873A (en) * 2017-12-29 2018-05-18 安徽方正医疗信息技术有限公司 A kind of design method of the public control node tree based on full institute's general service
CN108345482A (en) * 2017-12-29 2018-07-31 广州品唯软件有限公司 The self-defined edit methods of dynamic page, device, electronic equipment and storage medium
CN108597028A (en) * 2018-04-11 2018-09-28 北京邮电大学 A kind of method, apparatus and equipment of continuous load Web AR objects
CN109522005A (en) * 2018-11-15 2019-03-26 苏州友教习亦教育科技有限公司 Cross-platform GRAPHICAL PROGRAMMING method
CN110232162A (en) * 2019-05-29 2019-09-13 北京中亦安图科技股份有限公司 A kind of flow defining method and system based on HTML5

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
3dsMax制作建筑工程效果和动画的各种插件技巧;魏国;;电子技术与软件工程(17);全文 *
Huibo LI ; Peng GONG ; Yu LIU ; Guolin LI ; Dan SHAN.PDSI-based Static Route Online Configuration Method for QualNet Simulator.2019 21st International Conference on Advanced Communication Technology (ICACT).2019,全文. *
基于物联网架构的电子小票服务系统的设计与实现;黄鑫;吴跃前;朱衡德;;华南师范大学学报(自然科学版)(02);全文 *
逻辑漏洞检测与软件行为分析关键技术研究;何博远;中国博士学位论文电子期刊网;全文 *

Also Published As

Publication number Publication date
CN110708202A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN110708202B (en) Configuration method, device, equipment and storage medium of plug-in node
US11573694B2 (en) Gesture based workflows in a collaboration system
US11635974B2 (en) Providing a different configuration of added functionality for each of the stages of predeployment, deployment, and post deployment using a layer of abstraction
US10545658B2 (en) Object processing and selection gestures for forming relationships among objects in a collaboration system
WO2023093414A1 (en) Micro-application development method and apparatus, and device, storage medium and program product
US8930824B2 (en) Facilitating propagation of user interface patterns or themes
CN108182060A (en) Point methods, mobile terminal and system are buried in a kind of mixing application
US9218100B2 (en) Method and system for partitioning asset management plugins
US20110307238A1 (en) Methods for utilizing a javascript emulator in a web content proxy server and devices thereof
CN106547580B (en) Method and device for hooking function, mobile terminal and storage medium
CN111782314A (en) Method and device for processing webpage form, electronic equipment and storage medium
JP7122270B2 (en) SYSTEM AND METHOD FOR SUPPORTING APPLICATION SOFTWARE DEVELOPMENT
CN105074652B (en) For remotely providing the method and computer system of application function to printer
CN113688173A (en) Report information processing method and device, electronic equipment and storage medium
US20170235943A1 (en) Application Access Control Method and Apparatus
US9946557B2 (en) Computing device with script execution application
US20160313958A1 (en) Cross-platform command extensibility
JP2011238091A (en) Information processing device, image forming device, information processing method, program and recording medium
CN114185845A (en) File management method and device, computer equipment and storage medium
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
KR20180060360A (en) Method and Apparatus of providing user-defined UI in administrative management program provided in cloud computing
CN114116077A (en) Picture editing method and device, electronic equipment and medium
CN112395028B (en) Page checking method, device, terminal and storage medium
KR20050120289A (en) Method for realizing user interface of mobile terminal
CN113658293B (en) Picture drawing 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
GR01 Patent grant
GR01 Patent grant