<?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 Passing complex objects to instantiate process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/passing-complex-objects-to-instantiate-process/m-p/77682#M51430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem with passing complex objects to instantiate a process. The HTTP call and instantiation works fine if a pass the following message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{"customerid":"cid_1234","ordervalue":4000,","processDefinitionId":"ReferenceProcessSimple:1:120"}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;(although the process instance fails because of missing arguments &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but when I send this JSON:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{"order":{"article":[{"articleid":"artid_4444","articleprice":500,"articleamount":2,"articlename":"computer"},{"articleid":"artid_5555","articleprice":1000,"articleamount":3,"articlename":"laptop"}],"customerid":"cid_1234","ordervalue":4000,"customertel":"0176/765764","customername":"somename"},"processDefinitionId":"ReferenceProcessSimple:1:120"}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;the following error is thrown:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;1448&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status" : &lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 500,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Internal Error",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "An error inside the HTTP server which prevented it from fulfilling the request."&lt;BR /&gt;&amp;nbsp; },&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; "message" : "06070013 Wrapped Exception (with status template): couldn't find type for {\"customerid\":\"cid_1234\",\"article\":[{\"articleid\":\"artid_4444\",\"articleprice\":500,\"articleamount\":2,\"articlename\":\"computer\"},{\"articleid\":\"artid_5555\",\"articleprice\":1000,\"articleamount\":3,\"articlename\":\"laptop\"}],\"ordervalue\":4000,\"customertel\":\"0176\/765764\",\"customername\":\"somename\"}",&amp;nbsp; &lt;BR /&gt;&amp;nbsp; "exception" : "org.springframework.extensions.webscripts.WebScriptException - 06070013 Wrapped Exception (with status template): couldn't find type for {\"customerid\":\"cid_1234\",\"article\":[{\"articleid\":\"artid_4444\",\"articleprice\":500,\"articleamount\":2,\"articlename\":\"computer\"},{\"articleid\":\"artid_5555\",\"articleprice\":1000,\"articleamount\":3,\"articlename\":\"laptop\"}],\"ordervalue\":4000,\"customertel\":\"0176\/765764\",\"customername\":\"somename\"}",&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; "callstack" : &lt;BR /&gt;&amp;nbsp; [ &lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ""&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"org.activiti.engine.ActivitiException: couldn't find type for {\"customerid\":\"cid_1234\",\"article\":[{\"articleid\":\"artid_4444\",\"articleprice\":500,\"articleamount\":2,\"articlename\":\"computer\"},{\"articleid\":\"artid_5555\",\"articleprice\":1000,\"articleamount\":3,\"articlename\":\"laptop\"}],\"ordervalue\":4000,\"customertel\":\"0176\/765764\",\"customername\":\"somename\"}"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"org.activiti.engine.impl.variable.DefaultVariableTypes.findVariableType(DefaultVariableTypes.java:62)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:212)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:164)"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,"org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariables(VariableScopeImpl.java:253)"&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried different alternatives to create the JSON-File (manually, XML.toJSONObject, JSONObject) and structures of the message but all of them fail with the same error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I have defined some custom logging in the process, I would at least recognize if the instance would have been started and the assignment of a variable would fail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help is very appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 08:19:26 GMT</pubDate>
    <dc:creator>justaname</dc:creator>
    <dc:date>2011-07-07T08:19:26Z</dc:date>
    <item>
      <title>Passing complex objects to instantiate process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-complex-objects-to-instantiate-process/m-p/77682#M51430</link>
      <description>Hello all,I have a problem with passing complex objects to instantiate a process. The HTTP call and instantiation works fine if a pass the following message:{"customerid":"cid_1234","ordervalue":4000,","processDefinitionId":"ReferenceProcessSimple:1:120"}‍(although the process instance fails because</description>
      <pubDate>Thu, 07 Jul 2011 08:19:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-complex-objects-to-instantiate-process/m-p/77682#M51430</guid>
      <dc:creator>justaname</dc:creator>
      <dc:date>2011-07-07T08:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing complex objects to instantiate process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-complex-objects-to-instantiate-process/m-p/77683#M51431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to pass complex object to start process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 17:30:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-complex-objects-to-instantiate-process/m-p/77683#M51431</guid>
      <dc:creator>vijay_pala</dc:creator>
      <dc:date>2013-05-09T17:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing complex objects to instantiate process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-complex-objects-to-instantiate-process/m-p/77684#M51432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is currently not possible. In the new REST-api, this will be possible because there is a pluggable mechanism for variable-types. It will allow you to plug is some code to create a POJO based on a JSON-representation (exposed as a Map&amp;lt;Stirng, ..&amp;gt;). This will be available in 5.13 of 5.14.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 08:06:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-complex-objects-to-instantiate-process/m-p/77684#M51432</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-13T08:06:33Z</dc:date>
    </item>
  </channel>
</rss>

