Example 1: Publishing a report 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 > Resources page, select the report row, right-click in the row and select Schedule from the shortcut menu to display the Schedule dialog.
  2. In the General tab,
    1. Specify a name for the task in the Schedule Name text box.
    2. In the Enter Parameters section, for a page report, you need to select the report tabs you want to run from the page report. You can choose multiple normal report tabs or one bursting report at a time. For scheduling a bursting report, see Scheduling a task containing a bursting report.
    3. If the report has parameters, specify the parameter values as required.
    4. If there are multiple dynamic connections available, expand the Select Dynamic Connection section and select a connection from the drop-down list. Click Connection Properties to view the connection information if needed.
    5. Expand the Report Information section, click Select Another Catalog to specify another catalog for the report if required.
    6. Select the report version and catalog version from the corresponding drop-down lists.
    7. Assign a priority to the task from the Priority drop-down list.
    8. Expand the Advanced section, if the report has a style group, check the Enable Style Group checkbox and choose the style group.
    9. Check the Enable Converting Encoding option if required and specify the encoding before and after converting from the corresponding drop-down lists.
    10. If Enable NLS is available, you can select it and then specify a language to display the report contents with.
    11. Define the encoding for the report by selecting from the drop-down list.
    12. Check Use the default DB user and password defined in catalog.
    13. Check the Add TaskListener to be Invoked option, and input the class name (for details, see Adding TaskListener).
    14. Check the Enable Auto Recover Task option to specify auto recovering settings.
  3. In the Publish tab,
    1. Click the To Version sub tab, then check Publish to Versioning System.
    2. Select the required formats and set the format settings.
    3. Check the Built-in Version Folder option in Archive Location to save the report 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.
  4. 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.
  5. 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.
  6. If you want to specify a timeout for the task, specify the settings in the Duration tab as required.
  7. 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: