<?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: DeployCmd (and other Commands) not Serializable in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109256#M76680</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;currently i only need the DeployCmd but i found some more commands which have serialVersionUID = 1L specified but do not implement Serializable interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- AcquireJobsCmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- DeleteJobsCmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- GetNextIdBlockCmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But with the change in DeployCmd i can then deploy a new process definition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The next problem then comes up if i try to start a new process instance RuntimeService.startProcessInstanceById(id) because the returned ProcessInstance object is also not serializable and i think there will be a lot more classes which are not serializable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So therefore my questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did somebody already run the activity engine in a distributed environment and if yes how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is running activity engine in a client/server environment a scenario which should be supported but does not yet work properly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2012 14:10:03 GMT</pubDate>
    <dc:creator>retourfer</dc:creator>
    <dc:date>2012-04-19T14:10:03Z</dc:date>
    <item>
      <title>DeployCmd (and other Commands) not Serializable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109254#M76678</link>
      <description>Hiwe want to integrate Activiti Workflow Engine in our Client/Server application. This means the activity engine is running in the server application and the user interface is implemented in an Eclipse RCP application. The remoting is done with Spring HttpInvoker.I was able to access the process eng</description>
      <pubDate>Wed, 18 Apr 2012 15:12:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109254#M76678</guid>
      <dc:creator>retourfer</dc:creator>
      <dc:date>2012-04-18T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: DeployCmd (and other Commands) not Serializable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109255#M76679</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;The JIRA issue you are referring to fixed StartProcessInstanceCmd I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be easy to add this to the DeployCmd as well. Do you need other commands?&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>Thu, 19 Apr 2012 13:42:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109255#M76679</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-19T13:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: DeployCmd (and other Commands) not Serializable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109256#M76680</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;currently i only need the DeployCmd but i found some more commands which have serialVersionUID = 1L specified but do not implement Serializable interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- AcquireJobsCmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- DeleteJobsCmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- GetNextIdBlockCmd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But with the change in DeployCmd i can then deploy a new process definition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The next problem then comes up if i try to start a new process instance RuntimeService.startProcessInstanceById(id) because the returned ProcessInstance object is also not serializable and i think there will be a lot more classes which are not serializable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So therefore my questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did somebody already run the activity engine in a distributed environment and if yes how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is running activity engine in a client/server environment a scenario which should be supported but does not yet work properly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 14:10:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109256#M76680</guid>
      <dc:creator>retourfer</dc:creator>
      <dc:date>2012-04-19T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: DeployCmd (and other Commands) not Serializable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109257#M76681</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;Right, the REST API would be the default choice for that. Would that work for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't heard of any client/server apps that bypass the REST API.&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>Thu, 19 Apr 2012 14:24:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109257#M76681</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-19T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: DeployCmd (and other Commands) not Serializable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109258#M76682</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 think i found a solution to make it working without using the REST API. To try now with it i have no time yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used converters on the server side for some not serializable data types like ProcessInstance, StartFormData, … which convert their attributes into a serializable implementation of the interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i use some more classes to be made serializable from the form package&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- FormPropertyImpl&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- all the FormType classes like BooleanFormType, DateFormType, EnumFormType, LongFormType, StringFormType …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried all these changes already and at least my example seems to work fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 09:54:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109258#M76682</guid>
      <dc:creator>retourfer</dc:creator>
      <dc:date>2012-04-20T09:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: DeployCmd (and other Commands) not Serializable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109259#M76683</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 found some more classes which are not serializable. they are all located in the package org.activiti.engine.impl.persistence.entity. Some of them are serializable but unfortunately not all. I had a short look into some of them and they all have scalar attributes, Strings or references to other entities so i can not see any problem to make them serializable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 12:52:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploycmd-and-other-commands-not-serializable/m-p/109259#M76683</guid>
      <dc:creator>retourfer</dc:creator>
      <dc:date>2012-07-19T12:52:23Z</dc:date>
    </item>
  </channel>
</rss>

