<?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 How to update task property of type NodeRef using REST API? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6980#M3357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a project which integrates with Alfresco v4.2.e and Activiti v5.13.&lt;/P&gt;&lt;P&gt;I use the REST API to query for tasks through the task-instance service.&lt;/P&gt;&lt;P&gt;When a property is a (collection of) NodeRef, It returns a (collection of) string ("workspace://....").&lt;BR /&gt;When I try to update this property, Alfresco throws a ClassCastException saying that String cannot be cast to NodeRef.&lt;/P&gt;&lt;P&gt;I found this bug on your jira &lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/ALF-2705" title="https://issues.alfresco.com/jira/browse/ALF-2705" rel="nofollow noopener noreferrer"&gt;[ALF-2705] ClassCastException in getProperties() - Alfresco JIRA&lt;/A&gt;&amp;nbsp; which seems to be related to my problem but in the other direction. Is my problem a bug? Is this a bug fixed in the v4.2.f? Did I do something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I decided to try the activiti-rest webapp to query directly Activiti. So I searched the war for the 5.13.&lt;/P&gt;&lt;P&gt;Unfortunately the Activiti website doesn't provide a long history of binaries. I had to build the war using the sources from github. When I deployed the compiled war to a Tomcat and tried to get variables through the runtime/tasks service, It throws a ActivitiException "unknown variable type name alfrescoScriptNodeList". Indeed in some Maven repo I've seen some Activiti jars suffixed by "alf". Did I built the wrong war? Is there a fork of the project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I could write a webscript in Alfresco using the Alfresco Java API but it would be the last option...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the length of this text and thanks in advance for your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2018 21:58:09 GMT</pubDate>
    <dc:creator>eugen_p</dc:creator>
    <dc:date>2018-02-20T21:58:09Z</dc:date>
    <item>
      <title>How to update task property of type NodeRef using REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6980#M3357</link>
      <description>Hi,I'm working on a project which integrates with Alfresco v4.2.e and Activiti v5.13.I use the REST API to query for tasks through the task-instance service.When a property is a (collection of) NodeRef, It returns a (collection of) string ("workspace://....").When I try to update this property, Alfr</description>
      <pubDate>Tue, 20 Feb 2018 21:58:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6980#M3357</guid>
      <dc:creator>eugen_p</dc:creator>
      <dc:date>2018-02-20T21:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to update task property of type NodeRef using REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6981#M3358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that means that the variables being put into the Activiti database that the content app is using are of a type that the activiti-rest app doesn't know how to read. Presumably they are java objects that are being serialized and the classpath of the activiti-rest app doesn't have those types available for them to be deserialized. I think this question is more about the Content Repository than it is about Activiti. Your post is currently only visible to the Activiti and BPM forum. You might get a better response by reposting under&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/space/2004"&gt;Alfresco Content Services (ECM)&lt;/A&gt;&amp;nbsp; or adding the&amp;nbsp;&lt;A _jive_internal="true" class="" data-uri="https://community.alfresco.com/api/core/v3/places/1196" href="https://community.alfresco.com/community/ecm" style="color: #8bc34a; background-color: rgba(132, 132, 132, 0.04); border: 0px; text-decoration: none; font-size: 11.9994px;" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services (ECM)&lt;/A&gt;&amp;nbsp;visibility to your post. You might be best to create a new post there and reference this one your new post will then appear at the top under ECM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 10:34:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6981#M3358</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-22T10:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to update task property of type NodeRef using REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6982#M3359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your feedback. I will create a new post in the ECM forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 11:09:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6982#M3359</guid>
      <dc:creator>eugen_p</dc:creator>
      <dc:date>2018-02-22T11:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to update task property of type NodeRef using REST API?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6983#M3360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your information, the new post is located at &lt;A __default_attr="235846" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/message/828805-how-to-update-task-property-of-type-noderef-using-rest-api" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 11:19:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-task-property-of-type-noderef-using-rest-api/m-p/6983#M3360</guid>
      <dc:creator>eugen_p</dc:creator>
      <dc:date>2018-02-22T11:19:51Z</dc:date>
    </item>
  </channel>
</rss>

