END PROCESS clarification (New in version 8.5)

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

END PROCESS clarification (New in version 8.5)

Post by tford »

FYI - I wanted to determine how END PROCESS works if sub-processes are involved, so I did some testing.

END PROCESS only ends the CURRENT process. If the process that was ended is a sub-process, control returns back to the process that called it to process any additional rules.

When I searched the User Guide for END PROCESS, no listing was found.
Tom - V8.8 build 3137 - MySql / PostGres
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: END PROCESS clarification (New in version 8.5)

Post by Jaymer »

thats exactly how I would want it to work.
its basically the same as a REPORT ERROR, except no Msg and no cancel of the transaction.

Its to help to speed up a big list of IF statements, or multiple rules with IFs.
Once you have found your rule, and did something, you can END so Aware doesn't have to process all the other rules.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: END PROCESS clarification (New in version 8.5)

Post by tford »

^^ Exactly, Jaymer. Well said.

I just wanted to be 100% sure before I updated some of my existing processes with this. I use a lot a sub-processes.
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply