<?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: Exception starting process instance in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60634#M37515</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;BR /&gt;&lt;SPAN&gt;There were a couple of errors in your project before I received the same error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem cause is the business rule task. You set the payload variable as the resultVariableName of the business rule task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result variable of a business rule task is a collection of objects, in this case a collection of 1 object –&amp;gt; Request object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore you got the exception related to a collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the project with an additional service task and now it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I encountered a bug in the business rule task behavior that I fixed in the 5.7-SNAPSHOT trunk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The exclude boolean of the business rule task in 5.6 works just the opposite of what you would think. So when you set exclude to false, it's excluded. I fixed this so in the 5.7 release this will work as expected.&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, 22 Jul 2011 20:22:25 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2011-07-22T20:22:25Z</dc:date>
    <item>
      <title>Exception starting process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60631#M37512</link>
      <description>Hi,I try to start a process instance:HashMap&amp;lt;String,Object&amp;gt; variables = new HashMap&amp;lt;String,Object&amp;gt;(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;variables.put("payload", req);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;runtimeService.startProcessInstanceByKey("requestProcess", variables);‍‍‍‍and get the following exception:Caused by: java.lang.IllegalArgu</description>
      <pubDate>Fri, 22 Jul 2011 05:28:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60631#M37512</guid>
      <dc:creator>gant</dc:creator>
      <dc:date>2011-07-22T05:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exception starting process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60632#M37513</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;BR /&gt;&lt;SPAN&gt;I looked at the stacktrace and before it goes to the toIndex method a check is performed to see if the object is an instance of a List.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post the full process (BPMN 2.0 XML and Java code), so I can run it myself?&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, 22 Jul 2011 07:08:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60632#M37513</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-07-22T07:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exception starting process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60633#M37514</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;BR /&gt;&lt;SPAN&gt;Attached you can find the maven project. No forms are present, because we use external form rendering.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 08:22:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60633#M37514</guid>
      <dc:creator>gant</dc:creator>
      <dc:date>2011-07-22T08:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Exception starting process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60634#M37515</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;BR /&gt;&lt;SPAN&gt;There were a couple of errors in your project before I received the same error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem cause is the business rule task. You set the payload variable as the resultVariableName of the business rule task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result variable of a business rule task is a collection of objects, in this case a collection of 1 object –&amp;gt; Request object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore you got the exception related to a collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the project with an additional service task and now it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I encountered a bug in the business rule task behavior that I fixed in the 5.7-SNAPSHOT trunk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The exclude boolean of the business rule task in 5.6 works just the opposite of what you would think. So when you set exclude to false, it's excluded. I fixed this so in the 5.7 release this will work as expected.&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, 22 Jul 2011 20:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60634#M37515</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-07-22T20:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exception starting process instance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60635#M37516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your fast an detailed answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not find any hints on the behaviour of the result-variable-mechanismus of BR-tasks in the docs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to avoid the service task you use to copy the variables. Could I use a Listener thatfore? The process model would then not be polluted by the service task. But I think, this would only work, if the task has completely finished before the listener is executed. Is this the case?&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>Mon, 25 Jul 2011 09:23:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-starting-process-instance/m-p/60635#M37516</guid>
      <dc:creator>gant</dc:creator>
      <dc:date>2011-07-25T09:23:42Z</dc:date>
    </item>
  </channel>
</rss>

