cancel
Showing results for 
Search instead for 
Did you mean: 

How to Provide a model before deploying the Modeller XML

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,

I am trying to deploy the bpmn modeller xml file programmatically using the below code.

processEngine=ProcessEngineConfigurator.getInstance().getProcessEngine();
repositoryService=processEngine.getRepositoryService();
Deployment deploymentId = repositoryService.createDeployment().addClasspathResource("testProcess.bpmn20.xml").deploy

I am getting the deployment Id back.

But when i check my activiti deployment table.
select * from ACT_RE_DEPLOYMENT;

I am getting deployname as null.
I need to set the name as well. How to do it programmatically? Please help!!
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
add .name() just before the .deploy() method.