CN111427559A - Method for realizing form customized service, form generation method, device and system - Google Patents

Method for realizing form customized service, form generation method, device and system Download PDF

Info

Publication number
CN111427559A
CN111427559A CN201910022622.7A CN201910022622A CN111427559A CN 111427559 A CN111427559 A CN 111427559A CN 201910022622 A CN201910022622 A CN 201910022622A CN 111427559 A CN111427559 A CN 111427559A
Authority
CN
China
Prior art keywords
target
file
configuration
rule
user
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
Application number
CN201910022622.7A
Other languages
Chinese (zh)
Other versions
CN111427559B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910022622.7A priority Critical patent/CN111427559B/en
Publication of CN111427559A publication Critical patent/CN111427559A/en
Application granted granted Critical
Publication of CN111427559B publication Critical patent/CN111427559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method for realizing form customized service, a form generation method, a device and a system, wherein the system comprises a configuration platform and a service operation platform, the configuration platform can provide a visual form configuration interface for a user to configure a required form structure and a cascading rule of a target form, the service operation platform can acquire a target configuration file of the target form from the configuration platform, then analyze the target configuration file, generate a form page of the target form according to an analysis result, and convert the form configuration file configured by the user into an operation state form meeting the user requirement. The technical scheme provided by the invention can realize form customization not based on programming, and improve the flexibility and convenience of form customization.

Description

