Pushes projects up to Published

This commit is contained in:
Fabio Sinibaldi 2022-11-30 17:47:59 +01:00
parent 8eeb5dee1e
commit 3fb1b22ff5
1 changed files with 8 additions and 4 deletions

View File

@ -397,11 +397,15 @@ public class ExportConcessioniAsProjects {
// Submit for review
project = client.performStep(project.getId(),step());
project = client.performStep(project.getId(),step("SUBMIT-FOR-REVIEW"));
//
if(project.getLifecycleInformation().getLastOperationStatus().equals(LifecycleInformation.Status.OK))
project = client.performStep(project.getId(), step("APPROVE-SUBMITTED"));
System.out.println("Done "+c.getId()+" in "+(System.currentTimeMillis()-startTime)/1000+" sec");
} catch (Throwable throwable) {
System.err.println(throwable);
errCount.incrementAndGet();
@ -437,9 +441,9 @@ public class ExportConcessioniAsProjects {
return toReturn;
}
private static final StepExecutionRequest step(){
private static final StepExecutionRequest step(String stepID){
StepExecutionRequest toReturn = new StepExecutionRequest();
toReturn.setStepID("SUBMIT-FOR-REVIEW");
toReturn.setStepID(stepID);
return toReturn;
}