<?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 Manning Book Ch5 example - creditCheckOk var not created in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/manning-book-ch5-example-creditcheckok-var-not-created/m-p/178026#M131156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So in the Loan Application example, there are 4 variables declared at the start then the first task is a script task that does the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out:println "Checking credit for " + name;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;creditCheckOk = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if((income / 2) &amp;gt; loanAmount){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;creditCheckOk = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out:println "Checked credit for " + name + " outcome is " + creditCheckOk;&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;/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;Then there is a Java Service task that tries to look at the value of creditCheckOk. When I ran the example, the Java Service Task failed because it couldn't access it. I added creditCheckOk to the form and now it runs successfully, however it also appears as a checkbox in the start form which I don't think is the intended behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would seem that the introduction of an undeclared variable in a Script Task is supposed to cause it to be created in the process context, however this didn't seem to happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As the example is based on a several-years-old version of Activiti, I am wondering if the behavior has changed. If so, what should be done to correct this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2015 00:51:22 GMT</pubDate>
    <dc:creator>jemmerling</dc:creator>
    <dc:date>2015-07-01T00:51:22Z</dc:date>
    <item>
      <title>Manning Book Ch5 example - creditCheckOk var not created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/manning-book-ch5-example-creditcheckok-var-not-created/m-p/178026#M131156</link>
      <description>So in the Loan Application example, there are 4 variables declared at the start then the first task is a script task that does the following:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rintln "Checking credit for " + name;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;creditCheckOk = false;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if((income / 2) &amp;gt; loanAmount){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;creditCheckOk = true;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;o</description>
      <pubDate>Wed, 01 Jul 2015 00:51:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/manning-book-ch5-example-creditcheckok-var-not-created/m-p/178026#M131156</guid>
      <dc:creator>jemmerling</dc:creator>
      <dc:date>2015-07-01T00:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Manning Book Ch5 example - creditCheckOk var not created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/manning-book-ch5-example-creditcheckok-var-not-created/m-p/178027#M131157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, we've added autoStoreVariables as an attribute that needs to be set to true for variables to be created automatically. It's described in the user guid in the script task section.&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>Wed, 01 Jul 2015 14:11:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/manning-book-ch5-example-creditcheckok-var-not-created/m-p/178027#M131157</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-07-01T14:11:59Z</dc:date>
    </item>
  </channel>
</rss>

