Thursday, January 19, 2012

Exit(0) And Exit(1) Function in Application Engine.

Exit(0) – Terminates the current PeopleCode Action in application engine.

Exit(1) – Terminates the current Step in application engine.


Daffodils said...


I am using exit(1) in my AE. But I dont want to see the status 'No Sucess' in Process Monitor.
Can you please to achieve that?

Pawan Mundhra said...

Hi.. 'No Success' status is not due to exit function.. If your program ended successfully then it will give you success status.
Let me know more details about your problem.

Rajdeep Chauhan said...

Hi Pawan,
Isnt it true that exit(1) causes termination & rollback in database, whereas exit(0) causes only termination.


Pawan Mundhra said...

Rajdeep you are true. This statement is given in peoplebooks. The statement is more valid for IB when you use PeopleCode Message class to process inbound transactions.

lee woo said...

The entrance strategy is actually more important than the exit strategy. See the link below for more info.


Post a Comment