If I set an argument default in a Flow I have it `nil` in a custom step
in
MmsBiztalk.Flows.Steps.RollbackResource
the value of input.step
is nil.13 Replies
So it’s not setting default values?
Exactly
fixed in main 🙂
Working thanks a lot
@Zach Daniel it now seems if I set the value it will still get the default .... 😅
Wait really?
Does it happen only if you set the value to
nil
?the actual case is with the default value to
nil
?sorry, not following
the argument
update_key
even if has a value is always nil
🥲
I don’t really see how that would happen here: https://github.com/ash-project/ash/blob/main/lib/ash/flow/flow.ex#L168
GitHub
ash/flow.ex at main · ash-project/ash
A declarative and extensible framework for building Elixir applications. - ash/flow.ex at main · ash-project/ash

Sorry my bad, the problem is how to pass parameters to flows it seems after some number of parameters the arguments must go in a map
I can pass parameters normally up to three (don't know why)
after the third I need to pass them in maps:
ah, its only params that don't have defaults that are automatically added as arguments
Sorry, it’s “params that are required that don’t have a default” it’s a bit magical, probably should have just made them all passed as a map TBH