cancel
Showing results for 
Search instead for 
Did you mean: 

Configure LDAP in Activiti 5.17

b_schnarr
Champ in-the-making
Champ in-the-making
Since Activiti 5.17, there is no activiti-standalone-context.xml anymore. I read the new Activiti Documentation but I cannot find the file where I can place my LDAP-Configuration. Therefore, where can I find the processEngineConfiguration to place my LDAP-configuration?

Is there a difference to the REST-API?

Thanks and best regards
Ben
9 REPLIES 9

b_schnarr
Champ in-the-making
Champ in-the-making
I tried uncommenting the xml in activiti-custom-context.xml to access the ProcessEngineConfiguration Bean but then, the application won´t boot up again.

solanki
Champ in-the-making
Champ in-the-making
I used the example in the sample application "activiti-webapp-rest2" to define all engine specific configuration in ActivitiEngineConfiguration class. The beans defined in this class are loaded when spring context is initialized just like the xml file. Not sure about issue with activiti-custom-context.xml, as I dint try it.

bens1
Champ in-the-making
Champ in-the-making
Thanks for the hint. But imho, it should still be possible to configure LDAP with a simple configuration file after deploying on tomcat. Is this still possible?

b_schnarr
Champ in-the-making
Champ in-the-making
No one?

jbarrez
Star Contributor
Star Contributor
What do you mean with simple configuration file? Before, you also had to set the properties through the Spring xml, right? This should work now as Solanki describes above.

There be a need for custom post-config bean that is picked up automatically. I'll look into that if I can make it easier.

b_schnarr
Champ in-the-making
Champ in-the-making
When I just have my war-file to deploy, then I have no activiti-webapp-rest2 for my LDAP-configuration.

jbarrez
Star Contributor
Star Contributor
I'm not following that comment… could you elaborate?

b_schnarr
Champ in-the-making
Champ in-the-making
I try to ask with other words:
1. I download the WAR-files from the website
2. I deploy the WAR-files on tomcat
3. I go to tomcat-root/webapps/activiti-rest/web-inf/classes

Now I want to configure my LDAP-settings. In former versions, there was a activiti-standalone-context.xml, and now? In which file can I place my LDAP-configuration without having to check out the whole github-project?

jbarrez
Star Contributor
Star Contributor
So either you have your own Java configuration, and build you own webapp by depending on the activiti-explorer module. That is the most flexible way, as you can do whatever you want.

Or, the JavaConfiguration imports and external xml file (see https://github.com/Activiti/Activiti/blob/master/modules/activiti-webapp-explorer2/src/main/resource...) where you can put your process engine configuration. those beans have priority over the default ones.