cancel
Showing results for 
Search instead for 
Did you mean: 

Acitivit-Explorer - Adding my webapp

lambav
Champ in-the-making
Champ in-the-making
Hi,

I have added a process engine jar in my web application for workflow. I have written some Java Delegates which call the spring beans in my project. I mean, it is tightly coupled.

Now , I want to use the activiti-explorer for support. But since it has Java Delegates. I can not process any action from activiti - explorer.

I need to add my webapp as dependency in activiti-explorer. I can not create a separate jar and put it in activiti - explorer. /WEB-INF/lib folder as it will take time to remove the tight coupling .

Can you please help me how can I add my webapp as a whole in activiti-explorer.war.  ?

Thanks
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
You only need to add the jars for the delegates to the classpath, not your whole webapp.

Also, since Explorer is a Spring app, you also need to add your delegates to the beans of the context xml file of Explorer

lambav
Champ in-the-making
Champ in-the-making
My jar contains applicationContext.xml , how can I add this xml in activiti-webapp-explorer2 applicationContext.xml . it is not picking up ?

frederikherema1
Star Contributor
Star Contributor
It should be in the WEB-INF folder of the web app, by default. Update the web.xml to have the ContextLoaderListener <listener> definition point to the exact location of the application context XML (google to see what the param name is to alter this for spring's ContextLoaderListener).