Help to build an autocomplete functionality when drawing a process flow diagram

I want to create an autocomplete functionality to Bonita Studio, which will suggest next steps, transitions, decision points and other process elements when drawing a process flow diagram. I want to build this feature in a way to easily allow implementation of different recommendation algorithms. I’m a Computer Science student at UFRGS/Brazil and this is a degree final project.

I would like some tips to know where in the source code i should start looking to implement such feature. I need to change de drawing UI to add a context button to select the recomendations to the process flow diagram. And I also need to know how I would be able to read the current diagram.

So far I’ve managed to build bonita studio 6.2.3 from source code (git), using Ubuntu 12.10 64-bit . And all my work will be free/libre.

Thanks in advance.
Guilherme

Hi,

as a first hint, you can take a look to https://github.com/bonitasoft/bonita-studio/blob/master/bundles/plugins/org.bonitasoft.studio.diagram.custom/src/org/bonitasoft/studio/diagram/custom/editPolicies/CustomCreationEditPolicy.java l.262
It is the code repsonsible to display the popup to choose the event that you want.

you can also look https://github.com/bonitasoft/bonita-studio/blob/master/bundles/plugins/org.bonitasoft.studio.diagram.custom/src/org/bonitasoft/studio/diagram/custom/editPolicies/NextElementEditPolicy.java which is the policy repsonsible for the contextual palette.

Regards,