<?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 Populating Process Variables using REST in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/populating-process-variables-using-rest/m-p/218458#M171588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am starting a new process instance using &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-app/api/enterprise/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-app/api/enterprise/process-instances&lt;/A&gt;&lt;SPAN&gt; with POST body &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "processDefinitionId": "test1:30:80205",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "name": "testName:30:80205",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "values": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Test Name",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "This should be stored in a variable"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the modeler, I create a process instance variable called 'id'. I also created a text box called 'name' in a start-form. When the workflow is started, I see that the 'name' is populated but the variable 'id' is not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you populate a process instance variable when you start a workflow using REST?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vijay&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 16:26:51 GMT</pubDate>
    <dc:creator>vprince</dc:creator>
    <dc:date>2016-07-21T16:26:51Z</dc:date>
    <item>
      <title>Populating Process Variables using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-process-variables-using-rest/m-p/218458#M171588</link>
      <description>I am starting a new process instance using http://localhost:8080/activiti-app/api/enterprise/process-instances with POST body {&amp;nbsp; "processDefinitionId": "test1:30:80205",&amp;nbsp; "name": "testName:30:80205",&amp;nbsp; "values": {&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Test Name",&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "This should be stored in a variable"&amp;nbsp; }}Using the mod</description>
      <pubDate>Thu, 21 Jul 2016 16:26:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-process-variables-using-rest/m-p/218458#M171588</guid>
      <dc:creator>vprince</dc:creator>
      <dc:date>2016-07-21T16:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Process Variables using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-process-variables-using-rest/m-p/218459#M171589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The "value" element in your json should only contain the values to be given to the start form of your process. that's why only name is getting populated as it is a textbox in your "START-FORM". process-variables cannot be initialized like this. have a look at the developer's guide - &lt;/SPAN&gt;&lt;A href="https://docs.alfresco.com/activiti/docs/dev-guide/1.5.0/#_start_process_instance" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/activiti/docs/dev-guide/1.5.0/#_start_process_instance&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 12:08:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-process-variables-using-rest/m-p/218459#M171589</guid>
      <dc:creator>abbask</dc:creator>
      <dc:date>2016-09-16T12:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Process Variables using REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-process-variables-using-rest/m-p/218460#M171590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you would like to initialize variables as part of your process instance start, add the following to your json request&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"variables": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {"name":"id",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "value":"This should be stored in a variable",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;Your request would look like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "processDefinitionId": "test1:30:80205",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "name": "testName:30:80205",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "values": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "name": "Test Name"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "variables": [{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "name": "id",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "value": "This should be stored in a variable",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "type": "string"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/javascript&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 00:45:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-process-variables-using-rest/m-p/218460#M171590</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2016-10-24T00:45:30Z</dc:date>
    </item>
  </channel>
</rss>

