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.

4 comments:

Daffodils said...

Hi,

I am using exit(1) in my AE. But I dont want to see the status 'No Sucess' in Process Monitor.
Can you please guide...how 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.

Thanks,
Rajdeep

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.

Post a Comment