Method for realizing form customized service, form generation method, device and system
Technical Field
The invention relates to the technical field of computer application, in particular to a method for realizing form customization service, a form generation method, a form generation device and a form generation system.
Background
Software as a Service (SaaS) is a mode for providing Software through the Internet, and the mode provides possibility for enterprises to reduce the purchase and maintenance cost of disposable Software and hardware by converting a discrete Software purchase-break mode into a centralized Software rental mode. At present, SaaS applications are all oriented to a multi-tenant scene, and for form service, one form can be rented by a plurality of tenants; different tenants have different requirements on service functions, so that different forms have different application requirements, which requires that the SaaS platform can meet the differential requirements of different tenants.
Currently, the industry mainly meets the differentiation requirements of different tenants through a programming-based customization mode, and provides customized forms for individual tenants. For example: a form A comprises input box components B, C, D and E, a tenant a requires the form to show B and C only, and when the input value of B is a number x, C can only input a number smaller than x, otherwise, a submit button is not displayed; tenant b requires form exposure B, C, D and E; when the input value of B is the number x, C can only input the number larger than x, and D and E must input the value, otherwise the submit button is not displayed. For the tenant a and the tenant b, a developer customizes a set of forms with fixed form structures and cascading rules for the tenant a and the tenant b respectively in a code writing mode, or the tenant a and the tenant b respectively write customized different code fragments into codes of the form A to form different forms so as to meet the differentiation requirements of the tenant a and the tenant b.
However, in the above manner of meeting the differentiation requirements of different tenants through the programming-based customization scheme, codes need to be written, so that form customization is not convenient and flexible enough.
Disclosure of Invention
In view of this, the present invention provides a method, a device and a system for implementing a form customization service, and a form generation method, device and system, which are used to improve flexibility and convenience of form customization.
In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a form generation method applied to a service operation platform, including:
the method comprises the steps that a target configuration file of a target form to be accessed is obtained from a configuration platform, wherein the target configuration file is configured by a user through a form configuration interface on the configuration platform, the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file of the target form is used for describing a page structure of the target form, and the cascading rule file of the target form is used for describing a cascading rule among single components in the target form;
and analyzing the target configuration file, and generating a form page of the target form according to an analysis result.
In a second aspect, an embodiment of the present invention provides a form generation method, applied to a configuration platform, including:
responding to a request of a service operation platform for obtaining a target configuration file of a target form to be accessed from a configuration platform, and searching the target configuration file of the target form from a form configuration file configured by the configuration platform through a form configuration interface in advance by a user, wherein the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file of the target form is used for describing a page structure of the target form, and the cascading rule file of the target form is used for describing a cascading rule among the forms in the target form;
and returning the target configuration file to the service operation platform so that the service operation platform analyzes the target configuration file and generates a form page of the target form according to an analysis result.
In a third aspect, an embodiment of the present invention provides a method for implementing a form customization service, where the method includes:
providing a form configuration interface for configuring the personalized form;
receiving form customization information input by a user through a form configuration interface;
and generating a form configuration file of the target form based on the form customization information, so that when the target form is accessed, a form page of the target form is generated based on the form configuration file.
In a fourth aspect, an embodiment of the present invention provides a customized form processing method, including:
determining a target form accessed by a user;
acquiring a form configuration file of a target form based on login information of a user, wherein the form configuration file is obtained by pre-configuring a form configuration interface by the user;
and analyzing the form configuration file, and generating and displaying a form page of the target form according to an analysis result.
In a fifth aspect, an embodiment of the present invention provides a service operation apparatus, which is applied to a service operation platform, and includes:
the system comprises an acquisition module, a configuration platform and a processing module, wherein the acquisition module is used for acquiring a target configuration file of a target form to be accessed from the configuration platform, the target configuration file is configured by a user through a form configuration interface on the configuration platform, the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file is used for describing a page structure of the target form, and the cascading rule file is used for describing a cascading rule among form components in the target form;
and the generating module is used for analyzing the target configuration file and generating a form page of the target form according to the analysis result.
In a sixth aspect, an embodiment of the present invention provides a configuration apparatus, applied to a configuration platform, including:
the system comprises a searching module, a configuration platform and a service running platform, wherein the searching module is used for responding to a request that the service running platform acquires a target configuration file of a target form to be accessed from the configuration platform and searching the target configuration file of the target form from the form configuration file configured by the configuration platform through a form configuration interface in advance by a user, the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file is used for describing a page structure of the target form, and the cascading rule file is used for describing a cascading rule among form components in the target form;
and the sending module is used for returning the target configuration file to the service operation platform so that the service operation platform analyzes the target configuration file and generates a form page of the target form according to an analysis result.
In a seventh aspect, an embodiment of the present invention provides an apparatus for implementing a form customization service, including:
the system comprises a providing module, a form configuration module and a form display module, wherein the providing module is used for providing a form configuration interface for configuring a personalized form;
the receiving module is used for receiving form customization information input by a user through a form configuration interface;
and the generating module is used for generating a form configuration file of the target form based on the form customization information so as to generate a form page of the target form based on the form configuration file when the target form is accessed.
In an eighth aspect, an embodiment of the present invention provides a customized form processing apparatus, including:
the determining module is used for determining a target form accessed by a user;
the acquisition module is used for acquiring a form configuration file of a target form based on login information of a user, wherein the form configuration file is obtained by pre-configuring the user through a form configuration interface;
the generating module is used for analyzing the form configuration file and generating a form page of the target form according to an analysis result;
and the display module is used for displaying the form page of the target form.
In a ninth aspect, an embodiment of the present invention provides a service operation platform, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the first aspect when the computer program is invoked.
In a tenth aspect, an embodiment of the present invention provides a configuration platform, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the second aspect when the computer program is invoked.
In an eleventh aspect, an embodiment of the present invention provides a form generation system, including: a service operation platform according to the fifth aspect and a configuration platform according to the sixth aspect.
In a twelfth aspect, an embodiment of the present invention provides an implementation apparatus for a form customization service, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the third aspect when the computer program is invoked.
In a thirteenth aspect, an embodiment of the present invention provides a customized form processing apparatus, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the fourth aspect described above when the computer program is invoked.
In a fourteenth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method described in any one of the first to fourth aspects.
According to the technical scheme provided by the embodiment of the invention, a user can configure the form configuration file of the target form according to the required form structure and the cascade rule through the visual form configuration interface provided by the configuration platform, the target configuration file of the target form is obtained through the service operation platform, then the target configuration file is analyzed, and the form page of the target form is generated according to the analysis result, so that the form configuration file configured by the user can be converted into the operation form meeting the requirements of the user, the form can be flexibly customized by the user without programming, and the purposes of improving the flexibility and convenience of form customization are achieved.
Drawings
Fig. 1 is a schematic flowchart of a form generating method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for generating a form page of a target form according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another form generating method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for implementing a form customization service according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a customized form processing method according to an embodiment of the present invention
Fig. 6 is a schematic structural diagram of a service operating apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a configuration device according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an apparatus for implementing a form customization service according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a customized form processing apparatus according to an embodiment of the present invention.
Detailed Description
Aiming at the technical problem that the form customization is not convenient and flexible enough in a mode of meeting the differentiation requirements of different tenants through a customization scheme at present, the embodiment of the invention provides a method, a device and a system for realizing the form customization service.
First, a form generation system according to an embodiment of the present invention will be described.
In the embodiment of the invention, the form generation system mainly comprises a configuration platform and a service operation platform, wherein the configuration platform can provide a visual form configuration interface for a user to configure a form configuration file, and simultaneously provides an acquisition interface of the form configuration file and a logic function MetaReserver required by the service operation platform to analyze the form configuration file during operation. The service operation platform provides a web container environment for the form operation, and the form service is operated by using a form configuration file generated by the configuration platform; the method specifically can acquire the form configuration file from the configuration platform through the acquisition interface, pull the universal resource file required by the form, analyze the form configuration file through a logic function MetaReslover, and update the display attribute and the check attribute of the form in real time.
Specifically, the form configuration file includes: the system comprises a page structure description file FormMeta and a cascading rule file PageRuleMeta configured based on the page structure description file, wherein the page structure description file FormMeta is used for describing a page structure of a form and specifically describes all form component sets contained in the form and the sequence, the display style and the check information of each form component; the cascading rules file PageRuleMeta is used to describe cascading rules among the form components.
During configuration, a user can select a required form template from form templates preset by a system, perform page structure configuration operation on a page structure of the form template, and then configure a cascading rule based on the configured page structure, so that a configuration platform generates a page structure description file FormMeta and a cascading rule file PageRuleMeta.
When configuring the page structure, the user may add fields, delete fields, set or modify field attributes, and the like on the selected form template, where the fields correspond to form components in the form one to one.
When configuring the cascading rule, a user may configure the cascading rule based on the configured page structure description file FormMeta, where the cascading rule configuring operation may include at least one of the following: the method comprises the steps of customizing a cascading rule, selecting a cascading rule file from preset cascading rule files, and obtaining the cascading rule file from the cascading rule files shared by other users. Namely, a user can define a plurality of cascading rules; the user can also select a cascade rule file from the preset cascade rule files, keep the cascade rules in the selected cascade rule file unchanged or carry out further self-defining operation (including adding, deleting and modifying the cascade rules) on the selected cascade rule file; the user can also share the cascade rule files configured by other users, keep the cascade rules in the shared cascade rule files unchanged or carry out further self-defining operation on the shared cascade rule files; in addition, when selecting a cascading rule file, a user may also select a plurality of cascading rule files, such as: selecting a preset cascade rule file and a cascade rule file shared by other users, combining cascade rules in the selected cascade rule files together to serve as a finally configured cascade rule, or performing further self-defining operation on the cascade rules in the cascade rule files to serve as the finally configured cascade rule.
Taking the customized cascading rule as an example, during specific configuration, a user may configure at least one cascading rule, and for each cascading rule, the user may configure at least one rule triggering condition and at least one rule triggering result. For the rule trigger condition, a user can select a trigger field based on a configured page structure description file FormMeta, and then set a trigger value to complete the adding operation of one rule trigger condition; for the rule triggering result, a user can select a change field and a change attribute based on the configured page structure description file FormMeta, and then set a change value to complete the adding operation of one rule triggering result; the user may perform further modification or deletion operations for the added rule trigger condition and the rule trigger result.
After the user configures the page structure and the cascade rule, the configuration platform can automatically generate a page structure description file FormMeta and a cascade rule file PageRuleMeta, and then store the page structure description file FormMeta and the cascade rule file PageRuleMeta into a database. During specific storage, the configuration platform may add a file identifier to the form configuration file configured by the user, where the file identifier may be a combination of the user identifier and the form identifier, a combination of the user identifier and a service scene identifier, or an identifier that may uniquely identify the form configuration file. In addition, when storing, the configuration platform may store page auxiliary information for page rendering in the form together, for example: common resource files such as Cascading Style Sheets (CSS) files and standard JavaScript files.
In this embodiment, for a first form configuration file of a certain form B configured by a certain first user (including a page structure description file FormMeta and a concatenation rule file pagerule (referred to as a first concatenation rule file) configured by the first user), a second user may perform further concatenation rule configuration based on the first form configuration file to form a second concatenation rule file of the form B, and for the form B, a configuration platform stores the first form configuration file configured by the first user and the second concatenation rule file configured by the second user, for example: and storing the first form configuration file of the form B configured by the first user according to the format of { the identification of the first user, the identification of the form B, the page structure description file FormMeta of the form B and the first concatenation rule file PageRuleMeta of the form B }, and storing the second concatenation rule file of the form B configured by the second user according to the format of { the identification of the second user, the identification of the form B and the second concatenation rule file PageRuleMeta of the form B }. The first user may be, for example, a tenant, the second user may be, for example, a user under the tenant, and the second user may be multiple users, that is, the form configuration file of the form B includes a first form configuration file of the form B configured by the first user and at least one second concatenation rule file of the form B configured by the second user.
In this embodiment, the page structure description file FormMeta and the concatenation rule file PageRuleMeta may adopt a json tree structure description file, and certainly, the page structure description file may also adopt an XM L structure description file.
The page structure description file FormMeta may include: the type components and the attributes of the form components contained in the forms, and the child component list children contained in the form components. Wherein:
type component of form component: the type of the character string corresponding to the js static resource file may be, for example: input, Select, contiainer, etc.;
data types including form component display names label (character string type), component identification id, forms of the form components, check attributes and the like, for example, requiree represents filling, display represents whether display is displayed, max L ength represents maximum inputtable length and the like;
sub-table single component list children: and the array type represents a sub-list component set contained in the list component.
The cascading rule file PageRuleMeta comprises at least one cascading rule, wherein the cascading rule comprises a rule triggering condition set continents and a rule triggering result set actions, and the rule triggering condition set actions comprises the following steps:
set of rule triggering conditions conditons: the method comprises the following steps of including at least one trigger condition, wherein the trigger condition includes a component identification id and a trigger value of a form component of a trigger rule; in addition, the trigger condition may further include a trigger type, for example: type of attribute change or data acquisition.
Rule trigger result set actions: the method comprises at least one trigger result, wherein the trigger result comprises a component identification id of a form component needing to be changed after rule triggering, an attribute needing to be changed in the form component and a corresponding change value. The trigger result may specifically include form component change information that needs to be changed when the trigger condition is fulfilled and form component change information that needs to be changed when the trigger condition is not fulfilled.
After the user configures the form through the configuration platform, when the form is accessed, the service operation platform can acquire a related configuration file operation form from the configuration platform, and convert the form configuration file configured by the user into an operation state form meeting the user requirement. The specific implementation process can be seen in the following method embodiments.
According to the form generation system provided by the embodiment of the invention, the user can configure the form configuration file of the form according to the required form structure and the cascading rule through the visual form configuration interface provided by the configuration platform, and then the form can be operated according to the form configuration file through the service operation platform, so that the form configuration file configured by the user can be converted into the operation state form meeting the user requirement, and the form can be flexibly customized without programming by the user, thereby achieving the purpose of improving the flexibility and convenience of form customization.
Fig. 1 is a schematic flow diagram of a form generation method according to an embodiment of the present invention, and as shown in fig. 1, the method according to this embodiment may include the following steps:
s101, the service operation platform obtains a target configuration file of a target form to be accessed from the configuration platform.
The target configuration file is configured by a user through a form configuration interface on a configuration platform, the target configuration file comprises a page structure description file and a cascading rule file of a target form, the page structure description file is used for describing a page structure of the target form, and the cascading rule file is used for describing a cascading rule among form components in the target form.
Specifically, when receiving a request for accessing a target form from a user, the service operating platform may carry a file identifier of the target configuration file in a file obtaining request (i.e., a request for obtaining the target configuration file of the target form to be accessed from the configuration platform by the service operating platform) and send the file identifier to the configuration platform, so that the configuration platform returns the target configuration file corresponding to the file identifier.
S102, the configuration platform searches a target configuration file of a target form from the form configuration file configured by the configuration platform through the form configuration interface in advance.
Specifically, the configuration platform stores the form configuration files of the forms configured by the user through the form configuration interface in advance, and after receiving the file acquisition request, the configuration platform can search the target configuration file corresponding to the file identification from the database according to the file identification carried in the file acquisition request.
S103, the configuration platform returns the target configuration file to the service operation platform.
Specifically, after the configuration platform finds the target configuration file, the target configuration file is sent to the service operation platform.
And S104, the service operation platform analyzes the target configuration file and generates a form page of the target form according to the analysis result.
Specifically, after receiving the target configuration file returned by the configuration platform, the service operation platform may analyze the target configuration file through a logic function MetaReslover, and then render the analysis result to generate a form page of the target form.
When the form page of the target form is generated specifically, the method can be implemented according to the method shown in fig. 2.
Fig. 2 is a flowchart illustrating a method for generating a form page of a target form according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
s201, analyzing a cascading rule file in the target configuration file, and adding the analyzed cascading rule to a page structure description file to obtain an analysis result.
Specifically, after receiving the target configuration file, the service operation platform may load a logic function MetaReslover, parse the cascading rule file pagerule meta in the target configuration file, generate an increment json according to the parsed cascading rule in the cascading rule file pagerule, add the increment json to the page structure description file FormMeta in the target configuration file, and obtain a parsing result (i.e., the page structure description file to which the increment json is added).
And S202, rendering a form page of the target form according to the analysis result.
Specifically, after the service operating platform has analyzed the target configuration file, the rendering engine may be invoked to render the page data according to the target configuration file, and display the form page of the target form.
In specific implementation, the service operation platform may obtain the page auxiliary information of the target form from the configuration platform, and then render the form page of the target form according to the analysis result and the page auxiliary information.
As described in the foregoing system embodiment, when the configuration platform stores the form configuration file, the configuration platform may store page auxiliary information of the form (for example, common resource files such as a CSS file and a standard JavaScript file) together, and after the service platform acquires the target configuration file, the service platform may acquire the page auxiliary information of the target form from the configuration platform according to a page structure description file FormMeta in the target configuration file; after receiving a request for acquiring page auxiliary information of a target form from a configuration platform by a service operation platform, responding to the request, and sending the page auxiliary information corresponding to a page structure description file FormMeta of the target form to the service operation platform by the configuration platform; then, the service operation platform can render the page data through the rendering engine, load the check attribute information in the page structure description file FormMeta, and display the form page of the target form.
And S203, refreshing the form page according to the cascading rule file.
In this embodiment, after rendering the form page of the target form, the service operation platform may receive input information of a user, and then refresh the form page according to the cascading rule file.
Specifically, after a form page of a target form is rendered by a service running platform, a page event on the form page can be monitored through a logic function MetaReslover; when a page event is monitored, traversing each cascading rule in the cascading rule file, and calculating a form change result; and then when the form change result is not empty, the form page is refreshed according to the form change result.
The business operation platform can add a monitoring event on a form page through a logic function MetaReslover to receive a page event, when the page has page events such as onClick or onChange, the logic function MetaReslover can traverse each cascading rule in a cascading rule file, calculate and output an actions set to form a form change result PageGapResult, when the form change result PageGapResult is not empty (namely a trigger result exists), apply the form change result PageGapResult to an analyzed page structure description file FormMeta, refresh the form page according to the current page structure description file FormMeta through a rendering engine, and reload check attribute information; and when a page event is generated again, applying the recalculated form change result PageGapResult to the last generated page structure description file FormMeta, refreshing the form page, and so on until a new page event is not generated any more.
And finally, when the form input is finished, after the business operation platform receives a form submitting instruction of a user, if all input information in the form conforms to the check attribute information of the form, the form can be submitted.
The following illustrates the effects achieved by the embodiments of the present invention:
continuing to take the example in the background art as an example, a form a includes input box components B, C, D and E, tenant a requires that the form only show B and C, and when the input value of B is a number x, C can only input a number smaller than x, otherwise, the submit button is not displayed; tenant b requires form exposure B, C, D and E; when the input value of B is the number x, C can only input the number larger than x, and D and E must input the value, otherwise the submit button is not displayed. Based on different requirements of the two, the tenant a may delete D and E in the form a when performing form structure configuration through the form configuration interface, and add the cascade rule 1 when performing cascade rule configuration: when the input value of B is a number x, the input value of C is a number less than x, otherwise, the submit button is not displayed; the tenant b can keep the form structure of the form a unchanged when the form structure configuration is performed through the form configuration interface, and when the cascade rule configuration is performed, the cascade rule 2 is added: when the input value of B is the number x, the input value of C is a number larger than x, and D and E must also input values, otherwise the submit button is not displayed. When the configuration of the tenant a and the tenant B is completed and the form configured by the tenant a is accessed, the service operation platform can operate the form A according to the form configuration file of the tenant a and display a form page which only comprises B and C and has a cascading rule 1; when the form configured by the tenant b is accessed, the service operation platform can operate the form a according to the form configuration file of the tenant b, and displays a form page which comprises B, C, D and E and has a cascading rule 2. Therefore, different forms do not need to be customized for the tenants a and b through programming, and the tenants a and b can customize the forms meeting the respective requirements only through simple configuration of the form configuration interface, so that the flexibility and the convenience of form customization are greatly improved.
According to the form generation method provided by the embodiment of the invention, the service operation platform can acquire the target configuration file configured by the user through the form configuration interface on the configuration platform from the configuration platform, then analyzes the target configuration file, generates the form page of the target form according to the analysis result, and converts the form configuration file configured by the user into the operation state form meeting the user requirement, so that the user can flexibly customize the form without programming, and the purpose of improving the flexibility and convenience of form customization is achieved.
Fig. 3 is a schematic flow chart of another form generation method according to an embodiment of the present invention, and this embodiment is a specific implementation manner of acquiring a target configuration file from a configuration platform by a service operation platform in the embodiment shown in fig. 1. On the basis of the embodiment shown in fig. 1, as shown in fig. 3, the method provided by this embodiment may include the following steps:
s301, the service operation platform obtains a target configuration file from the configuration platform according to the user identity information of the access user of the target form.
As described in the foregoing system embodiment, the configuration platform stores a form configuration file of a target form including a target configuration file, and the form configuration file of the target form may include a first form configuration file configured by a first user and a second concatenation rule file configured by at least one second user based on the first form configuration file, where the first form configuration file includes a page structure description file and the first concatenation rule file configured by the first user.
In this embodiment, after a first user (e.g., enterprise a) configures a first form configuration file of a form B according to its own needs, a second user (e.g., departments a1 and a2 in enterprise a) may perform further configuration based on the first form configuration file according to its own needs, so as to generate a second concatenation rule file of the form B. When the form B (target form) is accessed by different users, the service operating platform can display different form pages through different cascading rule files.
Specifically, the service operating platform may obtain user identity information of the accessing user according to a request of the user for accessing the target form, for example: a user identification; the service operation platform may pre-store user identity information of specific users, such as a first user and a second user, preset by the system, and may set an access right for a certain second concatenation rule file of the form, that is, set user identity information that can access the second concatenation rule file, that is, the user identity information may indicate whether a target configuration file to be acquired includes the second concatenation rule file.
After acquiring user identity information of an access user, a service operation platform can determine the identity of the access user according to the acquired user identity information, and when the access user is determined to be a preset user according to the user identity information, a first form configuration file and a second cascade rule file configured by a second user corresponding to the user identity information are acquired from a configuration platform to obtain a target configuration file; and when the access user is determined not to be the preset user according to the user identity information, acquiring the first form configuration file from the configuration platform to obtain a target configuration file.
The preset user includes a second user (for example, department a1 or a2 in enterprise a) configured with a second concatenation rule file of the target form, that is, when a second user accesses the target form, the second concatenation rule file configured by the second user may be obtained in addition to the first form configuration file, so as to obtain a final target configuration file, that is, the target configuration file includes the first form configuration file of the target form configured by the first user and the second concatenation rule file of the target form configured by the second user, and the concatenation rule file in the target configuration file includes the first concatenation rule file of the target form configured by the first user and the second concatenation rule file of the target form configured by the second user.
The preset user may further include an associated user (for example, an employee in a department a1 or a2) that establishes an association relationship with the second user in advance, that is, when the associated user of a certain second user accesses the target form, the second concatenation rule file configured by the second user is also obtained in addition to the first form configuration file, so as to obtain a final target configuration file.
In this embodiment, the associated users of the second user may include users who do not configure the second concatenation rule file, and may also include other second users who configure the second concatenation rule file and associated users of the other second users, for example: after department a1 configures the second concatenation rule file of the target form, sub-department a11 associated with the user may perform further concatenation rule configuration to obtain the second concatenation rule file configured by sub-department a11, and when sub-department a11 or a user associated with the sub-department a11 (for example, an employee in sub-department a 11) accesses the target form, the second concatenation rule file of the target form configured by department a11 is also obtained in addition to the first form configuration file of the target form configured by enterprise a and the second concatenation rule file of the target form configured by department a 1. The above is an example of performing secondary configuration on the first form configuration file of the target form (configuration of department a1 and configuration of department a 11), and the first form configuration file may be configured more times according to needs, which is not particularly limited in this embodiment.
For users other than the predetermined user (e.g., department a3 and guests in enterprise a who have not reconfigured the target form), only the first configuration file of the target form may be obtained.
During specific acquisition, the service running platform may carry a file identifier (for example, a combination of a user identifier and a form identifier) corresponding to the target configuration file in the file acquisition request and send the file identifier to the configuration platform, so as to acquire the corresponding target configuration file. When the second concatenation rule file needs to be acquired, carrying a file identifier of the first form configuration file of the target form (for example, a combination of an identifier of a first user and an identifier of the target form) and a file identifier of the second concatenation rule file of the target form (for example, a combination of an identifier of a second user corresponding to user identity information of an access user and the identifier of the target form); and when the second concatenation rule file does not need to be acquired, only carrying the file identifier of the first form configuration file of the target form.
S302, the configuration platform searches a target configuration file of the target form from the form configuration file of the target form configured by the configuration platform through the form configuration interface in advance.
Specifically, before the configuration platform searches for a target configuration file of a target form, a user configures the target configuration file in advance, wherein the user configuring the target configuration file includes a first user and a second user, and the configuration platform generates the form configuration file of the target form according to configuration operations of the first user and the second user in a form configuration interface.
In specific implementation, the form configuration interface may include a form structure configuration interface and a cascade rule configuration interface, and the configuration platform may first generate a page structure description file in the first form configuration file according to a form structure configuration operation of a first user in the form structure configuration interface; generating a first cascading rule file in the first form configuration file according to cascading rule configuration operation of a first user in a cascading rule configuration interface based on the page structure description file; and then generating a second cascading rule file according to the cascading rule configuration operation of a second user in the cascading rule configuration interface based on the first form configuration file.
Wherein the second user is at least one, and the concatenation rule configuration operation may include at least one of: the method comprises the steps of customizing a cascading rule, selecting a cascading rule file from preset cascading rule files, and obtaining the cascading rule file from the cascading rule files shared by other users. For specific configuration operations, reference may be made to the related description in the above system embodiment, and details are not described here.
After receiving a file acquisition request for acquiring a target configuration file by the service operation platform, the configuration platform can search the corresponding target configuration file according to a file identifier carried in the file acquisition request. When the file acquisition request carries a file identifier of a first form configuration file of a target form and a file identifier of a second cascade rule file of the target form, searching the first form configuration file and the second cascade rule file configured by a second user corresponding to the user identity information from the form configuration file of the target form, and returning the second cascade rule file as the target configuration file to the service operation platform; and when the file acquisition request only carries the file identifier of the first form configuration file of the target form, searching the first form configuration file from the form configuration file of the target form, and returning the first form configuration file serving as the target configuration file to the service operation platform.
According to the form generation method provided by the embodiment, the target configuration file is acquired from the configuration platform according to the user identity information of the access user of the target form, and then the form is operated according to the target configuration file, so that the form can be customized more flexibly.
Fig. 4 is a flowchart illustrating a method for implementing a form customization service according to an embodiment of the present invention, where an execution subject of the method may be an implementation device (hereinafter, referred to as a device) of the form customization service. As shown in fig. 4, the method provided by this embodiment may include the following steps:
s401, providing a form configuration interface for configuring the personalized form.
Specifically, the form configuration interface may include buttons such as an input box, a pull-down selection box, a selection, an addition, a deletion, a setting, and/or a submission, and the specific form of the form configuration interface is not particularly limited in this embodiment.
S402, receiving form customization information input by a user through a form configuration interface.
Specifically, the form customization information may include page structure customization information and cascading rule customization information. In the form configuration interface, a user can select a required form template, configure the page structure of the form template according to the customization requirement of the user (namely, input the customized information of the page structure), configure the cascading rule based on the configured page structure (namely, input the customized information of the cascading rule), and complete the input of the customized information of the form, so that the personalized requirement is realized.
For example: for the same form template, the user a and the user b can configure different page structures and cascading rules respectively according to the requirements of the user a and the user b, namely, different form customization information is input, and the personalized requirements of the user a and the user b are realized without writing codes.
In this embodiment, the specific configuration process of the user in the form configuration interface may refer to the related description in the above embodiments, and details are not repeated here
And S403, generating a form configuration file of the target form based on the form customization information, so that when the target form is accessed, a form page of the target form is generated based on the form configuration file.
Specifically, after the user completes the input of the form customization request, the device may automatically generate a form configuration file of the corresponding target form and store the form configuration file in the database. For the storage manner of the form configuration file and the content of the file included in the form configuration file, reference may be made to the related description in the above embodiments, which is not described herein again.
The method for implementing the form customization service provided by the embodiment receives the form customization information input by the user through the form configuration interface by providing the form configuration interface for configuring the personalized form, and then generates the form configuration file of the target form based on the form customization information, so that the personalized customization requirement of the user on the form is realized, the user can flexibly customize the form without programming, and the purposes of improving the flexibility and convenience of form customization are achieved.
Fig. 5 is a flowchart illustrating a customized form processing method according to an embodiment of the present invention, where an execution main body of the method may be a customized form processing device (hereinafter, referred to as a device). As shown in fig. 5, the method provided by this embodiment may include the following steps:
s501, determining a target form accessed by a user.
Specifically, when the user accesses the form, the device may determine the target form accessed by the user according to the form identifier carried in the access request.
And S502, acquiring a form configuration file of the target form based on the login information of the user.
The form configuration file is obtained by the user through the form configuration interface through the pre-configuration, and the file content specifically included in the form configuration file may refer to the related description in the above embodiments, which is not described herein again.
The login information of the user may include user identity information of the user, such as: the user identifier and the device may obtain the form configuration file of the target form according to the login information, and a specific obtaining process is similar to the obtaining process of the target configuration file in the above embodiment, and details are not repeated here.
And S503, analyzing the form configuration file, and generating and displaying a form page of the target form according to the analysis result.
Specifically, after the form configuration file is obtained, the form configuration file may be analyzed to generate a form page of the target form, and a specific analyzing and generating process is similar to the analyzing and generating process of the target configuration file in step S104, and is not described herein again.
And displaying the form page of the target form while generating the target form page, wherein a user can input form data in the form page, and in the process, the equipment can dynamically refresh the form page based on the cascading rule in the analysis result.
Continuing with the example given in the above example: different form configuration files can be generated for the form customization information input by the user a and the user b, and different form pages can be generated based on the different form configuration files, so that the personalized requirements of the users are conveniently realized.
In the customized form processing method provided by this embodiment, a form configuration file of a target form is obtained by determining the target form accessed by a user and based on login information of the user, where the form configuration file is obtained by a user through a form configuration interface by pre-configuration; and then the form configuration file is analyzed, and a form page of the target form is generated and displayed according to the analysis result, so that the form configuration file configured by the user is converted into the running state form meeting the requirements of the user, the user can flexibly customize the form without programming, and the purpose of improving the flexibility and convenience of form customization is achieved.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention provides a service operating apparatus, where an embodiment of the apparatus corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not repeated in this apparatus embodiment one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment.
Fig. 6 is a schematic structural diagram of a service operation apparatus provided in an embodiment of the present invention, where the apparatus is applied to a service operation platform, and as shown in fig. 6, the apparatus provided in this embodiment may include:
the obtaining module 110 is configured to obtain a target configuration file of a target form to be accessed from a configuration platform, where the target configuration file is configured by a user through a form configuration interface on the configuration platform, the target configuration file includes a page structure description file and a cascading rule file of the target form, the page structure description file of the target form is used to describe a page structure of the target form, and the cascading rule file of the target form is used to describe a cascading rule among form components in the target form;
and the generating module 120 is configured to parse the target configuration file, and generate a form page of the target form according to a parsing result.
The page structure description file may include: the method comprises the following steps of (1) obtaining types and attributes of form components contained in a form and a sub-form component list contained in each form component, wherein the attributes comprise component identifications;
the cascade rule file can comprise at least one cascade rule, the cascade rule comprises a rule triggering condition set and a rule triggering result set, wherein the rule triggering condition set comprises at least one triggering condition, and the triggering condition comprises a component identifier and a triggering value of a form component of the triggering rule; the rule trigger result set comprises at least one trigger result, and the trigger result comprises the component identification of the form component needing to be changed after the rule trigger, the attribute needing to be changed and the corresponding change value.
As an optional implementation manner of the embodiment of the present invention, the obtaining module 110 is specifically configured to: acquiring a target configuration file from a configuration platform according to user identity information of an access user of a target form, wherein the configuration platform stores the form configuration file of the target form containing the target configuration file, the form configuration file of the target form comprises a first form configuration file configured by a first user and at least one second concatenation rule file configured by a second user based on the first form configuration file, and the first form configuration file comprises a page structure description file and a first concatenation rule file configured by the first user; the user identity information indicates whether the second concatenation rule file is included in the target configuration file.
As an optional implementation manner of the embodiment of the present invention, the obtaining module 110 is specifically configured to:
when the access user is determined to be a preset user according to the user identity information, a first form configuration file and a second cascade rule file configured by a second user corresponding to the user identity information are obtained from the configuration platform, and a target configuration file is obtained, wherein the preset user comprises the second user.
As an optional implementation manner of the embodiment of the present invention, the obtaining module 110 is further configured to:
and when the access user is determined not to be the preset user according to the user identity information, acquiring the first form configuration file from the configuration platform to obtain a target configuration file.
The preset user can also comprise an associated user which establishes an association relationship with the second user in advance.
As an optional implementation manner of the embodiment of the present invention, the generating module 120 includes:
the parsing unit 121 is configured to parse a cascading rule file in the target configuration file, and add the parsed cascading rule to a page structure description file in the target configuration file to obtain a parsing result;
and the rendering unit 122 is configured to render the form page of the target form according to the analysis result.
As an optional implementation manner of the embodiment of the present invention, the rendering unit 122 is specifically configured to:
acquiring page auxiliary information of a target form from a configuration platform;
and rendering the form page of the target form according to the analysis result and the page auxiliary information.
As an optional implementation manner of the embodiment of the present invention, the generating module 120 further includes:
and the refreshing unit 123 is configured to refresh the form page according to the cascading rule file.
As an optional implementation manner of the embodiment of the present invention, the refresh unit 123 is specifically configured to:
monitoring a page event on a form page;
when a page event is monitored, traversing each cascading rule in the cascading rule file, and calculating a form change result;
and when the form change result is not empty, refreshing the form page according to the form change result.
The apparatus provided in this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention provides a configuration apparatus, where an embodiment of the apparatus corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not repeated in this apparatus embodiment one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment.
Fig. 7 is a schematic structural diagram of a configuration apparatus according to an embodiment of the present invention, where the apparatus is applied to a configuration platform, and as shown in fig. 7, the apparatus according to the embodiment may include:
the searching module 210 is configured to, in response to a request that the service operation platform acquires a target configuration file of a target form to be accessed from the configuration platform, search the target configuration file of the target form from a form configuration file configured by the configuration platform through a form configuration interface in advance by a user, where the target configuration file includes a page structure description file and a cascading rule file of the target form, the page structure description file of the target form is used to describe a page structure of the target form, and the cascading rule file of the target form is used to describe a cascading rule among form components in the target form;
the sending module 220 is configured to return the target configuration file to the service operating platform, so that the service operating platform parses the target configuration file, and generates a form page of the target form according to a parsing result.
The page structure description file may include: the method comprises the following steps of (1) obtaining types and attributes of form components contained in a form and a sub-form component list contained in each form component, wherein the attributes comprise component identifications;
the cascade rule file can comprise at least one cascade rule, the cascade rule comprises a rule triggering condition set and a rule triggering result set, wherein the rule triggering condition set comprises at least one triggering condition, and the triggering condition comprises a component identifier and a triggering value of a form component of the triggering rule; the rule trigger result set comprises at least one trigger result, and the trigger result comprises the component identification of the form component needing to be changed after the rule trigger, the attribute needing to be changed and the corresponding change value.
As an optional implementation manner of the embodiment of the present invention, the search module 210 is specifically configured to:
responding to a request that a service operation platform acquires a target configuration file from a configuration platform according to user identity information of an access user of a target form, and searching the target configuration file of the target form from the form configuration file of the target form configured by the configuration platform through a form configuration interface in advance by the user;
the form configuration file of the target form comprises a first form configuration file configured by a first user and at least one second concatenation rule file configured by a second user based on the first form configuration file, and the first form configuration file comprises a page structure description file and a first concatenation rule file configured by the first user; the user identity information indicates whether the second concatenation rule file is included in the target configuration file.
As an optional implementation manner of the embodiment of the present invention, the search module 210 is specifically configured to
And responding to a request of a business operation platform for acquiring a first form configuration file and a second concatenation rule file configured by a second user corresponding to the user identity information from the configuration platform when the access user is determined to be a preset user according to the user identity information, and finding out the first form configuration file and the second concatenation rule file configured by the second user corresponding to the user identity information from the form configuration files of the target form as target configuration files, wherein the preset user comprises the second user.
As an optional implementation manner of the embodiment of the present invention, the search module 210 is further configured to:
and responding to a request of the service operation platform for acquiring the first form configuration file from the configuration platform when the access user is determined not to be the preset user according to the user identity information, and finding out the first form configuration file from the form configuration file of the target form as the target configuration file.
The preset user can also comprise an associated user which establishes an association relationship with the second user in advance.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes:
the generating module 230 is configured to generate a form configuration file of the target form according to configuration operations of the first user and the second user in the form configuration interface.
As an optional implementation manner of the embodiment of the present invention, the generating module 230 is specifically configured to:
generating a page structure description file in a first form configuration file according to form structure configuration operation of a first user in a form structure configuration interface;
generating a first cascading rule file in a first form configuration file according to cascading rule configuration operation of a first user in a cascading rule configuration interface based on a page structure description file;
and generating a second cascading rule file according to the cascading rule configuration operation of a second user in the cascading rule configuration interface based on the first form configuration file.
Wherein the cascading rule configuration operation may include at least one of: the method comprises the steps of customizing a cascading rule, selecting a cascading rule file from preset cascading rule files, and obtaining the cascading rule file from the cascading rule files shared by other users.
As an optional implementation manner of the embodiment of the present invention, the sending module 220 is further configured to:
and responding to a request that the service operation platform acquires the page auxiliary information of the target form from the configuration platform, and sending the page auxiliary information of the target form to the service operation platform.
The apparatus provided in this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of an implementation apparatus of a form customization service according to an embodiment of the present invention, and as shown in fig. 8, the apparatus according to this embodiment may include:
a providing module 310, configured to provide a form configuration interface for configuring a personalized form;
the receiving module 320 is configured to receive form customization information input by a user through a form configuration interface;
the generating module 330 is configured to generate a form configuration file of the target form based on the form customization information, so that when the target form is accessed, a form page of the target form is generated based on the form configuration file.
The form customization information may include: the page structure customization information and the cascading rule customization information, and the form configuration file comprises: the method comprises a page structure description file and a cascading rule file of a target form, wherein the page structure description file of the target form is used for describing a page structure of the target form, and the cascading rule file of the target form is used for describing cascading rules among table components in the target form.
The page structure description file can include: the method comprises the following steps of (1) obtaining types and attributes of form components contained in a form and a sub-form component list contained in each form component, wherein the attributes comprise component identifications;
the cascade rule file can comprise at least one cascade rule, and the cascade rule can comprise a rule trigger condition set and a rule trigger result set, wherein the rule trigger condition set comprises at least one trigger condition, and the trigger condition comprises a component identifier and a trigger value of a form component of the trigger rule; the rule trigger result set comprises at least one trigger result, and the trigger result comprises the component identification of the form component needing to be changed after the rule trigger, the attribute needing to be changed and the corresponding change value.
The apparatus provided in this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of a customized form processing apparatus according to an embodiment of the present invention, and as shown in fig. 9, the apparatus according to the embodiment may include:
a determining module 410, configured to determine a target form accessed by a user;
the obtaining module 420 is configured to obtain a form configuration file of the target form based on login information of the user, where the form configuration file is obtained by a user through a form configuration interface in advance;
the generating module 430 is configured to analyze the form configuration file, and generate a form page of the target form according to an analysis result;
and a display module 440, configured to display a form page of the target form.
The form configuration file can comprise a page structure description file and a cascading rule file of a target form, wherein the page structure description file of the target form is used for describing a page structure of the target form, and the cascading rule file of the target form is used for describing cascading rules among form components in the target form;
the generating module 430 may specifically include:
the parsing unit 431 is configured to parse a cascading rule file in the form configuration file, and add the parsed cascading rule to a page structure description file in the form configuration file to obtain a parsing result;
and a rendering unit 432, configured to render a form page of the target form according to the analysis result.
As an optional implementation manner of the embodiment of the present invention, the generating module 430 further includes:
and the refreshing unit 433 is used for refreshing the displayed form page according to the cascading rule file.
As an optional implementation manner of the embodiment of the present invention, the refresh unit 433 is specifically configured to:
monitoring a page event on a form page;
when a page event is monitored, traversing each cascading rule in the cascading rule file, and calculating a form change result;
and when the form change result is not empty, refreshing the displayed form page according to the form change result.
The apparatus provided in this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the same inventive concept, an embodiment of the present invention further provides a service operation platform, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the above-described method embodiment when the computer program is invoked.
The service operation platform provided in this embodiment may execute the above method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the same inventive concept, an embodiment of the present invention further provides a configuration platform, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the above-described method embodiment when the computer program is invoked.
The configuration platform provided in this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Based on the same inventive concept, the embodiment of the present invention further provides a device for implementing form customization service, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the above-described method embodiment when the computer program is invoked.
The device provided by this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
An embodiment of the present invention further provides a customized form processing device, including: a memory for storing a computer program and a processor; the processor is adapted to perform the method of the above-described method embodiment when the computer program is invoked.
The device provided by this embodiment may perform the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method described in the above method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware form components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (37)

