sendRequest(request, TaskXMLConstants.TASK_NAMESPACE + "fail");
}
public void delete(final String[] taskIDs) throws AuthException, UnavailableTaskException {
if (taskIDs == null) {
throw new RequiredArgumentException("taskIDs");
}
if (taskIDs.length == 0) {
throw new IllegalArgumentException("Task ID array is empty");
}
OMElement request = new TMSMarshaller() {
public OMElement marshalRequest() {
OMElement request = createElement("deleteRequest");
for (String taskID : taskIDs) {
if (taskID == null) {
throw new RequiredArgumentException("One of the given taskID's is null");
}
createElement(request, "taskId", taskID);
}
createElement(request, "participantToken", _participantToken);