Example 1: Publishing a report set to the versioning system

In this example, a task is set up and will be performed immediately. The generated result is asked to be kept for 30 days.

  1. On the JReport Console > Reports page, select the row that the report set is in.
  2. Click Run > Schedule on the task bar of the Reports page to display the Schedule dialog.
  3. In the General tab,
    1. Specify a name for the task in the Schedule Name text box.
    2. Assign a priority to the task from the Priority drop-down list.
    3. In the Enter Parameters panel, select the reports you want to run from the report set.
    4. If the selected reports have parameters, specify the parameter values as required.
    5. Expand the Report Set Info panel, click Select Another Catalog to specify another catalog for the report set if required.
    6. Select the report set version and catalog version from the corresponding drop-down lists.
    7. Expand the Advanced panel, if the report set has a style group, check the Enable Style Group checkbox and choose the style group.
    8. Check the Enable Converting Encoding option if required and specify the encoding before and after converting from the corresponding drop-down lists.
    9. Enter a name for the task in the Name of the schedule field.
    10. Define the encoding for the report set by selecting from the drop-down list.
    11. Check Use the default DB user and password defined in catalog.
    12. Check the Add TaskListener to be Invoked option, and input the class name (for details, see Adding TaskListener).
    13. Check the Enable Auto Recover Task option to specify auto recovering settings.
  4. In the Publish tab,
    1. Click the To Version sub tab, then check Publish to Versioning System.
    2. Select the required format(s) and set the format settings.
    3. Check the Built-in Version Folder option in Archive Location to save the report set result version in the built-in version folder.
    4. Set 0 for the Maximum Number of Versions.
    5. Check the Result Auto-delete option and define the result to expire in 30 days.
  5. In the Conditions tab, select the Time sub tab, define the time zone from the Time Zone drop-down list, then from the Time Type drop-down list, choose Run this task immediately.
  6. If you want to notify someone of when the task is finished by sending an e-mail, go to the Notification tab and then set the settings.
  7. If you want to specify a timeout for the task, specify the settings in the Duration tab as required.
  8. Click Finish to have the task performed.

Then, click My Tasks on the system toolbar. While the task is being performed, you can see a record of it in the Running tab. On completion it will be put into the Completed tab.

Notes: