<?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 Starting a process instance via REST in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207568#M160698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I am trying to start a process instance using REST API. I have read the REST API, and am calling the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(POST) &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/process-instances&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Headers: Authorization: Basic a2VybWl0Omtlcm1pdA==&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Content-Type: application/json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Body:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"processDefinitionKey":"vacationRequest",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"variables":[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"employeeName", "value":"lola"}.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"numberOfDays", "value":"5"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"startDate", "value":"10-08-2014 11:11"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"vacationMotivation", "value":"tired"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Response: 400 bad request&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two questions: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Why would the above attempt result in 400? It is the example "Vacation Request" process definition in Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) How do I determine which fields need to be included in this request to begin with? For example, is there a way to example the process definition to determine it needs: "employeeName", "numberOfDays", etc in order to start it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 20:55:00 GMT</pubDate>
    <dc:creator>davidcarrico</dc:creator>
    <dc:date>2015-02-19T20:55:00Z</dc:date>
    <item>
      <title>Starting a process instance via REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207568#M160698</link>
      <description>So I am trying to start a process instance using REST API. I have read the REST API, and am calling the following&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;POST) http://localhost:8080/activiti-rest/service/runtime/process-instancesHeaders: Authorization: Basic a2VybWl0Omtlcm1pdA==Content-Type: application/jsonBody:{"processDefinitionKey":"</description>
      <pubDate>Thu, 19 Feb 2015 20:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207568#M160698</guid>
      <dc:creator>davidcarrico</dc:creator>
      <dc:date>2015-02-19T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a process instance via REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207569#M160699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, i have solved the item #1. It appears the Format of the variables was wrong. Here is the right format (see below). I still really need answer to #2 though, thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"processDefinitionKey":"vacationRequest",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"variables":[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"employeeName", "value" : "dave"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"numberOfDays", "value" : "5"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"startDate", "value" : "10-08-2015 11:11"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"name":"vacationMotivation", "value" : "rest"}]}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 21:18:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207569#M160699</guid>
      <dc:creator>davidcarrico</dc:creator>
      <dc:date>2015-02-19T21:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a process instance via REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207570#M160700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK - I will be the guy who answers his own question today &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;Get All Process Definitions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-rest/service/repository/process-definitions?size=1000" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/repository/process-definitions?size=1000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get a specific process definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-rest/service/repository/process-definitions/vacationRequest:2:2514" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/repository/process-definitions/vacationRequest:2:2514&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get tasks for a given process definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks?processDefinitionId=vacationRequest:2:2514" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks?processDefinitionId=vacationRequest:2:2514&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get variables for first task in a given definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GET&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks/7543/variables" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks/7543/variables&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 22:18:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207570#M160700</guid>
      <dc:creator>davidcarrico</dc:creator>
      <dc:date>2015-02-19T22:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a process instance via REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207571#M160701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; OK - I will be the guy who answers his own question today smiley&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I like that &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>Sat, 28 Feb 2015 09:05:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207571#M160701</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-28T09:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a process instance via REST</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207572#M160702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Barrez and David&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wonder that if I can add someone in this vacationRequest to approve it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How&amp;nbsp; to point the one to approve this vacationRequest ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:23:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-a-process-instance-via-rest/m-p/207572#M160702</guid>
      <dc:creator>yzk0281</dc:creator>
      <dc:date>2015-08-12T09:23:37Z</dc:date>
    </item>
  </channel>
</rss>

