<?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: Access SpringProcessEngineConfiguration in rest-webapp in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170882#M124147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, thats strange, in org.activiti.engine.EngineServices.java, I see this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Licensed under the Apache License, Version 2.0 (the "License");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * you may not use this file except in compliance with the License.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * You may obtain a copy of the License at&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow noopener noreferrer"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Unless required by applicable law or agreed to in writing, software&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * distributed under the License is distributed on an "AS IS" BASIS,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * See the License for the specific language governing permissions and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * limitations under the License.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;package org.activiti.engine;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Interface implemented by all classes that expose the Activiti services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @author Joram Barrez &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public interface EngineServices {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RepositoryService getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RuntimeService getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; FormService getFormService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; TaskService getTaskService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; HistoryService getHistoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; IdentityService getIdentityService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ManagementService getManagementService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I use 5.15.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone an idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2014 08:33:29 GMT</pubDate>
    <dc:creator>b_schnarr</dc:creator>
    <dc:date>2014-05-22T08:33:29Z</dc:date>
    <item>
      <title>Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170876#M124141</link>
      <description>Hello at all,I need to inject custom configuration parameters into the rest webapp. Therefore, I want to use the existing activiti-context.xml and the processEngineConfigurationBean. But I do not succeed in accessing the processEngineConfigurationBean.In another post, there is written: "You can alwa</description>
      <pubDate>Fri, 09 May 2014 14:28:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170876#M124141</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-09T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170877#M124142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you changed the SpringProcessEngineConfiguration class and added these additional properties (ltpaKey and ltpaPassword) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because that would be needed for this solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create a separate Bean definition in activiti-context.xml and using ProcessEngines.getDefaultProcessEngine().getProcessEngineConfiguration() you can get access to the SpringProcessEngineConfiguration instance. From that class you can get the Spring ApplicationContext and get to your bean. Spring also offers ways to retrieve the application context in other ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 07:13:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170877#M124142</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-05-12T07:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170878#M124143</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 reply. I tried what you said: ProcessEngines.getDefaultProcessEngine().getProcessEngineConfiguration()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But getProcessEngineConfiguration() is not available, only getFormService(), getHistoryService(), getIdenticyService() etc….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did I understand you right that I could define this bean here in the activiti-context.xml: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="ltpaParameters" class="org.activiti.rest.common.filter.RestAuthenticatorImpl"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="ltpaKey" value="***" /&amp;gt;&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; &amp;lt;property name="ltpaPassword" value="***" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But still the question how to access this? Would it be enough to create the getters / setters for injection or do I have do make more?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much and best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 11:11:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170878#M124143</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-15T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170879#M124144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which Activiti version are you using? I see the following methods in EngineServices:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public interface EngineServices {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RepositoryService getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RuntimeService getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; FormService getFormService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; TaskService getTaskService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; HistoryService getHistoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; IdentityService getIdentityService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ManagementService getManagementService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessEngineConfiguration getProcessEngineConfiguration();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And ProcessEngine extends EngineServices.&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>Mon, 19 May 2014 20:35:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170879#M124144</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-05-19T20:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170880#M124145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using 5.15. Auto completion of eclipse does not show this method. Trademark, do you have an advice to this. &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/issue-custom-restauthenticator-using-rest-513" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/issue-custom-restauthenticator-using-rest-513&lt;/A&gt;&lt;SPAN&gt; ? That would be great&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 08:39:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170880#M124145</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-20T08:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170881#M124146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;EngineServices should for sure be in 5.15, it's already quite 'old', see &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/commits/master/modules/activiti-engine/src/main/java/org/activiti/engine/EngineServices.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/commits/master/modules/activiti-engine/src/main/java/org/activiti/engine/EngineServices.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No idea why Eclipse wouldn't show it … it's right there on the interface:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public interface ProcessEngine extends EngineServices {&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 08:51:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170881#M124146</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-05-21T08:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170882#M124147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, thats strange, in org.activiti.engine.EngineServices.java, I see this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Licensed under the Apache License, Version 2.0 (the "License");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * you may not use this file except in compliance with the License.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * You may obtain a copy of the License at&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow noopener noreferrer"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Unless required by applicable law or agreed to in writing, software&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * distributed under the License is distributed on an "AS IS" BASIS,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * See the License for the specific language governing permissions and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * limitations under the License.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;package org.activiti.engine;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Interface implemented by all classes that expose the Activiti services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @author Joram Barrez &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public interface EngineServices {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RepositoryService getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RuntimeService getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; FormService getFormService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; TaskService getTaskService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; HistoryService getHistoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; IdentityService getIdentityService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ManagementService getManagementService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I use 5.15.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone an idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 08:33:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170882#M124147</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-22T08:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170883#M124148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One step further:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created this bean in activiti-context.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="ltpaParameters" class="org.activiti.rest.common.filter.RestAuthenticatorImpl"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="ltpaKey" value="***" /&amp;gt;&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; &amp;lt;property name="ltpaPassword" value="***" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After adding &amp;lt;code&amp;gt;ProcessEngineConfiguration getProcessEngineConfiguration()&amp;lt;/code&amp;gt; to the interface, I can access this service. But now, what is the next step to get my both string values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;ProcessEngines.getDefaultProcessEngine().getProcessEngineConfiguration()&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gives me only getDefaultCamelContext(), but no idea how to get the&amp;nbsp; Spring ApplicationContext from that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great if someone could give me a minimal but complete code example on how I can retrieve those 2 values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much and best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 10:00:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170883#M124148</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-22T10:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170884#M124149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to realize it exactly as in the Activiti Explorer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There, I have &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected String ltpaKey;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected String ltpaPassword;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with the setters and getters, and in the activiti-ui-context.xml, I extended the explorerApp bean. Then, my values got injected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the same in my CustomRestAuthenticatorImpl:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created the 2 variables, added the setters and getters and added my own bean like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="ltpaParameters" class="org.activiti.rest.common.filter.RestAuthenticatorImpl"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="ltpaKey" value="***" /&amp;gt;&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; &amp;lt;property name="ltpaPassword" value="***" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the values won´t get injected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any posts are highly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 10:49:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170884#M124149</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-22T10:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170885#M124150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you do see the file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But ProcessEngine doesn't implement it in your code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 11:37:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170885#M124150</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-05-22T11:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170886#M124151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The values are both null, so the values does´n get injected when I do it this way….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 12:10:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170886#M124151</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-22T12:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170887#M124152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, this does not lead to a solution. Another idea: I just use a .properties-file containing those 2 Strings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the question is where I must create this file so that I can access it from my CustomRestAuthenticator and later on, configure it after the deployment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 13:33:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170887#M124152</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-22T13:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170888#M124153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it's a regular properties file - which you read wiht the java.util.Properties package it's just a matter of putting it on the classpath (shared lib , WEB-INF/…/class, or whatever web container you're using), and loading it in your custom class. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 07:32:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170888#M124153</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-05-27T07:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access SpringProcessEngineConfiguration in rest-webapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170889#M124154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much. This worked!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 11:12:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-springprocessengineconfiguration-in-rest-webapp/m-p/170889#M124154</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2014-05-27T11:12:36Z</dc:date>
    </item>
  </channel>
</rss>

