Calling task inside function

In reply to dave_59:

Hi Dave,

Looks like this link is not valid anymore. Can you please point to an active link?
If not please let me know if there is a way we can call a task from within a function with an example.

Thanks.