Como obtener el id de un documento?

Hola ,

Quisiera saber como puedo obtener el id de un documento recién adjunto mediante el widget de adjuntar.

Garcias

apiAccessor.getProcessAPI().getLastDocument(processInstanceId, "mainDoc").getId();

from http://documentation.bonitasoft.com/documents-0

also see
http://documentation.bonitasoft.com/handling-documents-0

regards
Seán

PS: If this reply answers your question, please mark as resolved.

Thanks Sean!!

really helped me !

Do you know , if is possible to move the attached file to some other path?

Thanks again!!

See

http://community.bonitasoft.com/questions-and-answers/how-i-can-move-file-has-been-attached-widget

Also please mark this question as resolved (Click the tick next to my answer), as it has, the other question will fix your other issue.

regards
Seán