Pushes projects up to Published
This commit is contained in:
parent
8eeb5dee1e
commit
3fb1b22ff5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue