Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jwt-dev] Questions concerning JWT4SOA and Bonita

Hi all,

Please see my answers below:

I started on working with Bonita today and it's actually quite easy to use. The documentation is well written and the administration website is very well structured and easily understandable. I deployed some existing bar files to the engine and executed them step by step. Then I thought, okay, it should be quite easy to deploy an existing bar file with some lines of Java code and had a closer look into the JavaDoc. There, I found that there exists a ManagementAPI interface that allows to deploy a xpdl- (deprecated) or a bar-file. But since this is only an interface, there must be some concrete classes in Bonita where this is already implemented and which I can invoke. Where exactly can I find the right one?
Bonita classes implementations are accessible via the AccessorUtil class, which contains static methods to get all API implementations. However, if you want to communicate with a remote instance of Bonita, you'll have to: * let your server expose the API as EJB services. This can be done by configuring the environment.xml * Tell your client to use the EJB client implementation of the API. For this, there is a system property to set.
I let you take a look at documentation to get more details on this topic.

I personally always use an embedded local Bonita instance (by simply adding the bonita-server jar file and dependencies to class path). This makes testing and development easier and faster, but I don't have a console.

Then I thought, aah, now that I have the Bonita engine running, I want to test the monitoring plugin in JWT. Mickael already sent me the code for the workflow service and I had a look at our Wiki page, but I had not been successfull. The first thing that I noticed was, that the server is directly called in the JWT monitoring frame (compare bug 264167). Using existing tools for server management, is probably much better. When I add the JWT Monitoring view to Eclipse then I can right-click and add a new workflow service. But where exactly does the workflow service come from? I only have the Java code (which is not a plugin), and there is no window to select a JAR archive or something. So how is the WorkflowService selected?
The old/current monitoring plugin defines an extension point where you can plug your WorkflowService (more precisely, a WorkflowServiceProvider, which gives a WorkflowService), then you should be able to find your extension when right-clicking on the monitoring view. However this old piece of code is probably too Bonita3-oriented, you'll probably have some refactoring to do... Feel free to modify it as you wish and to commit your changes, it is only a draft.

The third thing that is probably quite important for vendors is how to deploy a process directly from Eclipse. Okay, I already mentioned the server list where each vendor should have the possibility to register their server (e.g. Nova Bonita or jBPM), but additionally we will probably need a possibility to deploy the process. This might either go in the context of the server list (Deploy... Select workflow) or in the context of the workflow (Export... Deploy to server). I hope that we can have some discussion on bug 264167 where vendors will express their needs and then can create an interface which does fit their needs.
Agree.

Any wishes and ideas concerning this issue would be helpful.
Thanks for reading and best regards, Florian PS: This is probably something we could also discuss in a separate telco concerning JWT4SOA. Mickael, if you find some free time, let us shortly chat what shall be part of this telco and we will organize it.
Let's use Skype ;)



Regards,
Mickael


Back to the top