cancel
Showing results for 
Search instead for 
Did you mean: 

activiti workflows in file system

sureshtellakula
Champ in-the-making
Champ in-the-making
Hi,

All Activiti workflows we are storing database. Is it possible to configure in Activiti for storing Activiti workflows(bpmn files) in file system instead of database. If yes, Please let me know details of that.

regards,
suresh
6 REPLIES 6

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Suresh.

There is possibility to store bpmn files in the file system and automatically deploy them to the repository.
see:
http://www.activiti.org/userguide/#N10714

I do not know about file system based RepositoryService implementation.
If you  want to use file system as a storage for repository service, you have to implement it by yourselves.

Regards
Martin

sureshtellakula
Champ in-the-making
Champ in-the-making
Hi,

Please provide me tutorial for implementing our own Reporstory service for file system as storage. baiscally my project is developing in different reasons like development,testing ,production etc. when we move code to different reasons we need to move data also. For moving workflows data to different reason is there any import/export option in Acctiviti for moving workflow data to different reason.
If it is not there in Activiti,Please give any alternative solution for this.
regards,
suresh

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Here you can find Repository service implementation which is used in the engine now.
https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/...

You have to implement your own and bind it to the engine.

I did not catch the reason why do you want to store process definitions in the file system.

Regards
Martin

sureshtellakula
Champ in-the-making
Champ in-the-making
Hi,
Basically i want to move workflows data to different reason like development,testing production etc. If it is a file system i can copy all data files into different reason whenever it is required. Is there any import and export option for workflow data in Activiti. is there any alternative solutions.

regards,
suresh

bmarkmann
Champ in-the-making
Champ in-the-making
Like Martin mentioned, based on what you're saying, it sounds like the "deploymentResources" property of the processEngineConfiguration would do what you want.  In other words, you can keep the output BPMN files from the designer in source control along with your other project content… when your application starts, the process models will be compared with what's currently deployed and updated/deployed as necessary.  Then you don't have to move database content from environment to environment – just copy your process models with other filesystem content and they'll automatically be available.

sureshtellakula
Champ in-the-making
Champ in-the-making
Hi,
Thank you very much for your feedback. As per my understanding you mentioned we can use Automatic Resource deployment. I am also thinking same thing in my mind.
regards,
suresh