cancel
Showing results for 
Search instead for 
Did you mean: 

Simple starter for Activiti + Spring + JPA (full JAVA)

accelinn
Champ in-the-making
Champ in-the-making
Hi all,

I'm just trying to implement activiti engine into my application, and i have a lot of difficulties to understand and do anything.

I have configured Activiti with Spring and JPA backend.

I just want, for the moment, to create, save, load, edit and axport a simple Process. But all of that in JAVA ! No XML file.

I built a BpmnModel with embedded Process following provided test samples in github.

When i try to store it into my RepositoryService, no way to understand …

BpmnModel model = createModel();
DeploymentBuilder deploymentBuilder = repositoryService.createDeployment();
deploymentBuilder.addBpmnModel("test", model);
deploymentBuilder.deploy();


Nothing is saved into database.

Some help or links to working examples are welcome.

Thank you !
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Could you also include the createModel method?
Do you get an exception on the deploy method?
The deploy should create entries in the deployment and process definition tables.

Best regards,

accelinn
Champ in-the-making
Champ in-the-making
Hi,

I success to use the database ! My problem was a mistake in the use of ProcessInstance !

But, i saw that the BPMN was saved in a Data column in the database … Is it possible to store each element in a separate Table ?
Just store the Object hierarchi of the BpmnModel in fact …
My first need is to manipulate only the process definition and not other things …

Thanks

trademak
Star Contributor
Star Contributor
Hi,

That's possible if you do it in your own database table. We don't do this in the Activiti tables.

Best regards,

accelinn
Champ in-the-making
Champ in-the-making
Ok, thanks for the answer.

There is not any already compliant mapping exiting ?