How do you effectively develop Bonita?

1
0
-1

Hello,

I am editing the source code of Bonita to implement a new feature (I just modify the login related source code). The way I am doing it is as follow:

  1. I execute this script to compile Bonita.
  2. I execute Bonita Studio to see if the binary or my feature works.
  3. From an editor I edit the source files.
  4. When I am happy with the editing I go back to step 1 to see if it works.

This methodology is very slow because the step 1 takes a lot of time (even after the first compilation of Bonita). Do you know which is the best development environment to effectively develop Bonita?

Thanks in advance, Jesús

Comments

Submitted by Sean McP on Thu, 02/26/2015 - 13:46

If you are replacing the build in step 2 and not creating a new folder for every build I hope in step 1 you remove everything you don't need. For example why rebuild all the connector modules when they have already been built.

You should only have to compile everything after the point at which your code is changing.

Sorry I'm sure you're doing that, otherwise,

a very powerful computer... :)

One reason why builds ar usually done overnight...which doesn't really help with small code changes really.

But thanks for that I'm off to try it now....

regards

1 answer

1
0
-1

Hi,

The best is to use Unit tests and Integration tests in order not to have to rebuild everything for rapid development. To validate everything you effectively need to build everything. Maybe you can use the Tomcat bundle to test it in order to avoid to wait too long for Studio build.

You should take a look to already possibility of custom login action in the documentation which doesn't require to modify source code: http://documentation.bonitasoft.com/product-bos-sp/security-and-authenti...

Regards,

Notifications