Unresolved flow dependencies
jeroenrinzema opened this issue · comments
Jeroen Rinzema commented
Middleware dependencies could be defined inside a flow. Dependencies are called before a flow gets executed. If any of the resources within a dependency fails is the flow aborted. Dependencies could be references inside a flow as resources.
flow "greeter" {
depends_on = ["validation"]
input "query" {}
resource "io" {
request "Say" "Hello" {
msg = "{{ input:msg }}"
valid = "{{ validation:valid }}"
}
}
}
Currently, are dependencies initialized and validated by the specs but are not executed.
Jeroen Rinzema commented
This issue will be resolved with custom defined functions. TBA...
Jeroen Rinzema commented