[BUGFIX] Fixed copy attachments

- fixed processinstance id in javadelegate
- updated cmd and task component