defmodule MyApp.Flows.ExampleFlow do
@moduledoc false
use Ash.Flow
flow do
api MyApp.Api
argument :example_arg, :map do
allow_nil? false
end
returns :some_transaction
end
steps do
# This works
custom :custom_step_that_do_not_break, MyApp.Flows.Steps.SimpleReturn do
input %{
return: arg(:example_arg)
}
end
transaction :some_transaction, MyApp.SomeEntity do
# This does not work
custom :custom_step_that_breaks, MyApp.Flows.Steps.SimpleReturn do
input %{
return: arg(:example_arg)
}
end
end
end
end
defmodule MyApp.Flows.ExampleFlow do
@moduledoc false
use Ash.Flow
flow do
api MyApp.Api
argument :example_arg, :map do
allow_nil? false
end
returns :some_transaction
end
steps do
# This works
custom :custom_step_that_do_not_break, MyApp.Flows.Steps.SimpleReturn do
input %{
return: arg(:example_arg)
}
end
transaction :some_transaction, MyApp.SomeEntity do
# This does not work
custom :custom_step_that_breaks, MyApp.Flows.Steps.SimpleReturn do
input %{
return: arg(:example_arg)
}
end
end
end
end