Accessing the task information tables
Usually, a task is a set of operations you perform on JReport Server to achieve a goal, such as publishing a folder, deleting a resource, and viewing resource properties. However, the tasks that JReport Server manages are those associated with report-running issues, the report-running tasks.
JReport Server allows you to quickly view a report result (Run), view a report result using selected options and parameters (Advanced Run), and schedule a report to run unattended at a specific time or periodically (Schedule). These are the fundamental modes that JReport Server uses to perform its report-running tasks.
You can view the status of these report-running tasks, such as scheduled tasks that are waiting to be performed by JReport Server, the tasks that are currently being performed, and the tasks that have already been performed.
JReport Server collects task information and manages it in a set of tables.
To access a specific table, in the JReport Server console click My Tasks on the system toolbar, then click the corresponding tab. You can also use URL commands to directly open a task table.
The following shows the columns that are contained in each table in detail.
The Scheduled table consists of the following columns:
Column | Description |
---|---|
Schedule Name | The name of the schedule task. |
Task ID | The internal ID for this task, which is a unique time stamp. |
Report | The report path, name and its status. |
Report Tabs | The names of the report tabs in the report that are included in this task. |
Next Run Time | The next scheduled time for when this task is to be performed. |
Last Run Time | The last scheduled time this task was performed. |
Task Type | The type of task, such as Versioning System, File System, E-mail, or Printer. |
Is Enabled | Shows whether this task is enabled. Can be Enabled or Disabled. |
Is Successful | Shows whether or not the last running of this task was successfully performed. The value true means that the last running was performed successfully and false means the task failed. If the column is empty, the task has not been run before. |
Catalog | The catalog path and name that the report belongs to. |
Launch Type | The way in which this task is executed, such as Repeatedly or One Time. |
Requester | The user who submitted this task. |
The Running table consists of the following columns:
Column | Description |
---|---|
Schedule Name | The name of the scheduled task. |
Task ID | The internal ID for this task (a unique time stamp). |
Report | The report path and name. |
Report Tabs | The names of the report tabs in the report that are included in this task. |
Start Time | The time when this task was started. |
Task Type | The type of the task, such as Versioning System, File System, E-mail, or Printer. |
Catalog | The catalog path and name that the report belongs to. |
Launch Type | The way in which this task is executed, such as Repeatedly, One Time, or Instant. |
Requester | The user who submitted this task. |
Parameter File | The parameter file name. You can click the underlined file name to view the parameter values. |
Parameters | The list of parameter values according to the size specified.
To specify the size, click Preferences on the task bar, then in the Preferences dialog, set a value for the Parameter Display Size option as required. |
Engine Status | The current status of the JReport engine, such as record fetching, grouping, memory paging, and engine initializing. |
The Completed table consists of the following columns:
Column | Description |
---|---|
Schedule Name | The name of the scheduled task. |
Task ID | The internal ID for this task (a unique time stamp). |
Is Successful | Shows whether this task was successfully performed. The value true means that the task was performed successfully and false that the task failed. |
Report | The report path and name. |
Report Tabs | The names of the report tabs in the report that are included in this task. |
Completed Time | The time when this task was completed. |
Task Type | The type of task, such as Versioning System, File System, E-mail, or Printer. |
Catalog | The catalog path and name that the report belongs to. |
Launch Type | The way in which this task is executed, such as Repeatedly, One Time, or Instant. |
Requester | The user who submitted this task. |
Parameter File | The parameter file name. You can click the underlined file name to view the parameter values. |
Parameters | The list of parameter values according to the size specified.
To specify the size, click Preferences on the task bar, then in the Preferences dialog, set a value for the Parameter Display Size option as required. |
Engine Status | The status of the JReport Engine when the task was completed, such as record fetching, grouping, memory paging, and engine initializing. When a task fails to perform, here you can see the status of the engine at the time of the error. |
Error Message | The error message for when the task failed to complete the task. |
Result Files | The report result file names and links to the report result files. |
JReport Server provides a background running system, which shows the status information of tasks submitted using the Run, Advanced Run, or Background Run mode.
The records saved in the background running system are cleared under the following conditions:
The Background Tasks table consists of the following columns:
Column | Description |
---|---|
Report Tabs | The names of the report tabs in the report that are included in this task. |
Result | The result in the format in which the report ran. You can click the format link to open the report result. For a Page Report result, the task is removed automcatically once the result is opened. |
Report | The path and name of the report that the report tabs belong to. |
Start Time | The time when this task was started. |
Finish Time | The time when this task was completed. |
Status | The status of the task. |
Catalog | The path and name of the catalog that the report belongs to. |
Elapse Time | The time elapsed since the start of this task. |
Catalog Version Number | The version number of the catalog that the report belongs to. |
Report Version Number | The version number of the report. |
Parameters | The parameters of the report. |
Cancelled | Shows whether the task is cancelled or not. |
Tips:
You can manage tasks in the task tables according to your requirements. For example, you can run a scheduled task immediately, or stop a running task.
Management operations that are common to the task tables
If you want to | Then do |
---|---|
Select a task | Click in the row that the task is in. |
Select multiple tasks | Select the rows that the tasks are in while holding the Ctrl button. |
Remove a task |
|
Management operations for the Scheduled table
If you want to | Then do |
---|---|
Create a new scheduled task | Click New Schedule on the task bar of the My Tasks page, then in the New Schedule dialog, specify how to create the task: by selecting a report or by importing a script file. |
Run a task immediately |
|
Duplicate a task |
|
Enable a task |
|
Disable a task |
The disabled task will not be performed until you enable it again. |
Export a scheduled task to a script on disk | See Importing and Exporting Scheduled Tasks for details. |
Import a scheduled task from a script saved on disk | See Importing and Exporting Scheduled Tasks for details. |
Notes:
Management operations for the Running table:
If you want to | Then do |
---|---|
Stop a task that is running |
Note: When you stop a bursting task from running, some sub tasks in the bursting task may have already been finished, so some results may have been sent to some recipients. |
View parameter information | Refer to the Parameters column of the Running table. |
Management operations for the Completed table
If you want to | Then do | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
View detailed task run information |
The Result Details table is then displayed which contains the following columns:
|
||||||||||||||
View parameter information | Refer to the Parameters column of the Completed table. |
Management operations for the Background Tasks table
If you want to | Then do |
---|---|
Stop a running task submitted using Background Run mode |
|
Restart a stopped task |
|
View parameter information | Refer to the Parameters column of the Background Tasks table. |
A task-level timeout mechanism is introduced in order to avoid the never-finished running tasks consuming server resources and thus decreasing the server performance. With the mechanism, you can specify a time duration for a task, and ask JReport Server to cancel the task or to notify you or someone else of the task status via e-mail if the task has not yet finished running when the task duration is up. To do this:
<install_root>\bin
, set the task.duration.enable property to true.The period value must be an integer greater than 0. Since task duration check frequency affects server performance, it is recommended that you set the value according to your system environment.
Then, when the specified task duration is up but the task has not finished running,
Notes: