Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Throwing an Exception in a Process

Avatar

Former Community Member
Hi



Can anybody please tell me whether it is possible to throw an exception in a LiveCycle process to be caught by a calling application?



We have a relatively straightforward process whose main component is a generatePDFOutput step. Before this step, however, we want to do some basic checking on the XML that is being passed to the process, and to throw a error if the XML is invalid.



The process itself is being wrapped up as a web service, which is being called from an ASP.Net application the idea is that if there are any errors in the process we can simply throw the error and for it to be caught and dealt with in the calling ASP.Net application.



Many thanks



Geoff Olding
1 Reply

Avatar

Former Community Member
Maybe just add an output variable that would indicate a failed call and reason. Your workflow would set that variable and end.