<?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: Can I have acces to custom beans without Spring? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105445#M73723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, you right it will work, but I want find way to set beans without Spring.&lt;BR /&gt;I want to use them out of processes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you can use a DelegateExpression, it's work but if you'll use this your bean must implement JavaDelegate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2012 16:34:54 GMT</pubDate>
    <dc:creator>deepyou</dc:creator>
    <dc:date>2012-11-09T16:34:54Z</dc:date>
    <item>
      <title>Can I have acces to custom beans without Spring?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105442#M73720</link>
      <description>Hi everyone!I tried get access to my service to set dueDate in UserTask but.. fail&amp;lt;userTask id="bidSelection" activiti:dueDate="${dateService.getDueDate()}" …‍I tried set beansMap&amp;lt;Object, Object&amp;gt; beans = new HashMap&amp;lt;Object, Object&amp;gt;();beans.put("dateService", dateService);((ProcessEngi</description>
      <pubDate>Fri, 09 Nov 2012 13:55:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105442#M73720</guid>
      <dc:creator>gsvano</dc:creator>
      <dc:date>2012-11-09T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have acces to custom beans without Spring?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105443#M73721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried set beans&lt;/SPAN&gt;&lt;CODE&gt;Map&amp;lt;Object, Object&amp;gt; beans = new HashMap&amp;lt;Object, Object&amp;gt;();&lt;BR /&gt;beans.put("dateService", dateService);&lt;BR /&gt;((ProcessEngineConfigurationImpl) configuration).setBeans(beans);&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose you have to set up your bean in your application context, in your spring configuration context you need something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;bean id="dateServicer" class="org.activiti.yourpackage.dateService" /&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Read the chapter about Use Activiti with Spring on "Activiti in Action" Book.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 16:13:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105443#M73721</guid>
      <dc:creator>deepyou</dc:creator>
      <dc:date>2012-11-09T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have acces to custom beans without Spring?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105444#M73722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you right it will work, but I want find way to set beans without Spring.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use them out of processes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 16:21:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105444#M73722</guid>
      <dc:creator>gsvano</dc:creator>
      <dc:date>2012-11-09T16:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have acces to custom beans without Spring?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105445#M73723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, you right it will work, but I want find way to set beans without Spring.&lt;BR /&gt;I want to use them out of processes.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you can use a DelegateExpression, it's work but if you'll use this your bean must implement JavaDelegate&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 16:34:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105445#M73723</guid>
      <dc:creator>deepyou</dc:creator>
      <dc:date>2012-11-09T16:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have acces to custom beans without Spring?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105446#M73724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any examles?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want use it in UserTasks to set DueDate field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 17:55:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105446#M73724</guid>
      <dc:creator>gsvano</dc:creator>
      <dc:date>2012-11-09T17:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I have acces to custom beans without Spring?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105447#M73725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I found solution&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should add the Expression manager into configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;ProcessEngineConfiguration configuration = CdiStandaloneProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();&lt;BR /&gt;configuration.setExpressionManager(new CdiExpressionManager());&lt;/CODE&gt;&lt;SPAN&gt;and to use standart cdi annotations &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;@Named&lt;BR /&gt;public class DateService {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Date getDueDate() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 18:21:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-i-have-acces-to-custom-beans-without-spring/m-p/105447#M73725</guid>
      <dc:creator>gsvano</dc:creator>
      <dc:date>2012-11-09T18:21:24Z</dc:date>
    </item>
  </channel>
</rss>

