How could I call module task in class task member?

In reply to Jules:

You really need to look at the thread mentioned in my previous reply. OVM wrapper for Verilog Bfms?? | Verification Academy

It will accomplish exactly what you are looking for.