<?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 to update a variable  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229150#M182280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's the code in my bpmn20.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="serviceTaskJava" name="Execution Variable JAVA &amp;amp;#xa;" activiti:class="org.classe.authentification.myAuthTest"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;modeler:executionvariables modeler:variableName="myUserName" modeler:variableType="string"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 12:19:59 GMT</pubDate>
    <dc:creator>madn</dc:creator>
    <dc:date>2016-05-18T12:19:59Z</dc:date>
    <item>
      <title>How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229143#M182273</link>
      <description>Hi everyone I created a variable in a serviceTask. It's written Variables | 1 variables configured I want to update this variable when she pass in my serviceTask with the java code belowpublic class myAuthTest implements JavaDelegate{&amp;nbsp;&amp;nbsp;&amp;nbsp;@Autowired&amp;nbsp;&amp;nbsp;&amp;nbsp;protected UserService userService ; &amp;nbsp;&amp;nbsp;&amp;nbsp;protected T</description>
      <pubDate>Wed, 18 May 2016 09:27:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229143#M182273</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-18T09:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229144#M182274</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;Did you try this in the execute method of myAuthTest class ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("myUserName2 ", "New/Updated Name");&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 10:37:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229144#M182274</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-05-18T10:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229145#M182275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes I ever tried this and this isn't working it seems like this is creating a new variable myUserName and isn't filling the proper variable that i defined in the workflow model &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 10:42:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229145#M182275</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-18T10:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229146#M182276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But when i do execution.getVariable("myUserName") and i disp it in &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://xxxxxxxxxxx:9090/activiti-app/api/runtime/process-instances/xxxxx/variables" rel="nofollow noopener noreferrer"&gt;http://xxxxxxxxxxx:9090/activiti-app/api/runtime/process-instances/xxxxx/variables&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting this var equals to null &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after doing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yousra = (Object)x ; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "myUserName2",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value": "administrator",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "scope": "local",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "string"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand i got the proper value but i can't use this in my RestCALL task , is it a problem about the scope ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 10:45:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229146#M182276</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-18T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229147#M182277</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;Where have you set the value to myUserName variable ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 11:25:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229147#M182277</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-05-18T11:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229148#M182278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm on activiti enterprise and I defined this variable in my serviceTASK &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 12:13:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229148#M182278</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-18T12:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229149#M182279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but you can't set a value the default value is null if you set a variable for the first time you have to use script task or serviceTask to update this variable &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 12:13:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229149#M182279</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-18T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229150#M182280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's the code in my bpmn20.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;serviceTask id="serviceTaskJava" name="Execution Variable JAVA &amp;amp;#xa;" activiti:class="org.classe.authentification.myAuthTest"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;modeler:executionvariables modeler:variableName="myUserName" modeler:variableType="string"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 12:19:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229150#M182280</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-18T12:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229151#M182281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to help you i've made a picture of where I defined my variable .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how to update those kind of variables that you defined as follows ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hostingpics.net/viewer.php?id=558735problem.png" rel="nofollow noopener noreferrer"&gt;http://www.hostingpics.net/viewer.php?id=558735problem.png&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 13:08:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229151#M182281</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-19T13:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229152#M182282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No response on how to update those kind of variable ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 09:31:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229152#M182282</guid>
      <dc:creator>madn</dc:creator>
      <dc:date>2016-05-20T09:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229153#M182283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working in r&amp;amp;d and we are actually testing some activiti workflow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for our test we also need to use the variable system but we still can't use them &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking throught internet this is the only topic where we are talking about the same problems&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as this topic is fresh I'm would like to ask the same question&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks &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;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Julietta &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 09:28:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229153#M182283</guid>
      <dc:creator>hyoli</dc:creator>
      <dc:date>2016-05-23T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to update a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229154#M182284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@madn: if you define a variable like that in the service task properties, it means that your service task will set that variables in the execute() method. It is kinda like 'metadata' for your service task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of using createVariableLocal … why arent you using the setVariable() method?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 09:20:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-a-variable/m-p/229154#M182284</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-31T09:20:05Z</dc:date>
    </item>
  </channel>
</rss>

