<?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 how to define/set result variable from usertask? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-define-set-result-variable-from-usertask/m-p/98514#M67929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;) In case i want to take out some of the variable out of all the variables passed at the time of process start, how to do it in the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in usertask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What exactly i am looking for:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;start -&amp;gt; task1 -&amp;gt; task2 (custom form) -&amp;gt; stop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;passing a variable at the time of starting the process, lets say myvariable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myvariable contains elements/keys like "a","b","c","d" and their respective values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;based on some business requirement i want to pass only "a" and "b" to the task2, so that same can be used in the form, which is a custom form. how to achive this. I could get these values in the description but how to set a new variable in the designer, again their type is Object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;b) where can i specify new variable through usertask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c) How to update process variable using usertask, before the task gets completed. (i do not need listener/form to update the value).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can this be done directly in the designer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how did i achieve this: I used&amp;nbsp; start -&amp;gt; task1 -&amp;gt; task1servicetask -&amp;gt; task2(custom form) -&amp;gt; task2servicetask -&amp;gt; stop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from the analyst point of view also i had to do more coding for service task creation and setting the result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if the same can be achieve using the assignment operator, etc that its would be nice, the same way its there in WPS (BPEL). :idea: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepak&amp;nbsp; &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;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2012 02:35:27 GMT</pubDate>
    <dc:creator>deepak_singhvi</dc:creator>
    <dc:date>2012-08-23T02:35:27Z</dc:date>
    <item>
      <title>how to define/set result variable from usertask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-define-set-result-variable-from-usertask/m-p/98514#M67929</link>
      <description>) In case i want to take out some of the variable out of all the variables passed at the time of process start, how to do it in the in usertask.What exactly i am looking for:start -&amp;gt; task1 -&amp;gt; task2 (custom form) -&amp;gt; stoppassing a variable at the time of starting the process, lets say myvaria</description>
      <pubDate>Thu, 23 Aug 2012 02:35:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-define-set-result-variable-from-usertask/m-p/98514#M67929</guid>
      <dc:creator>deepak_singhvi</dc:creator>
      <dc:date>2012-08-23T02:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to define/set result variable from usertask?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-define-set-result-variable-from-usertask/m-p/98515#M67930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to have variables that are kept LOCAL to a task, use the "setVariableLocal" on DelegateTask and "setTaskVariableLocal" on RuntimeService/TaskService. This way, the next task won't have access to those variables. If you want SOME of those variables exposed for the next task (or for the whole process, copy the variables to the process-instance or execution using the regular setVariables() methods. This can be done when the task is completed, using a listener.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 14:15:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-define-set-result-variable-from-usertask/m-p/98515#M67930</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-09-27T14:15:29Z</dc:date>
    </item>
  </channel>
</rss>

