public void addDocuments(Task task, List<Document>
items) - adds a list of documents to the task.
Attention: This method was introduced in SDK version 1.3.
Parameters
- Task task
- The task to add documents to.
- List<Document> items
- The documents to add to the task.
Returns
void
Exception
Throws an SkyVaultServiceException if the operation cannot be completed.
Example
Document doc = (Document) alfsession.getServiceRegistry().getDocumentFolderService()
.getChildByPath(SAMPLE_DATAPATH_WORKFLOW);
List<Document> docs = new ArrayList<Document>();
docs.add(doc);
workflowService.addDocuments(taskUpdated, docs);