<?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 Extending Activiti Designer-Can one jar have multiple task? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/extending-activiti-designer-can-one-jar-have-multiple-task/m-p/75742#M49840</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 have recently started using Activiti, I am quite impressed with it. Thanks for providing such an open source solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I started extending activiti designer, and successfully created one custom task with its java delegate class. When i tried to add another custom task and another java delegate to the same jar, it worked for designer but not for engine. Meaning, engine complained that it was not able to find my second java delegate class. When i created two different jars, everything worked perfect. Is this a limitation or a bug? or as designed? If it is as designed, I do no understand reason for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To make question more clear, If my jar contains following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CustomTasks.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; |—CustomTask1.java, Customtask2.java (both these extends AbstractCustomServiceTask)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; |—CustomTask1JavaDelegate.java, CustomTask2JavaDelegate.java (both these implements JavaDelegate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this jar works for designer, but when i run jUnit for a workflow, that has Customtaks2 in it, it complains java.lang.ClassNotFoundException for CustomTask2JavaDelegate.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i split this jar into two jars, it works like a champ.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please let me know if this is a bug or as designed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yatish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 00:35:24 GMT</pubDate>
    <dc:creator>yatish</dc:creator>
    <dc:date>2011-08-04T00:35:24Z</dc:date>
    <item>
      <title>Extending Activiti Designer-Can one jar have multiple task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-activiti-designer-can-one-jar-have-multiple-task/m-p/75742#M49840</link>
      <description>Hi,I have recently started using Activiti, I am quite impressed with it. Thanks for providing such an open source solution.I started extending activiti designer, and successfully created one custom task with its java delegate class. When i tried to add another custom task and another java delegate t</description>
      <pubDate>Thu, 04 Aug 2011 00:35:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-activiti-designer-can-one-jar-have-multiple-task/m-p/75742#M49840</guid>
      <dc:creator>yatish</dc:creator>
      <dc:date>2011-08-04T00:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Activiti Designer-Can one jar have multiple task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-activiti-designer-can-one-jar-have-multiple-task/m-p/75743#M49841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Yatish,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get classnotfoundexceptions in the Engine this means that the classpath is not set correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be no problem to have multiple tasks in one JAR and make that available on the Engine classpath.&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, 04 Aug 2011 06:19:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-activiti-designer-can-one-jar-have-multiple-task/m-p/75743#M49841</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-08-04T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Activiti Designer-Can one jar have multiple task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-activiti-designer-can-one-jar-have-multiple-task/m-p/75744#M49842</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;Thanks for your quick reply..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Today again, I got a chance to work on activiti extension. I created new jar file with multiple custom tasks in it and it worked well along with its engine execution. So, You were right, it is not a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could not figure out problem in my old jar file. All classpaths looked correct to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yatish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 23:26:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-activiti-designer-can-one-jar-have-multiple-task/m-p/75744#M49842</guid>
      <dc:creator>yatish</dc:creator>
      <dc:date>2011-08-05T23:26:29Z</dc:date>
    </item>
  </channel>
</rss>

