I need to recuperate a document from one process and show this document in other form of other process.
I have two process:
This is the first process with the document. It call to 'activiti call'.


The second process need to recuperate the document and show it in the form:


With Java i can recuperate the document object but i can't put it in the second process:
@Autowired
FormService formService;
@Autowired
RelatedContentService relatedContentService;
@Override
public void execute(DelegateExecution execution) throws Exception {
System.out.println("******************* RetieveAttachment *******************" );
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
TaskService taskService = processEngine.getTaskService();
List<RelatedContent> contentList = relatedContentService.getFieldContentForProcessInstance(execution.getVariable("varGlo_idProceso").toString(), "form_scfhq_marcos_ini_englishframeworkversion", 1, 0).getContent();
//Show results
if (contentList != null) {
for (RelatedContent relCon : contentList) {
System.out.println("Content file: " + relCon.getName() + ", created: " + relCon.getCreated());
ContentObject co = relatedContentService.getContentStorage().getContentObject(relCon.getContentStoreId());
}
}
}
Can anyone help me?
regards,David