work flow script - attachments

work flow script - attachments

in my script I need to check at workflow script , if a task having an attachment (number of attachments, file name  and its sizes).

please explain how the attachments can be fetched in code? 

Amnon