Ccflow
When starting a Start Node, a sequence value is usually transmitted to its start point (the first point of the Process) to reduce user input or process specific services. The specific methods are summarized as follows.
Transmit data to the form using URL:
Example: myflow. aspx? Fk_flow = 001 & fk_node = 101 & prjno = gb1002 & prjname = project name.
Explanation: values are transmitted using URLs. Keys are the field names of the forms. If they are consistent, ccform automatically obtains the values and puts them in the Form Control.
This method is suitable for scenarios where the data volume is small and there are no values in the detail table.
Pass a column value of the specified physical table to the form:
Example:
Myflow. aspx? Fk_flow = 001 & fk_node = 101 & fromtablename = prj_main & fromtablepk = No & fromtablepkval = gb1001
Explanation: Use a specific tag to pass the table name, the primary key column name of the table, and the specified row data. The system automatically generates an SQL statement to query this row of data.
Select
* From fromtablename
Where fromtablepk = 'fromtablepkval '.
If no data is found, an exception is thrown.
When the data is queried, the data in this row is copied Based on the column name and the form attribute name.
This method is suitable for transferring large data volumes.
Other process nodes are switched to the Start Node through URL:
Application background: After process a ends, it starts process B based on the conditions. For data at the end of process a (master table data, schedule data, and attachment data) it must be passed to the first node of the B process, similar to data transfer between ccflow nodes.
Example:
In the process node attributes, choose "Configure"> "Send successfully" and then select the redirection method: redirect to the specified URL to the processing content: myflow. aspx? Fk_flow = 001 & fk_node = 101 in this way, the system will directly copy the data of the End Node of process a to the Start Node of process B. The data includes: master table, multiple slave tables, and attachment data. Ccflow uses the default silent transfer. To implement these methods, see the newwork () method in the flow. CS class in BP. wfv4.
Delete draft:
Concept of ccflow draft: when a process is started, ccflow inserts a data entry for the first node form of the current operator. When the user clicks save, the data entry is updated, this nodestate = 0 as a draft. If it is sent out, nodestate = 1 becomes the historical data of the node form.
If you have a draft ccflow, the draft will be displayed to the user. That is to say, a draft is generated when the current point is opened.
The draft is generated because the data is saved but not sent when the user starts the node.
How to delete a draft:
Example: myflow. aspx? Fk_flow = 001 & fk_node = 101 & isdeletedraft = 1
Description: deletes draft data from the master table, including draft data and attachment data.