Getting a config db variable value in higher hierarchy

In reply to chr_sue:

Thanks for pointing out. I didnt know what to put there, so a question mark. My intention is to have a config variable called error_source of type enum in the environment class and use it in my sequence, to decide what sequence to send to sequencer. The value of the error_source is used as a Case switch.Is there any way to implement that?

The line
p_sequencer.fifo.get_peek_export.get(my_req);

I got from

http://www.verilab.com/files/mastering_reactive_slaves.pdf