Scheduling a customized task using User Task

  1. Create a task class that implements the UserTask interface and add the path of the class file to the class path. You can find the interface in the jet.server.api package available in <install_root>\help\server\en\api. JReport provides a demo class APIDemoDynamicExportTask.java in <install_root>\help\server\en\samples for your reference.
  2. Create a task properties file defining the formats of exporting the task. For example, the content of the properties file is:
    jrs.rst=result_rtf
    jrs.pdf=true
    jrs.text=true
    jrs.excel=true
    jrs.ps=true
    jrs.html=result_html
  3. Submit the task either from a server web page or by calling server API methods. The task can then be run by the server.
Related topics: