Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689965000/15dadd9a-2e89-4077-bf5b-023840ad8160.jpg?itok=WCL8bTCN)
MSG Systems
DE
Last activity: 22 May 2017 0:49 EDT
Activity-End method usage
hi ,
I have a requirement to end the execution of an activity and all its calling activities at a certain point based on certain conditions
For example
Say an Activity A calls another Activity B which calls Activity C and some where in the middle of Activity C we call Activity D.. Activity A is called as a post activity in a flow action.
Note Activity A and Activity B are final.
Under certain if else logic in Activity D, I need to stop the execution.. I tried using Activity-End and pega.terminateActivity() . It stopped the execution of the calling activities but displays ActivityStatusSuccess Harness in the action area. Is there any way to prevent this message
***Updated by Moderator: Marissa to update categories***