<?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: Task actions strange error message via REST call in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138696#M97228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you're passing in a non-null value for the "action"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have test-coverage for this: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/83e80219c4f79dd446e68ed9f6fccbb4647c1ce3/modules/activiti-rest/src/test/java/org/activiti/rest/api/runtime/TaskResourceTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/83e80219c4f79dd446e68ed9f6fccbb4647c1ce3/modules/activiti-rest/src/test/java/org/activiti/rest/api/runtime/TaskResourceTest.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Test delegating a single task and all exceptional cases related to delegation.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * POST runtime/tasks/{taskId}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; public void testDelegateTask() throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; … &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectNode requestNode = objectMapper.createObjectNode();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestNode.put("action", "delegate");&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 07:36:49 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-07-09T07:36:49Z</dc:date>
    <item>
      <title>Task actions strange error message via REST call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138695#M97227</link>
      <description>I've been testing task actions via REST call (complete, delegate, claim, resolve) but I'm getting strange error message back.JSON request (this is for delegate, but I get the same message with any action):{"action":"delegate","assignee":"kermit"}‍‍‍Here is the response:{"errorMessage":"Invalid actio</description>
      <pubDate>Sat, 06 Jul 2013 07:40:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138695#M97227</guid>
      <dc:creator>augustus</dc:creator>
      <dc:date>2013-07-06T07:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Task actions strange error message via REST call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138696#M97228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you're passing in a non-null value for the "action"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have test-coverage for this: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/83e80219c4f79dd446e68ed9f6fccbb4647c1ce3/modules/activiti-rest/src/test/java/org/activiti/rest/api/runtime/TaskResourceTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/83e80219c4f79dd446e68ed9f6fccbb4647c1ce3/modules/activiti-rest/src/test/java/org/activiti/rest/api/runtime/TaskResourceTest.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Test delegating a single task and all exceptional cases related to delegation.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * POST runtime/tasks/{taskId}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; public void testDelegateTask() throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; … &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectNode requestNode = objectMapper.createObjectNode();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; requestNode.put("action", "delegate");&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 07:36:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138696#M97228</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-09T07:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Task actions strange error message via REST call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138697#M97229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The posted json is what I pass right before calling the rest service. Is there a way to log all calls on the rest app side? Haven't checked the code to see if there is such detailed log option. It would be good to see what was received on the server side.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 17:56:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138697#M97229</guid>
      <dc:creator>augustus</dc:creator>
      <dc:date>2013-07-09T17:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Task actions strange error message via REST call</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138698#M97230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if the actual body of request will be logged but you can try lowering the log-lever for org.restlet classes. (&lt;/SPAN&gt;&lt;A href="http://restlet.org/learn/guide/2.1/editions/jse/logging" rel="nofollow noopener noreferrer"&gt;http://restlet.org/learn/guide/2.1/editions/jse/logging&lt;/A&gt;&lt;SPAN&gt;). Another option is to attach a debugger and debug in the class org.activiti.rest.api.runtime.task.TaskActionRequest, this is where the JSON is turned into a POJO used in the restlet-service. If you move a bit up in the stack, you'll be able to see the actual JSON that Jackson is using…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 07:31:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-actions-strange-error-message-via-rest-call/m-p/138698#M97230</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-07-10T07:31:10Z</dc:date>
    </item>
  </channel>
</rss>