1. A method for realizing form customization service is characterized by comprising the following steps:
providing a form configuration interface for configuring the personalized form;
receiving form customization information input by a user through the form configuration interface;
and generating a form configuration file of the target form based on the form customization information, so that when the target form is accessed, a form page of the target form is generated based on the form configuration file.
2. The method of claim 1, wherein the form customization information comprises: the form configuration file comprises page structure customization information and cascading rule customization information, wherein the form configuration file comprises: the page structure description file of the target form is used for describing the page structure of the target form, and the cascading rule file of the target form is used for describing cascading rules among the table components in the target form.
3. The method of claim 2, wherein the page structure description file comprises: the type and the attribute of each form component contained in the form, and a sub-form component list contained in each form component, wherein the attribute comprises a component identifier;
the cascade rule file comprises at least one cascade rule, the cascade rule comprises a rule triggering condition set and a rule triggering result set, wherein the rule triggering condition set comprises at least one triggering condition, and the triggering condition comprises a component identifier and a triggering value of a form component of the triggering rule; the rule trigger result set comprises at least one trigger result, and the trigger result comprises a component identifier of the form component needing to be changed after the rule trigger, an attribute needing to be changed and a corresponding change value.
4. A method for customized form processing, comprising:
determining a target form accessed by a user;
acquiring a form configuration file of the target form based on the login information of the user, wherein the form configuration file is obtained by the user through the form configuration interface in advance;
and analyzing the form configuration file, and generating and displaying a form page of the target form according to an analysis result.
5. The method according to claim 4, wherein the form configuration file includes a page structure description file and a cascading rule file of the target form, the page structure description file of the target form is used for describing a page structure of the target form, and the cascading rule file of the target form is used for describing a cascading rule among form components in the target form;
the analyzing the form configuration file, and generating and displaying a form page of the target form according to an analysis result includes:
analyzing a cascading rule file in the form configuration file, and adding the analyzed cascading rule to a page structure description file in the form configuration file to obtain an analysis result;
rendering a form page of the target form according to the analysis result;
and displaying a form page of the target form.
6. The method of claim 5, further comprising:
and refreshing the displayed form page according to the cascading rule file.
7. The method of claim 6, wherein refreshing the displayed form page according to the cascading rules file comprises:
monitoring a page event on the form page;
when a page event is monitored, traversing each cascading rule in the cascading rule file, and calculating a form change result;
and when the form change result is not empty, refreshing the displayed form page according to the form change result.
8. A form generation method is applied to a service operation platform and is characterized by comprising the following steps:
acquiring a target configuration file of a target form to be accessed from a configuration platform, wherein the target configuration file is configured by a user through a form configuration interface on the configuration platform, the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file of the target form is used for describing a page structure of the target form, and the cascading rule file of the target form is used for describing a cascading rule among form components in the target form;
and analyzing the target configuration file, and generating a form page of the target form according to an analysis result.
9. The method of claim 8, wherein obtaining the target configuration file of the target form to be accessed from the configuration platform comprises:
acquiring the target configuration file from a configuration platform according to user identity information of an access user of the target form, wherein the configuration platform stores the form configuration file of the target form containing the target configuration file, the form configuration file of the target form comprises a first form configuration file configured by a first user and a second cascading rule file configured by at least one second user based on the first form configuration file, and the first form configuration file comprises the page structure description file and the first cascading rule file configured by the first user; the user identity information indicates whether the second concatenation rule file is included in the target configuration file.
10. The method of claim 9, wherein obtaining the target configuration file from a configuration platform according to user identity information of an accessing user of the target form comprises:
and when the access user is determined to be a preset user according to the user identity information, acquiring the first form configuration file and a second cascade rule file configured by a second user corresponding to the user identity information from a configuration platform to obtain the target configuration file, wherein the preset user comprises the second user.
11. The method of claim 10, further comprising:
and when the access user is determined not to be a preset user according to the user identity information, acquiring the first form configuration file from a configuration platform to obtain the target configuration file.
12. The method of claim 10, wherein the predetermined users further comprise associated users with which the second user has a pre-established association relationship.
13. The method of claim 8, wherein parsing the target configuration file and generating a form page of the target form according to the parsing result comprises:
analyzing a cascading rule file in the target configuration file, and adding the analyzed cascading rule to a page structure description file in the target configuration file to obtain an analysis result;
and rendering a form page of the target form according to the analysis result.
14. The method of claim 13, wherein rendering the form page of the target form according to the parsing result comprises:
acquiring page auxiliary information of the target form from a configuration platform;
and rendering the form page of the target form according to the analysis result and the page auxiliary information.
15. The method of claim 13, further comprising:
and refreshing the form page according to the cascading rule file.
16. The method of claim 15, wherein refreshing the form page according to the cascading rules file comprises:
monitoring a page event on the form page;
when a page event is monitored, traversing each cascading rule in the cascading rule file, and calculating a form change result;
and when the form change result is not empty, refreshing the form page according to the form change result.
17. The method according to any one of claims 8-16, wherein the page structure description file comprises: the type and the attribute of each form component contained in the form, and a sub-form component list contained in each form component, wherein the attribute comprises a component identifier;
the cascade rule file comprises at least one cascade rule, the cascade rule comprises a rule triggering condition set and a rule triggering result set, wherein the rule triggering condition set comprises at least one triggering condition, and the triggering condition comprises a component identifier and a triggering value of a form component of the triggering rule; the rule trigger result set comprises at least one trigger result, and the trigger result comprises a component identifier of the form component needing to be changed after the rule trigger, an attribute needing to be changed and a corresponding change value.
18. A form generation method is applied to a configuration platform and is characterized by comprising the following steps:
in response to a request that a service operation platform acquires a target configuration file of a target form to be accessed from a configuration platform, searching the target configuration file of the target form in the form configuration file configured by the configuration platform through a form configuration interface from a user in advance, wherein the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file of the target form is used for describing a page structure of the target form, and the cascading rule file of the target form is used for describing a cascading rule among single components in the target form;
and returning the target configuration file to the service operation platform so that the service operation platform analyzes the target configuration file and generates a form page of the target form according to an analysis result.
19. The method of claim 18, wherein the searching the target configuration file of the target form from the form configuration file configured by the configuration platform through the form configuration interface in advance by the user in response to the request of the service execution platform for obtaining the target configuration file of the target form to be accessed from the configuration platform comprises:
responding to a request that the service operation platform acquires the target configuration file from a configuration platform according to the user identity information of the access user of the target form, and searching the target configuration file of the target form in the form configuration file of the target form configured by the configuration platform through a form configuration interface in advance from the user;
the form configuration file of the target form comprises a first form configuration file configured by a first user and a second cascading rule file configured by at least one second user based on the first form configuration file, wherein the first form configuration file comprises the page structure description file and the first cascading rule file configured by the first user; the user identity information indicates whether the second concatenation rule file is included in the target configuration file.
20. The method of claim 19, wherein the searching the target configuration file of the target form from the form configuration file of the target form configured by the configuration platform in advance through the form configuration interface by the user in response to the request of the service execution platform for obtaining the target configuration file from the configuration platform according to the user identity information of the accessing user of the target form comprises:
and responding to a request of the service operation platform for acquiring the first form configuration file and a second concatenation rule file configured by a second user corresponding to the user identity information from a configuration platform when the access user is determined to be a preset user according to the user identity information, and finding out the first form configuration file and the second concatenation rule file configured by the second user corresponding to the user identity information from the form configuration files of the target form as the target configuration file, wherein the preset user comprises the second user.
21. The method of claim 20, further comprising:
and responding to a request of the service operation platform for acquiring the first form configuration file from a configuration platform when the service operation platform determines that the access user is not a preset user according to the user identity information, and finding out the first form configuration file from the form configuration files of the target form as the target configuration file.
22. The method of claim 20, wherein the predetermined users further comprise associated users with which the second user has a pre-established association relationship.
23. The method of claim 19, wherein before the responding to the request that the service execution platform obtains the target configuration file of the target form to be accessed from the configuration platform, the method searches the target configuration file of the target form in the form configuration file configured by the configuration platform through the form configuration interface in advance from the user, the method further comprises:
and generating a form configuration file of the target form according to configuration operations of the first user and the second user in a form configuration interface.
24. The method of claim 23, wherein the form configuration interface comprises a form structure configuration interface and a cascading rule configuration interface, and wherein generating the form configuration file of the target form according to the configuration operation of the first user and the second user in the form configuration interface comprises:
generating a page structure description file in the first form configuration file according to the form structure configuration operation of the first user in a form structure configuration interface;
generating a first cascading rule file in the first form configuration file according to cascading rule configuration operation of the first user in a cascading rule configuration interface based on the page structure description file;
and generating the second cascading rule file according to the cascading rule configuration operation of the second user in a cascading rule configuration interface based on the first form configuration file.
25. The method of claim 24, wherein the cascading rule configuration operation comprises at least one of: the method comprises the steps of customizing a cascading rule, selecting a cascading rule file from preset cascading rule files, and obtaining the cascading rule file from the cascading rule files shared by other users.
26. The method of claim 18, further comprising:
and responding to a request that the service operation platform acquires the page auxiliary information of the target form from a configuration platform, and sending the page auxiliary information of the target form to the service operation platform.
27. The method according to any one of claims 18-26, wherein said page structure description file comprises: the type and the attribute of each form component contained in the form, and a sub-form component list contained in each form component, wherein the attribute comprises a component identifier;
the cascade rule file comprises at least one cascade rule, the cascade rule comprises a rule triggering condition set and a rule triggering result set, wherein the rule triggering condition set comprises at least one triggering condition, and the triggering condition comprises a component identifier and a triggering value of a form component of the triggering rule; the rule trigger result set comprises at least one trigger result, and the trigger result comprises a component identifier of the form component needing to be changed after the rule trigger, an attribute needing to be changed and a corresponding change value.
28. An apparatus for implementing a form customization service, comprising:
the system comprises a providing module, a form configuration module and a form display module, wherein the providing module is used for providing a form configuration interface for configuring a personalized form;
the receiving module is used for receiving form customization information input by a user through the form configuration interface;
and the generating module is used for generating a form configuration file of the target form based on the form customization information so as to generate a form page of the target form based on the form configuration file when the target form is accessed.
29. A customized form processing apparatus, comprising:
the determining module is used for determining a target form accessed by a user;
the acquisition module is used for acquiring a form configuration file of the target form based on the login information of the user, wherein the form configuration file is obtained by pre-configuring the user through a form configuration interface;
the generating module is used for analyzing the form configuration file and generating a form page of the target form according to an analysis result;
and the display module is used for displaying the form page of the target form.
30. A service operation device is applied to a service operation platform and is characterized by comprising:
the system comprises an acquisition module, a configuration module and a processing module, wherein the acquisition module is used for acquiring a target configuration file of a target form to be accessed from a configuration platform, the target configuration file is configured by a user through a form configuration interface on the configuration platform, the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file is used for describing a page structure of the target form, and the cascading rule file is used for describing a cascading rule among form components in the target form;
and the generating module is used for analyzing the target configuration file and generating a form page of the target form according to an analysis result.
31. A configuration device applied to a configuration platform is characterized by comprising:
the system comprises a searching module, a configuration platform and a cascading rule module, wherein the searching module is used for responding to a request that the service operation platform acquires a target configuration file of a target form to be accessed from the configuration platform, and searching the target configuration file of the target form from the form configuration file configured by the configuration platform through a form configuration interface in advance by a user, wherein the target configuration file comprises a page structure description file and a cascading rule file of the target form, the page structure description file is used for describing a page structure of the target form, and the cascading rule file is used for describing a cascading rule among form components in the target form;
and the sending module is used for returning the target configuration file to the service operation platform so that the service operation platform analyzes the target configuration file and generates a form page of the target form according to an analysis result.
32. An apparatus for implementing a form customization service, comprising: a memory for storing a computer program and a processor; the processor is adapted to perform the method of any of claims 1-3 when the computer program is invoked.
33. A customized form processing apparatus, comprising: a memory for storing a computer program and a processor; the processor is adapted to perform the method of any of claims 4-7 when the computer program is invoked.
34. A service operation platform, comprising: a memory for storing a computer program and a processor; the processor is adapted to perform the method of any of claims 8-17 when the computer program is invoked.
35. A configuration platform, comprising: a memory for storing a computer program and a processor; the processor is adapted to perform the method of any of claims 18-27 when invoking the computer program.
36. A form generation system, comprising: a service operation platform according to claim 34 and a configuration platform according to claim 35.
37. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-27.
CN201910022622.7A 2019-01-10 2019-01-10 Method for realizing form customization service, method, device and system for generating form Active CN111427559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910022622.7A CN111427559B (en) 2019-01-10 2019-01-10 Method for realizing form customization service, method, device and system for generating form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910022622.7A CN111427559B (en) 2019-01-10 2019-01-10 Method for realizing form customization service, method, device and system for generating form

