 |
Start New Thread | Admin
By: Flavio Donze
RE: Scarbo Runtime Required? [ reply ] 2009-05-13 12:59
|
|
I'm working on a server client application. Using EMF and oAW to generate Services and Tests, Riena to publish the services. I need the workflow in some service calls like "commit", which then starts the flow. The client will be an Eclipse RCP application and we will use Eclipse RAP as Viewer of the content.
The easiest (but ugliest) way to run Bonita in a plug-in is to create a lib folder and add all the jars from bonita-runtime-4.1/server. Then add all jars to your build path and Bundle-ClassPath: in the MANIFEST.MF. Bonita should run like that.
Since I have a lot of dependencies already as OSGi bundles from SpringSource I only have the following entries:
Bundle-ClassPath: lib/server/bonita-server-4.1.jar,
lib/server/bsh-2.0b1.jar,
lib/server/h2-1.1.106.jar,
lib/server/xpp3_min-1.1.3.4.O.jar,
lib/server/xstream-1.2.2.jar,
.
The other dependencies can be imported as package, I haven't checked but there would probably be an OSGi bundle for xstream and maybe the others on SpringSource. Haven't optimized the plug-in since I first want to play with the workflows.
One important thing, Hibernate has some class loading issues if it runs in an OSGi bundle. So I built my own plug-in which contains the hibernate jars:
Bundle-ClassPath: lib/antlr-2.7.6.jar,
lib/hibernate-annotations.jar,
lib/hibernate-commons-annotations.jar,
lib/hibernate-entitymanager.jar,
lib/hibernate3.jar,
.
Now add the "Eclipse-BuddyPolicy: registered" to your hibernate plug-in and "Eclipse-RegisterBuddy: your.hibernate.plugin" to your workflow plug-in.
That should work like that.
cheers
Flavio
|
By: Mickael Istria
RE: Scarbo Runtime Required? [ reply ] 2009-05-12 10:07
|
|
That's cool if SpringSource can study how Bonita can be OSGi-zed! Nice initiative!
I don't know a lot about hessian services. For the moment Scarbo supports only SOAP and RMI services. It relies on Frascati for invocation (http://frascati.ow2.org).
If this is important for you, then feel free to feed a feature request against Scarbo, we will rely it to Frascati and integrate it ASAP. (Hessian seems quite easy to use, then it should not be too difficult!)
Did you succeed to get Bonita working in an Eclipse plugin as a set of jars? If yes, this is great! Did you experiment some troubles, how did you fix them?
Your results are very interesting for Scarbo, since we would like to include a process debugger one day in Scarbo feature...
And by the way, I cannot do anything to get a wider message textarea, except contacting OW2 webmaster.
Just by curiosity (if it is not indiscreet), are you developping for an embedded device (such as a cell phone), or for desktop or server machines?
Regards,
Mickael
|
By: Flavio Donze
RE: Scarbo Runtime Required? [ reply ] 2009-05-11 20:06
|
|
Hey Michael
Thanks for the quick and valuable replay!
Ok now the clouds clear up and I can see a light :-).
I created an issue in the "SpringSource Repository" issuetracker: https://issuetracker.springsource.com/browse/EBR-375
These guys are specialized in creating bundles.
If that doesn't work, I'll give it a try. Right now I just have the jars in my workflow plug-in, ugly but works for now.
Scarbo and Bonita
Looks like for now I just need the Bonita Runtime. The service calls sound very interesting, maybe I need those later on. Is it possible to call hessian services? I saw something about RMI...
Thanks again
Flavio
By the way, is i possible to make this message input field broader? :-)
|
By: Mickael Istria
RE: Scarbo Runtime Required? [ reply ] 2009-05-11 17:42
|
|
Hello Flavio,
First, I'm glad to see your interest in JWT and Scarbo! These are young but promising projects, I hope you'll find interesting things over there!
I'll try to answer your questions one by one:
* Bonita and OSGi?
Florian (JWT lead) tried to make some work about embedding Bonita in Eclipse, or more generally, in an OSGi platform. Unfortunately, Bonita/OSGi integration is still something missing.
Scarbo team plans to spend time working on it, but this is unfortunately not do-able in short term, due to lack of resources.
If you are interested in working on it and find out a solution, I think that you can get more help on Bonita forum (http://forge.ow2.org/forum/?group_id=56). I imagine that you could also discuss of it with Florian, who made some work on this topic.
* What is Scarbo runtime?
Scarbo is a set of extension for Bonita to allow to call services, to send mail, to call Groovy scripts... in your process's automated tasks.
If you want your process to do it, then you'll require all those libs.
But if you are not interested in all these additional features, I think you only need Bonita, not Scatbo.
* What is Scarbo dev-time (or modeler) ?
Eclipse + JWT + extensions that allow to design call to services, mails or script + a JWT to BAR transformation.
* How many jars ?
As I answered just ahead, it depends on of you only want Bonita, or if you also want Scarbo runtime.
Then, to sum it:
- JWT is a framework for workflow modeling
- Bonita is the process engine we use, and has not been sintegrated with OSGi yet.
- Scarbo modeler is a kind of "implementation" of JWT framework for Bonita
- Scarbo runtime is a set of extensions for Bonita.
IMHO, and if you have some time to spend on it, you should first evaluate the difficulty to integrate Bonita in OSGi, and report your issues and success to the Bonita team. This would be a useful contribution for the whole OpenSource BPM world!
Regards,
Mickael
|
By: Flavio Donze
Scarbo Runtime Required? [ reply ] 2009-05-11 16:47
|
|
Hello
I'm a little confused, please help :-).
Ok so I installed Eclipse JWT, added Scarbo
http://scarbo.ow2.org/update-site/.
Now I want to use Bonita to launch my workflows on my OSGi Server.
Is this now impossible? Do I need the libs from the scarbo runtime?
This would explain why I couldn't correctly start my activities, hehe.
Is there a list of the required jars I need to include since 116 are quite a lot!
Thanks for any help
Flavio
|
|
 |