<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>[JournalArticle] How to identify the creator of a version with workflow</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123500359" />
  <subtitle>[JournalArticle] How to identify the creator of a version with workflow</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123500359</id>
  <updated>2026-04-05T22:15:12Z</updated>
  <dc:date>2026-04-05T22:15:12Z</dc:date>
  <entry>
    <title>[JournalArticle] How to identify the creator of a version with workflow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123500358" />
    <author>
      <name>Tommaso Matticchio</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123500358</id>
    <updated>2025-07-18T19:39:59Z</updated>
    <published>2025-07-17T09:32:39Z</published>
    <summary type="html">&lt;p&gt;Hi everyone,&lt;br&gt; I'm working with Liferay 7.4 (DXP) and I have a
  question about the behavior of the approval workflow for web content (JournalArticle).&lt;/p&gt;
&lt;p&gt;In a workflow-enabled scenario, I expected each version of a
  JournalArticle to properly track the user who actually created or
  updated it. In Liferay 7.1, this was the behavior I observed:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;The &lt;code&gt;userName&lt;/code&gt; and &lt;code&gt;userId&lt;/code&gt; fields in the
      &lt;code&gt;JournalArticle&lt;/code&gt; table were set to the user who created
      or updated the version.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The &lt;code&gt;statusByUserName&lt;/code&gt; and &lt;code&gt;statusByUserId&lt;/code&gt;
      fields tracked the user who approved the content via workflow.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;However, in Liferay 7.4, I noticed that &lt;code&gt;userName&lt;/code&gt; and
  &lt;code&gt;userId&lt;/code&gt; for each new version are always inherited from the
  previous version (typically the original creator), even if another
  user actually modified and saved the content (and someone else
  approved it).&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Example:&lt;/strong&gt;
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;User 1 creates the content → approved by User 2&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;User 3 edits and saves the content → approved again by User 2&lt;br&gt;
      Result: Version 2 still has &lt;code&gt;userName = User 1&lt;/code&gt;, which
      is misleading.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  &lt;strong&gt;Question:&lt;/strong&gt;
  &lt;br&gt; Is this the expected behavior in Liferay 7.4?&lt;br&gt; Is there a
  reliable way to retrieve the user who actually created or modified
  each version of the content, even when workflow is enabled?&lt;/p&gt;
&lt;p&gt;Any tips on how to extract this information (via API, database, or
  customization) would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;br&gt; Tommaso&lt;/p&gt;</summary>
    <dc:creator>Tommaso Matticchio</dc:creator>
    <dc:date>2025-07-17T09:32:39Z</dc:date>
  </entry>
</feed>
