How to add <variable type="number"> programatically to decision tree

I am very new to DMN engine, I want to know is there any possibilities adding programatically to decision tree.

@Sunitha_Nagappa You can refer this page for programatically creating a decision tree.