<?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: REST api sample request to create task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172486#M125693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reporting this. You can just do a POST to the runtime/tasks, with the body simmilar to the one used in the PUT runtime/tasks/1234 request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll add the documentation for that to the current master.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2013 10:04:17 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-12-06T10:04:17Z</dc:date>
    <item>
      <title>REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172485#M125692</link>
      <description>as it's not available in documentation</description>
      <pubDate>Fri, 06 Dec 2013 09:48:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172485#M125692</guid>
      <dc:creator>rohitagrawal</dc:creator>
      <dc:date>2013-12-06T09:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172486#M125693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reporting this. You can just do a POST to the runtime/tasks, with the body simmilar to the one used in the PUT runtime/tasks/1234 request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll add the documentation for that to the current master.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 10:04:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172486#M125693</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-06T10:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172487#M125694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;getting error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{"errorMessage":"Method Not Allowed","statusCode":405}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please comment with sample request&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 14:12:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172487#M125694</guid>
      <dc:creator>rohitagrawal</dc:creator>
      <dc:date>2013-12-06T14:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172488#M125695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, POST that is &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 12:21:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172488#M125695</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-10T12:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172489#M125696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks/5" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks/5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I test with the above and providing data similar to the PUT update, I get a 403.&amp;nbsp; What else is required to create a task?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 23:18:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172489#M125696</guid>
      <dc:creator>skidvd</dc:creator>
      <dc:date>2015-01-19T23:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172490#M125697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can check for yourself: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/runtime/task/TaskResource.java#L68" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/runtime/task/TaskResource.java#L68&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 13:26:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172490#M125697</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-01-21T13:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172491#M125698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the link to the source code.&amp;nbsp; From reviewing the code in that area, I am still puzzled and wondering if it is even possible to create a task with the REST services as indicated in the earlier posts of this thread?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 403 response code I was receiving was caused by spring's CSRF protection which is enabled by default.&amp;nbsp; Got around that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Moving forward, in an attempt to create a new task, I have attempted calls similar to both of the following (as described above in this thread):&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/tasks/5" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks/5&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks/5" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks/5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both of these calls have a payload similar to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"assignee" : "kermit",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"delegationState" : "pending",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"description" : "new task description",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"dueDate" : "2013-04-17T13:06:02.438+02:00",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"name" : "new task name",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"owner" : "kermit",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"parentTaskId" : null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"priority" : 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The POST call is expecting an action in the payload, so this results in a 400 Bad Request response.&amp;nbsp; From looking at the org.activiti.rest.service.api.runtime.task.TaskResource source, this method only handles ACTION_COMPLETE, ACTION_CLAIM, ACTION_DELEGATE and ACTION_RESOLVE.&amp;nbsp; Therefore, I conclude that the POST variant is not correct for creating a new task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PUT variant holds a bit more promise.&amp;nbsp; Especially as the updateTasks() method mapped to this URI does call saveTask() which ultimately appears to handle creation of a new task in the invoked org.activiti.engine.impl.cmd.SaveTaskCmd.&amp;nbsp; Unfortunately, it does not get that far as it first calls org.activiti.rest.service.api.runtime.task.TaskBaseResource.getTaskFromRequest().&amp;nbsp; Line 455 of this method throws a new ActivitiObjectNotFoundException (resulting in a 404 Not Found response) if the task does not exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot locate any other task related services that appear to handle task creation in either the documentation or the source.&amp;nbsp; I therefore believe that this is not supported (at least in the 5.17 version that I am using).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something simple?&amp;nbsp; If not, is this by design or a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Incidentally, if I try the same operation via the Java API, I am able to create the task.&amp;nbsp; I can then subsequently retrieve it via the GET&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/tasks" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks&lt;/A&gt;&lt;SPAN&gt; service.&amp;nbsp; This tells me that I am successfully authenticating and communicating with the REST services in general.&amp;nbsp; Just no luck with creating or updating a task via REST services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd greatly appreciate any assistance you can provide please.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 23:34:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172491#M125698</guid>
      <dc:creator>skidvd</dc:creator>
      <dc:date>2015-01-21T23:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172492#M125699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I locally modified org.activiti.rest.service.api.runtime.task.TaskResouce at line 54 of the updateTask method.&amp;nbsp; I replaced:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task task = getTaskFromRequest(taskId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Task task = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; task = getTaskFromRequest(taskId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (org.activiti.engine.ActivitiObjectNotFoundException ignore) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // We ignore this exception to enable creation of new tasks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; task = new org.activiti.engine.impl.persistence.entity.TaskEntity();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This allows you to successfully create a new task via PUT to the associated URI.&amp;nbsp; However, this would require you to PUT with a URI containing an unkown taskId (let's say -1) to avoid updating an existing task and trigger the creation of a new one.&amp;nbsp; This is unfortunate at best.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A more proper approach (better semantics)&amp;nbsp; would be to POST to a new request mapping …/runtime/tasks without any id so that it can be created dynamically.&amp;nbsp; Existing POST method requires a taskId and an action (no action to create).&amp;nbsp; I'll investigate this solution further and reply back in the near future.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would appreciate knowing if this is located somewhere else that I am missing, or if this is an intentional omission or a bug please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 00:48:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172492#M125699</guid>
      <dc:creator>skidvd</dc:creator>
      <dc:date>2015-01-22T00:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172493#M125700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added the following new method to org.activiti.rest.service.api.runtime.task.TaskResouce to enable new task creation via POST.&amp;nbsp; Id will be determined by Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; @RequestMapping(value="/runtime/task", method = RequestMethod.POST, produces="application/json")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public TaskResponse createTask( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @RequestBody TaskRequest taskRequest, HttpServletRequest request) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (taskRequest == null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiException("A request body was expected when updating the task.");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Task task = new org.activiti.engine.impl.persistence.entity.TaskEntity();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Populate the task properties based on the request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; populateTaskFromRequest(task, taskRequest);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (task.getId() != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; throw new ActivitiIllegalArgumentException("Cannot create task with a specified id");&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;nbsp;&amp;nbsp;&amp;nbsp; // Save the task and fetch again, it's possible that an assignment-listener has updated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // fields after it was saved so we can't use the in-memory task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; taskService.saveTask(task);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; task = taskService.createTaskQuery().taskId(task.getId()).singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return restResponseFactory.createTaskResponse(task);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still would appreciate confirmation that this is not located elsewhere and I have somehow missed it in my searches.&amp;nbsp; Also would like to know if this is an intentional omission from the REST services?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 15:24:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172493#M125700</guid>
      <dc:creator>skidvd</dc:creator>
      <dc:date>2015-01-22T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172494#M125701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's indeed missing from the userguide, could you create a JIRA issue for that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The REST service does exists however: POST /runtime/tasks&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>Fri, 23 Jan 2015 10:59:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172494#M125701</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-01-23T10:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172495#M125702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I agree that POST /runtime/tasks exists.&amp;nbsp; However, it will not handle the creation of a new task (at least not in 5.17 version).&amp;nbsp; As I mentioned earlier in this thread, the POST call is expecting an action in the payload, so [posting with a new task payload only] results in a 400 Bad Request response. From looking at the org.activiti.rest.service.api.runtime.task.TaskResource source, this method only handles ACTION_COMPLETE, ACTION_CLAIM, ACTION_DELEGATE and ACTION_RESOLVE. Therefore, I conclude that the POST variant is not correct for creating a new task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 13:55:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172495#M125702</guid>
      <dc:creator>skidvd</dc:creator>
      <dc:date>2015-01-23T13:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172496#M125703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's because you are looking at the wrong class: TaskCollectionResource is the one you need …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 10:51:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172496#M125703</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-09T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172497#M125704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was trying using REST to create new task but I confirm it DOESN'T work for me as well. Could you confirm it's possible and provide sample request here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 10:46:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172497#M125704</guid>
      <dc:creator>gelito</dc:creator>
      <dc:date>2015-09-09T10:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172498#M125705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course it's possible and we have a user guide that documents each REST API service. So let us know what is not working with a description what you are trying to do.&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>Sat, 12 Sep 2015 17:01:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172498#M125705</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-09-12T17:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172499#M125706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to start new process instance via REST API. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;POST request &lt;/SPAN&gt;&lt;BR /&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;BR /&gt;&lt;SPAN&gt;JSON parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "processDefinitionId":"myProcess:1:43",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "businessKey":"myProcess"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And i keep getting 400 response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message": "Bad request",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "exception": "Required request body content is missing: org.springframework.web.method.HandlerMethod$HandlerMethodParameter@21d082af"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please tell me what am i doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess i miss some parameter, but every task in my process doesn't have any parameters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 12:53:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172499#M125706</guid>
      <dc:creator>alxbxbx</dc:creator>
      <dc:date>2016-02-20T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172500#M125707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Aleksadar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best way to get familiar with any activiti topic is to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;download activiti source.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;search for jUnit tests (your problem could be covered in org/activiti/rest/service/api/runtime package)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 09:29:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172500#M125707</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-22T09:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: REST api sample request to create task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172501#M125708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For as long as i know, you should use a JSON object with the following syntaxis as your requestbody.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;data : {&amp;nbsp;&amp;nbsp;&amp;nbsp; "processDefinitionId" : "myProcess:1:43",&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; "bussinesKey" : "myProcess"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take special attention to the DATA thing, you store your JSON object on the data param so that activiti engine can recognize it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it works for you as it worked for me. Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 12:50:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rest-api-sample-request-to-create-task/m-p/172501#M125708</guid>
      <dc:creator>manusoftar</dc:creator>
      <dc:date>2016-02-22T12:50:18Z</dc:date>
    </item>
  </channel>
</rss>

