ATTACHMENT TO A VARIABLE 6.X
Basically, when you want to manage documents you can define documents only within the process scope: select the process where your tasks exist and got to the "General -> Documents" tab of the properties view in the bottom of the perspective. From this properties panel, you will be able to define documents and use them as variables in your forms/tasks.
Hope it helps.
I'm still having some questions, for example i add a new document in process scope the name is document1, in task1 i use the file option to attach some files so in the data options of file control in output operation i assigned to document1 that it is a java.lan.String type, and also takes value of i put the value of field_File1 but it says that those types are incompatible.
What im doing wrong??