Publications (2)

Publication Number Publication Date
CN111427559A true CN111427559A (en) 2020-07-17
CN111427559B CN111427559B (en) 2023-06-20

Family

ID=71545822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910022622.7A Active CN111427559B (en) 2019-01-10 2019-01-10 Method for realizing form customization service, method, device and system for generating form

Country Status (1)

Country Link
CN (1) CN111427559B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231038A (en) * 2020-10-23 2021-01-15 岭东核电有限公司 Work order information display method and device, computer equipment and storage medium
CN112783492A (en) * 2020-12-31 2021-05-11 杭州趣链科技有限公司 Method and device for rendering driving form applied to block chain management platform
CN113656487A (en) * 2021-07-28 2021-11-16 北京数码大方科技股份有限公司 Object data display method and object data display device in information system
CN113721867A (en) * 2021-08-20 2021-11-30 中核武汉核电运行技术股份有限公司 Cloud platform multi-tenant form printing method and system
CN113805853A (en) * 2021-09-28 2021-12-17 重庆允成互联网科技有限公司 Software product development system based on industrial internet
CN114296833A (en) * 2021-12-31 2022-04-08 广州方硅信息技术有限公司 Business interface component configuration method and device, equipment and medium thereof
CN114398032A (en) * 2021-12-20 2022-04-26 北京时空墨科技有限公司 Program writing method, apparatus and medium
TWI799920B (en) * 2021-07-21 2023-04-21 玉山商業銀行股份有限公司 Method for creating dynamic form with flexible depth and form system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819529A (en) * 2010-02-24 2010-09-01 上海引跑信息科技有限公司 System and method for realizing visual development of workflow task interface
CN102201009A (en) * 2011-06-21 2011-09-28 深圳市凯立德科技股份有限公司 Form generating method and device
CN106020793A (en) * 2016-05-09 2016-10-12 统通信(苏州)有限公司 A method for rapid form building in an iOS platform application development process
CN106371825A (en) * 2016-08-23 2017-02-01 武大吉奥信息技术有限公司 Dynamic form generation method and apparatus for mobile end application interface
CN106598924A (en) * 2016-10-28 2017-04-26 深圳前海微众银行股份有限公司 Form generation method and device
CN108228810A (en) * 2017-12-29 2018-06-29 广州京墨医疗科技有限公司 List linkage configuration method and system and list update method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819529A (en) * 2010-02-24 2010-09-01 上海引跑信息科技有限公司 System and method for realizing visual development of workflow task interface
CN102201009A (en) * 2011-06-21 2011-09-28 深圳市凯立德科技股份有限公司 Form generating method and device
CN106020793A (en) * 2016-05-09 2016-10-12 统通信(苏州)有限公司 A method for rapid form building in an iOS platform application development process
CN106371825A (en) * 2016-08-23 2017-02-01 武大吉奥信息技术有限公司 Dynamic form generation method and apparatus for mobile end application interface
CN106598924A (en) * 2016-10-28 2017-04-26 深圳前海微众银行股份有限公司 Form generation method and device
CN108228810A (en) * 2017-12-29 2018-06-29 广州京墨医疗科技有限公司 List linkage configuration method and system and list update method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余洋;孙林夫;马亚花;: "面向产业链协同云服务平台的多租户表单定制技术" *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231038A (en) * 2020-10-23 2021-01-15 岭东核电有限公司 Work order information display method and device, computer equipment and storage medium
CN112231038B (en) * 2020-10-23 2023-07-18 岭东核电有限公司 Work order information display method, device, computer equipment and storage medium
CN112783492A (en) * 2020-12-31 2021-05-11 杭州趣链科技有限公司 Method and device for rendering driving form applied to block chain management platform
TWI799920B (en) * 2021-07-21 2023-04-21 玉山商業銀行股份有限公司 Method for creating dynamic form with flexible depth and form system
CN113656487A (en) * 2021-07-28 2021-11-16 北京数码大方科技股份有限公司 Object data display method and object data display device in information system
CN113721867A (en) * 2021-08-20 2021-11-30 中核武汉核电运行技术股份有限公司 Cloud platform multi-tenant form printing method and system
CN113721867B (en) * 2021-08-20 2024-01-30 中核武汉核电运行技术股份有限公司 Form printing method and system for cloud platform multi-tenant
CN113805853A (en) * 2021-09-28 2021-12-17 重庆允成互联网科技有限公司 Software product development system based on industrial internet
CN114398032A (en) * 2021-12-20 2022-04-26 北京时空墨科技有限公司 Program writing method, apparatus and medium
CN114398032B (en) * 2021-12-20 2022-08-09 北京时空墨科技有限公司 Program writing method, apparatus and medium
CN114296833A (en) * 2021-12-31 2022-04-08 广州方硅信息技术有限公司 Business interface component configuration method and device, equipment and medium thereof

