Hi Kanwaljit,
The solution here could be to use a concurrency check for the workflow instance by using an instance variable called isRunning.
Instance variables are shared by all the parallel executions of the workflows.
Here is a simple test workflow:
The scheduler is triggering an event every minute. The next test activity is going to test the isRunning instance variable to decide
whether or not to continue the execution:
Note: isRunning is the variable name I've chosen for this example. This is not a built-in variable.
Then the activity immediately following the test in the yes branch must set the instance variable in its Initialization script:
instance.vars.isRunning = true
Finally the very last activity in the yes branch must revert the variable to false in its Initialization script:
instance.vars.isRunning = false
Regards,
Adhiyan