<?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: Associating delegate class at Runtime in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168665#M122110</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;BLOCKQUOTE class="jive-quote"&gt;Which reflection APIs you are talking about ?&lt;/BLOCKQUOTE&gt;&lt;A href="http://docs.oracle.com/javase/tutorial/reflect/" rel="nofollow noopener noreferrer"&gt;http://docs.oracle.com/javase/tutorial/reflect/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class T1 implements JavaDelegate {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Expression t2Expression; //get/setters&lt;BR /&gt;&lt;BR /&gt;public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp; JavaDelegate t2 = (JavaDelegate) t2Expression.getValue(execution); // here you&amp;nbsp; can use reflection API instead&lt;BR /&gt;t2.execute(execution);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possibility is to use scripts. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2014 06:48:02 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2014-04-08T06:48:02Z</dc:date>
    <item>
      <title>Associating delegate class at Runtime</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168662#M122107</link>
      <description>Hi all,I am evaluating activiti engine for our project. I want to know is there any provision for associating delegate class at Runtime in activiti engine ?Thanking in advance,Kanchan</description>
      <pubDate>Tue, 01 Apr 2014 06:01:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168662#M122107</guid>
      <dc:creator>kanchan</dc:creator>
      <dc:date>2014-04-01T06:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Associating delegate class at Runtime</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168663#M122108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kanchan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to know is there any provision for associating delegate class at Runtime in activiti engine ?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;yes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. create delegate class which invokes execute method on another class through reflection API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 07:04:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168663#M122108</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-01T07:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Associating delegate class at Runtime</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168664#M122109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which reflection APIs you are talking about ? I couldn't find it in user guide. Would you please elaborate more ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create delegate class which invokes execute method on another class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you mean I have to invoke execute method of dynamic delegate class through execute method of static delegate class ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suppose there are two delegate classes T1 and T2, out of which I want to associate T2 class at runtime. As per your suggestion I have to call it like,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;serviceTask id="servicetask3" name="Service Task" activiti:class="T1"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class T1 implements JavaDelegate {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; public void execute(DelegateExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; T2=new T2();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; T2.execute(execution);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please correct me if I'm wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kanchan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 04:22:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168664#M122109</guid>
      <dc:creator>kanchan</dc:creator>
      <dc:date>2014-04-08T04:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Associating delegate class at Runtime</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168665#M122110</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;BLOCKQUOTE class="jive-quote"&gt;Which reflection APIs you are talking about ?&lt;/BLOCKQUOTE&gt;&lt;A href="http://docs.oracle.com/javase/tutorial/reflect/" rel="nofollow noopener noreferrer"&gt;http://docs.oracle.com/javase/tutorial/reflect/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class T1 implements JavaDelegate {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Expression t2Expression; //get/setters&lt;BR /&gt;&lt;BR /&gt;public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp; JavaDelegate t2 = (JavaDelegate) t2Expression.getValue(execution); // here you&amp;nbsp; can use reflection API instead&lt;BR /&gt;t2.execute(execution);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possibility is to use scripts. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 06:48:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168665#M122110</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-08T06:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Associating delegate class at Runtime</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168666#M122111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Class t2=Class.forName("MultithreadServiceTask2");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KAnchan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 08:54:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168666#M122111</guid>
      <dc:creator>kanchan</dc:creator>
      <dc:date>2014-04-08T08:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Associating delegate class at Runtime</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168667#M122112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be one possibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would prefer Scripts or Expression instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 06:42:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/associating-delegate-class-at-runtime/m-p/168667#M122112</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-04-09T06:42:59Z</dc:date>
    </item>
  </channel>
</rss>

