Scheduling method, device, computer equipment and storage medium based on dynamic form

By creating and filling dynamic form templates, generating scheduling orders and process instances, and realizing the mapping relationship between process instances and scheduling object instances, the problems of poor scheduling compatibility and low processing efficiency in the existing technology are solved, and flexible and efficient form design and scheduling are achieved.

CN115840745BActive Publication Date: 2025-02-28CHONGQING ZHONGRAN DIGITAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211407841.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2025-02-28
Estimated Expiration
2042-11-10

AI Technical Summary

Technical Problem

The task scheduling method of form in the prior art has problems of poor compatibility and low processing efficiency.

Method used

Generate a target dynamic form by creating a dynamic form template based on the metadata table describing the business object model and populating the dynamic form template based on the preset style library and the preset component library. Then, a scheduler is generated by the target dynamic form, and a process instance including a predefined path is generated based on the business type and action type of the scheduler. Start the process instance according to the process scheduling rules, generate the scheduling object instance, and establish a mapping relationship between the process instance and the scheduling object instance to realize flow scheduling.

Benefits of technology

It realizes automatic generation of corresponding target dynamic forms when adding a new business object model, avoids customized development by developers, and improves the flexibility and compatibility of form design. At the same time, through automatic flow scheduling, processing efficiency is improved, and users can clearly understand the entire path and current links of dynamic forms in task scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115840745B_ABST
    Figure CN115840745B_ABST
Patent Text Reader

Abstract

The present invention provides a scheduling method, device, computer equipment and storage medium based on dynamic forms, the method comprising: creating a dynamic form template according to a metadata database table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form matching the business object model; generating a process instance including a predefined path according to the business type and action type of the scheduling list; starting the process instance according to a process scheduling rule to generate a scheduling object instance; establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to the predefined path. The present invention can automatically generate a corresponding target dynamic form when a new business object model is added, thereby increasing the flexibility of form design and improving the compatibility and maintainability of forms in different systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a scheduling method, device, computer equipment and storage medium based on a dynamic form. Background Art

[0002] In enterprises, it is usually necessary to design different business forms according to different business needs, and interact with users through forms to realize data collection and application; among them, the business form can be the data collection and display of a business, the collection and push of key information of a workflow, or the dispatch of work tasks.

[0003] However, when enterprise users put forward new business requirements, developers are often required to customize the forms based on the business requirements, which makes the business system development workload large and the development cycle long, resulting in poor form compatibility. In addition, manual process conversion is usually required when scheduling tasks for forms, which not only results in low processing efficiency.

[0004] It can be seen that the task scheduling method of the form in the prior art has the problems of poor compatibility and low processing efficiency. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a scheduling method, device, computer equipment and storage medium based on dynamic forms, which solve the problems of poor compatibility and low processing efficiency of the form task scheduling method in the prior art.

[0006] In a first aspect, the present invention provides a scheduling method based on dynamic forms, the method comprising: creating a dynamic form template according to a metadata library table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form matching the business object model; generating a scheduling sheet from the target dynamic form, and generating a process instance including a predefined path according to the business type and action type of the scheduling sheet; starting the process instance according to a process scheduling rule to generate a scheduling object instance; establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to the predefined path, so that the current scheduling node and the node to be processed are displayed in the predefined path of the process instance.

[0007] Optionally, creating a dynamic form template based on a metadata base table that describes a business object model includes: establishing a metadata base table that matches the business object model; generating a corresponding component area based on the field type corresponding to each field name to be displayed in the metadata base table; and combining each field name and the corresponding component area to obtain the dynamic form template.

[0008] Optionally, the dynamic form template is filled according to a preset style library and a preset component library to obtain a target dynamic form that matches the business object model, including: obtaining matching components from the preset component library according to the field type corresponding to each field name in the dynamic form template, and filling the components into corresponding component areas to obtain a preprocessed dynamic form; updating the style of the preprocessed dynamic form according to the preset style library, and adjusting the arrangement order of field names in the preprocessed dynamic form to obtain the target dynamic form.

