<?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 Re: HashMap problem in Activiti in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154162#M108646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh lord, that was it. I feel like such a fool &lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://connect.hyland.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt; Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just out of interest, if I was to retrieve something from the HashMap and check it is a string of "123". would the below expression work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${mapVar.Get('key')=="123"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I ask is I always though '==' is a way to compare boolean rather than Strings.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2014 14:57:42 GMT</pubDate>
    <dc:creator>zlatan316</dc:creator>
    <dc:date>2014-02-11T14:57:42Z</dc:date>
    <item>
      <title>HashMap problem in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154160#M108644</link>
      <description>Hi,I have the below code which gives me a HashMap and sets it as the variable.&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&amp;nbsp;&amp;nbsp;&amp;nbsp;public void execute(DelegateExecution execution) throws Exception {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Reader readerObj = new Reader();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;readerObj.run(); // Creates values in a HashMap within Reader.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MainClass mc = n</description>
      <pubDate>Tue, 11 Feb 2014 13:25:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154160#M108644</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2014-02-11T13:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: HashMap problem in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154161#M108645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is IsEmpty the exact method name you used? It should be isEmpty() to start with. Is that working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 14:50:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154161#M108645</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-02-11T14:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: HashMap problem in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154162#M108646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh lord, that was it. I feel like such a fool &lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://connect.hyland.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt; Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just out of interest, if I was to retrieve something from the HashMap and check it is a string of "123". would the below expression work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${mapVar.Get('key')=="123"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I ask is I always though '==' is a way to compare boolean rather than Strings.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 14:57:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154162#M108646</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2014-02-11T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: HashMap problem in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154163#M108647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah, altough it's probably lower-case 'get'. Equality in javascript is always == or even === (type check)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 15:22:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154163#M108647</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-02-11T15:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: HashMap problem in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154164#M108648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thats interesting, as I just tried using the below expressions for two flows coming from an exclusivegateway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;${mapVar.get('MAIN_KEY-time_slot')=="true"} and ${mapVar.get('MAIN_KEY-time_slot')=="false"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…but I think the map is empty as mapVar.isEmpty() evaluates to true. I get the message "No outgoing sequence flow of the exclusive gateway 'exclusivegateway1' could be selected for continuing the process". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I've discovered the passing of the map is what isn't working correctly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reader readerObj = new Reader();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;readerObj.run(); // Populates HashMap in Reader class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MainClass mc = new MainClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//mc.map = readerObj.getMap(); //This does NOT work. In activiti, nothing evaluates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mc.map.put("MAIN_KEY-time_slot", "true"); //This works, and can use an expression to evaluate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea why?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:24:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154164#M108648</guid>
      <dc:creator>zlatan316</dc:creator>
      <dc:date>2014-02-11T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: HashMap problem in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154165#M108649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is that put done *after* you added it to the execution? It's possible you need to&amp;nbsp; do that up front.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, use a map is never a good idea (it gets serialized).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any reason&amp;nbsp; why using plain vars is not an option? It would simplify a lot of things (you could check the database tables contents yourself for example)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 14:08:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/hashmap-problem-in-activiti/m-p/154165#M108649</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-02-17T14:08:21Z</dc:date>
    </item>
  </channel>
</rss>

