flow = "parse_args"
[[output]]
name = "filename"
type = "String"
[[output]]
name = "size"
[[output]]
name = "bounds"
type = "Array/Array/Number"
[[process]]
alias = "args"
source = "lib://context/args/get"
[[connection]]
from = "args/string/1"
to = "output/filename"
[[process]]
alias = "split_size"
source = "lib://flowstdlib/data/ordered_split"
input.separator = { always = "x" }
[[connection]]
from = "args/string/2"
to = "split_size/string"
[[process]]
alias = "size_to_json"
source = "lib://flowstdlib/fmt/to_json"
[[connection]]
from = "split_size"
to = "size_to_json"
[[process]]
alias = "accumulate_size"
source = "lib://flowstdlib/data/accumulate"
input.chunk_size = { always = 2 }
input.partial = { once = [] }
[[connection]]
from = "size_to_json"
to = "accumulate_size/values"
[[connection]]
from = "accumulate_size/partial"
to = "accumulate_size/partial"
[[connection]]
from = "accumulate_size/chunk"
to = "output/size"
[[process]]
alias = "split_upper_left"
source = "lib://flowstdlib/data/ordered_split"
input.separator ={ always = "," }
[[connection]]
from = "args/string/3"
to = "split_upper_left/string"
[[connection]]
from = "split_upper_left"
to = "upper_left_to_json"
[[process]]
alias = "upper_left_to_json"
source = "lib://flowstdlib/fmt/to_json"
[[process]]
alias = "split_lower_right"
source = "lib://flowstdlib/data/ordered_split"
input.separator ={ always = "," }
[[connection]]
from = "args/string/4"
to = "split_lower_right/string"
[[process]]
alias = "lower_right_to_json"
source = "lib://flowstdlib/fmt/to_json"
[[connection]]
from = "split_lower_right"
to = "lower_right_to_json"
[[process]]
alias = "accumulate_upper_left"
source = "lib://flowstdlib/data/accumulate"
input.chunk_size = { always = 2 }
input.partial = { once = [] }
[[connection]]
from = "upper_left_to_json"
to = "accumulate_upper_left/values"
[[connection]]
from = "accumulate_upper_left/partial"
to = "accumulate_upper_left/partial"
[[process]]
alias = "accumulate_lower_right"
source = "lib://flowstdlib/data/accumulate"
input.chunk_size = { always = 2 }
input.partial = { once = [] }
[[connection]]
from = "lower_right_to_json"
to = "accumulate_lower_right/values"
[[connection]]
from = "accumulate_lower_right/partial"
to = "accumulate_lower_right/partial"
[[process]]
alias = "accumulate_bounds"
source = "lib://flowstdlib/data/accumulate"
input.chunk_size = { always = 2 }
input.partial = { once = [] }
[[connection]]
from = "accumulate_bounds/partial"
to = "accumulate_bounds/partial"
[[connection]]
from = "accumulate_upper_left/chunk"
to = "accumulate_bounds/values"
[[connection]]
from = "accumulate_lower_right/chunk"
to = "accumulate_bounds/values"
[[connection]]
from = "accumulate_bounds/chunk"
to = "output/bounds"