i-net Clear Reports

com.inet.report.schedule
Class ExecutedTask

java.lang.Object
  extended by com.inet.report.schedule.ExecutedTask

public class ExecutedTask
extends java.lang.Object

This class stores information about the task which has been executed. You will get all information about the reports and their properties. Therefore this class has a list of all executed reports. You can also get the original ScheduleTask instance. If an action is executed it will always get an instance of ExecutedTask as parameter. An executed task will will always have at least one ExecutedReport. The number will be equal to the number of ScheduleReports of the original ScheduleTask. Each ExecutedReport again will have at least one ExecutedInstance. If a DynamicProperties class was defined for the original ScheduleReport the number of ExecutedReports can be greater than one. Otherwise it will be always 1.

Since:
i-net Crystal-Clear 6.0

Method Summary
 ExecutedReport getReport(int index)
          Returns the report with the given index of this task.
 int getReportCount()
          Returns the number of reports defined for the task.
 ScheduleTask getTask()
          Returns the task which is now executing and so represented by this ExecutedTask.
 

Method Detail

getTask

public ScheduleTask getTask()
Returns the task which is now executing and so represented by this ExecutedTask.

Returns:
The task executing.

getReportCount

public int getReportCount()
Returns the number of reports defined for the task. This will be always identical to the number of ScheduleReports of the original Scheduletask.

Returns:
The number of reports.
See Also:
getReport(int)

getReport

public ExecutedReport getReport(int index)
Returns the report with the given index of this task. For a task there can be set different reports. You can iterate through the list and get all ExecutedReport instance for each set ScheduleReport of the task.

Parameters:
index - The index within the list of the reports. The index has to be: 0<index<getReportCount()
Returns:
Returns the ExecutedReport instance at the specified index.
See Also:
getReportCount()

i-net Clear Reports

Copyright © 1999-2011 by i-net software GmbH