cancel
Showing results for 
Search instead for 
Did you mean: 

Error while adding spring-boot-starter-web

skrish
Champ in-the-making
Champ in-the-making
Requirement: To start a process from outside Activiti by invoking REST Service.

I have the following entry in pom.xml to create REST Services in Activiti.

    <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-web</artifactId>
         <version>1.2.7</version>   
     </dependency>

After adding the above entry, getting ompiler error:

Missing artifact org.springframework.boot:spring-boot-starter-web:jar:1.2.7   pom.xml   /SecondActivitiProject   line 72   Maven Dependency Problem

Following the specs from:
http://www.activiti.org/userguide/index.html?_ga=1.9942453.1690328444.1445932282#N1196B

Please advice.

Or As per requirement, please let me know if there is an alternate way to start an Activiti process from an external Application without using Spring-Boot.

Thanks,
Siva

4 REPLIES 4

vasile_dirla
Star Contributor
Star Contributor
Hi,
I didn't understand very well what you want to do, but I guess you want to create an application with an embedded Activiti and you need to expose a way to start processes from outside this application.

Is not mandatory to use spring boot for creating the REST services (but in my opinion is the easiest way you could do it)
You can imagine there are a lot of possibilities how you can design and implement your application around a framework/technology you like the most.

In my opinion you better have a look in the spring boot documentation and create a simple application by yourself and then add other parts to that application so that you could understand exactly what you are doing. (don't give up)
http://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-maven-plugin.html

skrish
Champ in-the-making
Champ in-the-making
Hi,

Thank you for the resolution. I could get past the error.
As you said, I want to start an Activiti task using a REST Call from my Web Application.

So far, I could create a test REST service using spring-boot-starter-rest-api and exposed it as REST Service. Created a jar - ActivitiRestProject.jar and copied to <tomcat location>\activiti-explorer\WEB-INF\lib folder.

After starting the Activiti Application using tomcat, I am unable to call the exposed service using Advanced Rest Client.
http://localhost:8081/activiti-explorer/process (have configured activiti tomcat to 8081 port)

The Service and Controller classes are from the link: http://activiti.org/userguide/index.html#_rest_support.

I have separate jars for ActivitiTask Code and REST Code and both copied to <tomcat location>\activiti-explorer\WEB-INF\lib folder.

Any suggestions on alternate ways of invoking the webservice or problem with the current design?

Thanks,
Siva

skrish
Champ in-the-making
Champ in-the-making
Hi,

I have put this REST implementation on hold for now. Started working on out of box activiti-rest.war API.

I have few questions on this and posted here:
https://forums.activiti.org/content/custom-deployment-not-showing-under-deployments-tab

Thanks,
Siva

jbarrez
Star Contributor
Star Contributor
I'm not sure, but http://localhost:8081/activiti-explorer/process is not going to work… unless your custom app is deployed under /activiti-explorer?