Creating a jbpm+spring ws - maven

I'm trying to create a contract first spring web service using maven which is supposed to start a jbpm process by its id. I managed to create a simple spring ws using maven but i don't know how to relate it to my jbpm workflow, some guidance will be really appreciated.

If you have a web service already working now you only need to setup jbpm inside your project so you can start processes just calling the APIs.
Take a look at this blog post for more information about jBPM6 and Spring:
http://mswiderski.blogspot.co.uk/2014/01/jbpm-6-with-spring.html

Related

Azure Active Directory in Spring App Without Boot

I have been trying to set up a Spring Web application to use Azure Active Directory.
All the samples that I have found online are based on Spring Boot, is there a simple example that shows setting up spring framework web app only without using Spring Boot?
I am having no luck finding stuff, I am also trying to figure out how to convert all the spring boot autoconfig. Surely there is a sample somewhere that makes it easy to use for a Spring Framework only web-app?
I was able to figure this out somewhat. I'm very new to OAuth so still trying to learn as I go.
Basically I followed the Spring Reference and got things working using the override auto-configuration sections at https://docs.spring.io/spring-security/reference/servlet/oauth2/index.html
It also helped that I updated the Spring Framework versions to the latest and made sure I used the correct dependencies according to that reference site

How to configure New Relic for Spring boot Backend Code

I am working on a task to configure new relic So that we can monitor our services (Rest Services). I have idea how to do that with frontend code as we can include new relic js code in common js file but In my case it's Spring boot application and we are using Gradle to build it.
I tried to search out the way on google but didn' find out.Can anybody please suggest the way to do it or share some link.
Thanks

Spring boot + Activiti explorer

Is it possible to integrate activiti explorer maven plugin with activiti Spring boot app?, so that we can make use of activit-explorer to view deployed process in activit-spring boot engine.
I know we can use rest-api over spring boot to query process engine, but I want to know if it is possible to run the explorer over spring boot by adding it as a maven plugin during deployment?Or can we tweak the activit-explorer.war somehow to point to spring-boot activiti engine?
activiti-explorer.war is standalone webapp by itself. I've write some guideline on how to manually to embed activiti-explorer to you own app. http://blog.canang.com.my/2016/05/12/embedding-activiti-explorer-to-your-application/
Most probably step 5 in my blog is your solution.
btw, there's reason why the name is 'default'. I can't recall it atm
I thought of answering my own question so that it will be useful for other developers with similar requirement. If you want to make an eco-system where activiti-rest, explorer and your custom end points co-exist, please refer this thread from activit forum. I have tried this and is working fine. link to thread
I would like to give my observation here. In order to avoid getting into pulling source and trying to build myself, I achieved partial success, by installing the activit-explorer as part of the usual standalone installation.Started the standalone activiti-explorer using Apache-Tomcat but I configured the database for Activiti as same as (MYSQL in my case) I used in my spring-boot application to hit the common ground.
But apparently the activiti version in my spring boot app was 5.19.0.0 and that for activiti-explorer was 5.22.0.0, which created some misalignment for spring boot application startup to fail. I am hopeful that with matching versions it might succeed. When I get some more time on me I will try and update. Since then may be someone can use this route.

how to create spring template project in sts-3.6.3?

please suggest if is there any other solution to do scaffolding of an app in STS.
In many examples/tutorials about creating web services using Spring MVC framework are using Spring MVC project template. I can't find it in my project tempaltes list. Am i missing some plugin installed?
The best way to create a new Rest service Spring app in STS 3.6.3 and beyond is to select the "Import Spring Getting Started Content". This allows you to get the guides from http://spring.io/guides directly into your workspace. If you look for "Rest Service" in the list of available guides, the wizard will download the initial and the completed version of this guide, showing you how to write a Rest service using the latest Spring versions. The completed version of the project could also be used for just creating a new Spring project and continue to do development from there.

Sample OSGI project for RESTful web service using spring-3

I need a sample project of OSGI which creates RESTful Web service using spring framework and JPA persistence project.
I have tried creating project with these but i guess i am doing something wrong.. i tried a lot to find the solutions to those exceptions but failed..
You can use OSGi RemoteServices with Apache CXF DOSGi. You can check very nice blog article with JPA/JAX-RS/DOSGi.

Resources