Few Ash.Flow questions
I've just started playing with Ash.Flow and I've got a few questions.
1) Is it possible to have a branch step with a condition like
2) Is there a neater way to
3) Are there plans to have a flow be able to be invoked via a code_interface?
4) Related to #2, is the
5) if I wanted to calculate some values within a Flow, I assume I'm doing it wrong? I could use a Custom step for that, but that itself seems like using the wrong tool for the job.
1) Is it possible to have a branch step with a condition like
expr(Money.positive(^arg(:amount))), I've tried and get a Spark DSL error.2) Is there a neater way to
get_by a resource (similar to how we do it for code_interface) than having to define a separate action? - or does this go against the ethos of Ash.Flow, currently it seems slightly disjointed, with one part of the API encouraging one way and providing nice helpers, but another part not being really integrated, I'm assuming this is just me wanting to use it wrong and carry over certain bad habits / not knowing the magic helpers that do exist...3) Are there plans to have a flow be able to be invoked via a code_interface?
4) Related to #2, is the
input of a read step passed through to the action directly, i.e: can I pass in a load/2 as part of the input template? Or is it encouraged to just have a separate step loading the related data?5) if I wanted to calculate some values within a Flow, I assume I'm doing it wrong? I could use a Custom step for that, but that itself seems like using the wrong tool for the job.
