Details
-
Task
-
Resolution: Fixed
-
Neutral
-
2.0
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
Scrum Sprint 8
Description
E.g. resubmission/partial submission/re-open workflow, limitation of batch size, usage of “getAllRemainingTranslationTargets”, etc. --> review with TDC
You shall use the method getCompletedTargetsByDocument to retrieve the completed target document tickets.
e.g.
//** 1. Get the targets for a specific source document(s) - Best option
//* 1a. Ticket by ticket (documentTicket)
String documentTicket = "the_document_ticket";
Target[] targets = pdClient.getCompletedTargetsByDocument(documentTicket, 9999);
//* 1b. Array of documentTickets
String[] documentTickets = {"document_ticket_1","document_ticket_2",[...]"document_ticket_n"};
Target[] targets = pdClient.getCompletedTargetsByDocuments(documentTickets, 9999);
If you prefer to use the submission tickets rather than the document tickets, you may use the method getCompletedTargetsBySubmission. It also takes either a string or an array of strings.You can keep querying a submissionTicket or a documentTicket until all target items have been delivered. Once you have done that it is recommended to run a getCompletedTargets method to harvest any re-opened submissions (due to a redelivery process).
e.g.
//** 2. Get the targets for a specific project - (recommended for redelivery and lite API)
String shortcode = "the_short_code";
Project project = pdClient.getProject(shortcode);
Target[] targets = pdClient.getCompletedTargetsByProject(project, 9999);
The method isCompleted(submissionTicket) may not be appropriate here as for productivity purposes it is more convenient to import the content as soon as it is completed.