[0009] Optionally, when there are multiple scheduling orders at the same time, before generating a process instance including a predefined path according to the business type and action type of the scheduling order, the method also includes: determining whether there is a collaborative relationship between the multiple scheduling orders; when a collaborative relationship exists, taking the scheduling order with the highest priority in the collaborative relationship as the target scheduling order; monitoring the current scheduling node of the target scheduling order, and when the current scheduling node is the end, converting the next level scheduling order of the target scheduling order into a process instance.

[0010] Optionally, the method also includes: determining whether there is a dependency relationship between the multiple scheduling lists; when a dependency relationship exists, obtaining the first scheduling list that is dependent on the dependency relationship, the dependent node in the first scheduling list, and the dependent second scheduling list; monitoring the current scheduling node of the first scheduling list, and when the current scheduling node is the dependent node, converting the second scheduling list into a process instance.

[0011] In a second aspect, the present invention provides a scheduling device based on dynamic forms, the device comprising: a dynamic form generation module, used to create a dynamic form template according to a metadata library table describing a business object model, and fill the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form that matches the business object model; a process instance generation module, used to generate a scheduling sheet from the target dynamic form, and generate a process instance including a predefined path according to the business type and action type of the scheduling sheet; a scheduling object instance generation module, used to start the process instance according to a process scheduling rule and generate a scheduling object instance; a flow scheduling module, used to establish a mapping relationship between the process instance and the scheduling object instance, and flow schedule the scheduling object instance according to the predefined path, so that the current scheduling node and the node to be processed are displayed in the predefined path of the process instance.

[0012] Optionally, the dynamic form generation module includes: a metadata base table establishment module, used to establish a metadata base table matching the business object model; a component area generation module, used to generate a corresponding component area according to the field type corresponding to each field name to be displayed in the metadata base table; and a form template generation module, used to combine each field name and the corresponding component area to obtain the dynamic form template.

[0013] Optionally, the dynamic form generation module also includes: a preprocessing dynamic form generation module, which is used to obtain matching components from the preset component library according to the field type corresponding to each field name in the dynamic form template, and fill the components into the corresponding component area to obtain a preprocessing dynamic form; a preprocessing dynamic form adjustment module, which is used to update the style of the preprocessing dynamic form according to the preset style library, and adjust the arrangement order of the field names in the preprocessing dynamic form to obtain the target dynamic form.

[0014] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: creating a dynamic form template according to a metadata library table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form matching the business object model; generating a scheduling form with the target dynamic form, and generating a process instance including a predefined path according to the business type and action type of the scheduling form; starting the process instance according to a process scheduling rule to generate a scheduling object instance; establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to the predefined path, so that the current scheduling node and the nodes to be processed are displayed in the predefined path of the process instance.

[0015] In a fourth aspect, the present invention provides a readable storage medium having a computer program stored thereon, wherein the computer program implements the following steps when executed by a processor: creating a dynamic form template according to a metadata library table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form that matches the business object model; generating a scheduling form with the target dynamic form, and generating a process instance including a predefined path according to the business type and action type of the scheduling form; starting the process instance according to a process scheduling rule to generate a scheduling object instance; establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to the predefined path, so that the current scheduling node and the nodes to be processed are displayed in the predefined path of the process instance.

[0016] Compared with the prior art, the present invention has the following beneficial effects:

[0017] 1. The present invention establishes different dynamic form templates for different business object models, and then adjusts and fills the dynamic form templates according to a preset style library and a component library to obtain target dynamic forms that match different business object models. Thus, the corresponding target dynamic forms can be automatically generated when a new business object model is added, without the need for developers to customize the form, thereby increasing the flexibility of form design and improving the compatibility and maintainability of the form in different systems.

[0018] 2. The present invention generates a scheduling list from a target dynamic form filled with a data source, converts the scheduling list into a process instance with a predefined path, generates a scheduling object instance from the process instance, and then associates the scheduling object instance with the process instance, so that while the scheduling object instance is automatically transferred and scheduled, the current scheduling node and the node to be processed can be displayed in the predefined path of the process instance. This not only solves the problem of low processing efficiency through manual transfer, but also allows users to clearly understand the entire path and current link of the dynamic form when performing task scheduling through workflow, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 FIG. 1 is a flow chart of a scheduling method based on a dynamic form provided by an embodiment of the present invention;

