<?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: @Inject Not Working in Delegate - Activiti 5.12.1 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157369#M111555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I presume it's working that way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 08:28:00 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-01-16T08:28:00Z</dc:date>
    <item>
      <title>@Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157362#M111548</link>
      <description>I have built a custom service task that defines the task (UI) and then has a delegate associated with it.&amp;nbsp; Inside the delegate, I'd like to inject an EJB using @Inject.&amp;nbsp; When I execute the functionality, the injection never seems to happen.&amp;nbsp; A similar structure for what I have created is here&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ublic</description>
      <pubDate>Thu, 08 Aug 2013 21:52:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157362#M111548</guid>
      <dc:creator>zoikks1</dc:creator>
      <dc:date>2013-08-08T21:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157363#M111549</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;If you want to use an EJB in a service task you have to first look it up in the JNDI context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This injection doesn't work for service tasks.&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, 09 Aug 2013 12:55:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157363#M111549</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-09T12:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157364#M111550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fair enough - what is preventing the injection from working?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 15:04:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157364#M111550</guid>
      <dc:creator>zoikks1</dc:creator>
      <dc:date>2013-08-12T15:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157365#M111551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Delegate instances (if using activiti:class) are instantiated by activity by it's classname, simple as that. So the annotations won't be processed. You can try adding the JavaDelegate instance (initialized and fetched with everything injected) as a "bean" to the process-engine configuration and use activiti:delegateExpression="${theDelegate}"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 09:37:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157365#M111551</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-08-14T09:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157366#M111552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please explain me the difference between:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- "This injection doesn't work for service tasks."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- "A custom El-Resolver for resolving Cdi beans (including EJBs) from the process," - from User guide, Section CDI Integration, Chapter 16.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I understood, CDI works everywhere, but service tasks. Am I right? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2014 11:39:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157366#M111552</guid>
      <dc:creator>yuryshaban</dc:creator>
      <dc:date>2014-01-11T11:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157367#M111553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you use activiti:class="org.whatever.MyDelegate", the MyDelegate instance will NOT be aware of CDI-context and injection will not work. Instead, make a CDI-bean of the MyDelegate and register this in the CDI-context (e.g. under the name myDelegate). In a service-task, you can now use the activiti:delegateExpression="${myDelegate}" to use the MyDelegate instance that lives in the CDI-context. This way, injection will work on the bean.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 08:06:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157367#M111553</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-15T08:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157368#M111554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 07:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157368#M111554</guid>
      <dc:creator>yuryshaban</dc:creator>
      <dc:date>2014-01-16T07:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157369#M111555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I presume it's working that way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 08:28:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157369#M111555</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-16T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157370#M111556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, after your answer, I'm sure, that it's possible to reach what I want (I want EJB through CDI in my service task without lookup(…)) and I'll try till success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;May say, you've presented me hope&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 11:23:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157370#M111556</guid>
      <dc:creator>yuryshaban</dc:creator>
      <dc:date>2014-01-16T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: @Inject Not Working in Delegate - Activiti 5.12.1</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157371#M111557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interim result: in JBoss all work great, but weblogic take a firm stand… (because of an older version of Weld. Seems).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll continue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 16:12:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/inject-not-working-in-delegate-activiti-5-12-1/m-p/157371#M111557</guid>
      <dc:creator>yuryshaban</dc:creator>
      <dc:date>2014-01-27T16:12:12Z</dc:date>
    </item>
  </channel>
</rss>

