<?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: ActivitiException: Did not assign the operation parameters in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118516#M83603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;CODE&gt;&lt;BR /&gt;} else if ("assign".equals(operation)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String userId = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String startParams = entity.getText();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JsonNode startJSON = new ObjectMapper().readTree(startParams);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userId = startJSON.path("userId").getTextValue();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(Exception e) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiException("Did not assign the operation parameters", e);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivitiUtil.getTaskService().setAssignee(taskId, userId);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you still seeing the same exception message? Shouldn't be thrown when userId is present in JSON body.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 07:22:44 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-05-08T07:22:44Z</dc:date>
    <item>
      <title>ActivitiException: Did not assign the operation parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118513#M83600</link>
      <description>Hi … &amp;nbsp;&amp;nbsp; I am using ACTIVITI 5.12.1 .&amp;nbsp; I want to use assign task rest service in&amp;nbsp; my project. I am using restTemplate.exchange method&amp;nbsp; to call this rest service . But somthing is going wrong.&amp;nbsp; RestTemplate is not working for put method . I am getting nullpointerException.error stackTrace is as follow</description>
      <pubDate>Mon, 06 May 2013 09:01:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118513#M83600</guid>
      <dc:creator>minalghorpade</dc:creator>
      <dc:date>2013-05-06T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiException: Did not assign the operation parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118514#M83601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; org.activiti.engine.ActivitiException: Did not assign the operation parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The exception is pretty clear: you're trying to do a task operation (claim, complete, etc) but haven't provided the actual operation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:53:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118514#M83601</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-06T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiException: Did not assign the operation parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118515#M83602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Thank you for reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As mention above I am doing assign task operation , for which I am using this url :- &lt;/SPAN&gt;&lt;A href="http://localhost:8081/activiti-rest/service/task/713/assign" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/activiti-rest/service/task/713/assign&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(713 is task id) .&amp;nbsp; and provideing payload for userId as follows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "userId": "kermit"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;still not getting result. Please help where I am going wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 12:36:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118515#M83602</guid>
      <dc:creator>minalghorpade</dc:creator>
      <dc:date>2013-05-06T12:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiException: Did not assign the operation parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118516#M83603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;CODE&gt;&lt;BR /&gt;} else if ("assign".equals(operation)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String userId = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String startParams = entity.getText();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JsonNode startJSON = new ObjectMapper().readTree(startParams);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userId = startJSON.path("userId").getTextValue();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(Exception e) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiException("Did not assign the operation parameters", e);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivitiUtil.getTaskService().setAssignee(taskId, userId);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you still seeing the same exception message? Shouldn't be thrown when userId is present in JSON body.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:22:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118516#M83603</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-08T07:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: ActivitiException: Did not assign the operation parameters</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118517#M83604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I found solution. The problem was with REST TEMPLATE's PUT method. I am using rest templates.exchange method to call this service . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PUT methos does not accept custom object dirctly . We need to add request body in HTTPHeader. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Later on I found this solution while searching .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Minal &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 05:16:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activitiexception-did-not-assign-the-operation-parameters/m-p/118517#M83604</guid>
      <dc:creator>minalghorpade</dc:creator>
      <dc:date>2013-05-09T05:16:21Z</dc:date>
    </item>
  </channel>
</rss>