[0020] Figure 2 Shown Figure 1 Specific flow diagram of step S101;

[0021] Figure 3 The figure is a flow chart of a scheduling method based on a dynamic form provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0023] In a first aspect, the present invention provides a scheduling method based on a dynamic form, which specifically includes the following embodiments:

[0024] Figure 1FIG. 1 is a flow chart of a scheduling method based on a dynamic form provided by an embodiment of the present invention. Figure 1 As shown, the specific steps include:

[0025] Step S101 : creating a dynamic form template according to a metadata library table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form matching the business object model.

[0026] In this embodiment, if Figure 2 As shown, step S101 specifically includes the following steps:

[0027] Step S201, establishing a metadata database table matching the business object model;

[0028] Step S202, generating a corresponding component area according to the field type corresponding to each field name to be displayed in the metadata library table;

[0029] Step S203, combining each field name and the corresponding component area to obtain the dynamic form template;

[0030] Step S204, according to the field type corresponding to each field name in the dynamic form template, a matching component is obtained from the preset component library, and the component is filled into the corresponding component area to obtain a preprocessed dynamic form;

[0031] Step S205 , updating the style of the pre-processed dynamic form according to the preset style library, and adjusting the arrangement order of the field names in the pre-processed dynamic form to obtain the target dynamic form.

[0032] It should be noted that metadata is generally defined as data that describes data, and the data that changes the behavior of the program by modifying its data, such as modifying the contents such as hiding, selecting the control type, the number of pages, the number of columns, etc. in the metadata, which will lead to different display results. The metadata database table in this embodiment is a collection of metadata, including but not limited to table name, field name, field type, field size, whether it is empty, whether it is unique, reference value, default value, collaborative table name, dependent table name, dependent node name, dependent table name and dependent node name.

[0033] The business object model in this embodiment is an object model that describes the implementation of business use cases. It is an abstraction of how business roles and business entities should be connected and collaborated to execute business, including but not limited to application business model, dispatch business model, order signing business model, payment request business model and refund business model, among which the application business model includes leave business, card replacement business, car use business and other application-based businesses.

[0034] It should be noted that a corresponding metadata database table is established for each business object model according to the user page input method, and attribute information can also be set for each field name, such as display serial number, component type, whether to display and column description, etc.; the field type corresponding to the field name in this embodiment also corresponds to the component type, such as text box, drop-down box, time component, button, radio button, check box, etc.; each field name to be displayed and the reserved component area form the dynamic form template; then select components from the preset component library and place them in the corresponding component area, and adaptively adjust the display order and position relationship of the field names to obtain the target dynamic form.

[0035] Step S102: Generate a dispatch list from the target dynamic form, and generate a process instance including a predefined path according to the business type and action type of the dispatch list.

[0036] In this embodiment, a scheduling form is generated after the data source is filled in for the target dynamic form. For example, when a user needs to submit a leave application for approval, the target dynamic form corresponding to the leave business is obtained and data is filled in to obtain a leave scheduling form corresponding to the leave business. This embodiment configures the relationship between the business action and the process template through the initialization configuration rules, passes in the rule parameters when starting the process to obtain the process template, calls the workflow, and generates a process instance, wherein the process instance includes a predefined path, and the predefined path includes all scheduling nodes. For example, the predefined path of the leave scheduling form includes a start node, a direct supervisor approval node, a department leader approval node, and an administrative approval node.

[0037] Step S103: start the process instance according to the process scheduling rule and generate a scheduling object instance.

[0038] It should be noted that the process scheduling rules include but are not limited to process scheduling rules generated according to the work dispatching strategy.

[0039] Step S104, establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to a predefined path, so that the current scheduling node and the node to be processed are displayed in the predefined path of the process instance.

