<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use class full package name in line's condition expr? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121986#M85939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to compare a process variable (enum variable) to one of its possible value. It seems that using class full package name is not possible in the condition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;${status==a.b.c.StatusEnum.REJECTED}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;throws:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'a'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to do this using condition on sequence flow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(I use SpringProcessEngineConfiguration if it does matter.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2013 16:54:01 GMT</pubDate>
    <dc:creator>tse</dc:creator>
    <dc:date>2013-01-25T16:54:01Z</dc:date>
    <item>
      <title>How to use class full package name in line's condition expr?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121986#M85939</link>
      <description>I would like to compare a process variable (enum variable) to one of its possible value. It seems that using class full package name is not possible in the condition:${status==a.b.c.StatusEnum.REJECTED}‍‍‍throws:Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve i</description>
      <pubDate>Fri, 25 Jan 2013 16:54:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121986#M85939</guid>
      <dc:creator>tse</dc:creator>
      <dc:date>2013-01-25T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use class full package name in line's condition expr?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121987#M85940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From using&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.google.nl/search?q=using+enums+in+EL" rel="nofollow noopener noreferrer"&gt;https://www.google.nl/search?q=using+enums+in+EL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There were several hits. The first one also helps, but the 4th is the spec and from that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When referencing an enum constant with an expression, you use a String literal. For example, consider this Enum class:&lt;BR /&gt;&lt;BR /&gt;public enum Suit {hearts, spades, diamonds, clubs}&lt;BR /&gt;&lt;BR /&gt;To refer to the Suit constant, Suit.hearts with an expression, you use the String literal, "hearts". Depending on the context, the String literal is converted to the enum constant automatically. For example, in the following expression in which mySuit is an instance of Suit, "hearts" is first converted to a Suit.hearts before it is compared to the instance.&lt;BR /&gt;&lt;BR /&gt;${mySuit == "hearts"}&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So I don't think it is needed or even right to use the fully qualified name. So &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;${status=="rejected"}&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;might work (or "Rejected", "REJECTED", …. depending on what you used)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 09:04:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121987#M85940</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-01-26T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use class full package name in line's condition expr?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121988#M85941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for digging that up, Ronald. JUEL indeed threats enums-comparisons as string-values, according to the EL-spec…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 09:26:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121988#M85941</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-28T09:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use class full package name in line's condition expr?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121989#M85942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the answer. In case of enums thats exactly what i have done as a workaround. Having a broader context in mind, comparison of strings is not always the case. What if you have to compare objects (constants most of the time). Then u probably need a class full package name: a.b.c.Clazz.FIELD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In JSR-223 3.1 i've found something like T(a.b.c.Clazz).FIELD to solve this. Don't know which version is activiti compliant with but T(..) syntax does not work &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 16:55:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121989#M85942</guid>
      <dc:creator>tse</dc:creator>
      <dc:date>2013-01-30T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use class full package name in line's condition expr?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121990#M85943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is JSR-233 3.1 (I know what JSR-233 is, just can not find any specific reference to '3.1' anywhere. Do you have a link? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise simply write a method that accepts your input and compares the result there IN JAVA and returns a boolean….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;${myCDIBean.isEqualToField(myField)}&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;and the bean: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;import a.b.c.Clazz.Field&lt;BR /&gt;&lt;BR /&gt;@Named&lt;BR /&gt;public class MyCDIBean {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean isEqualToField(a.b.c.Clazz.Field myValue) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Field == myValue;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Or something like this…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 20:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-class-full-package-name-in-line-s-condition-expr/m-p/121990#M85943</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-01-30T20:14:34Z</dc:date>
    </item>
  </channel>
</rss>

