<?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: Form Property 'Long' Is Interpreted by Java Class as 'Intege in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78340#M51968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The process still has some problems later than the part that shows the problem I described above, so here is a copy.&amp;nbsp; I am not sure what you mean by the full project.&amp;nbsp; Here is the bpmn20.xml and the classes that I use.&amp;nbsp; When I try to attach .java files, the forum form give me a message "The extensin java is not allowed" so I hope you get everything.&amp;nbsp; If not, I can get the code to you other ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 21:46:01 GMT</pubDate>
    <dc:creator>ct1</dc:creator>
    <dc:date>2011-09-27T21:46:01Z</dc:date>
    <item>
      <title>Form Property 'Long' Is Interpreted by Java Class as 'Intege</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78337#M51965</link>
      <description>I specified a "long" type for an activiti:formProperty in the BPMN20.xml (actually in Designer) for variables "loanAmount" and "income".&amp;nbsp; Then in a Java class I tried to do execution.getVariable("varName") casting the return value to both a Long and a String.&amp;nbsp; Each time I had a "ClassCastException:</description>
      <pubDate>Tue, 27 Sep 2011 15:50:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78337#M51965</guid>
      <dc:creator>ct1</dc:creator>
      <dc:date>2011-09-27T15:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property 'Long' Is Interpreted by Java Class as 'Intege</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78338#M51966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which version of Activiti are you using? How did you test this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With a unit test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, please post the full project so I can reproduce it.&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, 27 Sep 2011 20:52:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78338#M51966</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-09-27T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property 'Long' Is Interpreted by Java Class as 'Intege</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78339#M51967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I acutally tested this with a unit test, changed to code to work in the unit test, deployed that via Explorer and tested in Explorer.&amp;nbsp; I had different results in both tests.&amp;nbsp; The unit test gave the results shown already had a class cast exception trying to cast an Integer to a String.&amp;nbsp; Explorer gave a class cast exception saying that I could not cast a Long to an Integer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still working on the project and it is a little unstable right now.&amp;nbsp; As soon as I get it stable again I will post it for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 21:11:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78339#M51967</guid>
      <dc:creator>ct1</dc:creator>
      <dc:date>2011-09-27T21:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property 'Long' Is Interpreted by Java Class as 'Intege</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78340#M51968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The process still has some problems later than the part that shows the problem I described above, so here is a copy.&amp;nbsp; I am not sure what you mean by the full project.&amp;nbsp; Here is the bpmn20.xml and the classes that I use.&amp;nbsp; When I try to attach .java files, the forum form give me a message "The extensin java is not allowed" so I hope you get everything.&amp;nbsp; If not, I can get the code to you other ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 21:46:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78340#M51968</guid>
      <dc:creator>ct1</dc:creator>
      <dc:date>2011-09-27T21:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Form Property 'Long' Is Interpreted by Java Class as 'Intege</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78341#M51969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The descrepancy I described is one I caused in my "tester" class.&amp;nbsp; When I put values into the process variables sent to the startProcessInstanceByKey() method, I specified Interger for the values.&amp;nbsp; So, naturally the process would interpret the fields as Integer rather than Long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your quick replies to my posts and patience while I am still learning how to work with the engine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 16:02:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-property-long-is-interpreted-by-java-class-as-intege/m-p/78341#M51969</guid>
      <dc:creator>ct1</dc:creator>
      <dc:date>2011-09-28T16:02:08Z</dc:date>
    </item>
  </channel>
</rss>