[0040] It should be noted that the process instance in this embodiment is a display instance used to display the predefined path. The scheduling object instance refers to the specific manifestation of the business and the business instantiation conversion. The business receives the parsed data and instantiates it into a scheduling object. It is an internal instance that actually circulates during the scheduling process. The process instance and the scheduling object instance are associated through the process engine API, and the serial, parallel, conditional branching, and fallback flow of each scheduling node in the predefined path are implemented through the process engine API to realize the suspension, reply and cancellation of the service. The conditional branch judgment, link jump judgment and exception handling scheduling are also implemented through policy rules, so that the current scheduling node and the node to be processed are displayed in the predefined path of the process instance.

[0041] Compared with the prior art, this embodiment has the following beneficial effects:

[0042] 1. The present invention establishes different dynamic form templates for different business object models, and then adjusts and fills the dynamic form templates according to a preset style library and a component library to obtain target dynamic forms that match different business object models. Thus, the corresponding target dynamic forms can be automatically generated when a new business object model is added, without the need for developers to customize the form, thereby increasing the flexibility of form design and improving the compatibility and maintainability of the form in different systems.

[0043] 2. The present invention generates a scheduling list from a target dynamic form filled with a data source, converts the scheduling list into a process instance with a predefined path, generates a scheduling object instance from the process instance, and then associates the scheduling object instance with the process instance, so that while the scheduling object instance is automatically transferred and scheduled, the current scheduling node and the node to be processed can be displayed in the predefined path of the process instance. This not only solves the problem of low processing efficiency through manual transfer, but also allows users to clearly understand the entire path and current link of the dynamic form when performing task scheduling through workflow, thereby improving the user experience.

[0044] In another embodiment of the present invention, when there are multiple scheduling orders at the same time, before generating a process instance including a predefined path according to the business type and action type of the scheduling order, the method also includes: determining whether there is a collaborative relationship between the multiple scheduling orders; when a collaborative relationship exists, taking the scheduling order with the highest priority in the collaborative relationship as the target scheduling order; monitoring the current scheduling node of the target scheduling order, and when the current scheduling node is the end, converting the next level scheduling order of the target scheduling order into a process instance.

[0045] In another embodiment of the present invention, the method also includes: determining whether there is a dependency relationship between the multiple scheduling lists; when a dependency relationship exists, obtaining the first scheduling list that is dependent on the dependency relationship, the dependent node in the first scheduling list, and the dependent second scheduling list; monitoring the current scheduling node of the first scheduling list, and when the current scheduling node is the dependent node, converting the second scheduling list into a process instance.

[0046] It should be noted that this embodiment can guide and coordinate multiple dispatch orders, that is, control the collaborative control or dependency control between multiple dispatch orders according to business rules. There are dependencies and collaborative relationships between multiple dispatch orders, that is, a dispatch order may have to wait for other dispatch orders to be completed before it can be started. This relationship is called the collaborative relationship of the dispatch order; the key information of a dispatch order depends on the results of other dispatch orders. This relationship is called the dependency relationship of the dispatch order. Specifically, multiple dispatch orders are controlled by the construction group. For example, after configuring the process template, the synchronization and dependency strategies can be configured for two business dispatch process nodes in the same process template or between different process templates. To achieve synchronous execution or waiting for dependent execution of two dispatch service process nodes. Synchronization: The synchronization nodes must be generated together. When the A process in the group flows to the synchronization node, and the B process in the group has not yet flowed to the synchronization node, the A process will suspend the flow and wait for the B process to flow to the synchronization node before generating the synchronization node together. Dependence: The dependent activity instance must be generated only when the dependent activity instance is completed. For example, if the A process in the group depends on the B process, the dependent activity instance of the A process can only be generated when the dependent activity instance of the B process is completed.

[0047] In a second aspect, the present invention provides a scheduling device based on dynamic forms, the device comprising: a dynamic form generation module, used to create a dynamic form template according to a metadata library table describing a business object model, and fill the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form that matches the business object model; a process instance generation module, used to generate a scheduling sheet from the target dynamic form, and generate a process instance including a predefined path according to the business type and action type of the scheduling sheet; a scheduling object instance generation module, used to start the process instance according to a process scheduling rule and generate a scheduling object instance; a flow scheduling module, used to establish a mapping relationship between the process instance and the scheduling object instance, and flow schedule the scheduling object instance according to the predefined path, so that the current scheduling node and the node to be processed are displayed in the predefined path of the process instance.

