I. Description
The CPR/FRR generated by the timed task (the result report of CPT is the CPR/decision report and the suffix of the result report is FRR file) and the content of the email attachment can be different according to different users, so as to realize the distribution of corresponding user data reports to different users.
II. schedule folder
After the scheduled task created in the Data Decision System is executed, it will be in the project folder%FR_HOME%webapps\webroot\WEB-INFcreate a new one schedulefolder , as shown below:
1. Folder hierarchy
Note: This chapter introduces the hierarchical structure of the schedule folder.
1) JAR package before 2020-01-15, the hierarchy structure of the schedule folder is described in the following table:
Level | Folder name | Remarks |
---|---|---|
Level one | schedule | -- |
Level two | Scheduled task name | Example: GettingStartedEN |
Level three | Task execution date | Example:2021-02-01 |
Level four | Task execution time | Example:1458 |
Level five | 「General result」or User name | If checked In addition to the general results, members of the default user group will receive individual resultsin「Dispatcher Object」, when executing a timed task, the selected user filtering will be implemented in the timed task template, and create a folder namedUsername naming. |
Level six | Name all the parameters in「Set Parameter」 | If the Set Parameter is in the "Dispatcher Object",itwill havethis folder. Naming rules: parameter names and values are connected by underscores, and different parameters are connected by semicolons. Example:Region_East China;time_2019-12-04 00:00 Note: The JAR package is 2020-03-25 and later, the naming rule is to randomly generate UUID |
Level seven | Result file: Including result report (CPR or FRR), Doc, PDF, XLS, XLSX, PNG (required for mail) | If you check 「Clearing at the end of the task」 in the Dispatcher Object step, there will be no 「Result File」. |
2)JAR package after 2020-01-15, the hierarchy structure of the schedule folder is described in the following table:
Note: The JAR package is 2020-01-15 and after the schedule folder hierarchy, only the 「Level six」 is different from the previous version.
Level | Folder name | Remarks |
---|---|---|
Level six | UUID | If the 「Set Parameter」 is in the Dispatcher Object, there will be this folder. Naming rule: no longer adopt the method of splicing parameters, but generate UUID Example:be918527-2ed8-4c6f-87bd-0e72df8522f5 Note: The relationship between UUID and the set parameters is stored in the fine_schedule_task_param table of FineDB. |
2. Example
1) JAR packages before 2020-01-15If the 「Set Parameter」 is in the Dispatcher Object, the schedule folder structure is shown in the following figure:
If checked In addition to the general results, members of the default user group will receive individual resultsin「Dispatcher Object」, the schedule folder structure is shown in the following figure:
If the 「Set Parameter」 is in the Dispatcher Object, the schedule folder structure is shown in the following figure:
If checked In addition to the general results, members of the default user group will receive individual resultsin「Dispatcher Object」, the schedule folder structure is shown in the following figure:
III. Principles of access control
If checked In addition to the general results, members of the default user group will receive individual resultsin「Dispatcher Object」, when executing timed tasks, the selected user filtering will be implemented in the timed task template ,
The contents of all files in the user name folder are only related to the corresponding user, and the CPR files mounted in the virtual directory can be obtained under different folders according to the system login users, so different users can be realized You can only see your own information in CPR.
Can refer to Timed Task cpr File Content Permission Control
In the email notification, when sending the attachment, go to the corresponding user folder to get the attachment and send it out, so you can send different attachments according to the recipients, please refer to Timed Task Email Sending Enables Different People to Send Different Content