<?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: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171109#M124374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And I'm happy to be back. &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;SPAN&gt;If I'm understanding you correctly, you're basically saying that the product - in its out-of-the-box configuration - currently doesn't provide the ability to initiate a process and retrieve the current values of all variables when the process enters a wait state. Of course, that is consistent with the manner in which most (or all) BPM tools are currently designed and implemented. With that said, the pattern I'm describing is a legitimate pattern that customers may need their BPM tools to support. (In fact, one of the issues I encountered on a recent consulting engagement - where the customer was looking to select a BPM tool - was that none of the tools supported that pattern.) As a result, my thought is that it might be nice for Activiti to add a REST resource that would provide that ability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, I'd be willing to contribute that simple addition to the project if you agree that it would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:09:54 GMT</pubDate>
    <dc:creator>ryanj1</dc:creator>
    <dc:date>2014-04-07T15:09:54Z</dc:date>
    <item>
      <title>Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171107#M124372</link>
      <description>First, I'm using Activiti 5.15. (If this has been fixed in V5.15.1, let me know; my understanding is that version is exclusively for the MySQL 5.6 bug.)When calling the "Start a Process Instance" REST resource, I noticed that the "variables" array was always empty, regardless of whether a process in</description>
      <pubDate>Wed, 02 Apr 2014 21:30:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171107#M124372</guid>
      <dc:creator>ryanj1</dc:creator>
      <dc:date>2014-04-02T21:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171108#M124373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good to see you back on the forum &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Variables are not returned when creating a process instance, similar to how it works in the Java API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The variables list is only filled when you query on process instances with the includeVariables option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the variables an additional REST call is required.&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, 07 Apr 2014 09:25:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171108#M124373</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-04-07T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171109#M124374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And I'm happy to be back. &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;SPAN&gt;If I'm understanding you correctly, you're basically saying that the product - in its out-of-the-box configuration - currently doesn't provide the ability to initiate a process and retrieve the current values of all variables when the process enters a wait state. Of course, that is consistent with the manner in which most (or all) BPM tools are currently designed and implemented. With that said, the pattern I'm describing is a legitimate pattern that customers may need their BPM tools to support. (In fact, one of the issues I encountered on a recent consulting engagement - where the customer was looking to select a BPM tool - was that none of the tools supported that pattern.) As a result, my thought is that it might be nice for Activiti to add a REST resource that would provide that ability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, I'd be willing to contribute that simple addition to the project if you agree that it would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:09:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171109#M124374</guid>
      <dc:creator>ryanj1</dc:creator>
      <dc:date>2014-04-07T15:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171110#M124375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes that's correct. I can understand that it's sometimes helpful to get back the variables directly in the response. If you are willing to add an option to the existing "create process instance" REST service that would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:29:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171110#M124375</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-04-08T13:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171111#M124376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the delayed response. My current client - actually an Activiti client &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; - has had me working hard over the past couple of weeks. (It's been fun, though.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd be happy to add an option to the existing "create process instance" REST service. To do so, I would have to modify three source files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) org.activiti.rest.service.api.runtime.process.ProcessInstanceCreateRequest (I would need to add the additional boolean variable here to indicate whether to return variables.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) org.activiti.rest.service.api.runtime.process.ProcessInstanceResponse (This isn't technically required for this change, but a nice, complementary feature is a flag in the output noting whether the process instance has been completed or not. That would be added herein.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) org.activiti.rest.service.api.RestResponseFactory (This is where the bulk of the code would be. I would use the code cited earlier within this thread.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you would want me to use the code for Activiti 5.15.1 to make these changes? (Though I suspect that none of these were changed from 5.15 to 5.15.1.) Let me know, and also let me know what timing constraints you have for the next release. Note that it shouldn't take me long to make these changes, primarily because I have all but the changes to ProcessInstanceCreateRequest already made (and tested) on my own instance. &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>Tue, 22 Apr 2014 05:13:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171111#M124376</guid>
      <dc:creator>ryanj1</dc:creator>
      <dc:date>2014-04-22T05:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171112#M124377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe good to have a pull-request for this, so we can take a better look at the suggested solution. I'm quite sure nothing changed in the code related to this feature. Including process-variables with a process-instance response is something that seems to be a common usecase, judging from the forum, so exposing this on the normal GET of a single instance whould also make sense (instead of only allowing this in the GET on the collection, as currently implemented).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 08:22:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171112#M124377</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-04-22T08:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171113#M124378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like a plan. I'd be happy to just send along the code via email too if you'd like to have a look at it that way. And of course, if you have another recommendation on how to retrieve the variables that might be more efficient, I'd be happy to hear it.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 13:43:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171113#M124378</guid>
      <dc:creator>ryanj1</dc:creator>
      <dc:date>2014-04-22T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171114#M124379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; Sounds like a plan. I'd be happy to just send along the code via email too if you'd like to have a look at it that way&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pull requests are easiest. Patches, emails also work &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking forward to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No changes in that area in the latest releases, so your explanation above should work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 07:23:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171114#M124379</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-04-24T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171115#M124380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a pull request for my proposed modifications. Per Tijs comment earlier in this post, I added a flag ("returnVariables") that can be submitted in the request JSON to the POST runtime/process-instances endpoint to indicate whether variables should be returned or not. If it isn't specified or if it's set to false, the endpoint behaves in exactly the same manner as it does in Activiti today. Thus, this change shouldn't cause any issues for users who upgrade to a release in which these changes included and who use the endpoint in their environments today.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, this is my first GitHub pull request, so if I messed something up, please let me know… &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;SPAN&gt;-Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 19:56:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171115#M124380</guid>
      <dc:creator>ryanj1</dc:creator>
      <dc:date>2014-05-07T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171116#M124381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did not see this before my posts on the other thread. &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/list-process-instances-rest-returns-empty-processvariables" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/list-process-instances-rest-returns-empty-processvariables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what said on the other thread about this already pulled into master and fixed in next version of 5.13 is not correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Gordon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 00:17:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171116#M124381</guid>
      <dc:creator>ssun</dc:creator>
      <dc:date>2014-05-29T00:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171117#M124382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I take back my previous post. I added includeProcessVariables=true worked, I mistakenly added includeVariables &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This post is about the return when create a process instance using.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 01:15:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171117#M124382</guid>
      <dc:creator>ssun</dc:creator>
      <dc:date>2014-05-29T01:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171118#M124383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm glad it worked! If you need further assistance, please don't hesitate to reach out, and good luck with Activiti.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 17:32:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171118#M124383</guid>
      <dc:creator>ryanj1</dc:creator>
      <dc:date>2014-06-14T17:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171119#M124384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, this has not worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this future already included in 5.15.1 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Atif&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 03:02:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171119#M124384</guid>
      <dc:creator>atifelkhachine</dc:creator>
      <dc:date>2014-07-24T03:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171120#M124385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried this url :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://kermit:kermit@localhost:8080/activiti-webapp-rest/service/runtime/process-instances?includeProcessVariables=true" rel="nofollow noopener noreferrer"&gt;http://kermit:kermit@localhost:8080/activiti-webapp-rest/service/runtime/process-instances?includeProcessVariables=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i'am always getting an empty variables array : &amp;lt;variables/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing, is that i got an XML response instead of json, even with the header : Content-Type application/json.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This test was done on 2.5.17 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A.ELK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 03:48:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171120#M124385</guid>
      <dc:creator>atifelkhachine</dc:creator>
      <dc:date>2014-07-25T03:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171121#M124386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What version did you test it against? Are you sure the variables are set on process-instance level, not on a child-execution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 07:49:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171121#M124386</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-25T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171122#M124387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tested against 5.17.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a process with start -&amp;gt; Script Task -&amp;gt; End&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Script Task : i do execution.setVariable("myVar","toto");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering if it's the correct way to do the setVariable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AELK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 13:18:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171122#M124387</guid>
      <dc:creator>atifelkhachine</dc:creator>
      <dc:date>2014-07-25T13:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171123#M124388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried and it's working fine if you list down all process instances. I do see variables as shown below. The only question I have, Can we get variable info for particular process-instance? It works fine with list but if I try with particular process-instance, variables array is coming blank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/process-instances?includeProcessVariables=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/process-instances?includeProcessVariables=true&lt;/A&gt;&lt;SPAN&gt; - Works fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/process-instances/8096?includeProcessVariables=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/process-instances/8096?includeProcessVariables=true&lt;/A&gt;&lt;SPAN&gt; - Gives blank variables array&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "8096",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/process-instances/8096" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/process-instances/8096&lt;/A&gt;&lt;SPAN&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;nbsp;&amp;nbsp;&amp;nbsp; "businessKey": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "suspended": false,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "processDefinitionId": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "processDefinitionUrl": "&lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/repository/process-definitions/null" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/repository/process-definitions/null&lt;/A&gt;&lt;SPAN&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;nbsp;&amp;nbsp;&amp;nbsp; "activityId": "usertask2",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "variables":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "question",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "string",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value": "Y",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "scope": "local"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "tenantId": ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 15:00:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171123#M124388</guid>
      <dc:creator>sahusunil</dc:creator>
      <dc:date>2014-07-25T15:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171124#M124389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't understand why not worked for me &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i did an HTTP POST on : &lt;/SPAN&gt;&lt;A href="http://kermit:kermit@localhost:8080/activiti-webapp-rest/service/runtime/process-instances?includeProcessVariables=true" rel="nofollow noopener noreferrer"&gt;http://kermit:kermit@localhost:8080/activiti-webapp-rest/service/runtime/process-instances?includeProcessVariables=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The request body is like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"processDefinitionId":"process:1:101"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; The response is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ProcessInstanceResponse&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;id&amp;gt;2592&amp;lt;/id&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;url&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-webapp-rest/service/runtime/process-instances/2592" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-webapp-rest/service/runtime/process-instances/2592&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;businessKey/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;suspended&amp;gt;false&amp;lt;/suspended&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ended&amp;gt;true&amp;lt;/ended&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;processDefinitionId&amp;gt;process:1:101&amp;lt;/processDefinitionId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;processDefinitionUrl&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-webapp-rest/service/repository/process-definitions/process%3A1%3A101" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-webapp-rest/service/repository/process-definitions/process%3A1%3A101&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/processDefinitionUrl&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activityId&amp;gt;endStep&amp;lt;/activityId&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;variables/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;tenantId/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;completed&amp;gt;true&amp;lt;/completed&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ProcessInstanceResponse&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——————&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The script task code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&amp;lt;scriptTask id="scriptTask" name="script task" scriptFormat="groovy"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script&amp;gt;execution.setVariable("myVar", "TotoTiti");&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/scriptTask&amp;gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 17:30:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171124#M124389</guid>
      <dc:creator>atifelkhachine</dc:creator>
      <dc:date>2014-07-25T17:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171125#M124390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you add activiti:autoStoreVariables="true" in your scriptTask and try it again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 04:14:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171125#M124390</guid>
      <dc:creator>sahusunil</dc:creator>
      <dc:date>2014-07-29T04:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variables Array Always Empty in REST 'Start a Process Instance' Resource Results</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171126#M124391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunetly i have already tried this and got an empty variables array : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="process" isExecutable="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;startEvent id="startStep" name="start step" activiti:initiator="kermit"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="sid-201DAF9E-D12E-498C-8D7D-3EB68159D961" sourceRef="startStep" targetRef="scriptTask"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;scriptTask id="scriptTask" name="script task" scriptFormat="groovy" activiti:autoStoreVariables="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script&amp;gt;execution.setVariable("myVar", "TotoTiti");&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/scriptTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;endEvent id="endStep" name="END STEP"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="sid-F0548EB1-51AE-419D-9F90-52CBAC2B722B" sourceRef="scriptTask" targetRef="endStep"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:06:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/variables-array-always-empty-in-rest-start-a-process-instance/m-p/171126#M124391</guid>
      <dc:creator>atifelkhachine</dc:creator>
      <dc:date>2014-07-29T18:06:55Z</dc:date>
    </item>
  </channel>
</rss>

