Snapshot build

This commit is contained in:
Fabio Sinibaldi 2022-11-25 16:32:58 +01:00
parent 490a4b9f7d
commit 9acbcbf08b
1 changed files with 8 additions and 3 deletions

View File

@ -397,7 +397,12 @@ 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");
@ -437,9 +442,9 @@ public class ExportConcessioniAsProjects {
return toReturn;
}
private static final StepExecutionRequest step(){
private static final StepExecutionRequest step(String id){
StepExecutionRequest toReturn = new StepExecutionRequest();
toReturn.setStepID("SUBMIT-FOR-REVIEW");
toReturn.setStepID(id);
return toReturn;
}