Dynamic variable generation
Posted: Fri May 18, 2007 8:44 am
scenario:
1. I have a counter that creates instance one by one...
2. There is a errohandlingjob that is called if any instance fails...
3. for every instance parameters that are passed are same but there
value differs as the instace picks value from some xyz table.
Problem:
1. Say the parameter that 1st intance is taking is param and for 1st instance it's value is '2'. for 2nd intance the this value is say '6'.
2. now problem is if both instance aborts then two 2 seprate instance of errorhandling job should run with param values(i.e for 2 & 3) of both the instance.
But since the instances are running in parallel the param value of 1st instance is overwritten by 2nd instance param..
That's why both the errohandling instance run for same param value(of 2nd instance)...
Now i wud like someone to help me genrating random values of param vased on counter so that errohandling job can get correct value for correct instance..
Thanks
1. I have a counter that creates instance one by one...
2. There is a errohandlingjob that is called if any instance fails...
3. for every instance parameters that are passed are same but there
value differs as the instace picks value from some xyz table.
Problem:
1. Say the parameter that 1st intance is taking is param and for 1st instance it's value is '2'. for 2nd intance the this value is say '6'.
2. now problem is if both instance aborts then two 2 seprate instance of errorhandling job should run with param values(i.e for 2 & 3) of both the instance.
But since the instances are running in parallel the param value of 1st instance is overwritten by 2nd instance param..
That's why both the errohandling instance run for same param value(of 2nd instance)...
Now i wud like someone to help me genrating random values of param vased on counter so that errohandling job can get correct value for correct instance..
Thanks