cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible deploy all the BPMN files at a time by specifying location?

sankardunga
Champ in-the-making
Champ in-the-making
Hi All,

I have small doubt regarding deployment of bpmn files.

Is it possible deploy all the BPMN files at a time by specifying folder location?

Thanks & Regards
3 REPLIES 3

trademak
Star Contributor
Star Contributor
You can use a * in the configuration to include multiple files like:

<property name="deploymentResources" value="classpath*:/org/activiti/spring/test/autodeployment/autodeploy.*.bpmn20.xml" />

sankardunga
Champ in-the-making
Champ in-the-making
Ya, I know that from configuration file.
1)Is it possible give the path in my class like
            repositoryService.createDeployment() .****("D://files/mybpmn.bpmn") .deploy();
Instead of deploying it from the class path.

2) And when we are deploying multiple bpmn files by defining *.bpmn in xml, it is creating same deployment id for all the process.
    If I do deploy separate to every bpmn files, it will create separate deployment id for each process,
    Will it give any difference in both cases while running the processes ?

Thank you.

jbarrez
Star Contributor
Star Contributor
1) No, we don't do scanning of folders. But that's something you can do easily in Java, and pass the inpustreams for each file into the DeploymentBuilder

2) Yes indeed. It won't be different at runtime.