diff --git a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java index 72e1310..f47b07d 100644 --- a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java +++ b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/rest/ProfiledDocuments.java @@ -123,7 +123,7 @@ public class ProfiledDocuments { }.execute().getResult(); Status status = theNewProject.getLifecycleInformation().getLastOperationStatus(); - // IF last operation status is not ERROR, notify PROJECT_CREATED event + // If latest operation status is not ERROR, notify PROJECT_CREATED event if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) { // notifying the Event.PROJECT_CREATED; ItemObserved item = new ItemObserved(); @@ -163,7 +163,7 @@ public class ProfiledDocuments { }.execute().getResult(); Status status = theUpdatedProject.getLifecycleInformation().getLastOperationStatus(); - // IF last operation status is not ERROR, notify PROJECT_UPDATED event + // If latest operation status is not ERROR, notify PROJECT_UPDATED event if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) { ItemObserved item = new ItemObserved(); @@ -226,7 +226,7 @@ public class ProfiledDocuments { } }.execute().getResult(); - // IF deleted, notify PROJECT_DELETED event + // If deleted, notify PROJECT_DELETED event if (deleted) { ItemObserved item = new ItemObserved(); EventManager.Event event = Event.PROJECT_DELETED; @@ -321,17 +321,10 @@ public class ProfiledDocuments { return manager.performStep(id, performStepRequest.getStepID(), performStepRequest.getOptions()); } }.execute().getResult(); - - log.info("Starting event..."); - - if(log.isInfoEnabled()) { - List allFields = Arrays.asList(PerformStepRequest.class.getDeclaredFields()); - String fieldsName = allFields.stream().map(e -> e.getName()).collect(Collectors.joining(",")); - log.info("Fields name: "+fieldsName); - } Status status = theProject.getLifecycleInformation().getLastOperationStatus(); - // IF last operation status is not ERROR, notify LIFECYCLE_STEP_PERFORMED event + // If latest operation status is not ERROR, notify LIFECYCLE_STEP_PERFORMED + // event if (status != null && !status.equals(LifecycleInformation.Status.ERROR)) { ItemObserved item = new ItemObserved(); EventManager.Event event = Event.LIFECYCLE_STEP_PERFORMED;