Question

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)
-

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 ?

Hi Marc,
The listener should not process any file untill decision logic returns true.
Regards,
Shiva

Hi Shiva
Do you think the initial activity that you can define in the Service File level can help ?
Screenshot attached /

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

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.

No Problem!
is pzStopListener available in PRPC 6.2 SP2? If not which Version?
Regards,
Shiva

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?