Friday, August 14, 2015

Aborting an App Engine


In certain situation, you want to stop processing and fail the program ?

There are certain places where you can accomplish this:

1. SQL Action with On Error set to Abort.
Other values are
Continue: Continue processing. It will continue processing the next action within the step.

Skip step: Skip this step and go to the next.
Section break: Stop processing the current section and pass control back to calling section.


2. PeopleCode Action with OnReturn set to abort and exit(1) fired within the PeopleCode on encountering the error condition.
3. SQL Action which returns no rows can be flagged to Abort.


Other possible values for People code OnReturn are Skip Step, Break.
With break, subsequent steps in section are not processed and control is returned to calling section.
With skip step, the existing step and (subsequent actions) are skipped and control is passed on to the subsequent step.

No comments:

Post a Comment