I have just started to use dmn modeler. I have integrated dmn modeler UI in my web application and able to create dmn table.
But I have no idea how I can validate inputs of dmn table while/after filling table values.
For example,
If I give datatype for input a String and if I forgot to write it in double quotes then it needs to be validated there itself.
or if one can write same expression for multiple input etc.
How we can validate overall dmn table?
Please correct/comment if I am wrong!
Thank you,
Prashant
First thing is, I am not using their modeler UI to view DMN table. I am using my own UI to view and to create rule.
Now, Which specific part are you looking for.If its validations for inputs then I am still not 100% sure about validations what I did.
I have used following to validate expression with dummy inputs,
FeelEngine feelEngine = new FeelEngineFactoryImpl().createInstance();
feelEngine.evaluateSimpleUnaryTests(expression, inputName, variableContext);
You can refer, https://github.com/camunda/camunda-engine-dmn/blob/master/feel-juel/src/test/java/org/camunda/bpm/dmn/feel/impl/FeelExceptionTest.java
But the point here is, It gives error for an invalid expressions such as "9 <=" BUT It not give error for expressions like "[8...9]" is an invalid expression(three dots).
Let me explain my self.
For expression [8...9],
feelEngine.evaluateSimpleUnaryTests(expression, inputName, ariableContext);
above feelEngine test call not show an error as feel accepts three dots. BUT DMN engine not return output for input number between 8 and 9.
Regards,
Prashant
On Friday, January 22, 2016 at 1:00:45 PM UTC+5:30, shilimkar...@gmail.com wrote:
Aaah, :D as you said it was difficult to understand if you don't know. Sorry, My bad, not read your reply correctly. Thanks for reply :)
Regards,
Prashant
On Friday, January 22, 2016 at 1:00:45 PM UTC+5:30, shilimkar...@gmail.com wrote: