* ** How to summarize the data of sub-threads into the confluence node form?
For the splitting process, the common mode is shunting-Sub-thread-confluence. Generally, the shunting point and the confluence point are handled by the same person. For example, the Department owner in the case starts the shunting and asks the Department members to fill in the work logs in the same format, and then summarizes the logs to the department manager.
* ** The actual business requirement is to view the work content of each subthread on the confluence point. How can we summarize the data of the subthread into the confluence node form?
CcflowThe following two solutions are provided:
1, UseCcflowInternal agreed rules: Create a detail table on the confluence point. The fields in the detail table correspond to the form fields of the subthread node to ensure that the table can be copied, the attribute in the detail table on the confluence node form is set to the shunt node form field. In this way, after each subthread completes, it inserts a piece of data into the list, and copies the data in the subthread node form to a row of records in the list according to the field correspondence.
2,Node events using sub-threads: write data to the specified table in the two node events successfully sent and withdrawn by the sub-threads. Generally, data is written to the confluence node form, to meet your special requirements. Insert data upon successful sending and delete data upon undo.
The first solution is suitable for the public, and the second solution requires writing a stored procedure to process complex business logic.