Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Vodafone GmbH
DE
Last activity: 31 Jul 2017 5:14 EDT
Can we control File Listener execution
Dear Team,
I have a requirement to control file listener execution in the following scenario, file listener is enabled on all nodes, as soon as a listener starts processing any request, we want to run one decision logic activity as a very first step(as soon as thred is created and before executing any business logic), if decision logic returns true then listener processing continues else does n't continue. Is there any available activity where I can include decision logic or any other way.
Regards,
Shiva
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
FR
Hello,
I guess it depends what you mean by "doesn't continue". Should the file listener stop processing this file or do you want to stop the file listener from processing any files ? until when ?
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Vodafone GmbH
DE
Hi Marc,
The listener should not process any file untill decision logic returns true.
Regards,
Shiva
![](https://accounts.pega.com/sites/default/files/pega-user-image/39/REG-38808.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/39/REG-38808.png?source=PUMINIT)
Pegasystems Inc.
IN
Hi Shiva
Do you think the initial activity that you can define in the Service File level can help ?
Screenshot attached /
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Vodafone GmbH
DE
Hi Santanu,
Thanks for the reply!
I am not sure, need to test it. I have a doubt, if my decision logic does not want to continue further and if it sets Initial activity Status to fail, does Pega halts further processing or just Comes out of Initial activity and file listener continues?
Regards,
Shiva
![](https://accounts.pega.com/sites/default/files/pega-user-image/39/REG-38808.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/39/REG-38808.png?source=PUMINIT)
Pegasystems Inc.
IN
Hi Shiva
Sorry for delay in reply.
No, it will not stop execution . You need to design your initial activity in such a way that if your decision logic does not want to continue further then it should stop the listener as well.
I would suggest you to explore stopListener API as well. Check out the OOTB Activity pzStopListener for reference. Hope this helps.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Vodafone GmbH
DE
No Problem!
is pzStopListener available in PRPC 6.2 SP2? If not which Version?
Regards,
Shiva
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689989000/e68f0e72-3351-415a-8922-185e73fa77f4.jpg?itok=lcGeM-2x)
Virtusa IT Consulting
AE
pzStopListener is available from 7.x versions
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Vodafone GmbH
DE
Hi baigh,
Thanks alot for the Response! I will be testing this in Pega 7.
Regards,
Shiva
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
FR
Hello.
I'm interested in this pzStopListener OOTB activity that is mentioned in this thread.
But I can't find it anywhere. We're using a Pega 7.3 here.
I guess there is a pzStartListener OOTB activity too, right?