Running workbench against Spring boot deployed jBPM runtime

1,005 views
Skip to first unread message

Mark Edwards

unread,
Dec 21, 2017, 11:02:42 AM12/21/17
to jBPM Setup
I'm currently evaluating using jBPM 7.5  for a new project.  I have 2 broad requirements for how I want to use jBPM

1. Embed jBPM within a Spring Boot micro service so that the service can directly drive jBPM functionality.

2. Use the KIE Workbench, deployed into a separate service and connecting to the jBPM runtime instance running in the micro service described in item 1. above.

So I have got an embedded jBPM running within a Spring Boot service using the approach described in https://docs.jboss.org/jbpm/release/7.5.0.Final/jbpm-docs/html_single/#_direct_use_of_runtime_manager_api.

I also have the KIE Workbench running within another Spring Boot service by deploying kie-drools-wb-7.5.0.Final-tomcat8.war to it's embedded Tomcat instance.

The problem is I can't get the Workbench to connect to the jBPM instance running in the micro service.  I assume I need to get a KIE server running somehow within the micro service so that it will expose the REST API that the workbench needs.  I don't want to have to deploy a war file to the micro service to do this as it won't use the jBPM instance that I have configured in Spring.  Is there another way?  Do I have to use the approach described in https://docs.jboss.org/jbpm/release/7.5.0.Final/jbpm-docs/html_single/#_jbpm_services_with_spring?

I have spent some time looking for how to do this, found lots of good information on embedding jBPM in Spring and some on getting the workbench running but nothing on how to connect the 2 together so I'd be really grateful for any help and pointers.

Thanks

Mark

Maciej Swiderski

unread,
Dec 22, 2017, 7:50:19 AM12/22/17
to Mark Edwards, jBPM Setup
Mark,

we are currently working on proper SpringBoot support. We do plan to have two starters out of the box:
- basic which pretty much means jBPM embedded in spring boot
- kie server which will pretty much give you all stuff kie server does right now

so for your use case second one sounds like a good fit. Workbench uses kie server client and thus requires kie server like REST endpoints on the other side so custom REST api won’t work with workbench.

Stay tuned, we do have plans to have it done by next release 7.6, if you like to see how it looks like take a look at work in progress branch here 

Please ping us here in few weeks to check progress

Maciej

--
You received this message because you are subscribed to the Google Groups "jBPM Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-setup+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/f0e7d4d5-070e-42b9-af6b-043cad5a26f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Edwards

unread,
Dec 27, 2017, 4:51:46 AM12/27/17
to Maciej Swiderski, jBPM Setup
Hi Maciej

Thanks for that, great to hear you are working on this.

My only problem is that I don't have a few weeks.  One of the main drivers for choosing jBPM was to take advantage of the rapid application development capabilities because I have a very tight deadline.  I need to know that jBPM will fit our requirements ASAP, otherwise I have to start looking at alternative approaches.

I have 2 weeks set aside to see if I can get to a point where I'm happy we can continue to work with jBPM.  I've got a week or so left so I'm more than happy to have a go at getting what you've done so far on the spring boot starter projects working with my Spring boot service.  Do you think it would be possible to do this running against the 7.5 version of jBPM?

Many thanks

Mark

On 22 December 2017 at 12:50, Maciej Swiderski <swidersk...@gmail.com> wrote:
Mark,

we are currently working on proper SpringBoot support. We do plan to have two starters out of the box:
- basic which pretty much means jBPM embedded in spring boot
- kie server which will pretty much give you all stuff kie server does right now

so for your use case second one sounds like a good fit. Workbench uses kie server client and thus requires kie server like REST endpoints on the other side so custom REST api won’t work with workbench.

Stay tuned, we do have plans to have it done by next release 7.6, if you like to see how it looks like take a look at work in progress branch here 

Please ping us here in few weeks to check progress

Maciej
On 21 Dec 2017, at 17:02, Mark Edwards <mark.edwards@orchard-systems.co.uk> wrote:

