use of org.jbpm.persistence.api.integration.model.TaskInstanceView in project jbpm by kiegroup.
the class JPATaskPersistenceContext method addAttachmentToTask.
@Override
public Attachment addAttachmentToTask(Attachment attachment, Task task) {
((InternalTaskData) task.getTaskData()).addAttachment(attachment);
EventManagerProvider.getInstance().get().update(new TaskInstanceView(task));
return attachment;
}
use of org.jbpm.persistence.api.integration.model.TaskInstanceView in project jbpm by kiegroup.
the class JPATaskPersistenceContext method removeAttachmentFromTask.
@Override
public Attachment removeAttachmentFromTask(Task task, long attachmentId) {
Attachment removed = ((InternalTaskData) task.getTaskData()).removeAttachment(attachmentId);
EventManagerProvider.getInstance().get().update(new TaskInstanceView(task));
return removed;
}
Aggregations