Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Throwing an Exception in a Process

Avatar

Not applicable
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

Level 6
Maybe just add an output variable that would indicate a failed call and reason. Your workflow would set that variable and end.