
Example 7: Publishing a report set from a User Task
In this example, you will learn how to publish a report set using a User Task.
- Take steps 1, 2 and 3 as in Example 1.
- In the Publish tab of the Schedule dialog,
- Click the User Task link to go to the User Task page.
- Specify the name of the class that implements the UserTask interface. You need to write this Java class and add the compiled class into the class path of the server.
- Give a display name of the class.
- Specify the properties of the user task by inputting them directly or import a property file from your local disk.
- In the Conditions tab,
- In the Time sub tab, define the time zone from the Time Zone drop-down list, then from the Time Type drop-down list, choose how you want to schedule the task.
- In the Trigger sub tab, select a trigger to bind with the task from the Select a trigger to bind drop-down list, then specify its logic with time condition.
For detailed information about the logic between the trigger condition and the time condition, see Trigger tab.
- If you want to notify someone of when the task is finished by sending an e-mail, go to the Notification tab and set the settings.
- If you want to specify a timeout for the task, specify the settings in the Duration tab as required.
- Click Finish to have the task performed.
Then, click My Tasks on the system toolbar. When the task is being performed, you can see a record of it in the Running tab and on completion it will be put into the Completed tab.
