com.bea.control
Annotation Type TaskBaseAnnotations.TaskGetData


@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface TaskBaseAnnotations.TaskGetData

Causes the method for this annotation to retrieve the TaskData from the task instance(s) for this control. The method attached to this annotation will return a TaskData object.

Note, this annotation should not be used in conjunction with other annotations that return values, as only one return value can be provided from the method (and annotations will compete and collide in returning values).

If the return type of the method attached to this annotation is assignment compatible with TaskDataXMLDocument, a TaskDataXMLDocument instance will be created from the available TaskData and returned. If the return type is assignment compatible with String, the task id for the task will be returned. Otherwise a ControlException will be returned indicating an unknown return type was specified.

If this control manages more than one task instance, the method attached to this annotation will return an array of type TaskData[], TaskDataXMLDocument, or String as described above. If the return type is not an array type, a ControlException will be thrown indicating that multiple return values were available but no array return type was provided to hold them.