In reply to pankaj12saha:
I don’t think you can communicate runtime information with help of parameters.
You can use find() method available in uvm_root class. Use this method in transaction class to find instance of Env and access Env properties from there.
// Declare Env class handle in Transaction class
..
uvm_component_h = uvm_top.find("*.env_h");
if($cast(env_h, uvm_component_h))
..