Skip to content

Commit 754383c

Browse files
author
mgeipel
committed
fixed #58
1 parent 390122c commit 754383c

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

examples/misc/multiple-flows/data.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
A
2+
B
3+
C
4+
D
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
default data = FLUX_DIR + "data.txt";
2+
default temp_file = "data.tmp";
3+
4+
//first flow
5+
data|
6+
open-file|
7+
as-lines|
8+
write(temp_file);
9+
10+
//second flow
11+
temp_file|
12+
open-file|
13+
as-lines|
14+
write("stdout");
15+

examples/morph/morph-marc21.flux

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ decode-marc21|
77
morph(FLUX_DIR + "morph-marc21.xml")|
88
encode("literals")|
99
write("stdout");
10-
//write("file://???");

src/main/java/org/culturegraph/mf/Flux.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ public boolean accept(final File dir, final String name) {
9595
}
9696

9797
// run parser and builder
98-
FluxCompiler.compile(ResourceUtil.getStream(fluxFile), vars).start();
99-
//flow.start();
98+
final List<Flow> flows = FluxCompiler.compile(ResourceUtil.getStream(fluxFile), vars);
99+
for (Flow flow : flows) {
100+
flow.start();
101+
}
100102
}
101103
}
102104

0 commit comments

Comments
 (0)