CN111427560A - Visualized creation method and device of rule code and computer equipment - Google Patents
Visualized creation method and device of rule code and computer equipment Download PDFInfo
- Publication number
- CN111427560A CN111427560A CN202010124705.XA CN202010124705A CN111427560A CN 111427560 A CN111427560 A CN 111427560A CN 202010124705 A CN202010124705 A CN 202010124705A CN 111427560 A CN111427560 A CN 111427560A
- Authority
- CN
- China
- Prior art keywords
- component
- user
- code
- rule
- preset
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- 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/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Abstract
The application discloses a visual creating method and device of rule codes and computer equipment.
Description
Technical Field
The present application relates to the field of rule engines, and in particular, to a method, an apparatus, and a computer device for visually creating a rule code.
Background
A component object is an object that inserts a generic JavaBean object into the workflow memory of the rules engine when a rule is invoked. The rules can perform any read and write operations on the component object. The application system data required by the rule during calculation is set in the component object, so that the rule can realize the read-write operation of the application data by reading and writing the component object data.
The common java bean object requires a user to have a certain computer java programming language base and is only suitable for software developers. In the prior visualization rule engine system, the component library is realized by a developer through coding and is preset in the system when the system is online. When a business person configures rules, the business person can only select components from the existing component library, and when the business person finds that new components need to be used or attributes need to be expanded for the existing components, the business person can only provide requirements for developing the new components for developers. This limits the flexibility of the ordinary user of the application system to a certain extent according to the actual business logic design rules.
Disclosure of Invention
The application mainly aims to provide a method and a device for visually creating a rule code and computer equipment, and aims to solve the technical problem that a common user cannot design rules according to actual business logic.
In order to achieve the above object of the invention, the present application proposes a method for creating a visualization of a rule code, including:
acquiring a component creating command, and displaying a creating interface of the component, wherein a plurality of first filling windows for inputting different basic information and a plurality of second filling windows for inputting different attribute information are preset on the creating interface; wherein the basic information is used for describing component information of the component; the attribute information is used for describing the attribute of the component; different first filling windows and different second filling windows are respectively corresponding to different marks;
receiving first basic information input by a user through each first filling window, and receiving first attribute information input by the user through each second filling window;
reading each piece of first basic information and a first mark of the first window filling corresponding to each piece of first basic information, and each piece of first attribute information and a second mark of the second window filling corresponding to each piece of first attribute information;
inserting the first basic information and the first attribute information into a preset component code frame according to each first mark and each second mark to form a component code; wherein different insertion positions in the component code frame are provided with marks matching the first mark or the second mark;
generating a visualized component object according to the component code, and storing the component object into a preset visualized component library;
receiving a component object inlet dragged by a user from the visual component library in a preset rule component area;
receiving operation symbols added among all the component object inlets by a user, and enabling the component objects corresponding to all the component object inlets to form a business rule with operation logic, wherein the operation symbols are visual symbols and are stored in a preset visual operation symbol library, and different operation symbols correspond to different operation logic;
and inserting the business rules into a preset rule engine code frame to form corresponding rule codes.
Further, the component code framework comprises a basic information code framework and an attribute information code framework; the step of inserting the first basic information and the first attribute information into a preset component code frame according to each of the first marks and each of the second marks to form a component code includes:
searching a first insertion position matched with each first mark in the basic information code frame, and searching a second insertion position matched with each second mark in the attribute information code frame;
converting each piece of the first basic information and each piece of the first attribute information into a format corresponding to the component code framework, and inserting each piece of the first basic information and each piece of the first attribute information after the format conversion into each corresponding first insertion bit and each corresponding second insertion bit to form the component code.
Further, the basic information includes a component name and a component description, and the step of receiving the first basic information input by the user through each first filler window includes:
reading a first name input by a user in a first fill-in window corresponding to the component name, and reading a first description input by the user in a first fill-in window corresponding to the component description;
extracting a plurality of keywords of the first description, and forming a summary statement corresponding to the first description by the plurality of keywords;
calculating the similarity between the first name and the summary statement;
and if the similarity is smaller than a preset similarity threshold, generating floating window information which requires the user to refill the first name or the first description until the similarity of the first name and the summary sentence of the first description filled by the user is larger than or equal to the similarity threshold.
Further, after the step of inserting the business rule into a preset rule engine code frame to form a corresponding rule code, the method includes:
after the rule codes are operated to complete the corresponding auditing task, the biological characteristics of the user are obtained, and whether the characteristics identical to the biological characteristics exist or not is searched in a preset characteristic library;
if the rule code exists, the rule code is stored for a long time, otherwise, the rule code and the component object are automatically deleted after a preset time length.
Further, the step of searching the preset feature library for the presence of the same features as the biometric features comprises:
generating a target object for attracting a user to watch at a random position on a display screen corresponding to a system for operating the rule codes, simultaneously recording the coordinates of the target object, and acquiring a face image of the user;
determining the face position of a face relative to the display screen, the deflection angle of the face relative to the display screen and the visual angle of human eyes relative to the display screen according to the face image;
judging whether the user visually observes the target object or not according to the coordinate of the target object, the face position, the deflection angle and the visual angle;
if yes, judging that the user is a living user, and generating a first life command; the first command is to search whether the same characteristics as the biological characteristics exist in a preset characteristic library.
The present application further provides a visualized creating apparatus of a rule code, including:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a component creating command and displaying a creating interface of a component, and a plurality of first filling windows used for inputting different basic information and a plurality of second filling windows used for inputting different attribute information are preset on the creating interface; wherein the basic information is used for describing component information of the component; the attribute information is used for describing the attribute of the component; different first filling windows and different second filling windows are respectively corresponding to different marks;
a receiving unit, configured to receive first basic information input by a user through each first filler window, and receive first attribute information input by the user through each second filler window;
a reading unit, configured to read each piece of the first basic information and a first mark of the first window padding corresponding to each piece of the first basic information, and each piece of the first attribute information and a second mark of the second window padding corresponding to each piece of the first attribute information;
a first inserting unit, configured to insert the first basic information and the first attribute information into a preset component code frame according to each of the first marks and each of the second marks, so as to form a component code; wherein different insertion positions in the component code frame are provided with marks matching the first mark or the second mark;
the generating and storing unit is used for generating a visualized component object according to the component code and storing the component object into a preset visualized component library;
the receiving and dragging unit is used for receiving a component object inlet dragged by a user from the visual component library in a preset rule component area;
the adding unit is used for receiving operation symbols added among the component object inlets by a user and enabling the component objects corresponding to the component object inlets to form a business rule with operation logic, wherein the operation symbols are visual symbols and are stored in a preset visual operation symbol library, and different operation symbols correspond to different operation logic;
and the second inserting unit is used for inserting the business rule into a preset rule engine code frame to form a corresponding rule code.
Further, the component code framework comprises a basic information code framework and an attribute information code framework; the root first insertion unit comprising:
the searching module is used for searching a first insertion position matched with each first mark in the basic information code frame and searching a second insertion position matched with each second mark in the attribute information code frame;
and the conversion insertion module is used for converting each piece of first basic information and each piece of first attribute information into a format corresponding to the component code framework, and inserting each piece of first basic information and each piece of first attribute information after format conversion into each corresponding first insertion position and each corresponding second insertion position to form the component code.
Further, the basic information includes a component name and a component description, and the receiving unit includes:
the reading module is used for reading a first name input by a user in a first fill-in window corresponding to the component name and reading a first description input by the user in a first fill-in window corresponding to the component description;
the extraction combination module is used for extracting a plurality of keywords of the first description and combining the keywords into a summary statement corresponding to the first description;
the calculation module is used for calculating the similarity between the first name and the summary statement;
and the generating module is used for generating floating window information which requires the user to refill the first name or the first description if the similarity is smaller than a preset similarity threshold value until the similarity of the first name and the summary sentence of the first description filled by the user is larger than or equal to the similarity threshold value.
The present application further provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
According to the method, the device and the computer equipment for visually creating the rule codes, the component code frame and the rule engine code frame are prepared in advance, and then basic information and attribute information input by a user, operation logic information and the like are inserted into the corresponding insertion positions.
Drawings
Fig. 1 is a flowchart illustrating a method for creating a visualization of a rule code according to an embodiment of the present application;
fig. 2 is a schematic block diagram illustrating a structure of a visualization creation apparatus for rule codes according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a visualization creating method for a rule code, including the steps of:
s1, acquiring a component creating command, and displaying a component creating interface, wherein a plurality of first fill-in windows for inputting different basic information and a plurality of second fill-in windows for inputting different attribute information are preset on the creating interface; wherein the basic information is used for describing component information of the component; the attribute information is used for describing the attribute of the component; different first filling windows and different second filling windows are respectively corresponding to different marks;
s2, receiving first basic information input by a user through each first filling window, and receiving first attribute information input by the user through each second filling window;
s3, reading each piece of the first basic information and the first label of the first window padding corresponding to each piece of the first basic information, and each piece of the first attribute information and the second label of the second window padding corresponding to each piece of the first attribute information;
s4, inserting the first basic information and the first attribute information into a preset component code frame according to the first marks and the second marks to form a component code; wherein different insertion positions in the component code frame are provided with marks matching the first mark or the second mark;
s5, generating a visual component object according to the component code, and storing the component object in a preset visual component library;
s6, receiving a component object inlet dragged by a user from the visual component library in a preset rule component area;
s7, receiving operation symbols added among the component object inlets by a user, and enabling the component objects corresponding to the component object inlets to form a business rule with operation logic, wherein the operation symbols are visual symbols and are stored in a preset visual operation symbol library, and different operation symbols correspond to different operation logic;
s8, inserting the business rules into a preset rule engine code frame to form corresponding rule codes.
In this embodiment, a user only needs to input corresponding information in the preset first filler window and the second filler window, and can obtain a final component code without writing a code, thereby obtaining a visual component object. The basic information is used for describing component information of the component, such as component name, component classification, component ID, component icon, component description, starting state and the like; the attribute information is used to describe attributes of the component, such as attribute name, attribute ID, data type, data source, activation status, and the like. In this embodiment, the data source in the attribute information may be configured in advance, for example, in the form of a key-value such as gender, and 1 is designated to represent a male, and 2 is designated to represent a female. The specific process comprises the following steps: inputting corresponding basic information in each first window filler, such as description within 30 characters of a component name, wherein a component ID can be a unique value input by a user or a unique value automatically generated by a system; the component classification is also generally to call a preset classification dictionary for screening, and certainly, the component classification can also be manually input by a user; the component icon is selected from a pre-associated icon library and is used as an entry icon of the finally formed component object; the component description is a description of the interpretation of the component input by the user, and generally requires control within 150 words. Corresponding attribute information, such as an attribute name describing the attribute, an automatically generated or user-input attribute ID, etc., is input in each second fill-in window, which is not described herein again. The assembly code frame is equivalent to a filling-in-place question, each filling-in-place is an insertion position, each insertion position is provided with an identifier, the identifiers of the insertion positions are different, the identifiers are respectively matched with the first mark and the second mark in a one-to-one mode, further, the first basic information and the first attribute information can be accurately inserted into the assembly code frame to generate a complete assembly code, a visual assembly object is generated according to the assembly code, and the entry information of the assembly object is the assembly picture. The visual component object is stored in a preset visual component library, the entry information of the visual component object is mapped to a component column in a visual interface for generating the business rule, when the entry information of the component in the component column is clicked for a long time, a floating window is generated, and the component description corresponding to the component object is displayed in the floating window. A preset visual operation symbol column also exists in a visual interface for generating the business rule, and different operation symbols in the operation symbol column are associated with corresponding operation logic functions and the like; and a business rule component column is also arranged in a visual interface for generating the business rule, the entry information corresponding to different component objects in the component column is dragged into the rule component column, then required operation symbols are added among the entry information, namely the business rule of the component object corresponding to each entry information is obtained, and then the component ID of each component in the business rule and the operation symbol ID corresponding to each operation symbol are inserted into a preset rule engine code frame according to the rules, namely the corresponding rule code is formed. When the rule code is operated, the corresponding component object is called according to the component ID, the operation logic function corresponding to the operation symbol is called according to the operation symbol ID, and the like, so that the implementation of the business rule is realized.
In one embodiment, the component code framework includes a basic information code framework and an attribute information code framework; the step S4 of inserting the first basic information and the first attribute information into a preset component code frame according to each of the first marks and each of the second marks to form a component code includes:
s41, searching a first insertion position matched with each first mark in the basic information code frame, and searching a second insertion position matched with each second mark in the attribute information code frame;
s42, converting each piece of the first basic information and each piece of the first attribute information into a format corresponding to the component code frame, and inserting each piece of the first basic information and each piece of the first attribute information after the format conversion into each corresponding first insertion bit and each corresponding second insertion bit to form the component code.
In the embodiment, the component code frame is divided into a basic information code frame and an attribute information code frame, and then the insertion positions of the information to be inserted are matched at the same time, so that the matching speed can be improved; then, the first basic information and the first attribute information are simultaneously inserted into the corresponding insertion bits, increasing the speed of forming the component code. In a specific embodiment, before the first basic information and the first attribute information are inserted into the corresponding first insertion bits and second insertion bits, the data format of the first basic information and the first attribute information needs to be converted into the data format corresponding to the component code framework, so that the component code that can normally run is obtained after the first basic information and the first attribute information are inserted.
In one embodiment, the step of receiving the first basic information input by the user through each first filler window includes:
s21, reading a first name input by a user in a first fill-in window corresponding to the component name, and reading a first description input by the user in a first fill-in window corresponding to the component description;
s22, extracting a plurality of keywords of the first description, and forming a summary sentence corresponding to the first description by the keywords;
s23, calculating the similarity between the first name and the summary statement;
and S24, if the similarity is smaller than a preset similarity threshold, generating floating window information which requires the user to refill the first name or the first description until the similarity between the first name and the summary sentence of the first description filled by the user is larger than or equal to the similarity threshold.
In this embodiment, it is mainly for the purpose that the component names and the component descriptions are substantially identical, that is, the meanings expressed by the first names and the first descriptions are substantially the same, so that the user can correctly understand the component by seeing the component names. The method for extracting the keywords can be used for extracting by any semantic analysis method in the prior art. The similarity may also be calculated by any conventional calculation method, for example, after all the summary sentences of the first name and the first description are vectorized, the similarity is calculated.
In an embodiment, after the step S8 of inserting the business rule into a preset rule engine code frame to form a corresponding rule code, the method includes:
s9, after the rule codes are operated to complete the corresponding auditing task, the biological characteristics of the user are obtained, and whether the characteristics identical to the biological characteristics exist or not is searched in a preset characteristic library;
and S10, if the rule code exists, the rule code is stored for a long time, otherwise, the rule code and the component object are automatically deleted after a preset time length.
In this embodiment, the biometric features may be fingerprint features, face features, iris features, voiceprint features, and the like, which represent unique identities of users. The above-mentioned feature library generally stores the biometric features of a person who has a system for visually creating rule codes by using authority. And when the biological characteristics of the user do not have matched characteristics in the characteristic library, the user is not a preset person with authority. In this embodiment, although the user is not a person with authority, after the user creates the completion rule code, the system still allows the user to use the rule code, only sets the time length of the use, for example, only allows the user to use the rule code for 10 minutes, and deletes all the created contents after 10 minutes. On the contrary, when the biological characteristics of the user have matched characteristics in the characteristic library, the user is a preset person with authority, and the created rule codes and the like can be stored for a long time. The present embodiment is mainly intended to prevent rule codes created by persons without permission from affecting persons with permission, for example, persons with permission are necessarily common persons of the system having the visual creation rule codes, for example, persons in a certain department of a certain company, and all created rule codes are created as needed for business, but persons without the system using the visual creation rule codes, and created rule codes are not determined as needed for business of the department, so that misoperation of users with permission is reduced, and rule codes, component objects, and the like created by users without permission are deleted after a preset time length. Of course, if a save instruction of a person having authority is received within the above-described specified time period, the storage can be performed for a long period of time.
In one embodiment, the step of searching the preset feature library for the presence of the same feature as the biometric feature includes:
s901, generating a target object for attracting a user to watch at a random position on a display screen corresponding to a system for operating the rule codes, recording coordinates of the target object, and collecting a face image of the user;
s902, determining the face position of a face relative to the display screen, the deflection angle of the face relative to the display screen and the visual angle of human eyes relative to the display screen according to the face image;
s903, judging whether the user visually observes the target object according to the coordinate of the target object, the face position, the deflection angle and the visual angle;
s904, if yes, the user is judged to be a living user, and a first life command is generated; the first command is to search whether the same characteristics as the biological characteristics exist in a preset characteristic library.
In this embodiment, the process from generating the target object to determining whether the user views the target object may be performed multiple times, each time the coordinates of the target object change, when the results of the multiple detections are that the user views the target object visually, or the ratio of viewing the target object is greater than a preset value, it is determined that the user is a living user, otherwise, it is determined that the user collected in the picture is a non-living body such as a picture, the subsequent step of searching for whether the feature same as the biometric feature exists in a preset feature library is stopped, and the value rule code and the component object are directly deleted. The target object can be a bright spot with a specified size, an icon with bright color and the like, when the user is a living user, the user can look up the target object naturally (unconsciously) after the target object appears on the display screen, and by utilizing the characteristic, whether the user is the living user can be judged well. The face position can be estimated according to the position of a camera on a display screen, such as the position of a face image in the whole shot image and the like; the deflection angle can be calculated according to the left and right conditions of the face image, and can be realized by any realizable method, which is not described in detail; the visual angle can be calculated according to the position of the eyeball in the eye, and further can be calculated by combining the deflection angle of the face, and can be calculated by a trigonometric function in geometry and the like. In the prior art, the living body detection is to send an action instruction, a user completes corresponding action according to the action instruction, and then judge whether the user makes corresponding action through an image analysis technology so as to judge whether the user is a living body user, wherein the action instruction is preset, and if a person familiar with the system can use a plurality of pictures shot in advance, the system can be deceived. In the method, natural reaction of a person is fully utilized, the target object is randomly generated, so that a malicious user cannot prepare a photo in advance for a deception system, and action instructions are not required to be generated and are finished under the non-active condition of the user, so that the detection efficiency and the user experience are improved.
According to the visualized establishment method of the rule codes, the component code frame and the rule engine code frame are prepared in advance, then basic information and attribute information input by a user, operation logic information and the like are inserted into the corresponding insertion positions, the method is simple and convenient, the components and the rule codes of the audit rules can be independently operated and completed by business personnel with non-IT attributes, the degree of dependence on developers is reduced, and the flexibility and convenience in writing the rule codes are improved.
Referring to fig. 2, an embodiment of the present application further provides a visualization creating apparatus for rule codes, including:
the acquiring unit 10 is configured to acquire a component creating command and display a creating interface of a component, where a plurality of first filler windows used for inputting different basic information and a plurality of second filler windows used for inputting different attribute information are preset on the creating interface; wherein the basic information is used for describing component information of the component; the attribute information is used for describing the attribute of the component; different first filling windows and different second filling windows are respectively corresponding to different marks;
a receiving unit 20, configured to receive first basic information input by a user through each first padding window, and receive first attribute information input by the user through each second padding window;
a reading unit 30, configured to read each piece of the first basic information and a first mark of the first window padding corresponding to each piece of the first basic information, and each piece of the first attribute information and a second mark of the second window padding corresponding to each piece of the first attribute information;
a first inserting unit 40, configured to insert the first basic information and the first attribute information into a preset component code frame according to each of the first marks and each of the second marks, so as to form a component code; wherein different insertion positions in the component code frame are provided with marks matching the first mark or the second mark;
a generating and storing unit 50, configured to generate a visualized component object according to the component code, and store the component object in a preset visualized component library;
a receiving and dragging unit 60, configured to receive, in a preset rule component area, a component object entry dragged by a user from the visual component library;
an adding unit 70, configured to receive an operation symbol added between each component object entry by a user, so that a component object corresponding to each component object entry forms a service rule with operation logic, where the operation symbol is a visual symbol and is stored in a preset visual operation symbol library, and different operation symbols correspond to different operation logics;
and a second inserting unit 80, configured to insert the business rule into a preset rule engine code frame to form a corresponding rule code.
In one embodiment, the component code framework includes a basic information code framework and an attribute information code framework; a first insertion unit 40 comprising:
the searching module is used for searching a first insertion position matched with each first mark in the basic information code frame and searching a second insertion position matched with each second mark in the attribute information code frame;
and the conversion insertion module is used for converting each piece of first basic information and each piece of first attribute information into a format corresponding to the component code framework, and inserting each piece of first basic information and each piece of first attribute information after format conversion into each corresponding first insertion position and each corresponding second insertion position to form the component code.
In one embodiment, the basic information includes a component name and a component description, and the receiving unit 20 includes:
the reading module is used for reading a first name input by a user in a first fill-in window corresponding to the component name and reading a first description input by the user in a first fill-in window corresponding to the component description;
the extraction combination module is used for extracting a plurality of keywords of the first description and combining the keywords into a summary statement corresponding to the first description;
the calculation module is used for calculating the similarity between the first name and the summary statement;
and the generating module is used for generating floating window information which requires the user to refill the first name or the first description if the similarity is smaller than a preset similarity threshold value until the similarity of the first name and the summary sentence of the first description filled by the user is larger than or equal to the similarity threshold value.
In an embodiment, the visualization creating apparatus for rule codes further includes:
the acquisition searching unit is used for operating the rule codes to complete the corresponding auditing task, acquiring the biological characteristics of the user and searching whether the characteristics identical to the biological characteristics exist in a preset characteristic library;
and the execution unit is used for storing the rule code for a long time if the characteristics which are the same as the biological characteristics are found in a preset characteristic library, or automatically deleting the rule code and the component object after a preset time length.
In an embodiment, the visualization creating apparatus for rule codes further includes:
the generating, recording and collecting unit is used for generating a target object for attracting a user to watch at a random position on a display screen corresponding to the system for operating the rule codes, simultaneously recording the coordinates of the target object and collecting a face image of the user;
the determining unit is used for determining the face position of the face relative to the display screen, the deflection angle of the face relative to the display screen and the visual angle of human eyes relative to the display screen according to the face image;
the judging unit is used for judging whether the user visually observes the target object according to the coordinate of the target object, the face position, the deflection angle and the visual angle;
an instruction generating unit, configured to determine that the user is a living user and generate a first life instruction if it is determined that the user visually observes the target object; the first command is to search whether the same characteristics as the biological characteristics exist in a preset characteristic library.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as various component codes. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the visualization creation method of the rule code of any of the above embodiments.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects may be applied.
The embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the visualization creation method of the rule code of any of the above embodiments is implemented.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by hardware that is instructed to be associated with a computer program that may be stored on a non-volatile computer-readable storage medium that, when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database or other medium provided herein and used in the embodiments may include non-volatile and/or volatile memory.
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, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.
Claims (10)
1. A visual creation method of rule codes is characterized by comprising the following steps:
acquiring a component creating command, and displaying a creating interface of the component, wherein a plurality of first filling windows for inputting different basic information and a plurality of second filling windows for inputting different attribute information are preset on the creating interface; wherein the basic information is used for describing component information of the component; the attribute information is used for describing the attribute of the component; different first filling windows and different second filling windows are respectively corresponding to different marks;
receiving first basic information input by a user through each first filling window, and receiving first attribute information input by the user through each second filling window;
reading each piece of first basic information and a first mark of the first window filling corresponding to each piece of first basic information, and each piece of first attribute information and a second mark of the second window filling corresponding to each piece of first attribute information;
inserting the first basic information and the first attribute information into a preset component code frame according to each first mark and each second mark to form a component code; wherein different insertion positions in the component code frame are provided with marks matching the first mark or the second mark;
generating a visualized component object according to the component code, and storing the component object into a preset visualized component library;
receiving a component object inlet dragged by a user from the visual component library in a preset rule component area;
receiving operation symbols added among all the component object inlets by a user, and enabling the component objects corresponding to all the component object inlets to form a business rule with operation logic, wherein the operation symbols are visual symbols and are stored in a preset visual operation symbol library, and different operation symbols correspond to different operation logic;
and inserting the business rules into a preset rule engine code frame to form corresponding rule codes.
2. A visual creation method of rule code according to claim 1, wherein the component code framework includes a basic information code framework and an attribute information code framework; the step of inserting the first basic information and the first attribute information into a preset component code frame according to each of the first marks and each of the second marks to form a component code includes:
searching a first insertion position matched with each first mark in the basic information code frame, and searching a second insertion position matched with each second mark in the attribute information code frame;
converting each piece of the first basic information and each piece of the first attribute information into a format corresponding to the component code framework, and inserting each piece of the first basic information and each piece of the first attribute information after the format conversion into each corresponding first insertion bit and each corresponding second insertion bit to form the component code.
3. A visual creation method of rule codes according to claim 1, wherein said basic information includes a component name and a component description, and said step of receiving first basic information input by a user through each of said first fill windows comprises:
reading a first name input by a user in a first fill-in window corresponding to the component name, and reading a first description input by the user in a first fill-in window corresponding to the component description;
extracting a plurality of keywords of the first description, and forming a summary statement corresponding to the first description by the plurality of keywords;
calculating the similarity between the first name and the summary statement;
and if the similarity is smaller than a preset similarity threshold, generating floating window information which requires the user to refill the first name or the first description until the similarity of the first name and the summary sentence of the first description filled by the user is larger than or equal to the similarity threshold.
4. The method for creating a visualization of rule codes according to claim 1, wherein the step of inserting the business rules into a preset rule engine code framework to form corresponding rule codes is followed by:
after the rule codes are operated to complete the corresponding auditing task, the biological characteristics of the user are obtained, and whether the characteristics identical to the biological characteristics exist or not is searched in a preset characteristic library;
if the rule code exists, the rule code is stored for a long time, otherwise, the rule code and the component object are automatically deleted after a preset time length.
5. A visual creation method of rule codes according to claim 4, characterized in that said step of looking up the preset feature library for the presence of features identical to said biometric features, is preceded by the steps of:
generating a target object for attracting a user to watch at a random position on a display screen corresponding to a system for operating the rule codes, simultaneously recording the coordinates of the target object, and acquiring a face image of the user;
determining the face position of a face relative to the display screen, the deflection angle of the face relative to the display screen and the visual angle of human eyes relative to the display screen according to the face image;
judging whether the user visually observes the target object or not according to the coordinate of the target object, the face position, the deflection angle and the visual angle;
if yes, judging that the user is a living user, and generating a first life command; the first command is to search whether the same characteristics as the biological characteristics exist in a preset characteristic library.
6. An apparatus for creating a visualization of rule code, comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a component creating command and displaying a creating interface of a component, and a plurality of first filling windows used for inputting different basic information and a plurality of second filling windows used for inputting different attribute information are preset on the creating interface; wherein the basic information is used for describing component information of the component; the attribute information is used for describing the attribute of the component; different first filling windows and different second filling windows are respectively corresponding to different marks;
a receiving unit, configured to receive first basic information input by a user through each first filler window, and receive first attribute information input by the user through each second filler window;
a reading unit, configured to read each piece of the first basic information and a first mark of the first window padding corresponding to each piece of the first basic information, and each piece of the first attribute information and a second mark of the second window padding corresponding to each piece of the first attribute information;
a first inserting unit, configured to insert the first basic information and the first attribute information into a preset component code frame according to each of the first marks and each of the second marks, so as to form a component code; wherein different insertion positions in the component code frame are provided with marks matching the first mark or the second mark;
the generating and storing unit is used for generating a visualized component object according to the component code and storing the component object into a preset visualized component library;
the receiving and dragging unit is used for receiving a component object inlet dragged by a user from the visual component library in a preset rule component area;
the adding unit is used for receiving operation symbols added among the component object inlets by a user and enabling the component objects corresponding to the component object inlets to form a business rule with operation logic, wherein the operation symbols are visual symbols and are stored in a preset visual operation symbol library, and different operation symbols correspond to different operation logic;
and the second inserting unit is used for inserting the business rule into a preset rule engine code frame to form a corresponding rule code.
7. The apparatus for visual creation of rule code according to claim 6, wherein the component code framework comprises a basic information code framework and an attribute information code framework; the first insertion unit includes:
the searching module is used for searching a first insertion position matched with each first mark in the basic information code frame and searching a second insertion position matched with each second mark in the attribute information code frame;
and the conversion insertion module is used for converting each piece of first basic information and each piece of first attribute information into a format corresponding to the component code framework, and inserting each piece of first basic information and each piece of first attribute information after format conversion into each corresponding first insertion position and each corresponding second insertion position to form the component code.
8. The apparatus for creating a visualization of rule codes according to claim 6, wherein the basic information includes a component name and a component description, and the receiving unit includes:
the reading module is used for reading a first name input by a user in a first fill-in window corresponding to the component name and reading a first description input by the user in a first fill-in window corresponding to the component description;
the extraction combination module is used for extracting a plurality of keywords of the first description and combining the keywords into a summary statement corresponding to the first description;
the calculation module is used for calculating the similarity between the first name and the summary statement;
and the generating module is used for generating floating window information which requires the user to refill the first name or the first description if the similarity is smaller than a preset similarity threshold value until the similarity of the first name and the summary sentence of the first description filled by the user is larger than or equal to the similarity threshold value.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010124705.XA CN111427560B (en) | 2020-02-27 | 2020-02-27 | Method and device for creating visualization of rule code and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010124705.XA CN111427560B (en) | 2020-02-27 | 2020-02-27 | Method and device for creating visualization of rule code and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111427560A true CN111427560A (en) | 2020-07-17 |
CN111427560B CN111427560B (en) | 2022-05-20 |
Family
ID=71547789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010124705.XA Active CN111427560B (en) | 2020-02-27 | 2020-02-27 | Method and device for creating visualization of rule code and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111427560B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035595A (en) * | 2020-08-31 | 2020-12-04 | 平安医疗健康管理股份有限公司 | Construction method and device of audit rule engine in medical field and computer equipment |
CN112529425A (en) * | 2020-12-15 | 2021-03-19 | 中国人寿保险股份有限公司 | Visual business index configuration method and system and electronic equipment |
CN113259358A (en) * | 2021-05-21 | 2021-08-13 | 杭州海康威视系统技术有限公司 | Data anomaly identification method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020049733A1 (en) * | 2000-06-08 | 2002-04-25 | Imagen Ltd. | Scheduling system and method concluding creating and/or changing a scheduling system by an administrator and making appointments employing the schedule conducted through a global computer network |
US20030140338A1 (en) * | 2001-07-26 | 2003-07-24 | Stmicroelectronics Limited | Method, apparatus and article for generation of debugging information |
US20040036719A1 (en) * | 2002-08-26 | 2004-02-26 | Van Treeck George Michael | Quicker development of database applications having a graphical user interface |
CN1685343A (en) * | 2003-10-11 | 2005-10-19 | 微软公司 | Extensible creation and editing of integrated collections |
EP1713243A1 (en) * | 2005-04-11 | 2006-10-18 | France Telecom | Method and system of automatic generation of software components for the design of voice services |
CN101198929A (en) * | 2005-04-18 | 2008-06-11 | 捷讯研究有限公司 | System and method for generating screen components |
CN105446725A (en) * | 2014-09-25 | 2016-03-30 | 国际商业机器公司 | Method and system for model driven development |
CN108563431A (en) * | 2018-04-20 | 2018-09-21 | 云宏信息科技股份有限公司 | Software development methodology, device, computer readable storage medium and electronic equipment |
CN109358851A (en) * | 2018-07-19 | 2019-02-19 | 平安科技(深圳)有限公司 | Creation method, device and the computer readable storage medium of chart components |
CN110196719A (en) * | 2019-05-20 | 2019-09-03 | 中国工商银行股份有限公司 | A kind of business rule generation method and system based on natural language processing |
CN110362306A (en) * | 2018-04-11 | 2019-10-22 | 阿里巴巴集团控股有限公司 | Customizing method, model generating method and the device of graphical algorithm assembly |
-
2020
- 2020-02-27 CN CN202010124705.XA patent/CN111427560B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020049733A1 (en) * | 2000-06-08 | 2002-04-25 | Imagen Ltd. | Scheduling system and method concluding creating and/or changing a scheduling system by an administrator and making appointments employing the schedule conducted through a global computer network |
US20030140338A1 (en) * | 2001-07-26 | 2003-07-24 | Stmicroelectronics Limited | Method, apparatus and article for generation of debugging information |
US20040036719A1 (en) * | 2002-08-26 | 2004-02-26 | Van Treeck George Michael | Quicker development of database applications having a graphical user interface |
CN1685343A (en) * | 2003-10-11 | 2005-10-19 | 微软公司 | Extensible creation and editing of integrated collections |
EP1713243A1 (en) * | 2005-04-11 | 2006-10-18 | France Telecom | Method and system of automatic generation of software components for the design of voice services |
CN101198929A (en) * | 2005-04-18 | 2008-06-11 | 捷讯研究有限公司 | System and method for generating screen components |
CN105446725A (en) * | 2014-09-25 | 2016-03-30 | 国际商业机器公司 | Method and system for model driven development |
CN110362306A (en) * | 2018-04-11 | 2019-10-22 | 阿里巴巴集团控股有限公司 | Customizing method, model generating method and the device of graphical algorithm assembly |
CN108563431A (en) * | 2018-04-20 | 2018-09-21 | 云宏信息科技股份有限公司 | Software development methodology, device, computer readable storage medium and electronic equipment |
CN109358851A (en) * | 2018-07-19 | 2019-02-19 | 平安科技(深圳)有限公司 | Creation method, device and the computer readable storage medium of chart components |
CN110196719A (en) * | 2019-05-20 | 2019-09-03 | 中国工商银行股份有限公司 | A kind of business rule generation method and system based on natural language processing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035595A (en) * | 2020-08-31 | 2020-12-04 | 平安医疗健康管理股份有限公司 | Construction method and device of audit rule engine in medical field and computer equipment |
CN112529425A (en) * | 2020-12-15 | 2021-03-19 | 中国人寿保险股份有限公司 | Visual business index configuration method and system and electronic equipment |
CN113259358A (en) * | 2021-05-21 | 2021-08-13 | 杭州海康威视系统技术有限公司 | Data anomaly identification method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111427560B (en) | 2022-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111427560B (en) | Method and device for creating visualization of rule code and computer equipment | |
CN108052577B (en) | Universal text content mining method, device, server and storage medium | |
CN111506722A (en) | Knowledge graph question-answering method, device and equipment based on deep learning technology | |
RU2643467C1 (en) | Comparison of layout similar documents | |
US10698571B2 (en) | Behavior feature use in programming by example | |
CN103838566A (en) | Information processing device, and information processing method | |
CN109408821B (en) | Corpus generation method and device, computing equipment and storage medium | |
US11727213B2 (en) | Automatic conversation bot generation using input form | |
CN110765256B (en) | Method and equipment for generating online legal consultation automatic reply | |
CN112509690A (en) | Method, apparatus, device and storage medium for controlling quality | |
CN113051011A (en) | RPA and AI combined image information extraction method and device | |
CN110909889B (en) | Training set generation and model training method and device based on feature distribution | |
Swaminathan et al. | Wearmail: On-the-go access to information in your email with a privacy-preserving human computation workflow | |
CN116824278A (en) | Image content analysis method, device, equipment and medium | |
CN113590737B (en) | Event data processing method, device, equipment and medium based on knowledge graph | |
CN109660621A (en) | A kind of content delivery method and service equipment | |
Arondi et al. | Supporting co-evolution of users and systems by the recognition of Interaction Patterns | |
CN115687136A (en) | Script program processing method, system, computer equipment and medium | |
CN115145928A (en) | Model training method and device and structured abstract acquisition method and device | |
CN114676237A (en) | Sentence similarity determining method and device, computer equipment and storage medium | |
CN113610080A (en) | Cross-modal perception-based sensitive image identification method, device, equipment and medium | |
CN112200339A (en) | Propositional analysis system and method thereof | |
CN114328936B (en) | Method and device for establishing classification model | |
Bellotti | Applicability of HCI techniques to systems interface design | |
US20230168885A1 (en) | Semantically driven document structure recognition |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220523 Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province Patentee after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd. Address before: Room 12G, Block H, 666 Beijing East Road, Huangpu District, Shanghai 200000 Patentee before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd. |