How to configure deployment descriptor location in Spring camunda process application

I have a spring boot application run as process application, and I want to change the processes.xml file to another folder instead of META-INF/processes.xml, my application class is like below
{code}
@ProcessApplication(deploymentDescriptors = {“myfolder/processes.xml”})
@SpringBootApplication
@EnableProcessApplication(“camundaApplication”)
public class CamundaApplication extends ApplicationObjectSupport implements ApplicationListener {

}
{code}
However it doesn’t work. The ProcessApplication annotation seems to be ignored.

Does anybody know how to configure the path to processes.xml in this case?

Hi @irishuenm and welcome.

The annotation ProcessApplication needs to be specified on your specific ProcessApplication class, that needs to extend AbstractProcessApplication.
See:

So e.g.

package org.camunda.bpm.example.loanapproval;

import org.camunda.bpm.application.ProcessApplication;
import org.camunda.bpm.application.impl.ServletProcessApplication;

@ProcessApplication(deploymentDescriptors = {“myfolder/processes.xml”})
public class LoanApprovalApplication extends ServletProcessApplication {
  // empty implementation
}