cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a name for a deployment

wattlee
Champ in-the-making
Champ in-the-making
Deploy a demo process with JAVA code:
   repositoryService.createDeployment()
      .addClasspathResource("FinancialReportProcess.bpmn20.xml")
      .addClasspathResource("FinancialReportProcess.png")
       .deploy();

View  the deployment at http://localhost:8080/activiti-probe/deployments:
* refer to the screenshot attached *

Compare with the deployment of activiti-probe, there is no name for the deployment (marked with red color) in JAVA code.

My question is how to add a name for the deployment.
1 REPLY 1

chris889
Champ in-the-making
Champ in-the-making
I guess the name(..) method will do the trick


repositoryService.createDeployment()
      .name("foo").     
      .addClasspathResource("FinancialReportProcess.bpmn20.xml")
      .addClasspathResource("FinancialReportProcess.png")
       .deploy();