.registerProcessApplication() gives NULL sources value for deployment

Hi, everyone!

Trying to register process application for deployment
But get NULL in sources

What am I doing wrong? Need your help

 deployment = processEngine.getRepositoryService().createDeployment()
                        .enableDuplicateFiltering(false)
                        .name(DEPLOYMENT_NAME)
                        .tenantId(null)
                        .addInputStream("process.bpmn", this.getClass().getClassLoader().getResourceAsStream("process.bpmn"))
                        .deploy();

 processEngine.getManagementService()
                        .registerProcessApplication(
                                deployment.getId(),
                                this.getReference()););

Untitled

Found a solution for working with deployment and source code binding of a process application (.war) to this deployment in camunda.

I made a mistake not passing the ProcessApplicationReference parameter to .createDeployment() method. And only after you need to register the application through .getManagementService().registerProcessApplication(deploymentId, processApplicationReference)

So the working version of the code looks like this:

deployment = processEngineDefault.getRepositoryService().createDeployment(this.getReference())
                        .enableDuplicateFiltering(false)
                        .name(DEPLOYMENT_NAME)
                        .tenantId(null)
                        .addInputStream("process.bpmn", this.getClass().getClassLoader().getResourceAsStream("process.bpmn"))
                        .deploy();

 processEngineDefault.getManagementService()
                        .registerProcessApplication(deployment.getId(), this.getReference());

Untitled2

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.