Skip to content

Commit 89da762

Browse files
authored
Merge pull request #537 from assimbly/6330-scheduler-previous-suspended-and-restarted-flow-looks-like-not-rescheduled
on resume flow, start route if it's stopped. start flow with flowId i…
2 parents 0f9eb71 + a6488ef commit 89da762

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

integration/src/main/java/org/assimbly/integration/impl/CamelIntegration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,7 +1840,7 @@ public String resumeFlow(String id) throws Exception {
18401840
try {
18411841

18421842
if(hasFlow(id)) {
1843-
boolean resumed = true;
1843+
boolean resumed = false;
18441844
List<Route> routeList = getRoutesByFlowId(id);
18451845
for(Route route : routeList){
18461846
String routeId = route.getId();
@@ -1863,13 +1863,13 @@ public String resumeFlow(String id) throws Exception {
18631863

18641864
}
18651865
else if (status.isStopped()){
1866-
18671866
log.info("Starting route as route " + id + " is currently stopped (not suspended)");
1868-
startFlow(routeId, stopTimeout);
1867+
routeController.startRoute(routeId);
18691868
resumed = true;
18701869
}
18711870
}
18721871
if(resumed){
1872+
startFlow(id, stopTimeout);
18731873
finishFlowActionReport(id, "resume","Resumed flow successfully","info");
18741874
}else {
18751875
finishFlowActionReport(id, "error","Flow isn't suspended (nothing to resume)","error");

0 commit comments

Comments
 (0)