hello, looks like a bug to me, but can be also bad way of using XMLWriter.
I am using FileDialog (Save) in combination with XMLWriter (Reactive) in order to save files from my app.
I noticed that I have to execute - trigger the process at least twice in order to create my new file.
The problem here is really kinda by design of the reactive writer nodes: in your patch the order of execution between the XMLWriters path input and its data input is not defined. so it happens that the observable is executed first, and only then the path is available. that’s why it then works on the second attempt.
solutions:
either framedelay the OK output of the FileDialog
or use an AsynTask that does the Serialization and file-writing using the non-reactive writer node
@yar your version only “works” because it also introduces kind of a delay but it’s still a bit wonky.
@joreg I am glad I had my reservations for doing something wrong. But what is the difference from what @yar is proposing in the async approach?
To have a managed region instead?