Nik
Nik

Reputation: 31

How to update Camunda DMN table at runtime?

I have a DMN table created with a few rules and deployed to Camunda.

How do we update DMN tables programmatically at run-time and add a new rule when it is already deployed?

Upvotes: 1

Views: 1488

Answers (1)

Jan Galinski
Jan Galinski

Reputation: 11993

When you change the dmn table but keep the decision-key, a deployment will create a new revision of the table. So yes, you can update dmn tables at runtime.

You can do so by either using the REST or the java API.

The java api relies on the RepositoryService#createDeployment Builder. The concrete implementation depends on where your files are stored, and how you read them. Here are some examples.

 Deployment deployment = repositoryService.createDeployment() 
      .addString(resourceName, instanceAsString)
      .deploy();

Upvotes: 1

Related Questions