AnsweredAssumed Answered

How to createAttachment inside Java Service Task

Question asked by mcormaechea on Nov 13, 2015
Latest reply on Jun 6, 2016 by uzair_zaman
Hi, I am trying to createAttachament to a process, inside a JavaServiceTask.  My class implements JavaDelegate. I need to pass DB taskid to the method createAttachment, but I dont know where to get this value from:

               TASKID, execution.getProcessInstanceId(), "Carta de Admisión",
               "Carta que admite al postulante como Estudiante Regular Internacinal", pdfStream);

DelegateExecution has a method getCurrentActivitiId() but that's not DB id .

Do you have any ideas??

Thank you very much!!!