AnsweredAssumed Answered

Activiti Project as a REST Web Application (Server)

Question asked by challengeactiviti on Jun 13, 2013
Latest reply on Jun 16, 2013 by hyapit
Hey,

I am not sure what the best way to go about this is. Currently I have an Activiti Project which is able to deploy a process on the activiti-explorer application.

I need a way for this project to be activated via a web service, as a  c# application needs to call it and query it for information.

I got a RESTful c# client configured.  In JAVA i have REST Server configured and my Activiti Project in eclipse.
I can't get the Server to call my Activiti Project.

So far I did the following to try and make it work:-

-I am testing this with a very simple Servlet, whose doGet() method will call my Activiti application.
-I packaged my Activiti Project as a JAR and included it in the Build-Path of my server.
-I copied the JAR file to the WEB-INF/libs folder.
-Copied all the Activi libraries to the Build Path of my Server
-Included Activiti project as a reference to my Server

Currently I still get

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: org/activiti/engine/ProcessEngineConfiguration
   com.ProcessTestVacationRequest.startProcess(ProcessTestVacationRequest.java:43)
   Servlet1.doGet(Servlet1.java:38)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)


Even though my Activi Project works fine on its own, the Server works fine on its own.

_____

Other approaches to this could be:-
    -  Maybe I can use the supplied activiti-rest.war but im not sure how.
    -  Also, the Acvititi's REST api will it allow me to call a JAVA application that deploys Activiti's
    - I bought the book and am looking into Apache Camel with book CH11, maybe those can help.

_____

Outcomes