Beispiel #1
0
        public async Task UpdateExportJobStatus(Int32 workspaceArtifactID, Int32 jobArtifactID, String status)
        {
            try
            {
                RaiseAndLogDebugMessage("Updating the status of export job.");

                await ArtifactQueries.UpdateRdoTextFieldValueAsync(
                    rsapiApiOptions : RsapiApiOptions,
                    workspaceArtifactId : workspaceArtifactID,
                    rdoRepository : RsapiRepositoryGroup.RdoRepository,
                    rdoArtifactId : jobArtifactID,
                    jobObjectGuid : Constant.Guids.ObjectType.ExportUtilityJob,
                    textFieldGuid : Constant.Guids.Field.ExportUtilityJob.Status,
                    fieldValue : status);

                RaiseAndLogDebugMessage("Updated the status of export job.");
            }
            catch (Exception ex)
            {
                throw new AdminMigrationUtilityException(Constant.ErrorMessages.UpdateExportJobStatusError, ex);
            }
        }