Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ public String resumeFlow(String id) throws Exception {
try {

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

}
else if (status.isStopped()){

log.info("Starting route as route " + id + " is currently stopped (not suspended)");
startFlow(routeId, stopTimeout);
routeController.startRoute(routeId);
resumed = true;
}
}
if(resumed){
startFlow(id, stopTimeout);
finishFlowActionReport(id, "resume","Resumed flow successfully","info");
}else {
finishFlowActionReport(id, "error","Flow isn't suspended (nothing to resume)","error");
Expand Down