How can I send a "Publish Request" programmatically?How can I send a "Publish Request" programmatically?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1213168222024-03-29T15:07:42Z2024-03-29T15:07:42ZRE: RE: How can I send a "Publish Request" programmatically?Maria Zhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1213177492022-01-05T09:24:58Z2022-01-05T09:24:58Z<p>Hey! I finally discovered that this line solves everything:</p>
<pre>
<code class="language-java">WorkflowHandlerRegistryUtil.startWorkflowInstance(themeDisplay.getCompanyId(), newEntry.getGroupId(), themeDisplay.getUserId(), JournalArticle.class.getName(), newEntry.getId(), newEntry, serviceContext);
</code></pre>
<p>But, anyways, thank you very much! I was trying to create an entry in
the table WorkflowInstanceLink and I encountered some problems with
Kaleo, but with this line of code all entries are generated and there
is no problem :)</p>Maria Z2022-01-05T09:24:58ZRE: How can I send a "Publish Request" programmatically?Olaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1213175152022-01-05T08:38:50Z2022-01-05T08:38:50Z<p>Why don't you share what you have so far? It might be something that
can be spotted within the workflow.</p>
<p>Describe what you do, what you expect and what you observe (and where
the difference is). That might make it easier to point to the problem,
rather than posting a whole new solution from scratch that might (or
might not) fit your environment.</p>Olaf Kock2022-01-05T08:38:50ZHow can I send a "Publish Request" programmatically?Maria Zhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1213168212022-01-04T12:26:38Z2022-01-04T12:26:37Z<p>Hey!</p>
<p>I was trying to create a button that updates the content of a
JournalArticle, with status = 1 (pending) and send a publication
req