<?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: How do i use variables defined in the Script Task in the User Task? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30819#M13089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 16:58:55 GMT</pubDate>
    <dc:creator>asheerabbas</dc:creator>
    <dc:date>2017-03-16T16:58:55Z</dc:date>
    <item>
      <title>How do i use variables defined in the Script Task in the User Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30814#M13084</link>
      <description>Declaring variables in Script Task through execution.setVariable and using them in the User Task.I have declared a variable in Script Task using execution.setVariable in the activiti Designer, but when i use the same variable through the ${expression} in the usertask and i click on the submit button</description>
      <pubDate>Tue, 14 Mar 2017 20:34:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30814#M13084</guid>
      <dc:creator>asheerabbas</dc:creator>
      <dc:date>2017-03-14T20:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variables defined in the Script Task in the User Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30815#M13085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Asheer,&lt;BR /&gt;&lt;BR /&gt;I believe when you use:&amp;nbsp;&lt;SPAN&gt;execution.setVariable("msg", message), that's meant to set a Process Variables. From my understanding Activiti will not define a new variable for you if it doesn't already exist in the process, for example that "msg" value in your script. You would need to have a Process Variable named&amp;nbsp;&lt;EM&gt;msg&lt;/EM&gt; in order to store that information there.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;Below is a GUI method for declaring a process variable:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/12973_pastedImage_1.png" style="width: 620px; height: 100px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;Feel free to look into the &lt;A href="https://www.activiti.org/userguide/#apiVariables" rel="nofollow noopener noreferrer"&gt;Variables&lt;/A&gt;&amp;nbsp;section of the User Guide for more specifics on utilization and declarations.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;Hope this helps,&lt;BR /&gt;-JEarles&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 22:51:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30815#M13085</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-14T22:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variables defined in the Script Task in the User Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30816#M13086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou so much Jonathan, i will look in to the variable section. Further more i figured out another way, there is a field where you can name a variable in the form properties right under the expression field, so i gave a name over there and it worked like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 14:47:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30816#M13086</guid>
      <dc:creator>asheerabbas</dc:creator>
      <dc:date>2017-03-15T14:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variables defined in the Script Task in the User Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30817#M13087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked out for the Variable in the GUI shown above in your screenshot, but my designer doesn't show that option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using Activiti Explorer 5.22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 14:50:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30817#M13087</guid>
      <dc:creator>asheerabbas</dc:creator>
      <dc:date>2017-03-15T14:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variables defined in the Script Task in the User Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30818#M13088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Asheer,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My apologies - I'm glad you found your answer - but I was completely in left field in my original response.&lt;BR /&gt;You should be absolutely be okay using execition.setVariable() &amp;amp; task.setVariable() without ever defining them in the UI registries.&lt;BR /&gt;&lt;BR /&gt;Glad you're back in working order &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 17:07:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30818#M13088</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-15T17:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variables defined in the Script Task in the User Task?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30819#M13089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:58:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-use-variables-defined-in-the-script-task-in-the-user/m-p/30819#M13089</guid>
      <dc:creator>asheerabbas</dc:creator>
      <dc:date>2017-03-16T16:58:55Z</dc:date>
    </item>
  </channel>
</rss>

