Interface SubtaskIssueBatchAdminSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, SubtaskIssueAdminSession

public interface SubtaskIssueBatchAdminSession extends SubtaskIssueAdminSession

This session creates and deletes Subtasks in bulk. The data for create is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

To create a Subtask , a SubtaskForm is requested using getSubtaskFormsForCreate() specifying the desired issue, queue, and record Types or none if no record Types are needed. Each of the returned SubtaskForms will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once a SubtaskForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each SubtaskForm corresponds to an attempted transaction.

The SubtaskForms returned from getSubtaskFormsForCreate() may be linked to the originating request through the peer Ids of the SubtaskForm . In the case where there may be duplicates, any SubtaskForm of the same peer Ids may be used for a create operation.

Once a batch of SubtaskForms are submitted for create, a CreateResponse is returned for each SubtaskForm , although the ordering is not defined. Only errors that pertain to the entire create operation are returned from createSubtasks() , errors specific to an individual SubtaskForm are indicated in the corresponding CreateResponse . CreateResponses may be linked to the originating SubtaskForm through the SubtaskForm Id .