Posted: 21 Feb 2019 21:37 EST Last activity: 22 Feb 2019 5:17 EST
Find the triggered file listener name in activity
Hi All, I would like to check that there is a scenario. I have a 3 or 4 file-listeners and the listening files paths are different. I would like to create one common activity which will be triggered by these 4 listeners. But there is a different variable need to be assigned based on different listeners. In that case, inside activity step, I would like to know which listener trigger the activity. How can I achieve this scenario? Can we can find out the listener name inside the activity when it is being triggered?
Properties pyOriginalDirectory and pyOriginalFileName identify the input file. So, use these values in you source activity to differentiate between listeners. Since, each listener listens to different folder, you can identify based on folder name that which listeners calling the activity.
Note: pyOriginalDirectoryis the folder to which the listener listens.