Exchange data between tasks

I have a task with a codelet. I need to pass the result from this task to another task in the same net, using variables.
1) How can I do it? 2) In my codelet, I set my output params. How can I retrieve these params (and their value) in the workflow editor?
Sorry if I'm asking something very basic, I've not found solutions in manuals and in the forum. Thank you