cancel
Showing results for 
Search instead for 
Did you mean: 

Moving existing app to Activiti

shashank_jain
Champ in-the-making
Champ in-the-making
Hi,

We have an application for  retail management built on the traditional j2ee style.

Since the app deals with a classic case of a workflow I am proposing a shift to Acitiviti

Since we have our own schema there not sure how to fit the same in Activiti like storing of orders/shopping carts etc.

Your help will be appreciated.
5 REPLIES 5

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Just store them in your own model and use e.g. Jpa to reference them, or store small subsets of relevant data in you process.

shashank_jain
Champ in-the-making
Champ in-the-making
Just store them in your own model and use e.g. Jpa to reference them, or store small subsets of relevant data in you process.
Thanks. So can it be like this.
We persist the custom object model using JPA/jdbc and also use the same connection(thereby same transaction) to call the process engine. So in that ways we avoid using JTA and use the same DB and connection to persist.

Also the challenge can be when using Activiti over REST. Then the transactional sematics are difficult to manage. Example being. We create order through JPA in our layer but then make a REST call to FormService over REST.

So net net how we handle both calls in a single transaction.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
just don't use rest if you need transactional integrity over more than one call.

shashank_jain
Champ in-the-making
Champ in-the-making
just don't use rest if you need transactional integrity over more than one call.
Thanks Ronald,
So I think we might need to still use JTA across 2 data sources though same DB but different connections.
Is that a valid understanding?

tbee
Champ in-the-making
Champ in-the-making
Apparently all these JTA posts go unanswered. I'm at the same junction and was curious; have you succeeded in forcing the JDBC connection onto Activiti, or did you end up using JTA?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.