<?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: 	CreateApplicationTask  in chapter 5 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129517#M90990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is exactly on line 10 of the createApplicationTask?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 10:17:00 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-04-22T10:17:00Z</dc:date>
    <item>
      <title>CreateApplicationTask  in chapter 5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129516#M90989</link>
      <description>Hi,I am going through the code examples from the book Activiti in action. I have deployed the project in chapter 5 onto my tomcat server.the jar file as well as the bar file are deployed. However when I start the&amp;nbsp; lone application process with the form data as specified in the book I am getting a er</description>
      <pubDate>Sat, 20 Apr 2013 05:32:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129516#M90989</guid>
      <dc:creator>johnrd</dc:creator>
      <dc:date>2013-04-20T05:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: 	CreateApplicationTask  in chapter 5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129517#M90990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is exactly on line 10 of the createApplicationTask?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 10:17:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129517#M90990</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-22T10:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: 	CreateApplicationTask  in chapter 5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129518#M90991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is exactly as in the book code sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;line 10&amp;nbsp; is&amp;nbsp;&amp;nbsp;&amp;nbsp; la.setCreditCheckOk((Boolean) execution.getVariable("creditCheckOk"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///// code fragment given below///&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class CreateApplicationTask implements JavaDelegate {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; public void execute(DelegateExecution execution) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LoanApplication la = new LoanApplication();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; la.setCreditCheckOk((Boolean) execution.getVariable("creditCheckOk"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; la.setCustomerName((String) execution.getVariable("name"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; la.setIncome((Long) execution.getVariable("income"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; la.setRequestedAmount((Long) execution.getVariable("loanAmount"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; la.setEmailAddress((String) execution.getVariable("emailAddress"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; execution.setVariable("loanApplication", la);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 13:04:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129518#M90991</guid>
      <dc:creator>johnrd</dc:creator>
      <dc:date>2013-04-22T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: 	CreateApplicationTask  in chapter 5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129519#M90992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you testing this with Activiti 5.12.1? The reason why I'm asking this is because we changed the automatic promotion of script variables to execution variables.&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>Mon, 22 Apr 2013 14:39:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129519#M90992</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-22T14:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: 	CreateApplicationTask  in chapter 5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129520#M90993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes it is the latest distribution from the site&amp;nbsp;&amp;nbsp;&amp;nbsp; activiti 5.12.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 14:42:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129520#M90993</guid>
      <dc:creator>johnrd</dc:creator>
      <dc:date>2013-04-22T14:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: 	CreateApplicationTask  in chapter 5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129521#M90994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, please read the user guide section about script tasks (&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#bpmnScriptTask" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#bpmnScriptTask&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You should explicitly set the variable now like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def scriptVar = "test123"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("myVar", scriptVar)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should prevent the nullpointer from being thrown.&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>Mon, 22 Apr 2013 15:28:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129521#M90994</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-04-22T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: 	CreateApplicationTask  in chapter 5</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129522#M90995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to point out that just after I had this problem with creatapplicationtask , i could no longer login to activity explorer as described here&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/cant-login-activiti-explorer" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/cant-login-activiti-explorer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how to fix this issue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 15:53:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/createapplicationtask-in-chapter-5/m-p/129522#M90995</guid>
      <dc:creator>johnrd</dc:creator>
      <dc:date>2013-04-22T15:53:48Z</dc:date>
    </item>
  </channel>
</rss>

