Deploying DMN tables pogrammatically

Hi,

I am a Java Developer. I want to know how to deploy a newly created dmn table into camunda server using java code.

Looking forward for the responses.

Thanks in advance for the clue and responses.

Thanks & Regards,
Elgi Eldhose

If you have access to the process engine through a JavaDelegate for example you get the process engine and deploy a dmn table using the following

    execution.getProcessEngineServices()
    .getRepositoryService()
    .createDeployment()
    .addClasspathResource("someDMNtable.dmn")
    .name("DeploymentName")
    .deploy();

If you don’t have access you’l need to implement this REST call in Java