This content has been marked as final.
Show 1 reply
-
1. Re: Task info in remote api does not retrieve the latest content
jmiguel77 Jul 24, 2014 11:37 AM (in response to jmiguel77)1 of 1 people found this helpfuli have solved this problem in a api extension i have developed
using the jpa associated to bpm i am doing this, after adding a new content
public void updateContentIdByTaskId(long taskId, long contentId) {
TaskImpl taskImpl = em.find(TaskImpl.class, taskId);
TaskDataImpl taskDataImpl = (TaskDataImpl) taskImpl.getTaskData();
taskDataImpl.setDocumentContentId(contentId);
}
this snippet is "manually" setting the documentcontentid of the task to the newly created content, and now the call to this url (http://localhost:8080/business-central/rest/task/14/content) retrieves the correct content id