CN114416052A - Trigger variable assignment method, trigger configuration method and computer storage medium - Google Patents

Trigger variable assignment method, trigger configuration method and computer storage medium Download PDF

Info

Publication number
CN114416052A
CN114416052A CN202111647942.5A CN202111647942A CN114416052A CN 114416052 A CN114416052 A CN 114416052A CN 202111647942 A CN202111647942 A CN 202111647942A CN 114416052 A CN114416052 A CN 114416052A
Authority
CN
China
Prior art keywords
assignment
node
trigger
field
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111647942.5A
Other languages
Chinese (zh)
Other versions
CN114416052B (en
Inventor
吴迪
罗义
张剑卿
曹中余
黎风顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Yunfeng Technology Co ltd
Original Assignee
Chongqing Yuncheng Internet Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Yuncheng Internet Technology Co Ltd filed Critical Chongqing Yuncheng Internet Technology Co Ltd
Priority to CN202111647942.5A priority Critical patent/CN114416052B/en
Publication of CN114416052A publication Critical patent/CN114416052A/en
Application granted granted Critical
Publication of CN114416052B publication Critical patent/CN114416052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Abstract

The invention relates to a trigger variable assignment method, which comprises the following steps: configuring an assignment rule of a corresponding node based on the data requirement of the corresponding node of a trigger; based on a pre-configured assignment rule, when a corresponding node of the trigger is executed, assigning a value to a corresponding field of the corresponding node according to the assignment rule set by the node; and when the assignment rule needs to be assigned according to the running data after the execution of the front node, calling the running data of the front node from the memory, and assigning the corresponding field according to the running data and the configured assignment rule. According to the invention, the running data of each node of the trigger is stored in the memory, and the assignment is carried out through the field data of the front node, so that more variable service scenes can be met, compared with the prior art that the function can be realized by a plurality of triggers, the method can be realized by only configuring one trigger, the labor cost is reduced, and the experience of a user is improved.

Description

Trigger variable assignment method, trigger configuration method and computer storage medium
Technical Field
The invention belongs to the technical field of field assignment of triggers of industrial internet platforms, and relates to a trigger variable assignment method, a trigger configuration method and a computer storage medium.
Background
The trigger is that a service person configures a trigger condition according to service requirements, when a production service meets the configured trigger condition, a specific event can be automatically triggered to change a certain value in a form into another specified value, in the prior art, when the certain value in the trigger form is changed, an assignment mode is single, and when a field is assigned, the field can be assigned as a specified self-defined value only, so that the assignment of the trigger is inflexible, the expansibility is poor, and the trigger cannot be flexibly configured to meet the requirements of users. Because the application scenes of the triggers are wide, a single value is assigned to a certain self-defined value possibly not meeting the requirements of users, the users only can newly build one trigger when wanting to take the value changed after the operation of the node of the front trigger, and after the triggering of the front trigger, the new trigger obtains the value changed by the form, so that the labor cost is increased, and the user experience is reduced.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method for assigning a trigger variable, a method for configuring a trigger, and a computer storage medium, which can flexibly assign a field in multiple ways.
In order to achieve the purpose, the invention provides the following technical scheme:
a trigger variable assignment method is characterized in that a trigger is configured by a plurality of nodes executing preset actions, and the variable assignment method comprises the following steps:
s1, configuring an assignment rule of a corresponding node based on the data requirement of the corresponding node of the trigger;
s2, based on the preset assignment rule, when the corresponding node of the trigger is executed, assigning the corresponding field of the corresponding node according to the assignment rule set by the node; and when the assignment rule needs to be assigned according to the running data after the execution of the front node, calling the running data of the front node from the memory, and assigning the corresponding field according to the running data and the configured assignment rule.
Further, the assignment rule comprises a field assignment rule;
the step S1 specifically includes: configuring field assignment rules of corresponding nodes based on field data requirements of the corresponding nodes of a trigger, wherein fields of a form in a front node are taken as target fields, and the target fields are taken as assignment parameters of the corresponding nodes;
the step S2 specifically includes: when the corresponding node of the trigger is executed, assigning the data of the target field to the corresponding field of the corresponding node according to the field assignment rule; and calling the running data of the front node from the memory, and extracting the data assignment of the target field from the running data according to the assignment parameter to assign the data assignment to the corresponding field of the corresponding node.
Further, the assignment rule further comprises formula assignment;
the step S1 specifically includes: configuring a formula assignment rule of a corresponding node based on field data requirements of the corresponding node of a trigger, wherein a function formula is designated from a predefined assignment function library as an assignment formula, and each operation parameter of the assignment formula is set as an assignment parameter of the corresponding node; the operation parameter is a form field or a designated value of a front node;
the step S2 specifically includes: when the corresponding node of the trigger is executed, calling a corresponding function formula from a function library according to the formula assignment rule; wherein:
when all the operation parameters of the assignment formula are designated values, directly performing operation through all the operation parameters of the function formula, and assigning the operation result to the corresponding field of the corresponding node;
when the operation parameters of the assignment formula comprise the form fields of the front nodes, calling the operation data of the front nodes from the memory, finding out the data of the form fields from the operation data as the values of the corresponding operation parameters, then performing operation through the operation parameters of the function formula, and assigning the operation results to the corresponding fields of the corresponding nodes.
Further, the assignment rule further comprises a user-defined assignment, a form assignment and a null value assignment;
the step S1 specifically includes: based on field data requirements of corresponding nodes of a trigger, configuring assignment rules of the corresponding nodes to be user-defined assignment, form assignment or null value assignment; when the assignment rule is a custom assignment, inputting data to be configured for the corresponding field, and using the input data as an assignment parameter of the corresponding node;
when the assignment rule assigns the form, automatically acquiring the configuration parameters of the form where the corresponding fields are located, and acquiring default values of the corresponding fields from the configuration parameters as assignment parameters; when the assignment rule assigns a null value, automatically taking the null value as an assignment parameter;
the step S2 specifically includes: and when the corresponding node of the trigger is executed, assigning the data of the assignment parameters to the corresponding field of the corresponding node according to the user-defined assignment rule, the form assignment rule or the null value assignment rule.
Further, the method also comprises the following steps:
sa1, predefining an assignment rule allowed by each field type, and establishing a mapping relation between the field type and the assignment rule;
the step S1 specifically includes:
s101, displaying the assignment rule which has a mapping relation with the field type of the assigned field when setting the assignment rule.
Further, the method also comprises the following steps:
sa2, predefining matching rules of the target field type and the assigned field type, and respectively establishing a mapping relation between each field type of the target field and the field type of the assigned field; defining a field type conversion function for realizing conversion among different field types;
the step of S1 specifically further includes:
s102, when the assignment rule assigns the field, firstly inquiring a target field type having a mapping relation with the field type of the assigned field;
s103, displaying fields with field types as the mapped target field types in all the forms of the front nodes in the assignment parameter area.
Further, the method also comprises the following steps:
sa3, respectively defining an assignment function expression for each assignment rule in advance, and defining a data structure for storing the assignment function expressions and the assignment parameters of the nodes;
the step S1 specifically includes:
s104, after the assignment rule and the assignment parameter of the node are set, storing the corresponding assignment function expression and the corresponding assignment parameter in the data structure;
the step S2 specifically includes:
s201, when assigning, analyzing the data structure to obtain an assignment function expression and an assignment parameter, then calculating the assignment parameter through an assignment function to obtain required assignment data, and assigning the required assignment data to an assigned field.
Further, the method also comprises the following steps:
sc, when the trigger is triggered, storing the operation data of each executed node in the memory, specifically including the following substeps:
each node of the Sc1 and the trigger is provided with an independent node ID, and when the trigger is triggered, a list is created in a memory and used for recording the running data of each executed node;
the method comprises the following steps that Sc2, in the trigger operation process, when a node is executed, operation data of the node is written into a list, the data of each node in the list is a map of a key-value structure, wherein key is the node ID of the corresponding node, and value is the operation data of the node;
and Sc3, when the operation of the trigger is finished, the corresponding list is automatically deleted.
A trigger configuration method, comprising the steps of:
s901, creating a trigger visualization configuration canvas;
s902, generating a trigger node and an end node in the visual configuration canvas; setting a trigger condition of a trigger at the trigger node;
s903, configuring a child node with a corresponding execution action between the trigger node and the end node according to the trigger condition, thereby forming a trigger execution flow from the trigger node to the end node through the child node;
s904, setting parameters of each child node, and generating a trigger according to the parameters; configuring an assignment rule of a child node based on the data requirement of the corresponding child node; so that the corresponding child node can assign the value to the corresponding field of the child node according to the assignment rule; and when the assignment rule needs to be assigned according to the running data after the execution of the front node, calling the running data of the front node from the memory, and assigning the corresponding field according to the running data and the set assignment rule.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a trigger variable assignment method or a trigger configuration method.
According to the invention, the running data of each node of the trigger is stored in the memory, and the assignment rule supporting assignment and calculation of the field data of the front node is defined, so that more variable service scenes can be met. In addition, the invention adopts a plurality of assignment modes such as custom assignment, field assignment, formula assignment, form assignment, null value assignment and the like, so that the configuration of the trigger is more flexible, and more use scenes of users are met.
Drawings
For the purposes of promoting a better understanding of the objects, aspects and advantages of the invention, reference will now be made to the following detailed description taken in conjunction with the accompanying drawings in which:
fig. 1 is a flowchart of a trigger configuration method according to a preferred embodiment of the present invention.
Fig. 2 is a schematic diagram of the visual configuration of the trigger.
Fig. 3 is a flowchart of a method for assigning trigger variables according to a preferred embodiment of the present invention.
FIG. 4 is a diagram of a configuration interface when field assignments are used.
FIG. 5 is a schematic diagram of a configuration interface when assigning values using a formula.
Fig. 6 is a diagram showing assignment of a field type code to a field type.
FIG. 7 is a diagram illustrating the establishment of a mapping between field types of target fields and field types of assigned fields.
In the figure: 101. trigger node, 102, add node operator, 103, delete operator, 104, independent action node, 105, branch operation node, 106, branch combination node, 107, branch node, 108, end node.
Detailed Description
The embodiments of the invention are explained below by means of specific examples, the illustrations provided in the following examples are merely illustrative of the basic idea of the invention, and features in the following examples and examples can be combined with one another without conflict.
The invention discloses a trigger configuration method, which is characterized in that a configuration drawer is adopted to configure action nodes on a visual configuration canvas to form a trigger, so that the visual configuration of the trigger can be realized, the trigger configuration experience is improved on the basis of not influencing the existing service, the difficulty of troubleshooting is reduced, and the maintenance cost is reduced. In addition, a mode of assigning values to subsequent nodes through field data of the front node can be set when the trigger is configured, so that more variable service scenes can be met.
As shown in fig. 1, a preferred embodiment of the trigger configuration method of the present invention comprises the following steps:
and S901, creating a trigger visualization configuration canvas so as to configure the execution flow of the trigger in a visual mode on the visualization configuration canvas.
In this step, the visual configuration canvas exists as a visual interface for configuring the trigger by the configuration user, and the configuration user can control and operate the trigger configuration items in real time when configuring the trigger. The configuration user can be enterprise management personnel, in the preferred embodiment, the configuration authority is transferred to the user side from the cloud side, the configuration user configures the required trigger according to the self requirement, the configuration user can configure the trigger triggering process which is applicable to the configuration of the configuration user according to the self habit, the enterprise data type, the data real parameters, the common application scene and the like and has higher fitting degree and flexibility, a series of execution actions can be generated according to the configured trigger when the later application layer is triggered, and a complete execution chain from head to tail is realized.
S902, generating a trigger node 101 and an end node 108 in the visualization configuration canvas, and setting a trigger condition of a trigger in the trigger node 101.
The trigger condition is that: on the user application level, the user opens or triggers the switch of the trigger. Such as adding new data to a specified form, modifying data in a specified form, reaching a preset time, etc. When new data is used as a trigger condition, when it is detected that a certain form has user new data, a corresponding trigger is triggered, and after the trigger is triggered, the execution flow of the corresponding trigger based on configuration is executed from head to tail until all the execution flows of the corresponding trigger are executed. When the modification data is used as a trigger condition, when the modification of a certain form data is detected, a corresponding trigger is triggered. It should be understood that the trigger condition can be set according to actual requirements of different configuration users, and the above description is only an exemplary description and is not intended to limit the scope of the trigger condition.
And S903, configuring a child node with a corresponding execution action between the trigger node 101 and the end node 108 according to the trigger condition, thereby forming a trigger execution flow from the trigger node 101 to the end node 108 through the child node. In the present application, details are given in a state where all nodes configured between the trigger node 101 and the end node 108 are child nodes, and when it has a subordinate node, it is parent node of the subordinate node. The child nodes preferably include independent action nodes 104 and parallel branch nodes, the parallel branch nodes include two or more branches, and each branch is provided with a branch node 107 and an independent action node 104 having a corresponding execution action. In one embodiment, a plurality of child nodes are arranged in parallel between the trigger node 101 and the end node 108, and all of the child nodes are the same-level child nodes of the trigger node 101. In another embodiment, the trigger node 101 is used as a parent node or a root node, the end node 108 is used as a terminal node, and a plurality of child nodes are gradually arranged between the parent node and the terminal node from the parent node to the terminal node from the beginning to the end. Specifically, in combination with the example, it is assumed that the number of child nodes is five, that is, child node 1, child node 2, child node 3, child node 4, and child node 5, and the child node 1 is connected to the next stage of the trigger node 101, the child node 2 is connected to the next stage of the child node 1, the child node 3 is connected to the next stage of the child node 2, the child node 4 is connected to the next stage of the child node 3, and the child node 5 is connected between the child node 4 and the end node 108.
The configuration user may configure one or more parallel or serial independent action nodes 104 as trigger execution flows based on the requirements, and may also configure one or more parallel branch nodes as trigger execution flows based on the requirements. The independent action nodes 104 and the parallel branch nodes are configured in no sequence, that is, a configuration user can preferentially configure the independent action nodes 104 or the parallel branch nodes based on requirements, can also configure the parallel branch nodes between two serial independent action nodes 104, can also configure the parallel branch nodes below one branch node 107 in the parallel branch nodes, and the like. In summary, when independent actions need to be performed in sequence, the independent action node 104 may be configured, and when multiple actions need to be performed in parallel, parallel branch nodes may be configured, and then branch nodes 107 may be configured in each branch, respectively.
According to an aspect of the present invention, the step S903 specifically includes:
s9031, setting a child node attached below the parent node in a visual configuration canvas with the trigger node 101 as the parent node and the end node 108 as the end node, where the child node is located between the trigger node 101 and the end node 108.
In this step, the trigger node 101 is used as a child node added to the parent node, and the child node is a child node of the trigger node 101; another child node is added at the next level of a certain child node, and the added child node is taken as the child node of the previous level child node; thereby forming parent-child relationships. The independent action node 104 and each of the parallel branch nodes 107 are connected to their parent nodes, and the independent action node 104 and each of the parallel branch nodes 107 are connected to their child nodes.
In order to facilitate operations of adding or deleting child nodes and increase flexibility, operability and compatibility of trigger configuration, an adding node operator 102 for configuring a user to add a child node is arranged between each child node and a parent node thereof and between each child node and a child node thereof, and a deleting operator 103 for configuring a user to delete the child node is arranged on each child node.
S9032, point to the end node 108 step by step from parent to child according to the parent-child relationship, and make the last-level child node point to the end node 108, that is, the child node without the next-level child node is used as the parent node of the end node 108, so that the child node points to the end node 108, and after performing connection according to the parent-child relationship, a trigger execution flowchart is formed in the visual configuration canvas.
As shown in fig. 2, in order to select a corresponding child node according to a requirement, a node configuration drawer may be pre-created before the trigger visualization configuration canvas is created; a plurality of independent action node configuration modules with different execution actions are arranged in the configuration drawer; the configuration drawer is also internally provided with a branch configuration module for configuring the parallel branch nodes. The specific method of the step S9031 comprises the following steps:
adding configuration child nodes according to an adding node operator 102 between a trigger node 101 and the end node 108; i.e., clicking on add node operator 102 between trigger node 101 and end node 108 opens the configuration drawer. Then selecting a corresponding node configuration method according to whether two or more actions need to be executed in parallel:
(1) when only one action is executed at the same time, the independent action node configuration module corresponding to the executed action in the configuration drawer is selected according to the trigger condition, and the independent action node 104 is configured between the trigger node 101 and the end node 108, so that a first independent action node 104 is formed.
(2) When two or more actions need to be executed in parallel, the branch configuration module in the configuration drawer is selected according to the trigger condition to configure a first parallel branch node between the trigger node 101 and the end node 108.
Then, when the child nodes need to be added continuously, a second independent action node 104 and/or a second parallel branch node are added and configured between the first independent action node 104 (or the first parallel branch node) and the trigger node 101 or between the first independent action node 104 (or the first parallel branch node) and the end node 108 according to requirements. Thereafter, independent action nodes 104 or parallel branch nodes may also continue to be added between independent action nodes 104 (or parallel branch nodes) and trigger node 101, between independent action nodes 104 (or parallel branch nodes) and end node 108, or between two independent action nodes 104 (or parallel branch nodes), and between independent action nodes 104 and parallel branch nodes, as desired.
The specific method for selecting the branch configuration module to configure the corresponding parallel branch node comprises the following steps:
the branch configuration module is first selected from the configuration drawer to trigger a parallel branch node configuration instruction.
Then a branch operation node 105 and a branch combination node 106 are configured at corresponding positions in the visual configuration canvas according to the configuration of the parallel branch nodes. The branch operation node 105 is configured to form a plurality of branches, and the branch combination node 106 is configured to combine the plurality of branches into one path.
Thereafter, two branches are generated in parallel between the branch operation node 105 and the branch combination node 106, and one branch node 107 is generated at a corresponding position in each branch.
And then judging whether the branch execution flow needs to be added or not, if so, enabling the branch operator of the corresponding branch operation node 105 to execute the task of adding the branch node, so as to add a branch node 107 between the corresponding branch operation node 105 and the branch combination node 106 in parallel. Because the two branches are fixedly generated in the mode, when the two branches do not meet the requirement, the branches can be continuously added by clicking a branch operator until the requirement is met.
Finally, the child nodes are configured for each branch in the form of independent action nodes 104 or parallel branch nodes, such that the branch is assigned a corresponding execution action.
S904, setting parameters of each child node, and generating a trigger according to the parameters; the trigger takes the trigger execution flow chart as an execution basis, and executes the flow shown by the trigger flow chart step by step. That is, from the trigger node 101, corresponding actions are sequentially executed downwards according to the trigger execution flow chart until the execution is completed to the end node 108. When a certain child node needs to be assigned, configuring an assignment rule of the child node based on the data requirement of the corresponding child node; so that the corresponding child node can assign the value to the corresponding field of the child node according to the assignment rule; and when the assignment rule needs to be assigned according to the running data after the execution of the front node, calling the running data of the front node from the memory, and assigning the corresponding field according to the running data and the set assignment rule.
Setting the parameters of the child nodes includes setting the parameters of the independent action node 104 and setting the parameters of the branch node 107.
In order to meet different triggering process requirements of the system, a plurality of independent action nodes 104 are provided in the embodiment, and various triggering process requirements of the industrial internet collaboration platform system can be met through combination. Specifically, in connection with the example, the independent action node 104 includes: the method comprises the following steps of adding a data node, editing the data node, acquiring the data node, deleting the data node, filling the node, notifying the app and the like. The functions and parameter settings of each independent action node 104 are as follows:
acquiring a data node: the system comprises a data table, a data processing unit and a data processing unit, wherein the data table is used for acquiring one or more pieces of data meeting the screening condition from a specified form (namely, one data table, each data table has an independent ID number, the form can be specified through the ID number of the data table, and the form can also be specified according to the name of the data table); the configured parameters comprise the form name of the acquired data and the screening condition of the data.
Newly adding a data node: the method is used for adding a new piece of data in the specified form; the configured parameters comprise forms and fields of newly added data (the column of a column of cells in the forms is marked with the field name of the column of the cells, each cell is also distributed with an independent field ID number, the column of the cells of the forms can be specified through the field name of the data table, and one cell of the forms can also be specified through the field ID), and the assignment rule of the newly added data.
Editing the data nodes: the system is used for editing and modifying data of specified fields in a specified form; the configured parameters comprise forms and fields of the data to be edited and assignment rules of the edited data.
Deleting the data node: data for deleting a specified form; the configured parameters include the form name of the deleted data.
Filling in the nodes: the system is used for filling in data in the appointed form in a manual mode; the configured parameters include the form name of the filling data and the name of the user with the filling authority.
The app notifies the node: for sending notifications to specified objects through apps; the configured parameters include the name of the object receiving the notification.
Of course, the independent action node 104 may also be provided with other functional nodes, and is only illustrated as a common node.
Setting the parameters of the branch node 107 includes: the condition of the execution branch or the body of the execution branch is specified at each branch node 107. For example, with continued reference to fig. 2, when the action of adding new data is performed before the branch node 107, the branch-executing conditions of the two branch nodes 107 may be set to: "single line text is executed 2" and "single line text is executed 1"; when the newly added data is '2', the condition that 'one-line text is 2 execution' is met, and the branch on the left side is executed; when the newly added data is "1", the condition that "one-line text is 1 execution" is satisfied, and the right branch is executed.
In the embodiment, the visual configuration of the trigger is realized through the visual configuration canvas and the configuration drawer, the configuration experience of the trigger is improved on the basis of not influencing the existing service, the configuration overview of the trigger can be foreseen in the configuration process, and the configuration process of the trigger is completely visible. The difficulty of troubleshooting problems is reduced, and the maintenance cost is reduced. In addition, assignment can be carried out through field data of the front nodes, and more variable service scenes can be met.
The invention also discloses a trigger variable assignment method, which configures the corresponding assignment rule based on the data requirement of the trigger node, and assigns the corresponding field based on the pre-configured assignment rule when executing the trigger node; when the assignment rule needs to be assigned according to the running data after the front node executes, the running data of the front node can be called from the memory, and the data generated in the running process of the trigger is used for assigning values to the subsequent nodes.
As shown in fig. 3, a preferred embodiment of the method for assigning trigger variables of the present invention comprises the following steps:
and S1, configuring the assignment rule of the corresponding node based on the data requirement of the corresponding node of the trigger. When the trigger is configured, the name of the form to be assigned, the name of the field to be assigned and an assignment rule are set in the trigger node to be assigned. The method specifically comprises the following steps: firstly, selecting an assigned form in a selection area of the assigned form (preferably, selecting through a pull-down menu in this embodiment), and then displaying all fields of the form in a selection area of the assigned field for a user to select (preferably, selecting through the pull-down menu in this embodiment); and after the user selects the assigned field, selecting the corresponding assignment rule.
Before executing the step S1, an assignment rule for assigning values to the fields according to the node operation data of the trigger needs to be defined in advance. For example, field assignment rules may be predefined; when field assignment is selected, displaying fields of forms of front nodes (namely nodes which are possibly executed before the node, such as a parent node of the node, a parent node of the node and the like) in an assignment parameter area for setting assignment parameters, and selecting fields of one form as target fields and the target fields as the assignment parameters; therefore, during assignment, the running data of the node where the form of the target field is located can be called from the memory, and then the data assignment of the target field is found from the running data and is assigned to the assigned field. By defining the assignment rule of field assignment, the trigger can directly call the field data of the form of the front node to the field assignment of the form of the executing node (namely the node currently executed by the trigger) at the time of operation without being called by a plurality of triggers. As shown in fig. 4, in order to adopt field assignment, the data of "customer name" (target field) in the "production dispatch document" (form of front node) is used to assign value to "customer name" (field to be assigned) of "warehousing document" (form of field to be assigned).
In this embodiment, a formula assignment rule, a user-defined assignment rule, a form assignment rule, and a null value assignment rule are also predefined.
When a formula assignment rule is selected, displaying preset function formulas in an assignment parameter area, firstly selecting one function formula as a formula of the assignment rule, then setting each operation parameter of the function formula, taking a specified value as a parameter of the function formula or selecting a field of a form from form fields of front nodes as a target field, taking the target field as a parameter of the function formula, and taking the parameters of the function formula and the function formula as assignment parameters; when assigning, the value of the parameter is operated through a function formula, and the operation result is assigned to the assigned field; when the parameter of the function formula is the designated value, directly taking the designated value as the value of the function parameter; when the parameter of the function formula is the form field of the front node, firstly calling the running data of the node where the form of the target field is located from the memory, and then finding out the data of the target field from the running data as the value of the function parameter. By defining the assignment rule of formula assignment, the field data of the forms of a plurality of prepositive nodes can be called to carry out formula operation, and then the operation result is assigned to the field of the form of the execution node, or the field data of the forms of the prepositive nodes and the assigned value are subjected to formula operation, and then the operation result is assigned to the field of the form of the execution node, so that the assignment mode is more flexible. As shown in fig. 5, for selecting a configuration interface for assigning a formula, a plurality of operation functions may be selected, and the field of the front node may be selected as a parameter of the operation function, or the parameter of the operation function may be manually input.
When a user-defined assignment rule is selected, writing data needing to be assigned to an assigned field in an assignment parameter area, and taking the data written in the assignment parameter area as an assignment parameter; the assigned field is assigned with data written in the assigned parameter area.
When the contents of part of fields in the form are basically consistent, default values of the fields in the form can be preset, and when the assignment rule is set as the assignment rule of the form, the default values of the assigned fields are used as assignment parameters (when the form is selected to be assigned, the assignment parameters are automatically determined according to the assigned fields without manual setting); and obtaining the default value of the assigned field to be assigned to the assigned field when assigning. For example: the amounts of all items of the wages of the newly entered employees are basically the same, so that the default values of the fields of all items of the wages in the form of the wage sheet can be set as the amounts of the wages of the newly entered employees, when the employees newly enter the jobs and the wages of the employees need to be newly added in the wage sheet, the fields of all items of the wages can be set as assignment rules to be the assignment form, the set default values are directly assigned to the corresponding fields, manual filling or assignment through other fields is not needed, and the assignment process is simpler.
In some special service scenarios (if the content of a field cannot be determined), the user needs to set a field to be null, and this function needs to use null value. When the assignment rule is set as a null value assignment rule, a null value is used as an assignment parameter (when the null value assignment is selected, the assignment parameter is automatically set as the null value, manual setting is not needed), and the assigned field is directly assigned with the null value during assignment; so that the user can modify the field after determining its content. For example: when a serviceman is dispatched to repair the equipment, the "repairman" field fills in the dispatched personnel, but when the personnel arrives at the site and finds that the personnel cannot repair the equipment, the personnel needs to leave the "repairman" field empty, and when the personnel to be dispatched again is determined, the "repairman" field is modified.
To avoid that the selected assignment rule cannot assign values to the assigned fields, the following steps may be performed before the step of S1 is performed:
sa1, predefining the allowed assignment rule for each field type, and establishing the mapping relationship between the field type and the assignment rule. The step of S1 further includes:
s101, when the assignment rule is set, only the assignment rule with the mapping relation with the field type of the assigned field is displayed, but the assignment rule without the mapping relation is not displayed, and the selected assignment rule can be ensured to assign the assigned field.
As shown in fig. 6, in this embodiment, it is preferable to allocate a field type code to each field type first, and allocate an assignment rule code to each assignment rule (in this embodiment, the code of "custom assignment" is 1, the code of "field assignment" is 2, the code of "formula assignment" is 3, the code of "form assignment" is 4, and the code of "null assignment" is 5); then, a plurality of sets are established, the field types with the same assignment rule are put into the same set, and the mapping relation between the set and the assignment rule is established. The code is as follows:
// select type set
export const SELECT_TYPE_OPTIONS={
ALL:[
{ name: 'field assignment', id: '2'},
{ name: 'custom assignment', id: '1'},
{ name: 'formula assignment', id: '3'},
{ name: the 'form assignment', id: '4'},
{ name: value assignment of null value, id: '5'}
],
VAR: [ { name: 'field assignment', id: '2'}],
NORMAL:[
{ name: 'field assignment', id: '2'},
{ name: 'custom assignment', id: '1'}
],
NORMAL_VAR_FILLOUT_NULL:[
{ name: 'field assignment', id: '2'},
{ name: 'custom assignment', id: '1'},
{ name: the 'form assignment', id: '4'},
{ name: value assignment of null value, id: '5'}
],
VAR_FILLOUT_NULL:[
{ name: 'field assignment', id: '2'},
{ name: the 'form assignment', id: '4'},
{ name: value assignment of null value, id: '5'}
]
};
Examples/: if ALL of SELECT _ TYPE _ OPTIONS is to be taken, SELECT _ TYPE _ OPTIONS can be used [ TYPE _ CONST _ ALL ]; TYPE _ CONST _ ALL represents ALL, and the array with key value of SELECT _ TYPE _ OPTIONS as ALL can be obtained from SELECT _ TYPE _ OPTIONS [ TYPE _ CONST _ ALL ], ' extension contract _ CONST _ ALL as ' ALL ';
export const TYPE_CONST_VAR=‘VAR’;
export const TYPE_CONST_NORMAL=‘NORMAL’;
export const TYPE_CONST_FILLOUT_NULL=‘VAR_FILLOUT_NULL’;
export const TYPE_CONST_NORMAL_VAR_FILLOUT_NULL=‘NORMAL_VAR_FILLOUT_NULL’;
the/definition may use field type (i.e., single line text, multiple lines of text, pull-down selection, time of day, numeric input, reference object) of field assignment, custom assignment, formula assignment, form assignment, null assignment
export const SELECT_TYPE_ALL=[1,2,3,6,8,55];
The/definition may use field type (i.e., department selection, people selection) of field assignments, custom assignments, form assignments, null assignment
export const SELECT_TYPE_NORMAL_VAR_FILLOUT_NULL=[20,58];
I/definition field types (i.e., file upload, picture, business information) that can be evaluated using field assignments, form assignments, null assignments, and/or based on a value
export const SELECT_TYPE_VAR_FILLOUT_NULL=[17,5,62];
// displaying the corresponding assignment rule according to the field type
const getSelectType=input_type=>{
if(SELECT_TYPE_ALL.includes(input_type))
{
return SELECT_TYPE_OPTIONS[TYPE_CONST_ALL];
}
else if(SELECT_TYPE_VAR.includes(input_type))
{
return SELECT_TYPE_OPTIONS[TYPE_CONST_VAR];
}
else if(SELECT_TYPE_NORMAL_VAR_FILLOUT_NULL.includes(input_type))
{
return SELECT_TYPE_OPTIONS[TYPE_CONST_NORMAL_VAR_FILLOUT_NULL];
}
else if(SELECT_TYPE_VAR_FILLOUT_NULL.includes(input_type)){
return SELECT_TYPE_OPTIONS[TYPE_CONST_FILLOUT_NULL];
}
else
{
return SELECT_TYPE_OPTIONS[TYPE_CONST_NORMAL];
}
};
As shown in fig. 7, to realize the assignment between different field types, the following steps may be performed before the step of S1 is performed:
sa2, predefining matching rules of the target field type and the assigned field type, and respectively establishing a mapping relation between each field type of the target field and the field type of the assigned field.
Of course, at this time, a function for implementing conversion between different field types needs to be defined, so that when assigning, the field type of the target field is converted into the field type of the assigned field by the function, so as to complete assignment. The step of S1 specifically further includes:
s102, when the assignment rule assigns the field, firstly inquiring the field type having the mapping relation with the field type of the assigned field.
S103, only displaying fields of which the field types in all the forms of the front nodes are the mapped target field types in the assignment parameter area, and not displaying fields of which the field types in the forms of the front nodes are not the mapped target field types.
In order to call up the operation data of the front node from the memory when executing the step S2, the following steps are executed before executing the step S2:
and after the Sc and the trigger are triggered, storing the operation data of each executed node in a memory. The specific method comprises the following steps:
each node of the trigger is provided with an independent node ID, when the trigger is triggered, a list is created in a memory and used for recording the running data of each executed node, in the running process of the trigger, the running data of the node is written into the list when each node is executed, and the running data newly added in the list is written into a trigger running log; the data of each node in the list is a map of a key-value structure, wherein the key is the node ID of the corresponding node, the value is the running data of the node, and when the running of the trigger is finished, the corresponding list is automatically deleted.
In order to facilitate invoking the operation data of the node in the trigger operation process, in this embodiment, preferably, a three-layer storage structure is adopted to store the operation data of the node in the list of the memory, the first layer structure stores the executed trigger node represented by the node ID, the form ID of the form executed by the node is stored under each node ID as a second layer structure, and the field ID of the field executed by the node and the data of the field after execution are stored under each form ID as a third layer structure. The field ID acquired by the front node is defined as an elementId, the node ID is defined as a nodeId, and the form ID is defined as a formId.
For example: adding a new piece of data to an employee information table (formStaff Info01) form at a newly added node (ID is addNode01), and assuming that three fields in the employee information table are 'name' (ID is nam e01), 'telephone' (ID is phone01) and 'address' (ID is address 01); when a newly added node is executed to add a piece of data with the name of "zhang san", the telephone number of "18933223355" and the address of "28 rd of sunny district in beijing city" to the employee information form, the operation data of the node in list is as follows:
Figure BDA0003445841580000171
when the data of the target field is called from the memory, a corresponding node is found from the first layer structure of the list according to the nodeId, then a corresponding form is found from the second layer structure of the node according to the formId, then a corresponding field and data are found from the third layer structure of the form according to the elementId, and the field value of the form corresponding to the current node can be accurately inquired according to the obtained nodeId, formId and elementId. For example: when the data of the telephone field in the employee information table of the newly added node is called, the newly added node is found from list according to the addNode01, the employee information table is found from the data of the newly added node according to the formStaffInfo01, the telephone field is found according to the telephone 01, and the data corresponding to the telephone field is read to obtain the telephone field 18933223355, namely the data of the target field.
S2, when the corresponding node of the trigger is executed based on the pre-configured assignment rule, assigning the corresponding field (namely the assigned field) of the corresponding node according to the assignment rule set by the node; and when the assignment rule needs to be assigned according to the running data after the execution of the front node, calling the running data of the front node from the memory, and assigning the corresponding field according to the running data and the configured assignment rule.
To complete the assignment action according to the defined assignment rule, the following steps are also performed before the step of S1 is performed:
sa3, defining a valuation function expression for each valuation rule in advance, and defining a data structure (defining functions needed in analysis in the data structure) for storing the valuation function expression and the valuation parameters of the node. The method specifically comprises the following steps:
defining the assignment rule with the code number of 'selectType', wherein selectType is 1 to represent the custom assignment, selectType is 2 to represent the field assignment, selectType is 3 to represent the formula assignment, selectType is 4 to represent the form assignment, and selectType is 5 to represent the null value assignment; and judging an assignment rule according to the value of the selectType during assignment, and calling a corresponding assignment function expression.
(1) When selectType is 1 (i.e., custom assignment), the assignment function is expressed as follows:
the expression is the user defined input of the 'assignment parameter'// assignment parameter
Wherein the expression is assigned data that assigns values to assigned fields.
(2) When selectType is 2 (i.e., field assignment), the assignment function expression is as follows:
expression=“selectfromprocess(‘nodeid’,’formid’,’elementId’)”。
the selectfromprcess is a defined function, and the function of the selectfromprcess is to call the data of the corresponding field of the corresponding form in the running data of the corresponding node from the list according to nodeid, formmid and elementId in the assignment parameters.
(3) When selectType is 3 (i.e., the formula assigns), the assignment function is expressed as follows:
the expression is "function name (parameter of function)".
For example: when it is desired to calculate the sum of 10 and 5 using the summation function "sum", the expression is as follows:
expression=“sum(10,5)”//15
when the sum of the data of a plurality of fields is required, the data of two fields are called respectively through expressions 'selected from process (' nodeid ',' formid ',' elementary id ')', and then the sum of the two data is calculated by adopting a summation function.
(4) When the selectType is 4 (i.e., the form is assigned), the configuration of the form is queried according to the form ID of the form where the assigned field is located, then the configuration file of the corresponding field is taken out from the configuration of the form according to the field ID, the default value of the field is obtained from the configuration file, then the default value is returned as the assignment parameter, and the assignment function expression is as follows:
expression is the default value of the assigned field for "assignment parameter"// assignment parameter
(5) When selectType is 5 (i.e., null assignment), the assignment function is expressed as follows:
expression=null。
in this embodiment, it is preferable to use a data structure of multiple layers of "children" to store the assignment function expression and the assignment parameter, where the "children" structure may be empty or may include one or more elements, and each element includes a "children" structure of a next layer, a "nodeType" field, and a "text" field; when the "children" structure is empty, it means that there is no next layer structure; the "text" field is used to store text information, and the "nodeType" field is used to specify a function that operates on the text information of the "text" field. The data structure of several assignment rules is described below by way of example.
The step S1 specifically includes:
and S104, storing the corresponding assignment function expression and the corresponding assignment parameter in the data structure when the assignment rule and the assignment parameter of the node are set. The step S2 specifically includes:
s201, when assigning, analyzing the data structure to obtain an assignment function expression and an assignment parameter, then calculating the assignment parameter through an assignment function to obtain required assignment data, and assigning the required assignment data to an assigned field. The following is an example for different assignment rules:
example 1, when the assignment mode is custom assignment, assuming that the field type of the assigned field is a single-line text, and the data input in the assignment parameter area is "zhang san", the obtained assignment function expression is:
the expression is "zhang san".
When the step S104 is executed, the expression is stored through a data structure of two layers of "children", which is specifically as follows:
Figure BDA0003445841580000191
when the step S201 is executed to perform parsing, the nodeType field in the first-layer child is parsed as Entry, so that an "Entry" function is called to parse, and all child nodes are traversed according to a hierarchy. Calling the function of "Ent ry" to analyze to find that the value in the first level child n is still, so the value in the first level child n is analyzed (namely, the second level), the second level child n has no value, so the downward analysis is not carried out, the second level is continuously analyzed, the nodeType of the second level is "StringLiteral", so the function of "StringLiteral" is called to analyze, the function of the StringLiteral is to return the data in the text field by the text type, directly obtain the value of the text field in the second level (namely, "Zhang III") as a calculated value, and return the value. The function of the nodeType field is determined according to the field type of the field to be assigned, and if the field type of the field to be assigned is a numerical value, the function of the nodeType field is NumberLiteral (the function of the NumberLiteral function is to return data in the 'te xt' field in the numerical value type).
Example 2, when the field is assigned in the assignment manner, after the assignment parameter area selects the target field, the node ID (assumed to be 0001) of the node where the form of the target field is located, the form ID (assumed to be formId0003) of the target field, and the field ID (assumed to be element2) of the target field are obtained as assignment parameters, and the obtained assignment function expression is as follows:
expression=“selectfromprocess(‘0001’,‘formId0003’,‘element2’)”。
when the step S104 is executed, the expression is stored through a data structure of three layers of "children", which is specifically as follows:
Figure BDA0003445841580000201
Figure BDA0003445841580000211
when the step S201 is executed to perform parsing, the nodeType field in the first-layer child is parsed as Entry, so that an "Entry" function is called to parse, and all child nodes are traversed according to a hierarchy. Calling the "Ent ry" function to parse and find that there is still value in the first level child, so parsing the value in the first level child (i.e. the second level), there are three elements in the first level child, so each element is parsed separately, the nodeType in the child n of the first element (i.e. the third level) is "StringLiteral", so returning the value in its text (i.e. "0001") in text type; similarly, parsing the second element would return the text "formId 0003", parsing the third element would return the text "element 2"; and then returning to the second layer, wherein the nodeType of the second layer is ' Function ', so that ' Function analysis is called, the Function of the Function is to call a Function with data in the ' text ' field as a Function name for analysis, so that a selection process Function is called, and the assignment Function expression is obtained and assigned to the assigned field.
Example 3, when the assignment mode is formula assignment, assuming that a value "10" and a value "5" are summed by a formula, after selecting a corresponding formula (i.e., a summation formula) in the assignment parameter area and setting parameters of the formula (i.e., the value "10" and the value "5"), the obtained assignment function expression is:
expression=“sum(10,5)”。
when the step S104 is executed, the expression is stored through a data structure of three layers of "children", which is specifically as follows:
Figure BDA0003445841580000212
Figure BDA0003445841580000221
when the step S201 is executed to perform parsing, the nodeType field in the first-layer child is parsed as Entry, so that an "Entry" function is called to parse, and all child nodes are traversed according to a hierarchy. Calling the "Ent ry" function to parse and find that there is still value in the first level child, so parsing the value in the first level child (i.e. the second level), there are two elements in the first level child, so each element is parsed separately, the nodeType in the child (i.e. the third level) of the first element is "NumberLiteral", so the value in its text is returned in the value type (i.e. "10"); similarly, the value "5" is returned by analyzing the second element, and then the value is returned to the second layer, the nodeType of the second layer is "Function", and a Function using the data in the "text" field as the Function name is called for analysis, so that the sum Function is called to obtain the assignment Function expression and assign the assignment Function expression to the assigned field.
It should be noted that, when setting the parameters of the formula, the field of the front node may be set as the parameters, for example, the parameter-value "10" in the above example may be replaced by the field of the front node, and at this time, the whole data structure in example 2 may be used to replace the element where the value "10" is located (i.e., "child": "nodeType": numberreal "," text ": 10"), so that a four-layer structure may occur. During analysis, the expression of field assignment is analyzed to obtain the data of the field, and then the data is summed with another parameter (i.e., "5").
When the parameters of the formula are set, the formula can also be set as the parameters, for example, the parameter "10" in the above example can be replaced by the formula sum (3,7), and the element where the value "10" is located can be replaced by the structure of the above example, so as to form a nest. In the analysis, the formula sum (3,7) is analyzed, and then the result of the formula sum (3,7) is used as a parameter to perform a summation operation with another parameter (i.e., "5").
The stored data structure of the form assignments and null value assignments is substantially the same as example 1, except for the "text" field at the second level. When the form assignment is selected, the assignment parameter is the default value of the assigned field, and the default value of the assigned field is stored in the 'text' field of the second level; and when the assignment of the null value is selected, the assignment parameter is the null value, and the null value is stored in the 'text' field of the second level.
In the embodiment, the operation data of each node of the trigger is stored in the memory, and the assignment rule supporting assignment and calculation of the field data of the front node is defined, so that assignment can be performed by adopting the data of the front node. In addition, the embodiment adopts a plurality of assignment modes such as custom assignment, field assignment, formula assignment, form assignment, null value assignment and the like, so that the configuration of the trigger is more flexible, more use scenes of a user are met, and the experience of the user is improved.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a computer, the computer program performs part or all of the actual operations of the above-mentioned trigger variable assignment method, or performs part or all of the actual operations of the above-mentioned trigger configuration method, so as to implement the functions of any one of the above-mentioned embodiments.
Finally, the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the present invention, and although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions, and all of them should be covered by the claims of the present invention.

Claims (10)

1. A trigger variable assignment method is characterized in that a trigger is configured by a plurality of nodes executing preset actions, and the variable assignment method comprises the following steps:
s1, configuring an assignment rule of a corresponding node based on the data requirement of the corresponding node of the trigger;
s2, based on the preset assignment rule, when the corresponding node of the trigger is executed, assigning the corresponding field of the corresponding node according to the assignment rule set by the node; and when the assignment rule needs to be assigned according to the running data after the execution of the front node, calling the running data of the front node from the memory, and assigning the corresponding field according to the running data and the configured assignment rule.
2. The trigger variable assignment method of claim 1, wherein said assignment rules comprise field assignment rules;
the step S1 specifically includes: configuring field assignment rules of corresponding nodes based on field data requirements of the corresponding nodes of a trigger, wherein fields of a form in a front node are taken as target fields, and the target fields are taken as assignment parameters of the corresponding nodes;
the step S2 specifically includes: when the corresponding node of the trigger is executed, assigning the data of the target field to the corresponding field of the corresponding node according to the field assignment rule; and calling the running data of the front node from the memory, and extracting the data assignment of the target field from the running data according to the assignment parameter to assign the data assignment to the corresponding field of the corresponding node.
3. The method of assigning trigger variables according to claim 1, wherein said assignment rules further include formula assignments;
the step S1 specifically includes: configuring a formula assignment rule of a corresponding node based on field data requirements of the corresponding node of a trigger, wherein a function formula is designated from a predefined assignment function library as an assignment formula, and each operation parameter of the assignment formula is set as an assignment parameter of the corresponding node; the operation parameter is a form field or a designated value of a front node;
the step S2 specifically includes: when the corresponding node of the trigger is executed, calling a corresponding function formula from a function library according to the formula assignment rule; wherein:
when all the operation parameters of the assignment formula are designated values, directly performing operation through all the operation parameters of the function formula, and assigning the operation result to the corresponding field of the corresponding node;
when the operation parameters of the assignment formula comprise the form fields of the front nodes, calling the operation data of the front nodes from the memory, finding out the data of the form fields from the operation data as the values of the corresponding operation parameters, then performing operation through the operation parameters of the function formula, and assigning the operation results to the corresponding fields of the corresponding nodes.
4. The method of assigning trigger variables according to claim 1, wherein the assignment rules further include custom assignments, form assignments, and null value assignments;
the step S1 specifically includes: based on field data requirements of corresponding nodes of a trigger, configuring assignment rules of the corresponding nodes to be user-defined assignment, form assignment or null value assignment; when the assignment rule is a custom assignment, inputting data to be configured for the corresponding field, and using the input data as an assignment parameter of the corresponding node;
when the assignment rule assigns the form, automatically acquiring the configuration parameters of the form where the corresponding fields are located, and acquiring default values of the corresponding fields from the configuration parameters as assignment parameters; when the assignment rule assigns a null value, automatically taking the null value as an assignment parameter;
the step S2 specifically includes: and when the corresponding node of the trigger is executed, assigning the data of the assignment parameters to the corresponding field of the corresponding node according to the user-defined assignment rule, the form assignment rule or the null value assignment rule.
5. The method of assigning trigger variables according to claim 1, further comprising the steps of:
sa1, predefining an assignment rule allowed by each field type, and establishing a mapping relation between the field type and the assignment rule;
the step S1 specifically includes:
s101, displaying the assignment rule which has a mapping relation with the field type of the assigned field when setting the assignment rule.
6. The method of assigning trigger variables according to claim 2, further comprising the steps of:
sa2, predefining matching rules of the target field type and the assigned field type, and respectively establishing a mapping relation between each field type of the target field and the field type of the assigned field; defining a field type conversion function for realizing conversion among different field types;
the step of S1 specifically further includes:
s102, when the assignment rule assigns the field, firstly inquiring a target field type having a mapping relation with the field type of the assigned field;
s103, displaying fields with field types as the mapped target field types in all the forms of the front nodes in the assignment parameter area.
7. The method of assigning trigger variables according to claim 1, further comprising the steps of:
sa3, respectively defining an assignment function expression for each assignment rule in advance, and defining a data structure for storing the assignment function expressions and the assignment parameters of the nodes;
the step S1 specifically includes:
s104, after the assignment rule and the assignment parameter of the node are set, storing the corresponding assignment function expression and the corresponding assignment parameter in the data structure;
the step S2 specifically includes:
s201, when assigning, analyzing the data structure to obtain an assignment function expression and an assignment parameter, then calculating the assignment parameter through an assignment function to obtain required assignment data, and assigning the required assignment data to an assigned field.
8. The method of assigning trigger variables according to claim 1, further comprising the steps of:
sc, when the trigger is triggered, storing the operation data of each executed node in the memory, specifically including the following substeps:
each node of the Sc1 and the trigger is provided with an independent node ID, and when the trigger is triggered, a list is created in a memory and used for recording the running data of each executed node;
the method comprises the following steps that Sc2, in the trigger operation process, when a node is executed, operation data of the node is written into a list, the data of each node in the list is a map of a key-value structure, wherein key is the node ID of the corresponding node, and value is the operation data of the node;
and Sc3, when the operation of the trigger is finished, the corresponding list is automatically deleted.
9. A method of configuring a flip-flop, comprising the steps of:
s901, creating a trigger visualization configuration canvas;
s902, generating a trigger node and an end node in the visual configuration canvas; setting a trigger condition of a trigger at the trigger node;
s903, configuring a child node with a corresponding execution action between the trigger node and the end node according to the trigger condition, thereby forming a trigger execution flow from the trigger node to the end node through the child node;
s904, setting parameters of each child node, and generating a trigger according to the parameters; configuring an assignment rule of a child node based on the data requirement of the corresponding child node; so that the corresponding child node can assign the value to the corresponding field of the child node according to the assignment rule; and when the assignment rule needs to be assigned according to the running data after the execution of the front node, calling the running data of the front node from the memory, and assigning the corresponding field according to the running data and the set assignment rule.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the trigger variable assignment method according to one of claims 1 to 8 or the trigger configuration method according to claim 9.
CN202111647942.5A 2021-12-30 2021-12-30 Trigger variable assignment method, trigger configuration method, and computer storage medium Active CN114416052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111647942.5A CN114416052B (en) 2021-12-30 2021-12-30 Trigger variable assignment method, trigger configuration method, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111647942.5A CN114416052B (en) 2021-12-30 2021-12-30 Trigger variable assignment method, trigger configuration method, and computer storage medium

Publications (2)

Publication Number Publication Date
CN114416052A true CN114416052A (en) 2022-04-29
CN114416052B CN114416052B (en) 2023-02-03

Family

ID=81269241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111647942.5A Active CN114416052B (en) 2021-12-30 2021-12-30 Trigger variable assignment method, trigger configuration method, and computer storage medium

Country Status (1)

Country Link
CN (1) CN114416052B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707956A (en) * 2012-05-18 2012-10-03 北京工业大学 Method for handling uncertainty of return results of trigger
US20160170721A1 (en) * 2014-12-15 2016-06-16 Kirsten Ingmar Heiss System and method for software development using graphical tree structures
CN106126215A (en) * 2016-06-17 2016-11-16 深圳市麦斯杰网络有限公司 Business rule scenario generation method and device
CN113256095A (en) * 2021-05-17 2021-08-13 广州嘉为科技有限公司 Draggable configured agile flow service construction method, system, device and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707956A (en) * 2012-05-18 2012-10-03 北京工业大学 Method for handling uncertainty of return results of trigger
US20160170721A1 (en) * 2014-12-15 2016-06-16 Kirsten Ingmar Heiss System and method for software development using graphical tree structures
CN106126215A (en) * 2016-06-17 2016-11-16 深圳市麦斯杰网络有限公司 Business rule scenario generation method and device
CN113256095A (en) * 2021-05-17 2021-08-13 广州嘉为科技有限公司 Draggable configured agile flow service construction method, system, device and medium

Also Published As

Publication number Publication date
CN114416052B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN104732306B (en) Rapid development system and method for business application system
US7127313B2 (en) Product configuration system
CN103123660B (en) A kind of method to software and hardware system CAD mathematics library
CN109002334A (en) A kind of operation platform and its data processing method
CN113900638B (en) Visual trigger configuration method and storage medium
CN114327406B (en) Trigger data filtering method, trigger configuration method and computer storage medium
CN112651711A (en) System for building collaborative design management platform based on XDB (X data base) file under BS (browser/server) architecture
CN116382643A (en) Running system based on low-code platform
CN114416052B (en) Trigger variable assignment method, trigger configuration method, and computer storage medium
CN109344165A (en) A kind of querying method and storage equipment
CN112861059A (en) Visual component generation method and device, computer equipment and readable storage medium
KR101127701B1 (en) A system and a method for generating web service customized based on business process
CN116382672A (en) System design method, intelligent terminal and storage medium for travel industry flow
CN116610394A (en) Template and module-based data visualization page configuration method, system and device
CN114253542B (en) Triggering and running method based on visual trigger and computer storage medium
CN114328492A (en) Data processing method for enterprise application integration and related device
CN112156460A (en) Game user interface resource processing method and device
CN112181409A (en) Application construction method, application rendering method and device
JP2020027663A (en) Specification generating unit
CN112907013A (en) Executor selection method based on custom circulation
JP6887182B1 (en) Computer system and application programming interface device that realizes cooperation between objects whose input and output are categorized by using object groups in which object categories that can be placed are defined.
CN114780084B (en) Configuration system for collaborative multi-type interactive interface design
CN107392414A (en) A kind of product information integrates the method and cloud service device of layout
CN114064956B (en) Node positioning method and configuration method based on visual configuration of trigger
Rossi et al. Towards Model-Driven Dashboard Generation for Systems-of-Systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230620

Address after: Room 1-1-18, Unit 1, Building 4, No. 1580 Zhiyun Avenue, Yudong Street, Banan District, Chongqing, 401320

Patentee after: Chongqing Yunfeng Technology Co.,Ltd.

Address before: 408300 building a, 59 Chaoyang Road, Dianjiang Industrial Park, Chongqing

Patentee before: Chongqing Yuncheng Internet Technology Co.,Ltd.