[EXCONTRANS-196] Submission Process - Ability to submit requests to GlobalLink after user completes submission wizard Created: 09/May/18  Updated: 20/Jul/18  Resolved: 16/May/18

Status: Closed
Project: Content Translation Extended (CTX)
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0

Type: Task Priority: Neutral
Reporter: Trung Luu Assignee: Trung Luu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 2.5h
Original Estimate: 2d

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Sprint: 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.



 Comments   
Comment by Trung Luu [ 16/May/18 ]

The implementation of submission process has already done by default. we will not use the method isCompleted(submissionTicket) anymore.

Generated at Mon Feb 12 00:28:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.