How to avoid deleting a document to finish a Process Model event

Certified Associate Developer

So when the user selects a particular interface, a document is generated and if the user selects the 'cancel' button then the document is deleted. There are cases where the document might get deleted through another form so if you try to select the cancel button, then an error message appears. Right now this is the idea for the process model but its not fixing the issue so please let me know if you see anything that might fix the issue. the 3PI exchange node generates the document, then the XOR node checks to see if the pv!download_doc is null or not and if it is, then move to the end event, if not then to delete the document and end the event.

I tried a few other options for the XOR node but this is basically as far as I know what to do?

  Discussion posts and replies are publicly visible