|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserTask
UserTask is an interface that is used to help you to perform customized tasks.
| Method Summary | |
|---|---|
java.lang.String |
getErrorMsg()
Gets the error message. |
boolean |
hasError()
Checks if error occurs during the task running process. |
void |
initReportProperties(java.util.Properties rptProp)
Initializes the task using the provided task properties. |
void |
initUserTaskProperties(java.util.Properties userTaskProp)
Initializes the task using the provided customer task properties. |
void |
run()
Performances the task running . |
void |
stopExec()
Forces the task to stop executing. |
| Method Detail |
|---|
void initReportProperties(java.util.Properties rptProp)
rptProp - the properties containing the task information of a schedule. For example, in demo APIDemoDynamic ExportTaskrptProp properties contains
APIConst.TAG_REPORT = "/SampleReports/Coffee Sales.wls"
APIConst.TAG_RPT_VERSION = 1
APIConst.TAG_CATALOG = "/SampleReports/SampleReports.cat"
APIConst.TAG_CAT_VERSION = 1
Please see the
jrs.task_class property should be the custom task class name, which must have implemented this interface. Please refer to
API example APIDemoDynamicExportTask. It is a demo showing how to use UserTask and export reports to multiple formatted result.void initUserTaskProperties(java.util.Properties userTaskProp)
userTaskProp - the properties containing the customer task information of a schedule.
For example, in demo APIDemoDynamicExportTask the userTaskProp contains
jrs.rst=result_rtf
jrs.pdf=true
jrs.text=true
jrs.excel=true
jrs.ps=true
jrs.html=result_htmlvoid run()
void stopExec()
boolean hasError()
java.lang.String getErrorMsg()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||