Hi Ankur ,
Shall we change the design of your scirpt. In your main script define two different variables lets say database 1 and database 2 and in your external action check for the status of these two values or may be you can set a flag for any of these variables and let your external action query the specific database based on the flag value defined in the script.
So for script 1 database1 value will be true and for script 2 database2 value will be true and your external action will query those specific databases. I am not sure how flexible it can be in future to maintain it but just think of this soln.
Regards,
Balaji
Shall we change the design of your scirpt. In your main script define two different variables lets say database 1 and database 2 and in your external action check for the status of these two values or may be you can set a flag for any of these variables and let your external action query the specific database based on the flag value defined in the script.
So for script 1 database1 value will be true and for script 2 database2 value will be true and your external action will query those specific databases. I am not sure how flexible it can be in future to maintain it but just think of this soln.
Regards,
Balaji