Application method and device of form in process design, equipment and storage medium
By dynamically adjusting the visibility mode and operation permissions of form fields, and combining the message middleware to distribute process events, the shortcomings of the low-code platform in the linkage between forms and processes are solved, and process processing efficiency and system adaptability are improved.
Patent Information
- Application Number
- CN202410998846.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-27
AI Technical Summary
Existing low-code platforms have deficiencies in the linkage between forms and processes, the versatility of process event notifications, and external interface expansion, resulting in low process processing efficiency.
By obtaining the shared form page, dynamically adjust the visibility mode and operation permissions of the form fields, use message middleware to distribute process events, and determine the target visibility mode and target operation permissions based on the preset low-code platform to render and display the form page.
It improves the flexibility and adaptability of the form, ensures that users can obtain the latest process status in a timely manner, improves process processing efficiency, and enhances the flexibility and adaptability of the system.
Smart Images

Figure CN118708157A
Abstract
Description
Technical Field
[0001] The present application relates to the field of form application technology, and in particular to a method, device, equipment and storage medium for applying a form in process design. Background Art
[0002] In the current digital transformation of enterprises, traditional form page development and process design can no longer meet the rapidly changing business needs. In recent years, process engines and form low-code development have been widely used. However, the existing low-code platform still has shortcomings in the linkage between forms and processes, the versatility of process event notifications, and external interface expansion. Specifically, existing process event notifications usually use hard coding or real-time callback methods, which limits their flexibility, stability, and scalability. In addition, form pages and process designs are often separated, resulting in a poor linkage between the two, which in turn leads to low process processing efficiency.
[0003] Therefore, how to improve process processing efficiency is a problem that needs to be solved urgently.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a method, device, equipment and storage medium for applying a form in process design, aiming to solve the technical problem of how to improve process processing efficiency.
[0006] To achieve the above purpose, the present application provides a method for applying a form in process design, the method comprising the following steps: Get a common form page, the visibility mode of the form fields in the common form page and The operation permissions correspond to the process events to which they belong; Distribute current process events based on message middleware; According to the preset low-code platform, determine the target visibility mode and target operation authority corresponding to the current process event; Based on the target visibility mode and the target operation authority, the preset low-code platform is used to render and display the common form page.
[0007] In one embodiment, before the step of obtaining the common form page, the method further includes: Obtain an initial form page, where the initial form page is a form page created on a graphical interface of a preset low-code platform based on a preset drag-and-drop component; Generating configuration metadata of the initial form page; Based on the configuration metadata and the preset field definition strategy, define the visibility mode and operation permissions of the form fields in the initial form page; The defined initial form page is used as the common form page.
[0008] In one embodiment, the step of determining the target visibility mode and target operation authority corresponding to the current process event according to the preset low-code platform includes: Based on the preset low-code platform, read the configuration metadata; Determine the visibility rules and operation permission rules according to the configuration metadata; Determine the target visibility mode according to the type and node of the current process event and the visibility rule; The target operation authority is determined according to the type and node of the current process event and the operation authority rule.
[0009] In one embodiment, the method further comprises: The preset manual query interface, preset task allocation interface, preset reminder interface and preset cancellation interface are respectively associated with the corresponding front-end interface.
[0010] In one embodiment, before the step of distributing the current process event based on the message middleware, the method further includes: Monitor the current process instance in real time; When the process instance task is completed or the task status changes, the task information of the current process instance is obtained; Based on the task information, an event object is created, and the fields of the event object are filled to obtain the current process event.
[0011] In one embodiment, the message middleware is Kafka, and the step of distributing the current process event based on the message middleware includes: Convert the current process event into a new format; Call the sending interface of the Kafka to send the current process event after format conversion to the preset topic of the Kafka; Based on the Kafka, the current process event is distributed to subscribers of the target topic, wherein the target topic corresponds to the preset topic.
[0012] In one embodiment, the step of rendering and displaying the common form page using the preset low-code platform based on the target visibility mode and the target operation authority includes: Loading the initial configuration of the common form page; Based on the target visibility mode, adjusting the visibility attribute value in the initial configuration; Based on the target operation authority, adjusting the operation authority attribute value in the initial configuration; The adjusted configuration is used as the target configuration, and based on the target configuration, the preset low-code platform is used to render and display the common form page.
[0013] In addition, to achieve the above purpose, the present application also proposes a form application device in process design, and the form application device in process design includes: A form acquisition module, used to acquire a common form page, wherein the visibility mode and operation permissions of the form fields in the common form page correspond to the process events to which they belong; Process distribution module, used to distribute current process events based on message middleware; A configuration acquisition module is used to determine the target visibility mode and target operation authority corresponding to the current process event according to a preset low-code platform; A rendering and display module is used to render and display the common form page based on the target visibility mode and the target operation authority using the preset low-code platform.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a device for applying forms in process design, the device comprising: a memory, a processor, and an application for forms in process design stored in the memory and executable on the processor, the application for forms in process design being configured to implement the steps of the method for applying forms in process design as described above.
[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, on which is stored an application of a form in process design, and when the application of the form in process design is executed by a processor, the steps of applying the form in process design as described above are implemented.
[0016] This application obtains a common form page, in which the visibility mode and operation permissions of the form fields correspond to the process events to which they belong; then distributes the current process events based on the message middleware; determines the target visibility mode and target operation permissions corresponding to the current process event based on the preset low-code platform; and finally, based on the target visibility mode and target operation permissions, uses the preset low-code platform to render and display the common form page. Through the common form page, this application can dynamically adjust the visibility mode and operation permissions of the form fields according to different process events, improve the flexibility and adaptability of the form, and use the message middleware to distribute process events to ensure that users obtain the latest process status in a timely manner and perform corresponding operations, thereby improving process processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a flow chart of a first embodiment of a method for applying the application form in process design; Figure 2 This is a schematic diagram of a sub-process in the second embodiment of the method for applying the application form in process design; Figure 3 This is another sub-process diagram of the second embodiment of the application method of the application form in process design; Figure 4 This is a schematic diagram of a sub-process in the third embodiment of the method for applying the application form in process design; Figure 5 This is another sub-process diagram of the third embodiment of the method for applying the application form in process design; Figure 6 This is an example diagram of the system architecture in an embodiment of the method for applying the application form in process design; Figure 7 This is an example diagram of a process in an embodiment of a method for applying the application form in process design; Figure 8 A schematic diagram of the module structure of the application device of the form in the process design of the embodiment of the present application; Fig. 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the application method of the form in the process design in the embodiment of the present application.
[0018] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0019] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0020] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0021] It should be noted that in the current digital transformation of enterprises, traditional form page development and process design can no longer meet the rapidly changing business needs. In recent years, process engines and form low-code development have been widely used. However, the existing low-code platform still has shortcomings in the linkage between forms and processes, the versatility of process event notifications, and external interface expansion. Specifically, existing process event notifications usually use hard coding or real-time callback methods, which limits their flexibility, stability, and scalability. In addition, form pages and process designs are often separated, resulting in a poor linkage between the two, which in turn leads to low process processing efficiency. Therefore, how to improve process processing efficiency is a problem that needs to be solved urgently.
[0022] The main solution of this application is: by obtaining the common form page, the visibility mode and operation permissions of the form fields in the common form page correspond to the corresponding process events; then distribute the current process events based on the message middleware; according to the preset low-code platform, determine the target visibility mode and target operation permissions corresponding to the current process event; finally, based on the target visibility mode and target operation permissions, use the preset low-code platform to render and display the common form page.
[0023] This application uses a shared form page, and the system can dynamically adjust the visibility and operation permissions of form fields according to different process events, improve the flexibility and adaptability of the form, and use message middleware to distribute process events to ensure that users can obtain the latest process status in a timely manner and perform corresponding operations, thereby improving process processing efficiency.
[0024] It should be noted that the execution subject of the method of this embodiment can be a computing service device with data processing, network communication and program running functions, or it can be an application device of the above-mentioned form in process design with the same or similar functions. This embodiment and the following embodiments will be described by taking the application device of the form in process design as an example.
[0025] Based on this, the first embodiment of the application method of this application form in process design is proposed, please refer to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the method for applying the application form in process design.
[0026] In this embodiment, the method for applying the form in process design includes the following steps: S1: Obtain a common form page, in which the visibility mode and operation authority of the form fields in the common form page correspond to the corresponding process events; Specifically, the basic configuration of the common form page is loaded from a database or configuration file. The form page contains all possible fields and their default properties. A business process diagram is defined in a process design tool. The common form page is bound to each node in the process diagram.
[0027] Furthermore, the visibility mode and operation permissions of the form fields are configured for each process node. The visibility mode determines whether the field is visible, and the operation permissions determine whether the field is editable.
[0028] It should be noted that the shared form page refers to the same form page used in multiple process nodes. By configuring different visibility modes and operation permissions, the form displays different fields and operation permissions on different nodes. Visibility mode refers to the visible state of the form field on different process nodes. The field can be set to visible or invisible. Operation permissions refer to the editable state of the form field on different process nodes. The field can be set to editable or read-only.
[0029] By configuring visibility modes and operation permissions, the same form page can present different states and operation permissions at different process nodes, enhancing the flexibility and adaptability of the system. Using common form pages reduces the cost of repeated development and maintenance. By configuring different visibility modes and operation permissions, the needs of different business scenarios can be met without creating separate form pages for each scenario. Dynamically adjusting the visibility and operation permissions of form fields makes the user interface more concise and easy to use, improving the user experience.
[0030] S2: performing standardization processing on the multi-type data to obtain characteristic standard data; Specifically, during the operation of a process instance, when a node task is completed or the status changes, the system needs to generate a corresponding process event notification and distribute it through a messaging middleware (such as Kafka). The process engine monitors the task status of the process instance, and triggers the event generation process when it detects that a task is completed or the status changes. The process engine sets a task status listener to monitor the execution of tasks in real time. The process engine collects information related to the current task, including the process instance ID, node ID, event type, timestamp, executor, etc. Obtain the required task information from the task execution context. The process engine creates an event object based on the collected task information and formats it into a message format acceptable to the messaging middleware (such as JSON or XML). Instantiate the event object, fill in the event information field, and convert it to JSON or XML format.
[0031] Furthermore, the formatted event message is prepared to be sent through the message middleware. The sending interface of the message middleware is called to prepare the event message to be published to a specific topic or queue. The process engine sends the event message to the Kafka topic through KafkaProducer. Kafka Broker receives the event message and distributes it to all consumers who have subscribed to the topic. Kafka Broker is responsible for efficiently distributing messages to ensure the reliability and low latency of message delivery. Consumers who have subscribed to the Kafka topic receive and process the event message. Kafka Consumer consumes messages from the specified topic and executes the corresponding processing logic.
[0032] It should be noted that message middleware is a tool for delivering messages in distributed systems, such as Kafka. It provides an asynchronous communication mechanism to ensure the reliable transmission of messages. The process engine is a software system responsible for executing and managing business process instances. Common process engines include Activiti, Flowable, etc. Kafka is a distributed stream processing platform that excels at high-throughput, low-latency data transmission. Kafka consists of producers, consumers, and brokers for publishing and subscribing to messages. Event objects are objects that contain information about the state changes of process instances, such as process instance ID, node ID, event type, timestamp, executor, etc.
[0033] Event distribution is performed through message middleware (such as Kafka) to ensure efficient transmission and processing of event messages in high-concurrency scenarios. Message middleware achieves loose coupling between systems and improves the flexibility and scalability of the system. Message middleware such as Kafka provides a reliable message transmission mechanism to ensure accurate and timely delivery of process events. The system can add new consumers as needed to handle different types of events and improve the scalability of the system.
[0034] S3: Determine the target visibility mode and target operation authority corresponding to the current process event according to the preset low-code platform; Wherein, step S3 specifically includes: S31: Based on the preset low-code platform, read the configuration metadata; S32: Determine the visibility rules and operation authority rules according to the configuration metadata; S33: Determine the target visibility mode according to the type and node of the current process event and the visibility rule; S34: Determine the target operation authority according to the type and node of the current process event and the operation authority rule.
[0035] It should be noted that the preset low-code platform is a pre-set and configured low-code development platform that provides a graphical interface and predefined components for simplified development. Configuration metadata is structured data that stores form fields and process node configuration information. Display and hide rules refer to the rules that define the display or hide status of fields at different process nodes. Operation permission rules refer to the rules that define the editable or read-only status of fields at different process nodes. The type of the current process event refers to the specific event type in the process execution, such as node arrival, approval, etc. Node refers to a specific step or position in the process. The target display and hide mode refers to the display or hide status of the field on the current node determined according to the display and hide rules. The target operation permission refers to the editable or read-only status of the field on the current node determined according to the operation permission rules.
[0036] Specifically, on the low-code platform, the system will automatically read the configuration metadata. The purpose of this step is to obtain all the configuration information of the form fields and provide basic data for subsequent visibility control and permission settings. The system extracts visibility rules and operation permission rules from the configuration metadata. These rules are usually pre-defined according to business needs and can include multiple conditions and logical judgments. Combined with the type and node of the current process event, the visibility rules are applied to determine which fields need to be displayed and which need to be hidden at the current node. This step ensures that the form interface can be dynamically adjusted to adapt to different business scenarios. Based on the type and node of the current process event, the operation permission rules are applied to determine which fields are editable and which are read-only at the current node. This step ensures that the user's operation permissions at different nodes meet business requirements.
[0037] By reading configuration metadata and applying explicit and implicit rules, the system can dynamically adjust the form interface to ensure that the content that users see at each process node meets the current business needs, thereby improving the flexibility of the system. Through the operation permission rules, the system can perform refined permission control on the fields on each process node to ensure that the user's operation permissions are consistent with the business process, thereby enhancing the security and reliability of the system. Through preset rules and automated processing, the workload of manual configuration and adjustment is reduced, and the automation and operational efficiency of the system are improved. The use of low-code platforms simplifies the development process, and developers can quickly configure and adjust rules through a graphical interface, significantly improving development efficiency. Through flexible rule configuration, the system can quickly adapt to changes in business needs, enhancing the scalability and adaptability of the system. Based on the preset low-code platform, by reading configuration metadata, determining explicit and implicit rules and operation permission rules, and combining the type and node of the current process event, the system can realize dynamic adjustment of the form interface and refined permission control. This not only improves the flexibility and automation of the system, but also significantly improves development efficiency and scalability to meet rapidly changing business needs.
[0038] S4: Based on the target visibility mode and the target operation authority, the preset low-code platform is used to render and display the common form page.
[0039] Specifically, according to the current process events and nodes, the target visibility mode is read and applied to the common form page. Through the visibility mode, the system determines which fields need to be displayed on the current page and which fields need to be hidden. For example: Field A is displayed on node 1 and hidden on node 2. Field B is displayed on both node 1 and node 2. According to the current process events and nodes, the target operation permissions are read and applied to the common form page. Through the operation permissions, the system determines which fields are editable on the current page and which fields are read-only. For example: Field A is read-only on node 1 and editable on node 2. Field B is editable on all nodes.
[0040] Furthermore, the low-code platform renders the common form page according to the above-mentioned display mode and operation permissions. The rendering process includes: adjusting the display status of the form field (display or hide); adjusting the operation permissions of the form field (editable or read-only); ensuring that the page layout and user interface are consistent and beautiful. After the rendering is completed, the system displays the processed form page to the user. The form page that the user sees at the current process node has been adjusted according to the display mode and operation permissions to ensure that it meets business needs and user operation habits.
[0041] By applying visibility modes and operation permissions, the system can dynamically adjust the form interface to ensure that the content seen by users at different nodes meets the current business needs. By applying operation permissions, the system can perform refined permission control on the fields on each process node to ensure that the user's operation permissions are consistent with the business process. The rendered form page can accurately reflect the business needs and permission settings of the current process node, improving the convenience and experience of user operations. The use of low-code platforms simplifies the adjustment and rendering process of the form interface, reduces the workload of developers, and improves development efficiency. By dynamically adjusting the form interface and permission settings, the system can quickly adapt to changes in business needs and enhance the flexibility and adaptability of the system. Based on the target visibility mode and target operation permissions, the system can achieve dynamic adjustment and refined control by rendering and displaying the common form page through the preset low-code platform. This not only improves user experience and operational efficiency, but also significantly enhances the flexibility and adaptability of the system to meet rapidly changing business needs.
[0042] This embodiment obtains a common form page, in which the visibility mode and operation permissions of the form fields correspond to the process events to which they belong; then distributes the current process events based on the message middleware; determines the target visibility mode and target operation permissions corresponding to the current process event based on the preset low-code platform; and finally, based on the target visibility mode and target operation permissions, renders and displays the common form page using the preset low-code platform. This embodiment uses a common form page to dynamically adjust the visibility mode and operation permissions of the form fields according to different process events, improve the flexibility and adaptability of the form, and use the message middleware to distribute process events to ensure that users obtain the latest process status in a timely manner and perform corresponding operations, thereby improving process processing efficiency.
[0043] Based on the above first embodiment, a second embodiment of the application method of the application form in process design is proposed. Figure 2 , Figure 2 This is a schematic diagram of a sub-process in the second embodiment of the method for applying the application form in process design.
[0044] like Figure 2 As shown, in this embodiment, before step S1, the following steps are also included: S1a: Obtain an initial form page, where the initial form page is a form page created on a graphical interface of a preset low-code platform based on a preset drag-and-drop component; S1b: Generate configuration metadata of the initial form page; S1c: Based on the configuration metadata and the preset field definition strategy, define the visibility mode and operation permissions of the form fields in the initial form page; S1d: The defined initial form page is used as the common form page.
[0045] Specifically, on the graphical interface of the preset low-code platform, a form page is created by dragging and dropping components. Users use dragging to add form fields such as text boxes, drop-down boxes, and date pickers. The low-code platform provides a graphical interface, and users create form pages by dragging and dropping components. The system generates configuration metadata for the form page, including field name, type, default value, validation rules, etc. Configuration metadata is used to describe the structure and properties of the form page. The low-code platform automatically generates and saves configuration metadata for the form page.
[0046] Furthermore, based on the configuration metadata and the preset field definition strategy, the visibility mode and operation permissions of the form fields are defined. According to the preset field definition strategy, the visibility mode and operation permission rules are applied. The defined initial form page is saved as a common form page. The common form page can be reused in different process nodes, and different visibility modes and operation permissions are configured according to the specific nodes. The system saves the common form page and its configuration metadata to the database or configuration file.
[0047] It should be noted that the initial form page is a form page created through the preset low-code platform's graphical interface, which contains all possible fields and their default attributes. Configuration metadata is data that describes the structure and attributes of the form page, including field name, type, default value, validation rules, etc. The preset field definition policy is a predefined rule and policy used to set the visibility mode and operation permissions of form fields.
[0048] Creating and managing forms through a low-code platform reduces the workload of manual coding and greatly improves development efficiency. By configuring visibility modes and operation permissions, the same form page can present different states and operation permissions at different process nodes, enhancing the flexibility and adaptability of the system. Using shared form pages reduces the cost of repeated development and maintenance. By configuring different visibility modes and operation permissions, the needs of different business scenarios can be met without creating separate form pages for each scenario. Dynamically adjusting the visibility and operation permissions of form fields makes the user interface more concise and easy to use, improving the user experience.
[0049] See also Figure 3 , Figure 3 This is another sub-process diagram in the second embodiment of the method for applying the application form in process design.
[0050] like Figure 3 As shown, in this embodiment, before step S2, the following is further included: S2a: real-time monitoring of the current process instance; S2b: When the process instance task is completed or the task status changes, the task information of the current process instance is obtained; S2c: Based on the task information, an event object is created, and the fields of the event object are filled to obtain the current process event.
[0051] Specifically, set up a real-time monitoring mechanism for the process engine to monitor all running process instances. Monitor the status and task progress of process instances through listeners or polling mechanisms. Configure the built-in event listener of the process engine (such as Activiti, Camunda) to capture the status changes of process instances in real time. When it is detected that the process instance task is completed or the status changes, trigger the operation of obtaining task information. Obtain the task information of the current process instance from the process engine, including process instance ID, task ID, node ID, task name, executor, completion time, etc. Call the process engine API to obtain detailed task information of the current process instance.
[0052] Furthermore, a new event object is created based on the acquired task information. The fields of the event object are filled, including process instance ID, task ID, node ID, task name, executor, event type, timestamp and other information. The event object class is instantiated, and the task information is filled into the corresponding fields of the event object. After completing the filling of the event object fields, the event object is serialized into a format acceptable to the message middleware (such as JSON). The generated current process event is prepared for subsequent distribution through the message middleware. Use the serialization tool to convert the event object into a string in JSON format.
[0053] It should be noted that real-time monitoring can monitor the state changes and task progress of process instances in real time through listeners or polling mechanisms. Task information refers to the detailed information of tasks in a process instance, including process instance ID, task ID, node ID, task name, executor, completion time, etc. Event objects are objects that contain information about process instance state changes and are used to describe detailed information about process events. Serialization refers to the process of converting objects into a transportable format (such as JSON) so that they can be delivered through message middleware.
[0054] By real-time monitoring of process instances, the system can capture information about task completion or status changes in a timely manner, improving the real-time nature of event processing. Obtain task information and fill it into event objects to ensure that the generated process events contain accurate task details for subsequent processing. The system can monitor multiple process instances as needed, flexibly adjust the monitoring scope and strategy, and enhance the flexibility and scalability of the system. By delivering process events through the message middleware, reliable transmission and distribution of event messages are ensured, improving the reliability of the system. Through the above specific steps, the system can monitor the current process instance in real time, and when the task is completed or the status changes, obtain task information, create event objects and fill in relevant fields to generate current process events. These steps ensure the real-time, accuracy and reliability of process events, and provide a solid foundation for subsequent event distribution and processing.
[0055] This embodiment obtains a common form page, in which the visibility mode and operation permissions of the form fields correspond to the process events to which they belong; then distributes the current process events based on the message middleware; determines the target visibility mode and target operation permissions corresponding to the current process event based on the preset low-code platform; and finally, based on the target visibility mode and target operation permissions, renders and displays the common form page using the preset low-code platform. This embodiment uses a common form page to dynamically adjust the visibility mode and operation permissions of the form fields according to different process events, improve the flexibility and adaptability of the form, and use the message middleware to distribute process events to ensure that users obtain the latest process status in a timely manner and perform corresponding operations, thereby improving process processing efficiency.
[0056] Based on the above second embodiment, a third embodiment of the application method of the application form in process design is proposed. Figure 4 , Figure 4 This is a schematic diagram of a sub-process in the third embodiment of the method for applying the application form in process design.
[0057] In this embodiment, step S2 includes: S21: converting the format of the current process event; S22: calling the sending interface of the Kafka to send the current process event after format conversion to the preset topic of the Kafka; S23: Based on the Kafka, the current process event is distributed to the subscribers of the target topic, wherein the target topic corresponds to the preset topic.
[0058] Specifically, during the process instance running, when the task is completed or the status changes, the system needs to create an event object and distribute the process event through the Kafka message middleware to ensure that the event message is delivered to the corresponding subscriber. Serialize the generated event object into a format acceptable to the message middleware (such as JSON). Ensure that the event message contains all necessary information fields, such as process instance ID, task ID, node ID, task name, executor, event type, timestamp, etc. Use a serialization tool to convert the event object into a string in JSON format for transmission through Kafka.
[0059] Furthermore, call Kafka's sending interface to send the current process event message after format conversion to Kafka's preset topic. Configure Kafka Producer to publish event messages to the specified topic (such as "processEvents"). Configure Kafka Producer properties, including Kafka Broker address, topic name, etc. Use Kafka Producer's send method to send event messages in JSON format to the preset topic. Kafka Broker receives the published event message and distributes it to subscribers of the target topic corresponding to the preset topic. Ensure that consumers who have subscribed to the topic can receive event messages in a timely manner. Kafka Broker is responsible for the storage and distribution of messages to ensure efficient and reliable message delivery. Kafka Consumer subscribed to the target topic receives and processes event messages.
[0060] It should be noted that Kafka Producer is the component responsible for sending messages to Kafka Broker. KafkaBroker is the core component of Kafka, responsible for receiving and storing messages and distributing messages to subscribers. KafkaConsumer is the component responsible for consuming messages from Kafka Broker. The preset topic is a predefined topic in Kafka that is used to receive and store specific types of messages. The target topic is the Kafka topic subscribed by the subscriber, which usually corresponds to the preset topic of the publisher.
[0061] Message transmission through Kafka ensures efficient transmission and processing of process event messages in high-concurrency scenarios. Kafka provides a reliable message transmission mechanism to ensure accurate and timely transmission of process events. Message distribution through Kafka achieves loose coupling between systems and improves the flexibility and scalability of the system. The system can add new consumers as needed to handle different types of events and improve the scalability of the system. Through the above specific steps, the system can convert the format of the current process event and distribute it to the subscribers of the target topic through Kafka. The specific process includes serializing the event object into JSON format, calling Kafka's sending interface, sending the message to the preset topic, and distributing it to the subscribers of the target topic through KafkaBroker. This process ensures efficient transmission and reliable distribution of event messages and improves the flexibility and scalability of the system.
[0062] See also Figure 5 , Figure 5 This is another sub-process diagram in the third embodiment of the method for applying the application form in process design.
[0063] In this embodiment, step S4 includes: S41: Loading the initial configuration of the common form page; S42: adjusting the visibility attribute value in the initial configuration based on the target visibility mode; S43: Based on the target operation authority, adjusting the operation authority attribute value in the initial configuration; S44: taking the adjusted configuration as the target configuration, and rendering and displaying the common form page based on the target configuration.
[0064] Specifically, load the initial configuration of the common form page from the database or configuration file. The initial configuration contains all form fields and their default properties, such as field name, type, default value, validation rules, etc. Read the stored configuration data and generate the initial structure of the form page. Get the target visibility mode to determine which fields should be displayed and which fields should be hidden on the current process node. Traverse each field in the initial configuration and adjust the visible property of the field according to the target visibility mode. If a field is set to invisible in the target visibility mode, set the visible property of the field to false, otherwise set it to true.
[0065] Furthermore, the target operation permissions are obtained to determine which fields should be read-only at the current process node and which fields can be edited. Each field in the initial configuration is traversed, and the readOnly attribute of the field is adjusted according to the target operation permissions. If a field in the target operation permissions is set to read-only, the readOnly attribute of the field is set to true, otherwise it is set to false. The configuration after the visibility attribute value and the operation permission attribute value are adjusted is saved as the target configuration. The system saves the adjusted configuration for rendering the form page. The final form page is generated according to the target configuration. The generated form page is rendered and displayed in the user interface. The system dynamically generates the component tree of HTML or the front-end framework according to the target configuration, and embeds the form page into the specified container of the web page to ensure correct display and support for user interaction.
[0066] It should be noted that the initial configuration refers to the basic configuration of the common form page, including all fields and their default properties, such as field name, type, default value, validation rules, etc. The target configuration is the form page configuration after the visibility mode and operation permissions are adjusted, which is used for the final rendering and display of the form.
[0067] By adjusting the visibility attribute values and the operation permission attribute values, the system can dynamically control the visibility and editability of the form fields and improve the flexibility and adaptability of the form. Dynamically render the form page so that users only see the relevant fields and can perform appropriate operations according to the permissions, which improves the user experience. By sharing form pages and configuring visibility modes and operation permissions, duplicate development is reduced and the development efficiency and maintainability of the system are improved. Ensure that the display and operation permissions of the form fields meet the requirements of the business process and improve the accuracy and security of the system. Through the above specific steps, the system can load the initial configuration of the shared form page, adjust it based on the target visibility mode and operation permissions, and finally render and display the form page. These steps ensure the dynamic adjustment and accurate display of the form page, improving the user experience and flexibility of the system.
[0068] Based on the above second embodiment, in this embodiment, it further includes: S100: Associating a preset manual query interface, a preset task allocation interface, a preset urging interface, and a preset cancellation interface with corresponding front-end interfaces respectively.
[0069] Specifically, the manual query interface is an interface for querying process instances based on conditions. The task assignment interface is an interface for assigning tasks to specific users or roles. The urging interface is an interface for urging tasks that have not been completed in time. The cancellation interface is an interface for canceling a specified process instance. The query interface provides a form for entering query conditions and a table for displaying query results. The task assignment interface provides controls for selecting tasks and target users / roles. The urging interface provides controls for selecting tasks that need to be urged. The cancellation interface provides controls for selecting process instances that need to be canceled and entering cancellation reasons.
[0070] Furthermore, a query form is created on the front-end interface to allow users to enter query conditions (such as process instance ID, status, initiation time, etc.). When the query form is submitted, an AJAX request is used to call the manual query interface in the background. The background interface returns a list of matching process instances based on the query conditions. The query results are displayed on the front-end interface, including detailed information and history of the process instance. A task assignment form is created on the front-end interface to allow users to select tasks and target users / roles. When the assignment form is submitted, an AJAX request is used to call the background task assignment interface. The background interface updates the task assignment information and notifies the relevant users. A prompt message indicating successful assignment is displayed on the front-end interface.
[0071] Furthermore, a reminder form is created on the front-end interface, allowing users to select tasks that need to be reminded. When the reminder form is submitted, an AJAX request is used to call the reminder interface in the background. The background interface sends a reminder notification to the task executor. A prompt message indicating successful reminder is displayed on the front-end interface. A cancellation form is created on the front-end interface, allowing users to select the process instance that needs to be cancelled and enter the reason for cancellation. When the cancellation form is submitted, an AJAX request is used to call the cancellation interface in the background. The background interface updates the process instance status to "cancelled" and records the reason for cancellation. A prompt message indicating successful cancellation is displayed on the front-end interface.
[0072] It should be noted that AJAX refers to asynchronous JavaScript and XML, a technology for exchanging data with a server without reloading the entire page. Fetch API is an interface used by modern JavaScript to make network requests, replacing the traditional XMLHttpRequest. API (application programming interface) defines the protocol for how software components communicate with each other. The front-end interface refers to the interface through which users interact with the application, usually displayed through a browser.
[0073] Through the front-end interface, the middle office staff can easily perform query, assignment, reminder and cancellation operations to improve the user experience. Use AJAX or FetchAPI to achieve front-end and back-end interaction, reduce page refreshes, and improve system response speed. After the front-end interface is associated with the back-end interface, the operation results can be displayed in real time to improve operation efficiency. The system interface and the front-end interface are flexibly designed, and functions can be expanded according to business needs. Through the above specific steps, the preset manual query interface, task assignment interface, reminder interface, and cancellation interface can be associated with the corresponding front-end interface respectively. These steps ensure efficient interaction between the front-end interface and the back-end service, improving the user experience and the operability of the system.
[0074] This embodiment obtains a common form page, in which the visibility mode and operation permissions of the form fields correspond to the process events to which they belong; then distributes the current process events based on the message middleware; determines the target visibility mode and target operation permissions corresponding to the current process event based on the preset low-code platform; and finally, based on the target visibility mode and target operation permissions, renders and displays the common form page using the preset low-code platform. This embodiment uses a common form page to dynamically adjust the visibility mode and operation permissions of the form fields according to different process events, improve the flexibility and adaptability of the form, and use the message middleware to distribute process events to ensure that users obtain the latest process status in a timely manner and perform corresponding operations, thereby improving process processing efficiency.
[0075] For example, in order to help understand the technical concept or technical principle of the application method of the form in the process design of the above embodiment, please refer to Figure 6 , Figure 6 This is an example diagram of the system architecture in an embodiment of the method for applying the application form in process design.
[0076] like Figure 6 As shown, in this embodiment, developers are technicians responsible for designing and developing business processes. They use low-code platforms and design tools to define processes and design form pages. Administrators are responsible for running and maintaining business processes. They manage specific process instances, monitor task execution, and make necessary adjustments and maintenance. Users refer to people who ultimately use the system for data input and interaction, and they complete specific tasks through the low-code platform. The process center refers to the environment for business process design, where developers define processes and design nodes. The process definition describes the structure and steps of the business process, including the tasks and logic of each node. The process node is a specific step or task in the process, and each node represents an independent operation or decision point. The low-code platform is a development platform that allows users to quickly create applications and automated processes through a graphical interface and minimal manual coding. Form page design refers to a user interface form designed on a low-code platform for displaying and collecting data. The running state refers to the actual operation stage of the business process, and the administrator is responsible for monitoring and managing process instances. The process instance refers to the specific business process that is executed, created according to the process definition, and each instance runs independently. Generating tasks means that specific work items or tasks generated according to the process definition are assigned to executors for completion. To-do items are tasks or matters that are assigned to users or administrators and need to be processed.
[0077] Optionally, see Figure 7 , Figure 7 This is an example diagram of the process in an embodiment of the application method of this application form in process design.
[0078] like Figure 7 As shown, in this embodiment, the following steps are included: Step 1 (Low-code development of form pages): Use the big form strategy to develop form pages on the low-code platform. This capability is provided by the low-code platform. The so-called big form strategy is to share a form page in different process nodes, but to control the visibility and read and write permissions of form fields at different process nodes; Step 2 (Drag-and-drop design of process definitions): This part is provided by the basic capabilities of general BPM, which simplifies the user usage threshold and requires the process definition to be bound to the form page in step 1; Step 3 (Identify form configuration metadata): Rely on the low-code platform capabilities to read the form's configuration metadata information and display all form fields to the process definition designer; Step 4 (Process node design): Configure visibility and read and write permissions for the form fields in step 3 Control, save and store, and support node approver extension and program extension; Step 5 (Process instance running): According to the process definition of steps 2 and 4, run the process instance. During the flow of the process instance, Kafka will be used to push process events to improve throughput and traffic load balancing; Step 6 (Read form permission configuration for form rendering): When the user opens the approval page, the system needs to read the form permission configuration information in step 4 and render it for display; Step 7 (Unified process management): The system automatically monitors the process and supports the middle office personnel to manually query, allocate, urge, and cancel the process.
[0079] This embodiment obtains a common form page, in which the visibility mode and operation permissions of the form fields correspond to the process events to which they belong; then distributes the current process events based on the message middleware; determines the target visibility mode and target operation permissions corresponding to the current process event based on the preset low-code platform; and finally, based on the target visibility mode and target operation permissions, renders and displays the common form page using the preset low-code platform. This embodiment uses a common form page to dynamically adjust the visibility mode and operation permissions of the form fields according to different process events, improve the flexibility and adaptability of the form, and use the message middleware to distribute process events to ensure that users obtain the latest process status in a timely manner and perform corresponding operations, thereby improving process processing efficiency.
[0080] The present application also provides a form application device in process design. Figure 8 , Figure 8 This is a schematic diagram of the module structure of the application device of the form in the process design of the embodiment of the present application, and the application device of the form in the process design includes: Form acquisition module 801, for acquiring a common form page, the common form page form field display mode and operation permissions and the corresponding process events; The process distribution module 802 is used to distribute the current process events based on the message middleware; Configuration acquisition module 803, used to determine the target visibility mode and target operation authority corresponding to the current process event according to the preset low-code platform; The rendering and display module 804 is used to render and display the common form page based on the target visibility mode and the target operation authority using the preset low-code platform.
[0081] The application device of the form in process design provided in the embodiment of the present application adopts the application method of the form in process design in the above embodiment, which can solve the technical problem of how to improve the efficiency of process processing. Compared with the prior art, the beneficial effects of the application device of the form in process design provided in the embodiment of the present application are the same as the beneficial effects of the application method of the form in process design provided in the above embodiment, and the other technical features of the application device of the form in process design are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0082] The present application provides an application device of a form in process design, and the application device of a form in process design includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the application method of the form in process design in the above-mentioned embodiment.
[0083] Reference below Fig. 9 , which shows a schematic diagram of the structure of an application device suitable for implementing the form in the process design of the embodiment of the present application. The application device of the form in the process design in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The application device of the form shown in the process design is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0084] like Fig. 9As shown, the application device of the form in the process design may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the application device of the form in the process design are also stored in the RAM 1004. The processing device 1001, the ROM 1002 and the RAM 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the application device of the form in the process design to communicate wirelessly or wired with other devices to exchange data. Although the figure shows the application device of the form in the process design with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0085] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0086] The application device of the form in process design provided by the present application adopts the application method of the form in process design in the above embodiment, which can solve the technical problem of how to improve the efficiency of process processing. Compared with the prior art, the beneficial effects of the application device of the form in process design provided by the present application are the same as the beneficial effects of the application method of the form in process design provided by the above embodiment, and the other technical features of the application device of the form in process design are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0087] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0088] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0089] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for applying the form in the process design in the above-mentioned embodiment.
[0090] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0091] The computer-readable storage medium may be included in the application device of the form in the process design; or may exist independently without being assembled into the application device of the form in the process design.
[0092] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the application device of the form in the process design, the application device of the form in the process design: obtains a common form page, and the display mode and operation authority of the form field in the common form page correspond to the process event to which it belongs; distributes the current process event based on the message middleware; determines the target display mode and target operation authority corresponding to the current process event according to the preset low-code platform; based on the target display mode and the target operation authority, the preset low-code platform is used to render and display the common form page. The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, and the above-mentioned programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer (for example, through the Internet using an Internet service provider).
[0093] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0094] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0095] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned form application method in process design, and can solve the technical problem of how to improve process processing efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the form application method in process design provided by the above-mentioned embodiment, and will not be elaborated here.
[0096] An embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for applying the form in process design.
[0097] The computer program product provided by this application can solve the technical problem of how to improve the efficiency of process processing. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of this application are the same as the beneficial effects of the application method of the form in process design provided by the above embodiment, which will not be repeated here.
[0098] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for applying a form in process design. It is characterized in that include: Obtaining a common form page, wherein the visibility mode and operation authority of the form fields in the common form page correspond to the corresponding process events; Distribute current process events based on message middleware; According to the preset low-code platform, determine the target visibility mode and target operation authority corresponding to the current process event; Based on the target visibility mode and the target operation authority, the preset low-code platform is used to render and display the common form page.
2. The method according to claim 1, It is characterized in that Before the step of obtaining the common form page, the method further includes: Obtain an initial form page, where the initial form page is a form page created on a graphical interface of a preset low-code platform based on a preset drag-and-drop component; Generating configuration metadata of the initial form page; Based on the configuration metadata and the preset field definition strategy, define the visibility mode and operation permissions of the form fields in the initial form page; The defined initial form page is used as the common form page.
3. The method according to claim 2, It is characterized in that The step of determining the target visibility mode and target operation authority corresponding to the current process event according to the preset low-code platform includes: Based on the preset low-code platform, read the configuration metadata; Determine the visibility rules and operation permission rules according to the configuration metadata; Determine the target visibility mode according to the type and node of the current process event and the visibility rule; The target operation authority is determined according to the type and node of the current process event and the operation authority rule.
4. The method according to claim 1, It is characterized in that The method further comprises: The preset manual query interface, preset task allocation interface, preset reminder interface and preset cancellation interface are respectively associated with the corresponding front-end interface.
5. The method according to claim 1, It is characterized in that Before the step of distributing the current process event based on the message middleware, the method further includes: Monitor the current process instance in real time; When the process instance task is completed or the task status changes, the task information of the current process instance is obtained; Based on the task information, an event object is created, and the fields of the event object are filled to obtain the current process event.
6. The method according to claim 1, It is characterized in that The message middleware is Kafka, and the step of distributing the current process event based on the message middleware includes: Convert the current process event into a new format; Call the sending interface of the Kafka to send the current process event after format conversion to the preset topic of the Kafka; Based on the Kafka, the current process event is distributed to subscribers of the target topic, wherein the target topic corresponds to the preset topic.
7. The method according to any one of claims 1 to 6, It is characterized in that The step of rendering and displaying the common form page using the preset low-code platform based on the target visibility mode and the target operation authority includes: Loading the initial configuration of the common form page; Based on the target visibility mode, adjusting the visibility attribute value in the initial configuration; Based on the target operation authority, adjusting the operation authority attribute value in the initial configuration; The adjusted configuration is used as the target configuration, and based on the target configuration, the preset low-code platform is used to render and display the common form page.
8. A form application device in process design, It is characterized in that include: A form acquisition module, used to acquire a common form page, wherein the visibility mode and operation permissions of the form fields in the common form page correspond to the process events to which they belong; Process distribution module, used to distribute current process events based on message middleware; A configuration acquisition module is used to determine the target visibility mode and target operation authority corresponding to the current process event according to a preset low-code platform; A rendering and display module is used to render and display the common form page based on the target visibility mode and the target operation authority using the preset low-code platform.
9. A computer device, It is characterized in that The device includes: a memory, a processor, and a form application method program in process design stored in the memory and executable on the processor, wherein the form application method program in process design is configured to implement the steps of the form application method in process design as described in any one of claims 1 to 7.
10. A storage medium, It is characterized in that The storage medium stores a method program for applying a form in process design, and when the method program for applying a form in process design is executed by a processor, the steps of the method for applying a form in process design as described in any one of claims 1 to 7 are implemented.