[0048] Optionally, the dynamic form generation module includes: a metadata base table establishment module, used to establish a metadata base table matching the business object model; a component area generation module, used to generate a corresponding component area according to the field type corresponding to each field name to be displayed in the metadata base table; and a form template generation module, used to combine each field name and the corresponding component area to obtain the dynamic form template.

[0049] Optionally, the dynamic form generation module also includes: a preprocessing dynamic form generation module, which is used to obtain matching components from the preset component library according to the field type corresponding to each field name in the dynamic form template, and fill the components into the corresponding component area to obtain a preprocessing dynamic form; a preprocessing dynamic form adjustment module, which is used to update the style of the preprocessing dynamic form according to the preset style library, and adjust the arrangement order of the field names in the preprocessing dynamic form to obtain the target dynamic form.

[0050] like Figure 3 As shown, this embodiment provides another scheduling method based on dynamic forms, including the generation of dynamic forms and the generation of task scheduling workflows according to the content of dynamic forms; wherein the dynamic form is to create a dynamic form template according to the metadata describing the business object model, establish a corresponding style library, component library, template library, etc., and establish a unified model for form loading, form parsing, and form data processing; the role of the dynamic form is to flexibly configure and expand the business, avoid hard-coded data collection and processing forms in the system, and improve the maintainability of the system, specifically including elements, attributes, UI templates, APIs, element rules, etc.; the business object model is an object model that describes the implementation of business use cases. It is an abstraction of how business roles and business entities should be connected and collaborated to perform business; wherein the dynamic form can cover most form business scenarios, each component can be dynamically configured, and multiple rules are verified. For selective controls (radio, select, checkbox), a post-selection trigger call is provided, expressions are supported, and data linkage functions are supported, through which multi-level linkage can be performed. The form style and fields can be flexibly adjusted, the layout method is diversified, and multiple layout methods such as grids and tables are provided.

[0051] The task scheduling engine includes process start, process scheduling, process collaboration, and process query. Process start refers to dynamically matching and generating process instances based on the business type, action, and other elements on the scheduling sheet. Process scheduling refers to generating process instances based on process templates and starting processes to start process scheduling. The process module notifies the process scheduling module of the generated process instance, and the process scheduling module automatically starts the corresponding process instance according to the process scheduling rules. Process scheduling starts the business process through the process engine API and establishes an association between the process instance and the scheduling object instance. The process engine implements the serial, parallel, conditional branch, and fallback flow of links, and realizes the suspension, resumption, and cancellation of services. The policy rules implement conditional branch judgment, link jump judgment, and exception handling scheduling. The flow scheduling of process instances is carried out according to the predefined path. Scheduling collaboration controls the collaborative control or dependency control between multiple scheduling sheets according to business rules. There is a dependency and collaborative relationship between multiple scheduling sheets, that is, a scheduling sheet may have to wait for other scheduling sheets to be completed before it can be started. This relationship is called the collaborative relationship of scheduling sheets; the key information of a scheduling sheet depends on the results of other scheduling sheets. This relationship is called the dependency relationship of scheduling sheets. Process query: You can use the process query function provided on the page to query the basic information of the process, process matching status, process configuration status, etc., using the process instance ID and scheduling order number as query conditions.

[0052] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: creating a dynamic form template according to a metadata library table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form matching the business object model; generating a scheduling form with the target dynamic form, and generating a process instance including a predefined path according to the business type and action type of the scheduling form; starting the process instance according to a process scheduling rule to generate a scheduling object instance; establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to the predefined path, so that the current scheduling node and the nodes to be processed are displayed in the predefined path of the process instance.

[0053] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein the computer program implements the following steps when executed by a processor: creating a dynamic form template according to a metadata library table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form that matches the business object model; generating a scheduling form with the target dynamic form, and generating a process instance including a predefined path according to the business type and action type of the scheduling form; starting the process instance according to a process scheduling rule to generate a scheduling object instance; establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to the predefined path, so that the current scheduling node and the nodes to be processed are displayed in the predefined path of the process instance.