Also Published As

Publication number Publication date
CN111427559B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN111427559B (en) Method for realizing form customization service, method, device and system for generating form
US11669503B2 (en) Building and managing data-processing attributes for modeled data sources
CN108304201B (en) Object updating method, device and equipment
Ganesh et al. Openerp/odoo-an open source concept to erp solution
CN113094037A (en) Interaction method, development platform, equipment and storage medium for forms and workflows
US20170185609A1 (en) Universal adaptor for rapid development of web-based data visualizations
JP2016224923A (en) Method and system for automated generation of user form interface
US10572278B2 (en) Smart controls for user interface design and implementation
US11256743B2 (en) Intermixing literal text and formulas in workflow steps
US20240160410A1 (en) Application Development Platform, Micro-program Generation Method, and Device and Storage Medium
US20190079649A1 (en) Ui rendering based on adaptive label text infrastructure
CN112463135A (en) Code generation method, code generator, electronic device, and storage medium
US11093458B2 (en) Automatic attribute structural variation detection for not only structured query language database
US10567472B2 (en) Manipulation of PDF files using HTML authoring tools
US20220308841A1 (en) Enabling custom software development by domain experts
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
CN110457010B (en) Method and device for batch changing task list based on collaboration platform
US20130346845A1 (en) Interactive multi device in memory form generation
CN110928540A (en) Page generation method and device
CN114047914A (en) Interface configuration method and device, electronic equipment and computer readable storage medium
US9886520B2 (en) Exposing relationships between universe objects
CN113254455A (en) Dynamic configuration method and device of database, computer equipment and storage medium
US8910183B2 (en) Access to context information in a heterogeneous application environment
CN112948472A (en) Data processing method, device, equipment and computer readable medium
US10929380B2 (en) Definition of programmable conditions applicable to an operation

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