CN111427559B - Method for realizing form customization service, method, device and system for generating form - Google Patents

Method for realizing form customization service, method, device and system for generating form Download PDF

Info

Publication number
CN111427559B
CN111427559B CN201910022622.7A CN201910022622A CN111427559B CN 111427559 B CN111427559 B CN 111427559B CN 201910022622 A CN201910022622 A CN 201910022622A CN 111427559 B CN111427559 B CN 111427559B
Authority
CN
China
Prior art keywords
file
target
configuration
user
cascading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910022622.7A
Other languages
Chinese (zh)
Other versions
CN111427559A (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)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method, a device and a system for realizing a form customization service, 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 form structure and cascading rules of a required 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 form meeting the user requirement. The technical scheme provided by the invention can realize the form customization without programming, and improves the flexibility and convenience of the form customization.

Description

Method for realizing form customization service, method, device and system for generating form
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, a device, and a system for implementing a form customization service.
Background
Software as a service (Software as a Service, saaS) is a mode of providing software over the Internet that provides the enterprise with the potential to reduce disposable hardware and software purchase and maintenance costs by converting a discrete software buy-off mode into a centralized software lease mode. Currently, saaS applications are all multi-tenant-oriented, and for form services, one form is rented by a plurality of tenants; the requirements of different tenants on service functions are different, so that the different application requirements are provided for the forms, and the SaaS platform is required to meet the differentiated requirements of different tenants.
At present, the industry mainly meets the different needs of different tenants through a customization mode based on programming, and provides customized forms for personalized tenants. For example: some form a contains input box components B, C, D and E, tenant a requires that the form only displays B and C, and when the input value of B is a number x, C can only input a number less than x, otherwise the submit button is not displayed; tenant b requires form presentations B, C, D and E; when the input value of B is the number x, C can only input numbers greater than x, and D and E must also input values, otherwise the submit button is not displayed. For tenant a and tenant b, customizing a set of forms with fixed form structures and cascading rules for both by writing codes, or writing different customized code fragments into codes of form a to form different forms by both to meet the differentiation requirements of both.
However, the manner of meeting the different needs of different tenants through the customization scheme based on programming needs to write codes, so that the customization of the form is not convenient and flexible.
Disclosure of Invention
In view of the above, the present invention provides a method, a device and a system for implementing a form customization service, which are used for improving 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 generating method, applied to a service operation platform, including:
obtaining 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 on the configuration platform through a form configuration interface, 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 the 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;
and analyzing the target configuration file, and generating a form page of the target form according to the analysis result.
In a second aspect, an embodiment of the present invention provides a form generating method, applied to a configuration platform, including:
responding to a request of a service operation platform for acquiring 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 in a form configuration file configured by a form configuration interface in advance from 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 cascading rules among form components of 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 the analysis result.
In a third aspect, an embodiment of the present invention provides a method for implementing a form customization service, including:
providing a form configuration interface for configuring a personalized form;
receiving form customization information input by a user through a form configuration interface;
form configuration files of the target forms are generated based on the form customization information, so that when the target forms are accessed, form pages of the target forms are generated based on the form configuration files.
In a fourth aspect, an embodiment of the present invention provides a method for processing a customized form, 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 the 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 the analysis result.
In a fifth aspect, an embodiment of the present invention provides a service running device, which is applied to a service running platform, including:
the system comprises an acquisition module, a configuration platform and a configuration 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 in 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 the page structure of the target form, and the cascading rule file is used for describing cascading rules among form components in the target form;
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 configuration module, wherein the searching module is used for responding to a request of a service operation platform for acquiring 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 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 is used for describing the page structure of the target form, and the cascading rule file is used for describing cascading rules 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 the analysis result.
In a seventh aspect, an embodiment of the present invention provides an implementation apparatus for a form customizing service, including:
the system comprises a providing module, a form configuration interface and a control 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 the form customization information input by the user through the form configuration interface;
and the generation 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 the target form based on login information of a user, wherein the form configuration file is obtained by the user through a form configuration interface in advance;
the generation module is used for analyzing the form configuration file and generating a form page of the target form according to the 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 running platform, including: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of the first aspect described above when the computer program is invoked.
In a tenth aspect, an embodiment of the present invention provides a configuration platform, including: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of the second aspect described above when the computer program is invoked.
In an eleventh aspect, an embodiment of the present invention provides a form generating system, including: the service operation platform according to the fifth aspect and the configuration platform according to the sixth aspect.
In a twelfth aspect, an embodiment of the present invention provides an implementation apparatus for a form customizing service, including: a memory and a processor, the memory for storing a computer program; the processor is arranged to perform the method of the third aspect described above 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 and a processor, the memory for storing a computer program; the processor is configured to perform the method according to 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 having stored thereon a computer program which, when executed by a processor, implements the method according to any one of the first to fourth aspects.
According to the technical scheme provided by the embodiment of the invention, the user can configure the form configuration file of the target form according to the required form structure and cascading rules through the visual form configuration interface provided by the configuration platform, the service operation platform obtains the target configuration file of the target form, then analyzes the target configuration file, and generates the form page of the target form according to the analysis result, so that the form configuration file configured by the user can be converted into the operation form meeting the user requirement, and the purpose that the user can flexibly customize the form without programming is achieved, thereby improving the flexibility and convenience of form customization is achieved.
Drawings
FIG. 1 is a schematic flow chart of a form generating method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of 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 method for processing a customized form according to an embodiment of the present invention
Fig. 6 is a schematic structural diagram of a service running device 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 implementation device of a form customizing 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 inconvenient and flexible in a mode of meeting the different tenant differentiation requirements 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.
The following first describes a form generating system provided in an embodiment of the present invention.
In the embodiment of the invention, the form generating 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 provide an acquisition interface of the form configuration file and a logic function MetaReslover required by the service operation platform to analyze the form configuration file during operation. The service operation platform provides a web container environment when the form operates, and the form service is operated by using the 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 general resource file required by the form, analyze the form configuration file through the logic function MetaReslover, and update the display attribute and the verification 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 the page structure of a form and specifically describes all form component sets contained in the form, and the sequence, the display style and the verification information of all form components; the cascading rules file PageRuleMeta is used to describe cascading rules between form components in a form.
When the configuration is carried out, a user can select a required form template from form templates preset by the system, the page structure configuration operation is carried out on the page structure of the form template, and then the cascading rules are configured based on the configured page structure, so that the configuration platform generates a page structure description file formMeta and a cascading rule file PageRuleMeta.
Wherein, when configuring the page structure, the user can add fields, delete fields, set or modify field attributes, etc. on the selected form template, wherein the fields are in one-to-one correspondence with the form components in the form.
In performing cascading rule configuration, a user may configure cascading rules based on the configured page structure description file FormMeta, where the cascading rule configuration 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 acquiring the cascading rule file from cascading rule files shared by other users. Namely, a user can customize a plurality of cascading rules; the user can also select a cascading rule file from preset cascading rule files, and the cascading rules in the selected cascading rule file are kept unchanged or further customized operation (comprising adding, deleting and modifying the cascading rules) is carried out on the selected cascading rule file; the user can also share the cascading rule files configured by other users, and the cascading rules in the shared cascading rule files are kept unchanged or further customized operation is carried out on the shared cascading rule files; in addition, when selecting a cascading rule file, the user may also select a plurality of cascading rule files, such as: and selecting a preset cascading rule file and a cascading rule file shared by other users, merging cascading rules in the selected cascading rule files together to be used as a cascading rule of final configuration, or carrying out further custom operation on the cascading rules in the cascading rule file to be used as the cascading rule of final configuration.
Taking a custom cascading rule as an example, in the specific configuration, a user can configure at least one cascading rule, and for each cascading rule, the user can configure at least one rule triggering condition and at least one rule triggering result. For rule triggering conditions, a user can select a triggering field based on a configured page structure description file formMeta, and then set a triggering value to finish the adding operation of one rule triggering condition; for the rule triggering result, the 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 finish the adding operation of the rule triggering result; for the added rule triggering conditions and rule triggering results, the user can perform further modification or deletion operations.
After the user configures the page structure and the cascading rules, the configuration platform can automatically generate a page structure description file formMeta and a cascading rule file PageRuleMeta, and then store the page structure description file formMeta and the cascading rule file PageRuleMeta in a database. When the configuration platform is specifically stored, a file identifier can be added to a form configuration file configured by a user, wherein the file identifier can be a combination of the user identifier and the form identifier, can be a combination of the user identifier and a service scene identifier, and can also be an identifier of other form configuration files capable of being uniquely identified. In addition, when storing, the configuration platform may store the page auxiliary information for page rendering in the form together, for example: cascading style sheet (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 cascading rule file pagerule meta (referred to as a first cascading rule file)) of the first user configuration, a second user may perform further cascading rule configuration based on the first form configuration file to form a second cascading rule file of the form B, and for the form B, the configuration platform stores the first form configuration file configured by the first user and the second cascading rule file configured by the second user, respectively, for example: the method comprises the steps of storing a first form configuration file of a form B configured by a first user according to { identification of the first user, identification of a form B, a page structure description file formMeta of the form B, a first cascade rule file PageRuleMeta } of the form B, and storing a second cascade rule file of the form B configured by a second user according to { identification of the second user, identification of the form B, and a second cascade 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 a plurality of, 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 a second cascading rule file of the form B configured by at least one second user.
In this embodiment, the page structure description file FormMeta and the cascading rule file pagerule meta may be json tree structure description files, or may be XML structure description files, which is not particularly limited in this embodiment. In the embodiment of the invention, a json tree structure description file is taken as an example for illustration.
The page structure description file FormMeta may include: the types components and attributes of each form component contained in the form, and the child form component list child contained in each form component. Wherein:
type component of form component: the character string type, which corresponds to js static resource file, may be, for example: input, select, and con;
attributes of form components: data types, which include form component presentation name label (string type), component identification id, and style and verification attributes of the form component, etc., such as: the request indicates the fill, the display indicates whether to display, the maxLength indicates the maximum inputtable length, etc.;
sub-list component list child: array type, representing the sub-form component set that the form component contains.
The cascade rule file PageRuleMeta comprises at least one cascade rule, wherein the cascade rule comprises a rule trigger condition set conditons and a rule trigger result set actions, and the cascade rule comprises a rule trigger condition set conditons and a rule trigger result set actions, wherein the rule trigger condition set actions comprises a rule trigger condition set action, a rule trigger result set action, and a rule trigger condition set action, and a rule trigger rule file.
Rule trigger condition set conditons: the method comprises at least one triggering condition, wherein the triggering condition comprises a component identification id and a triggering value of a form component of a triggering rule; in addition, the trigger conditions may further include a trigger type, for example: types such as attribute change and 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 which needs to be changed after rule triggering, an attribute which needs 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 achieved and form component change information that needs to be changed when the trigger condition is not achieved.
After the user configures the form through the configuration platform, when the form is accessed, the service operation platform can acquire the 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. For a specific implementation process, reference may be made to 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 cascading rules through the visual form configuration interface provided by the configuration platform, and then the form configuration file configured by the user can be converted into the running form meeting the user requirement through the service running platform according to the form configuration file, so that 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.
Fig. 1 is a flow chart of a form generating method according to an embodiment of the present invention, as shown in fig. 1, where the method provided in this embodiment may include the following steps:
s101, the service operation platform acquires 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, and comprises a page structure description file and a cascading rule file of a target form, wherein the page structure description file is used for describing the page structure of the target form, and the cascading rule file is used for describing cascading rules among form components in the target form.
Specifically, when the service operation platform receives a request of a user for accessing a target form, the service operation platform can send a file identifier of the target configuration file to the configuration platform in a file acquisition request (i.e. a request of the service operation platform for acquiring the target configuration file of the target form to be accessed from 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 files configured by the configuration platform through the form configuration interface in advance by a user.
Specifically, the configuration platform stores form configuration files of various forms configured by a user through a form configuration interface in the configuration platform in advance, and after the configuration platform receives a file acquisition request, the configuration platform can search a target configuration file corresponding to the file identification from a 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 searches the target configuration file, the target configuration file is sent to the service operation platform.
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 can 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 specifically generated, the method can be implemented according to the method shown in fig. 2.
Fig. 2 is a schematic flow chart of 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 the cascading rule file in the target configuration file, and adding the analyzed cascading rule into the 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, analyze a cascading rule file pagerule meta in the target configuration file, generate an increment json according to the cascading rule in the analyzed cascading rule file pagerule meta, and add the increment json to a page structure description file FormMeta in the target configuration file to obtain an analysis result (i.e. the page structure description file added with the increment json).
And S202, rendering a form page of the target form according to the analysis result.
Specifically, after the service operation platform analyzes the target configuration file, the rendering engine can be called to render page data according to the target configuration file, and form pages of the target form are displayed.
When the method is specifically implemented, the service operation platform can acquire 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.
When the configuration platform stores the form configuration file, the configuration platform may store the page auxiliary information of the form (such as a CSS file and a standard JavaScript file) together, and after the service platform obtains the target configuration file, the service platform may obtain the page auxiliary information of the target form from the configuration platform according to the page structure description file FormMeta in the target configuration file; after receiving a request of the service operation platform for acquiring page auxiliary information of a target form from the configuration platform, the configuration platform responds to the request and sends page auxiliary information corresponding to a page structure description file formMeta of the target form to the service operation platform; and then the service operation platform can render the page data through the rendering engine, load the verification attribute information in the page structure description file FormMeta and display the form page of the target form.
S203, refreshing the form page according to the cascading rule file.
In this embodiment, after the service operation platform renders the form page of the target form, the service operation platform may receive the input information of the user, and then refresh the form page according to the cascading rule file.
Specifically, after a form page of a target form is rendered, the service operation platform can monitor page events on the form page 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 refreshing the form page according to the form change result when the form change result is not empty.
The service operation platform can add a monitoring event on a form page through a logic function MetaReslover for receiving the page event, when the page event such as onClick or onChange occurs on the page, the logic function MetaReslover traverses each cascading rule in the cascading rule file, calculates and outputs an actions set for forming a form change result PageGapReduce, and when the form change result PageGapReduce is not empty (namely, a trigger result exists), the form change result PageGapReduce is applied to the parsed page structure description file FormMeta, and the form page is refreshed according to the current page structure description file FormMeta through a rendering engine, so that verification attribute information is reloaded; when a page event is generated again, the recalculated form change result PageGapResult is applied to the last generated page structure description file FormMeta, the form page is refreshed, and so on until a new page event is not generated any more.
And finally, when the form input is completed, after receiving an instruction of submitting the form from the user, the service operation platform can submit the form if all input information in the form accords with the verification attribute information of the form.
The following illustrates the implementation effects of the embodiments of the present invention:
continuing with the example in the background art, a form a includes input box components B, C, D and E, tenant a requires that the form only displays B and C, and when the input value of B is a number x, C can only input a number less than x, otherwise the submit button is not displayed; tenant b requires form presentations B, C, D and E; when the input value of B is the number x, C can only input numbers greater than x, and D and E must also input values, otherwise the submit button is not displayed. Based on different requirements of the two, the tenant a can delete D and E in the form A when performing the configuration of the form structure through the form configuration interface, and add the cascading rule 1 when performing the configuration of the cascading rule: when the input value of B is a number x, the input value of C is a number smaller than x, otherwise the submit button is not displayed; the tenant b can keep the form structure of the form a unchanged when performing the form structure configuration through the form configuration interface, and increases the cascading rule 2 when performing the cascading rule configuration: when the input value of B is a number x, the input value of C is a number greater than x, and D and E must also input values, otherwise the submit button is not displayed. When the tenant a and the tenant B are configured, 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 cascading rules 1; when the form configured by the tenant b is accessed, the service operation platform may operate the form a according to the form configuration file of the tenant b, and display a form page including B, C, D and E and having the cascading rule 2. Therefore, different forms are not required to be customized for the tenant a and the tenant b through programming, and the form meeting the respective requirements can be customized by the tenant a and the tenant b only through simple configuration through a form configuration interface, so that the flexibility and 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 analyze the target configuration file, generate the form page of the target form according to the analysis result, and convert the form configuration file configured by the user into the operation form meeting the user requirement, so that the purpose that the user can flexibly customize the form without programming is realized, and the purposes of improving the flexibility and convenience of form customization are achieved.
Fig. 3 is a flowchart of another form generating method according to an embodiment of the present invention, where the embodiment is a specific implementation manner for the service operation platform in the embodiment shown in fig. 1 to obtain the target configuration file from the configuration platform. On the basis of the embodiment shown in fig. 1, as shown in fig. 3, the method provided in this embodiment may include the following steps:
s301, the service operation platform acquires a target configuration file from the configuration platform according to user identity information of an 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, where the form configuration file of the target form may include a first form configuration file configured by a first user and at least one second cascading rule file configured by a second user based on the first form configuration file, and the first form configuration file includes a page structure description file and a first cascading 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 certain form B according to its own needs, a second user (e.g., departments A1 and A2 in enterprise a) may further configure the first form configuration file according to its own needs to generate a second cascading rule file of the form B. When the form B (target form) is accessed by different users, the service operation platform can display different form pages through different cascading rule files.
Specifically, the service operation platform may obtain, according to a request from a user to access a target form, user identity information of the accessing user, for example: a user identification; the service operation platform can pre-store user identity information of a first user, a second user and other specific users preset by the system, and can set access rights for a certain second cascading rule file of the form, namely, set user identity information which can access the second cascading rule file, namely, the user identity information can indicate whether a target configuration file to be acquired comprises the second cascading rule file or not.
After acquiring the user identity information of the access user, the 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, the service operation platform acquires a first form configuration file and a second cascading rule file configured by a second user corresponding to the user identity information from the configuration platform to acquire a target configuration file; and when the access user is determined not to be the preset user according to the user identity information, acquiring a 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 cascading rule file of the target form, that is, when a certain second user accesses the target form, the second cascading 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 a first form configuration file of the target form configured by the first user and a second cascading rule file of the target form configured by the second user, and the cascading rule file in the target configuration file includes the first cascading rule file of the target form configured by the first user and the second cascading 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 the 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 cascading rule file configured by the second user is also acquired 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 not configured with the second cascading rule file, and may further include other second users configured with the second cascading rule file and associated users of the other second users, for example: after the department A1 configures the second cascading rule file of the target form, the associated user sub-department A11 can perform further cascading rule configuration to obtain the second cascading rule file configured by the sub-department A11, and when the sub-department A11 or the associated user (for example, staff in the sub-department A11) accesses the target form, the second cascading rule file of the target form configured by the department A11 is obtained in addition to the first form configuration file of the target form configured by the enterprise A and the second cascading rule file of the target form configured by the department A1. The above description is given by taking the secondary configuration (the configuration of the department A1 and the configuration of the department a 11) of the first form configuration file of the target form as an example, and the configuration of the first form configuration file may be performed more times according to the requirement, which is not particularly limited in this embodiment.
For other users than the preset user (for example, the department A3 and tourists in the enterprise A which do not reconfigure the target form), only the first configuration file of the target form can be obtained.
When the service is specifically acquired, the service running platform can carry a file identifier (for example, a combination of a user identifier and a form identifier) corresponding to the target configuration file in a file acquisition request and send the file identifier to the configuration platform so as to acquire the corresponding target configuration file. When the second cascading rule file needs to be acquired, the file identification of the first form configuration file of the target form (for example, the combination of the identification of the first user and the identification of the target form) and the file identification of the second cascading rule file of the target form (for example, the combination of the identification of the second user corresponding to the user identity information of the access user and the identification of the target form) are carried at the same time; when the second cascading rule file is not required to be acquired, only the file identification of the first form configuration file of the target form is carried.
S302, the configuration platform searches a target configuration file of a target form in a form configuration file of the target form configured by the configuration platform through a form configuration interface in advance by a user.
Specifically, before the configuration platform searches the target configuration file of the target form, the user configures the target configuration file in advance, wherein the user configuring the target configuration file comprises 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 the form configuration interface.
When the method is specifically implemented, the form configuration interface can comprise a form configuration interface and a cascading rule configuration interface, and the configuration platform can generate a page structure description file in a first form configuration file according to the form configuration operation of a first user in the form configuration interface; then generating a first cascading rule file in a first form configuration file according to cascading rule configuration operation performed by a first user in a cascading rule configuration interface based on the page structure description file; and generating a second cascading rule file according to cascading rule configuration operation performed by the second user in the cascading rule configuration interface based on the first form configuration file.
Wherein the second user is at least one, 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 acquiring the cascading rule file from cascading rule files shared by other users. For specific configuration operations, reference may be made to the relevant descriptions in the above system embodiments, which are not repeated here.
After the configuration platform receives the file acquisition request of the service operation platform for acquiring the target configuration file, the configuration platform can search the corresponding target configuration file according to the file identifier carried in the file acquisition request. When a file acquisition request carries a file identifier of a first form configuration file of a target form and a file identifier of a second cascading rule file of the target form, the second cascading rule file of second user configuration corresponding to the first form configuration file and user identity information is searched from the form configuration file of the target form, and is returned to a service operation platform as the target configuration file; when the file obtaining request only carries the file identification of the first form configuration file of the target form, the first form configuration file is searched from the form configuration file of the target form, and is returned to the service operation platform as the target configuration file.
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 customization is more flexible.
Fig. 4 is a flow chart of a method for implementing a form customizing service according to an embodiment of the present invention, where an execution body of the method may be a device for implementing the form customizing service (hereinafter referred to as a device). As shown in fig. 4, the method provided in this embodiment may include the following steps:
s401, a form configuration interface for configuring the personalized forms is provided.
Specifically, the form configuration interface may include buttons such as an input box, a drop-down selection box, a selection, an addition, a deletion, a setting, and/or a submission, where the specific form is not 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 own customization demands (namely, input page structure customization information), and then configure cascading rules (namely, input cascading rule customization information) based on the configured page structure to complete the input of the form customization information, so that personalized demands are realized.
For example: for the same form template, the user a and the user b can configure different page structures and cascading rules according to own requirements respectively, namely different form customization information is input, so that the personalized requirements of the user a and the user b are realized, and codes do not need to be written.
In this embodiment, the specific configuration process of the user in the form configuration interface may be referred to the related description in the above embodiment, which is not repeated here
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 finishes inputting the form customization request, the device can automatically generate a form configuration file of the corresponding target form and store the form configuration file in the database. The storage manner and the content of the form configuration file may be referred to the related description in the above embodiment, which is not repeated herein.
According to the method for realizing the form customizing service, the form configuration interface for configuring the personalized form is provided to receive the form customizing information input by the user through the form configuration interface, and then the form configuration file of the target form is generated based on the form customizing information, so that the personalized customizing requirement of the user on the form is realized, the form can be flexibly customized without programming by the user, and the purposes of improving the flexibility and convenience of form customizing are achieved.
Fig. 5 is a schematic flow chart of a method for processing a customized form according to an embodiment of the present invention, where an execution 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 in 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, according to the form identifier carried in the access request, the target form accessed by the user.
S502, acquiring a form configuration file of a target form based on login information of a user.
The form configuration file is configured in advance by the user through the form configuration interface, and the content of the file specifically included in the form configuration file may be referred to the related description in the foregoing embodiment, which is not repeated herein.
The login information of the user may include user identity information of the user, for example: the user identifier, the device may obtain the form configuration file of the target form according to the login information, and the specific obtaining process is similar to the obtaining process of the target configuration file in the above embodiment, which is not described herein again.
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 parsed to generate the form page of the target form, and the specific parsing and generating process is similar to the parsing and generating process of the target configuration file in the step S104, which is not repeated herein.
And when the target form page is generated, the form page of the target form is displayed, the user can input form data in the form page, and in the process, the equipment can dynamically refresh the form page based on cascading rules in the analysis result.
Continuing with the example illustrated in the above embodiment: for the form customization information input by the user a and the user b, different form configuration files can be generated, and based on the different form configuration files, different form pages can be generated, so that the personalized requirements of the user are conveniently realized.
According to the customized form processing method provided by the embodiment, the target form accessed by the user is determined, and the form configuration file of the target form is obtained based on login information of the user, wherein the form configuration file is obtained by pre-configuring the user through a form configuration interface; and then analyzing the form configuration file, generating and displaying a form page of the target form according to the analysis result, and converting the form configuration file configured by the user into an operation form meeting the user requirement, so that the user can flexibly customize the form without programming, thereby achieving the aim of improving the flexibility and convenience of form customization.
Based on the same inventive concept, as an implementation of the above method, the embodiment of the present invention provides a service running device, where the embodiment of the device corresponds to the embodiment of the foregoing method, and for convenience of reading, the embodiment of the present invention does not describe details in the embodiment of the foregoing method one by one, but it should be clear that the device in the embodiment can correspondingly implement all the details in the embodiment of the foregoing method.
Fig. 6 is a schematic structural diagram of a service operation device provided by an embodiment of the present invention, where the device is applied to a service operation platform, as shown in fig. 6, the device provided by this embodiment may include:
the obtaining module 110 is configured to obtain, from the configuration platform, a target configuration file of a target form to be accessed, where the target configuration file is configured by a user through a form configuration interface in 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 cascading rules between form components in the target form;
the generating module 120 is configured to parse the target configuration file, and generate a form page of the target form according to the parsing result.
The page structure description file may include: the form comprises types and attributes of all form components contained in the form, and a list of sub-form components contained in all form components, wherein the attributes comprise component identifiers;
the cascading rule file can comprise at least one cascading rule, the cascading rule comprises a rule triggering condition set and a rule triggering result set, 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 a form component to be changed after rule trigger, an attribute to be changed and a 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 the target form, wherein the configuration platform stores a 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 a page structure description file and a first cascading rule file configured by the first user; the user identity information indicates whether a second cascading 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, acquiring a first form configuration file and a second cascading rule file configured by a second user corresponding to the user identity information from a configuration platform to obtain a target configuration file, wherein the preset user comprises the second user.
As an alternative implementation 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 a first form configuration file from the configuration platform to obtain a target configuration file.
The preset user may further include an associated user that establishes an association relationship with the second user in advance.
As an alternative implementation manner of the embodiment of the present invention, the generating module 120 includes:
the parsing unit 121 is configured to parse the cascading rule file in the target configuration file, and add the parsed cascading rule to the page structure description file in the target configuration file to obtain a parsing result;
and the rendering unit 122 is used for rendering the form page of the target form according to the analysis result.
As an alternative implementation 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 a form page of the target form according to the analysis result and the page auxiliary information.
As an alternative implementation manner of the embodiment of the present invention, the generating module 120 further includes:
and a refreshing unit 123, configured to refresh the form page according to the cascading rule file.
As an alternative implementation of the embodiment of the present invention, the refresh unit 123 is specifically configured to:
monitoring page events 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 refreshing the form page according to the form change result when the form change result is not empty.
The device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
Based on the same inventive concept, as an implementation of the above method, the embodiment of the present invention provides a configuration device, where the embodiment of the device corresponds to the embodiment of the foregoing method, and for convenience of reading, the embodiment of the present invention does not describe details of the embodiment of the foregoing method one by one, but it should be clear that the device in the embodiment can correspondingly implement all the details of the embodiment of the foregoing method.
Fig. 7 is a schematic structural diagram of a configuration device provided in an embodiment of the present invention, where the device is applied to a configuration platform, as shown in fig. 7, the device provided in this embodiment may include:
the search module 210 is configured to respond to a request of the service operation platform for obtaining a target configuration file of a target form to be accessed from the configuration platform, and search the target configuration file of the target form in a form configuration file configured by the configuration platform through a form configuration interface in advance, 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 for describing a page structure of the target form, and the cascading rule file of the target form is used for describing cascading rules between form components of the target form;
and the sending module 220 is configured to return the target configuration file to the service operation platform, so that the service operation platform parses the target configuration file, and generates a form page of the target form according to the parsing result.
The page structure description file may include: the form comprises types and attributes of all form components contained in the form, and a list of sub-form components contained in all form components, wherein the attributes comprise component identifiers;
The cascading rule file can comprise at least one cascading rule, the cascading rule comprises a rule triggering condition set and a rule triggering result set, 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 a form component to be changed after rule trigger, an attribute to be changed and a corresponding change value.
As an optional implementation manner of the embodiment of the present invention, the searching module 210 is specifically configured to:
responding to a request of the service operation platform for acquiring a target configuration file from the configuration platform according to user identity information of an access user of the target form, and searching the target configuration file of the target form from the form configuration file of the target form configured by the user in the configuration platform through a form configuration interface in advance;
the form configuration files of the target form comprise first form configuration files configured by a first user and second cascading rule files configured by at least one second user based on the first form configuration files, wherein the first form configuration files comprise page structure description files and first cascading rule files configured by the first user; the user identity information indicates whether a second cascading rule file is included in the target configuration file.
As an alternative implementation of the embodiment of the present invention, the searching module 210 is specifically configured to
Responding to a request of a second cascading rule file configured by a second user corresponding to the first form configuration file and the user identity information from a configuration platform when the service operation platform determines that the access user is a preset user according to the user identity information, and searching the second cascading rule file configured by the second user corresponding to the first form configuration file and the user identity information from the form configuration file of the target form to serve as the target configuration file, wherein the preset user comprises the second user.
As an alternative implementation of the embodiment of the present invention, the searching 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 not the preset user according to the user identity information, and searching the first form configuration file from the form configuration files of the target form to serve as the target configuration file.
The preset user may further include an associated user that establishes an association relationship with the second user in advance.
As an alternative 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 the form configuration operation of the first user in the form 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 cascading rule configuration operation performed by the 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 acquiring the cascading rule file from cascading rule files shared by other users.
As an alternative implementation manner of the embodiment of the present invention, the sending module 220 is further configured to:
And responding to a request of the service operation platform for acquiring 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 device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
Fig. 8 is a schematic structural diagram of an implementation device of a form customizing service according to an embodiment of the present invention, and as shown in fig. 8, the device provided in this embodiment may include:
a providing module 310 for providing a form configuration interface for configuring a personalized form;
a receiving module 320, configured to receive form customization information input by a user through a form configuration interface;
and 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, form pages of the target form are generated based on the form configuration file.
Wherein, the form customization information may include: page structure customization information and cascading rule customization information, and the form configuration file comprises: the system comprises a page structure description file of a target form and a cascading rule file, wherein 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 form components in the target form.
The page structure description file may include: the form comprises types and attributes of all form components contained in the form, and a list of sub-form components contained in all form components, wherein the attributes comprise component identifiers;
the cascading rule file can comprise at least one cascading rule, the cascading rule can comprise a rule triggering condition set and a rule triggering result set, 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 a form component to be changed after rule trigger, an attribute to be changed and a corresponding change value.
The device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be 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 provided in this 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 pre-configuring the user through a form configuration interface;
The generating module 430 is configured to parse the form configuration file, and generate a form page of the target form according to the parsing 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 the target form, wherein 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 form components of the target form;
the generating module 430 may specifically include:
the parsing unit 431 is configured to parse the cascading rule file in the form configuration file, and add the parsed cascading rule to the 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 parsing result.
As an alternative 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 page events 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 refreshing the displayed form page according to the form change result when the form change result is not empty.
The device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
Based on the same inventive concept, the embodiment of the invention also provides a service operation platform, which comprises: a memory and a processor, the memory for storing a computer program; the processor is configured to execute the method described in the above method embodiments when the computer program is invoked.
The service operation platform provided in this embodiment may execute the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
Based on the same inventive concept, the embodiment of the invention also provides a configuration platform, which comprises: a memory and a processor, the memory for storing a computer program; the processor is configured to execute the method described in the above method embodiments when the computer program is invoked.
The configuration platform provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be described herein.
Based on the same inventive concept, the embodiment of the invention also provides a device for realizing the form customizing service, which comprises: a memory and a processor, the memory for storing a computer program; the processor is configured to execute the method described in the above method embodiments when the computer program is invoked.
The device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
The embodiment of the invention also provides customized form processing equipment, which comprises the following steps: a memory and a processor, the memory for storing a computer program; the processor is configured to execute the method described in the above method embodiments when the computer program is invoked.
The device provided in this embodiment may perform the above method embodiment, and its implementation principle is similar to that of the technical effect, and will not be described herein again.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the method described in the above method embodiment.
It will be appreciated by those skilled in the art that 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 therein.
The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware form components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). 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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (35)

1. A method for implementing a form customization service, comprising:
providing a form configuration interface for configuring a personalized form;
receiving form customization information input by a user through the form configuration interface;
generating a form configuration file of a target form based on the form customization information, so that when the target form is accessed, the form configuration file is acquired according to user identity information of an accessing user, and a form page of the target form is generated based on the form configuration file;
the form configuration files comprise a first form configuration file configured by a first user and at least one second cascading rule file configured by a second user based on the first form configuration file, the first form configuration file comprises a page structure description file and a first cascading rule file configured by the first user, the page structure description file is used for describing a page structure of the target form, the cascading rule file is used for describing cascading rules among form components in the target form, and the user identity information indicates whether the second cascading rule file is acquired or not.
2. The method of claim 1, wherein the form customization information comprises: page structure customization information and cascading rule customization information, wherein the form configuration file comprises: the system comprises a target form page structure description file and a cascading rule file, wherein the target form page structure description file is used for describing the target form page structure, and the target form cascading rule file is used for describing cascading rules among form components in the target form.
3. The method according to claim 2, wherein the page structure description file includes: the form comprises types and attributes of all form components and a sub-form component list contained by all form components, wherein the attributes comprise component identifiers;
the cascading rule file comprises at least one cascading rule, the cascading 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 a form component to be changed after rule trigger, an attribute to be changed and a corresponding change value.
4. A method of customizing a form, comprising:
determining a target form accessed by a user;
acquiring a form configuration file of the target form based on user identity information in login information of the user, wherein the form configuration file is obtained by pre-configuring a form configuration interface of the user, the form configuration file comprises a first form configuration file configured by a first user and at least one second cascading rule file configured by a second user based on the first form configuration file, the first form configuration file comprises a page structure description file and a first cascading rule file configured by the first user, the page structure description file is used for describing a page structure of the target form, the cascading rule file is used for describing cascading rules among form components in the target form, and the user identity information indicates whether the second cascading rule file is acquired or not;
and analyzing the form configuration file, and generating and displaying a form page of the target form according to the analysis result.
5. The method of 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 cascading rules among form components in the target form;
The step of analyzing the form configuration file, generating and displaying the form page of the target form according to the analysis result, and comprises the following steps:
analyzing the cascading rule file in the form configuration file, and adding the analyzed cascading rule into the page structure description file in the form configuration file to obtain the analysis result;
rendering a form page of the target form according to the analysis result;
and displaying the form page of the target form.
6. The method of claim 5, wherein the method further comprises:
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 page events 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 refreshing the displayed form page according to the form change result when the form change result is not empty.
8. The 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 according to user identity information of an access user of the target form, wherein the target configuration file is configured by a user on the configuration platform through a form configuration interface, 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, the cascading rule file of the target form is used for describing cascading rules among form components of the target form, the configuration platform stores a 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, the first form configuration file comprises the page structure description file and the first cascading rule file configured by the first user, and the user identity information indicates whether the target configuration file comprises the second cascading rule file or not;
Analyzing the target configuration file, and generating a form page of the target form according to the analysis result.
9. The method of claim 8, wherein the obtaining the target profile from a configuration platform according to user identity information of an accessing user of the target form comprises:
when the access user is determined to be a preset user according to the user identity information, acquiring a second cascading rule file configured by a second user corresponding to the first form configuration file and the user identity information from a configuration platform to obtain the target configuration file, wherein the preset user comprises the second user.
10. The method according to claim 9, wherein the method further comprises:
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 a configuration platform to obtain the target configuration file.
11. The method of claim 9, wherein the predetermined user further comprises an associated user who has previously established an association with the second user.
12. The method of claim 7, wherein parsing the target configuration file and generating a form page of the target form according to the parsing result comprises:
Analyzing the cascading rule file in the target configuration file, and adding the analyzed cascading rule into the page structure description file in the target configuration file to obtain the analysis result;
and rendering a form page of the target form according to the analysis result.
13. The method of claim 12, wherein the 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 a form page of the target form according to the analysis result and the page auxiliary information.
14. The method according to claim 12, wherein the method further comprises:
and refreshing the form page according to the cascading rule file.
15. The method of claim 14, wherein refreshing the form page according to the cascading rules file comprises:
monitoring page events 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 refreshing the form page according to the form change result when the form change result is not empty.
16. The method according to any one of claims 7-15, wherein the page structure description file includes: the form comprises types and attributes of all form components and a sub-form component list contained by all form components, wherein the attributes comprise component identifiers;
the cascading rule file comprises at least one cascading rule, the cascading 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 a form component to be changed after rule trigger, an attribute to be changed and a corresponding change value.
17. A form generation method applied to a configuration platform, comprising:
responding to a request of a service operation platform for acquiring 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 in advance by a user, and comprising the following steps: responding to a request of the service operation platform for acquiring the target configuration file from a configuration platform according to user identity information of an access user of the target form, and searching a target configuration file of the target form in a form configuration file of the target form configured by the configuration platform through a form configuration interface in advance; the form configuration files of the target form comprise 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 a page structure description file and a first cascading rule file configured by the first user; the user identity information indicates whether the target configuration file comprises the second cascading rule file or not, 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 the 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;
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.
18. The method according to claim 17, wherein said responding to the request of the service operation platform to obtain the target configuration file from the configuration platform according to the user identity information of the accessing user of the target form, and searching the target configuration file of the target form from the form configuration files of the target form configured by the user in advance through the form configuration interface on the configuration platform, includes:
responding to a request of the service operation platform for obtaining a second cascading rule file configured by a second user corresponding to the first form configuration file and 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 searching the second cascading rule file configured by the second user corresponding to the first form configuration file and the user identity information from the form configuration file of the target form to serve as the target configuration file, wherein the preset user comprises the second user.
19. The method of claim 18, wherein the method further comprises:
and responding to the request of the service operation platform for acquiring the first form configuration file from the configuration platform when the access user is not the preset user according to the user identity information, and searching the first form configuration file from the form configuration file of the target form to serve as the target configuration file.
20. The method of claim 18, wherein the predetermined user further comprises an associated user who has previously established an association with the second user.
21. The method of claim 17, wherein before the responding to the request of the service operation platform to obtain the target configuration file of the target form to be accessed from the configuration platform, the method further comprises, before searching 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 by a user:
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.
22. The method of claim 21, wherein the form configuration interface comprises a form configuration interface and a cascading rules configuration interface, the generating the form configuration file of the target form according to configuration operations of the first user and the second user in the form configuration interface comprising:
Generating a page structure description file in the first form configuration file according to the form configuration operation of the first user in a form configuration interface;
generating a first cascading rule file in the first form configuration file according to cascading rule configuration operation performed by 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 cascading rule configuration operation performed by the second user in the cascading rule configuration interface based on the first form configuration file.
23. The method of claim 22, 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 acquiring the cascading rule file from cascading rule files shared by other users.
24. The method of claim 17, wherein the method further comprises:
and responding to a request of the service operation platform for acquiring 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.
25. The method according to any one of claims 17-24, wherein the page structure description file includes: the form comprises types and attributes of all form components and a sub-form component list contained by all form components, wherein the attributes comprise component identifiers;
the cascading rule file comprises at least one cascading rule, the cascading 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 a form component to be changed after rule trigger, an attribute to be changed and a corresponding change value.
26. An apparatus for implementing a form customization service, comprising:
the system comprises a providing module, a form configuration interface and a control 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 the form customization information input by the user through the form configuration interface;
the generation module is used for generating a form configuration file of a target form based on the form customization information, so that when the target form is accessed, the form configuration file is acquired according to the user identity information of an accessing user, and a form page of the target form is generated based on the form configuration file; the form configuration files comprise a first form configuration file configured by a first user and at least one second cascading rule file configured by a second user based on the first form configuration file, the first form configuration file comprises a page structure description file and a first cascading rule file configured by the first user, the page structure description file is used for describing a page structure of the target form, the cascading rule file is used for describing cascading rules among form components in the target form, and the user identity information indicates whether the second cascading rule file is acquired or not.
27. A customized form handling device, comprising:
the determining module is used for determining a target form accessed by a user;
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a form configuration file of the target form based on user identity information in login information of a user, the form configuration file is obtained by pre-configuring a form configuration interface of the user, the form configuration file comprises a first form configuration file configured by the first user and at least one second cascading rule file configured by the second user based on the first form configuration file, the first form configuration file comprises a page structure description file and a first cascading rule file configured by the first user, the page structure description file is used for describing a page structure of the target form, the cascading rule file is used for describing cascading rules among form components in the target form, and the user identity information indicates whether the second cascading rule file is acquired or not;
the generation module is used for analyzing the form configuration file and generating a form page of the target form according to the analysis result;
and the display module is used for displaying the form page of the target form.
28. A service operation device applied to a service operation platform, comprising:
the system comprises an acquisition module, a configuration platform and a configuration module, wherein the acquisition module is used for acquiring a target configuration file of a target form to be accessed from the configuration platform according to user identity information of an access user of the target form, the target configuration file is configured by a user on the configuration platform through a form configuration interface, 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, the cascading rule file is used for describing cascading rules among form components of the target form, 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, the first form configuration file comprises the page structure description file and the first cascading rule file configured by the first user, and the user identity information indicates whether the target configuration file comprises the second cascading rule file or not;
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.
29. A configuration device for use in a configuration platform, comprising:
the searching module is used for responding to a request of the service operation platform for acquiring the target configuration file of the target form to be accessed from the configuration platform, searching 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 by a user, and comprises the following steps: responding to a request of the service operation platform for acquiring the target configuration file from a configuration platform according to user identity information of an access user of the target form, and searching a target configuration file of the target form in a form configuration file of the target form configured by the configuration platform through a form configuration interface in advance; the form configuration files of the target form comprise 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 a page structure description file and a first cascading rule file configured by the first user; the user identity information indicates whether the target configuration file comprises the second cascading rule file or not, 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 the page structure of the target form, and the cascading rule file is used for describing cascading rules 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.
30. An apparatus for implementing a form customization service, comprising: a memory and a processor, the memory for storing a computer program; the processor being adapted to perform the method of any of claims 1-3 when the computer program is invoked.
31. A customized form handling device, comprising: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of any of claims 4-7 when the computer program is invoked.
32. A business operation platform, comprising: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of any of claims 8-16 when the computer program is invoked.
33. A configuration platform, comprising: a memory and a processor, the memory for storing a computer program; the processor is configured to perform the method of any of claims 17-25 when the computer program is invoked.
34. A form generation system, comprising: the business operations platform of claim 32 and the configuration platform of claim 33.
35. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-25.
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 CN111427559A (en) 2020-07-17
CN111427559B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

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
余洋 ; 孙林夫 ; 马亚花 ; .面向产业链协同云服务平台的多租户表单定制技术.计算机集成制造***.(09),全文. *

Also Published As

Publication number Publication date
CN111427559A (en) 2020-07-17

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
CN113094037A (en) Interaction method, development platform, equipment and storage medium for forms and workflows
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US9471211B2 (en) Chaining applications
US10558653B2 (en) Dynamic, variable-data attribute data service
US20100125541A1 (en) Popup window for error correction
EP3910909B1 (en) Method and device for displaying information
US20240160410A1 (en) Application Development Platform, Micro-program Generation Method, and Device and Storage Medium
CN112463135A (en) Code generation method, code generator, electronic device, and storage medium
US11252257B2 (en) Dynamic rest access
US20210311948A1 (en) Evaluation of programmable conditions applicable to an operation
US10503823B2 (en) Method and apparatus providing contextual suggestion in planning spreadsheet
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
US10942948B2 (en) Cloud-based pluggable classification system
CN113419711A (en) Page guiding method and device, electronic equipment and storage medium
US9280361B2 (en) Methods and systems for a real time transformation of declarative model and layout into interactive, digital, multi device forms
CN110928540A (en) Page generation method and device
US10929380B2 (en) Definition of programmable conditions applicable to an operation
CN112948472A (en) Data processing method, device, equipment and computer readable medium
JP2016146022A (en) Model base development support device, model base development support method, and model base development support program
US11449493B2 (en) Persistent and configurable multidimensional data constraints
US20230281214A1 (en) Actor-based information system
JP2018041168A (en) Information processing device, information processing system, information processing program, and information processing method

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