diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordsAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordsAPI.java index ab403834f6..6864754edb 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordsAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RecordsAPI.java @@ -139,6 +139,42 @@ public class RecordsAPI extends RMModelRequest )); } + /** + * see {@link #completeRecord(String, String) + */ + public Record completeRecord(String recordId) throws Exception + { + mandatoryString("recordId", recordId); + + return completeRecord(recordId, EMPTY); + } + + /** + * Complete the record recordId + * + * @param recordId The id of the record to complete + * @return The completed {@link Record} with the given properties + * @throws Exception for the following cases: + * + */ + public Record completeRecord(String recordId, String parameters) throws Exception + { + mandatoryString("recordId", recordId); + + return getRmRestWrapper().processModel(Record.class, simpleRequest( + POST, + "/records/{recordId}/complete?{parameters}", + recordId, + parameters + )); + } /** * Deletes a record. * @@ -216,7 +252,7 @@ public class RecordsAPI extends RMModelRequest * @param recordModel The record model which holds the information * @param recordId The identifier of a record * @param parameters The URL parameters to add - * @param returns The updated {@link Record} + * @return The updated {@link Record} * @throws Exception for the following cases: *