[0054] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0055] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A scheduling method based on dynamic forms, characterized in that: The method comprises: Creating a dynamic form template according to a metadata library table describing a business object model, and filling the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form matching the business object model; Generate a dispatch list from the target dynamic form, and generate a process instance including a predefined path according to the business type and action type of the dispatch list; Starting the process instance according to the process scheduling rules and generating a scheduling object instance; Establishing a mapping relationship between the process instance and the scheduling object instance, and performing flow scheduling on the scheduling object instance according to a predefined path, so that the current scheduling node and the to-be-processed node are displayed in the predefined path of the process instance; When there are multiple dispatch orders at the same time, before generating a process instance including a predefined path according to the business type and action type of the dispatch order, the method further includes: Determining whether there is a collaborative relationship between the multiple dispatch orders; When there is a collaborative relationship, the dispatch order with the highest priority in the collaborative relationship is used as the target dispatch order; The current scheduling node of the target scheduling list is monitored, and when the current scheduling node is ended, the next level scheduling list of the target scheduling list is converted into a process instance.

2. The dynamic form-based scheduling method according to claim 1, characterized in that: Create dynamic form templates based on metadata database tables that describe the business object model, including: Establishing a metadata database table matching the business object model; Generate a corresponding component area according to the field type corresponding to each field name to be displayed in the metadata database table; Each field name and the corresponding component area are combined to obtain the dynamic form template.

3. The dynamic form-based scheduling method according to claim 2, characterized in that: Filling the dynamic form template according to the preset style library and the preset component library to obtain a target dynamic form matching the business object model includes: According to the field type corresponding to each field name in the dynamic form template, a matching component is obtained from the preset component library, and the component is filled into the corresponding component area to obtain a preprocessed dynamic form; The style of the pre-processed dynamic form is updated according to the preset style library, and the arrangement order of the field names in the pre-processed dynamic form is adjusted to obtain the target dynamic form.

4. The dynamic form-based scheduling method according to claim 1, characterized in that: The method further comprises: Determining whether there is a dependency relationship between the multiple dispatch orders; When there is a dependency relationship, obtaining the first scheduling list that is dependent on the dependency relationship, the dependent node in the first scheduling list, and the dependent second scheduling list; The current scheduling node of the first scheduling list is monitored, and when the current scheduling node is the dependent node, the second scheduling list is converted into a process instance.

5. A scheduling device based on a dynamic form, characterized in that: The scheduling method based on dynamic form as described in any one of claims 1 to 4 above is cited, and the device comprises: A dynamic form generation module, used to create a dynamic form template according to a metadata library table describing a business object model, and fill the dynamic form template according to a preset style library and a preset component library to obtain a target dynamic form matching the business object model; A process instance generation module, used to generate a dispatch sheet from the target dynamic form, and generate a process instance including a predefined path according to the business type and action type of the dispatch sheet; A scheduling object instance generation module, used to start the process instance according to the process scheduling rules and generate a scheduling object instance; The flow scheduling module is used to establish a mapping relationship between the process instance and the scheduling object instance, and to perform flow scheduling on the scheduling object instance according to a predefined path, so that the current scheduling node and the node to be processed are displayed in the predefined path of the process instance.

6. The dynamic form-based scheduling device according to claim 5, characterized in that: The dynamic form generation module includes: A metadata library table establishment module, used to establish a metadata library table matching the business object model; A component area generating module, used for generating a corresponding component area according to the field type corresponding to each field name to be displayed in the metadata database table; The form template generation module is used to combine each field name and the corresponding component area to obtain the dynamic form template.

7. The dynamic form-based scheduling device according to claim 6, characterized in that: The dynamic form generation module also includes: A preprocessing dynamic form generation module, used to obtain matching components from the preset component library according to the field type corresponding to each field name in the dynamic form template, and fill the components into the corresponding component area to obtain a preprocessing dynamic form; The preprocessing dynamic form adjustment module is used to update the style of the preprocessing dynamic form according to the preset style library and adjust the arrangement order of the field names in the preprocessing dynamic form to obtain the target dynamic form.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

9. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Task processing method and device

    CN109784716A

  • Management system and method based on custom form and Activiti workflow

    CN112668295A

  • Form instance generation method and device capable of being dynamically configured

    CN114201718A