In reply to dave_59:
virtual task body();
a.randomize();
txns = a.transactions;
classA obj[txns];
for(int i=0; i<txns; i=i+1)begin
`ovm_create(obj[ i])
a.randomize();
int x = a.core;
`ovm_send(obj[i])
wait(obj.rsp != null );
end
endtask : body