cancel
Showing results for 
Search instead for 
Did you mean: 

Expose Modeler Functionality in 15.7.0

mf
Confirmed Champ
Confirmed Champ
In older versions of activiti (like 15.6.3) i used to open "Activiti Modeler" in my web application, by overlaying "activiti-webapp-explorer2.war" to my web application and adding these parts of "activiti-webapp-explorer2"s web.xml to my web.xml:



<!– Restlet adapter, used to expose modeler functionality through REST –>
<servlet>
   <servlet-name>RestletServletExplorer</servlet-name>
   <servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
   <init-param>
      <!– Application class name –>
      <param-name>org.restlet.application</param-name>
      <param-value>org.activiti.rest.explorer.application.ExplorerRestApplication</param-value>
   </init-param>
</servlet>

<!– Catch all service requests –>
<servlet-mapping>
   <servlet-name>RestletServletExplorer</servlet-name>
   <url-pattern>/service/*</url-pattern>
</servlet-mapping>



And then by navigating to "https://localhost/activiti/service/editor?id=1" address for opening Modeler.
But in the current version of activiti (5.17.0) I don't know how? That part of web.xml is removed from "activiti-webapp-explorer2.war".
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The REST logic has been rewritten using Spring MVC and removing Restlet.
This is indeed done without web.xml, but rather using the Spring WebApplicationContext that uses component scanning. You can still do something similar, but you will probably need to create some Spring Confuguration classes yourself and import the activiti ones.