<?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>Send Liferay User Notification for web content creation.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122030873" />
  <subtitle>Send Liferay User Notification for web content creation.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122030873</id>
  <updated>2026-04-04T16:02:25Z</updated>
  <dc:date>2026-04-04T16:02:25Z</dc:date>
  <entry>
    <title>RE: Send Liferay User Notification for web content creation.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122043230" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122043230</id>
    <updated>2023-09-18T14:32:14Z</updated>
    <published>2023-09-18T14:32:13Z</published>
    <summary type="html">&lt;p&gt;Possibly a hack, not sure:&lt;/p&gt;
&lt;p&gt;Add a workflow that has a condition--check the structure Id. If it's
  the structure you need a notification for, transition to a state node
  that has two jobs: send a notification and transition the item to the
  end state (where you should makr the item as approved). If it's not
  the structure you're interested in, just transition directly to the
  end state node (where you mark the item as approved).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Condition could look something like this:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;import com.liferay.portal.kernel.workflow.WorkflowConstants;
import com.liferay.journal.service.JournalArticleLocalServiceUtil;
import com.liferay.journal.model.JournalArticle;
import com.liferay.portal.kernel.util.*;

long id = GetterUtil.getLong((String)workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK));

JournalArticle ja = JournalArticleLocalServiceUtil.getJournalArticle(id);

if (ja.getDDMStructureId() == 34888) {
   returnValue = &amp;quot;fe262ad3-1b44-42d3-b790-f5c23679492a&amp;quot;;
}

else {
   returnValue = &amp;quot;09ef78d1-daab-4d5b-81c0-bb92f92435c8&amp;quot;;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2023-09-18T14:32:13Z</dc:date>
  </entry>
  <entry>
    <title>Send Liferay User Notification for web content creation.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122030872" />
    <author>
      <name>Fazal Babaria</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122030872</id>
    <updated>2023-09-15T22:14:54Z</updated>
    <published>2023-09-14T05:47:24Z</published>
    <summary type="html">&lt;p&gt;Hello Folks,&lt;br&gt;  &lt;/p&gt;
&lt;p&gt;Can anyone suggest an approach for the below-mentioned requirement?&lt;/p&gt;
&lt;p&gt;I have one structure in Liferay named news-letter now whenever any
  web content has been created or updated using that structure I want to
  send a notification to the specific users with one role named as staff
  in Liferay 7.4.&lt;/p&gt;
&lt;p&gt;How should we achieve this in Liferay 7.4?&lt;/p&gt;
&lt;p&gt;I really appreciate any help you can provide.&lt;/p&gt;</summary>
    <dc:creator>Fazal Babaria</dc:creator>
    <dc:date>2023-09-14T05:47:24Z</dc:date>
  </entry>
</feed>
