Decision Rule


#1

Hi,

is there a possibility to add a Decision Rule via Rest or Java?

Thx for your help


#2

@Marcin yes possible. you can check this create a new DMN model

DmnModelInstance modelInstance = Dmn.createEmptyModel();
Definitions definitions = modelInstance.newInstance(Definitions.class);
 definitions.setNamespace("http://camunda.org/schema/1.0/dmn");
 definitions.setName("definitions");
 definitions.setId("definitions");
 modelInstance.setDefinitions(definitions);