I'm currently evaluating using jBPM 7.5  for a new project.  I have 2 broad requirements for how I want to use jBPM

1. Embed jBPM within a Spring Boot micro service so that the service can directly drive jBPM functionality.

2. Use the KIE Workbench, deployed into a separate service and connecting to the jBPM runtime instance running in the micro service described in item 1. above.

So I have got an embedded jBPM running within a Spring Boot service using the approach described in https://docs.jboss.org/jbpm/release/7.5.0.Final/jbpm-docs/html_single/#_direct_use_of_runtime_manager_api.

I also have the KIE Workbench running within another Spring Boot service by deploying kie-drools-wb-7.5.0.Final-tomcat8.war to it's embedded Tomcat instance.

The problem is I can't get the Workbench to connect to the jBPM instance running in the micro service.  I assume I need to get a KIE server running somehow within the micro service so that it will expose the REST API that the workbench needs.  I don't want to have to deploy a war file to the micro service to do this as it won't use the jBPM instance that I have configured in Spring.  Is there another way?  Do I have to use the approach described in https://docs.jboss.org/jbpm/release/7.5.0.Final/jbpm-docs/html_single/#_jbpm_services_with_spring?

I have spent some time looking for how to do this, found lots of good information on embedding jBPM in Spring and some on getting the workbench running but nothing on how to connect the 2 together so I'd be really grateful for any help and pointers.

Thanks

Mark

--
You received this message because you are subscribed to the Google Groups "jBPM Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-setup+unsubscribe@googlegroups.com.

To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/f0e7d4d5-070e-42b9-af6b-043cad5a26f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




--


Mark Edwards
Systems Architect

Orchard
Tel:       0191 203 2500
Mobile:  
Direct:   0191 203 2543
Web:
www.orchard-systems.co.uk 

 

CityWest Homes 
'goes d
igital' and 
recommits to Orchard in new 5 year deal
.. 
Read news item
Check 
out our Fixed Assets blog by John Buckland
...
Read blog
Ivan Blythe discusses how the Financial landscape is changing in social housing
 ...
Read blog
Let us know how you would like us to keep you 'up to date'
 .. 
Tell us more!



Orchard Information Systems Limited, 3rd Floor, Central Square, Forth Street, Newcastle upon Tyne, NE1 3PJ

Registered in England No.1900078

Think twice about printing this email. We like to protect the environment. 

Mark Edwards

unread,
Dec 27, 2017, 9:17:09 AM12/27/17
to Maciej Swiderski, jBPM Setup
Hi Maciej

I've successfully incorporated your JBPMAutoConfiguration class and my service spins up OK and the beans defined in the class get created.  As far as I can tell that doesn't give me the KIE REST endpoints that the workbench requires, so either I've got something wrong or that bit hasn't been developed yet and I'm jumping the gun.

If there is any way I can get this working before the release of 7.6 and you have time to point me in the right direction I'd be very grateful.

Thanks

Mark   

Maciej Swiderski

unread,
Dec 28, 2017, 4:24:08 AM12/28/17
to Mark Edwards, jBPM Setup
Mark,

Wiadomość napisana przez Mark Edwards <mark.e...@orchard-systems.co.uk> w dniu 27.12.2017, o godz. 15:16:

Hi Maciej

I've successfully incorporated your JBPMAutoConfiguration class and my service spins up OK and the beans defined in the class get created.  As far as I can tell that doesn't give me the KIE REST endpoints that the workbench requires, so either I've got something wrong or that bit hasn't been developed yet and I'm jumping the gun.

Correct, at the moment it is only on jbpm services level which targets jbpm embedded use cases. Kie server REST api will come next. Already prototyped it but it does require some changes in kie server to avoid too much duplication and to allow spring way of setting up things

If there is any way I can get this working before the release of 7.6 and you have time to point me in the right direction I'd be very grateful.
It should be ready for review in like mid January (I am off for few more days) I can keep you posted on the progress so you can give a try on snapshots if needed. 

Overall investigate if Kie Server api will fit your needs as this is what will come with spring boot too

Maciej 
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages