<?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>How to use conditional statement in liferay</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121679687" />
  <subtitle>How to use conditional statement in liferay</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121679687</id>
  <updated>2026-04-05T15:40:33Z</updated>
  <dc:date>2026-04-05T15:40:33Z</dc:date>
  <entry>
    <title>RE: How to use conditional statement in liferay</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683762" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121683762</id>
    <updated>2023-03-30T15:55:46Z</updated>
    <published>2023-03-30T15:55:45Z</published>
    <summary type="html">&lt;p&gt;First, categories show title in the control panel, even though they
  do also have a name (which you're checking).&lt;/p&gt;
&lt;p&gt;Are you sure that the category you want to match to actually has the
  name SEC FILINGS?&lt;/p&gt;
&lt;p&gt;Also, could it be a case match issue or something?&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2023-03-30T15:55:45Z</dc:date>
  </entry>
  <entry>
    <title>How to use conditional statement in liferay</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121679686" />
    <author>
      <name>Anju Mishra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121679686</id>
    <updated>2023-03-24T17:28:54Z</updated>
    <published>2023-03-24T16:38:03Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want my file to be auto approved if it hit the workflow. I am using
  below condition for it but not getting any solution. Please help me
  with same.&lt;/p&gt;
&lt;p&gt;  List&amp;lt;AssetCategory&amp;gt; assetCategories = assetEntry.getCategories();&lt;/p&gt;
&lt;p&gt;        returnValue = &amp;quot;BPR Review&amp;quot;;&lt;/p&gt;
&lt;p&gt;        for (AssetCategory assetCategory : assetCategories) {&lt;br /&gt;  
            String categoryName = assetCategory.getName()&lt;/p&gt;
&lt;p&gt;            if (categoryName.equals(&amp;quot;SEC FILINGS&amp;quot;)) {&lt;br /&gt;
                      &lt;br /&gt;                     returnValue = &amp;quot;Approved&amp;quot;;&lt;/p&gt;
&lt;p&gt;                    return true;&lt;br /&gt;                 }&lt;br /&gt;      
    }&lt;/p&gt;</summary>
    <dc:creator>Anju Mishra</dc:creator>
    <dc:date>2023-03-24T16:38:03Z</dc:date>
  </entry>
</feed>
