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.

5 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.

Unknown 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.

Unknown said...

Hi Daffodils,

Use the Exit(1) in your step and then use the On Return --> skip in this way you will not see 'No Success' status for the AE program in process monitor.

Thanks,
Hitendra Jain

Post a Comment