Skip to content

Commit 86fc03a

Browse files
authored
Merge pull request #2467 from marklogic/bugfix/dhfprod-2461-experimental
DHFPROD-2461: reset runningFlow when flow has 'completed'
2 parents a0e4801 + 4ca89e8 commit 86fc03a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/flow/impl/FlowRunnerImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ else if (!isJobSuccess.get()) {
384384
stepsMap.remove(jobId);
385385
flowMap.remove(jobId);
386386
flowResp.remove(runningJobId);
387+
runningFlow = null;
387388
if (!jobQueue.isEmpty()) {
388389
initializeFlow((String) jobQueue.peek());
389390
} else {
@@ -435,6 +436,7 @@ public void afterExecute(Runnable r, Throwable t) {
435436
//Run the next queued flow if stop-on-error is set or if the step queue is empty
436437
if(((FlowRunnerTask)r).getStepQueue().isEmpty() || runningFlow.isStopOnError()) {
437438
jobQueue.remove();
439+
runningFlow = null;
438440
if (!jobQueue.isEmpty()) {
439441
initializeFlow((String) jobQueue.peek());
440442
} else {

web/src/main/ui/app/components/flows-new/edit-flow/mapping/mapping.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ export class MappingComponent implements OnInit {
9494
} else if (this.step.options.sourceDatabase === this.envService.settings.finalDbName) {
9595
this.sourceDbType = 'FINAL';
9696
}
97+
if(!this.step.options.collections || this.step.options.collections.length === 0){
98+
this.step.options.collections = [`${this.step.name}`];
99+
}
97100
this.loadEntity();
98101
this.loadMap();
99102
}

0 commit comments

Comments
 (0)