]
Luca Molteni updated DROOLS-5917:
---------------------------------
Issue Type: Enhancement (was: Bug)
Use LambdaConstraint predicate information to generate better
comments in ANC for DMN Alpha Network
---------------------------------------------------------------------------------------------------
Key: DROOLS-5917
URL:
https://issues.redhat.com/browse/DROOLS-5917
Project: Drools
Issue Type: Enhancement
Components: dmn engine
Reporter: Luca Molteni
Assignee: Luca Molteni
Priority: Major
It should be possible to put the actual constraints in comments in a generated ANC by
leveraging the `PredicateInformation` class used in the executable model to give better
error messages.
In the compiled alpha network, instead of
private org.drools.modelcompiler.constraints.LambdaConstraint lambdaConstraint490; //
[AlphaNode(490) constraint=Constraint for '0066e054-7241-4ccd-886d-ab6d7e08a99e'
(index: null)]
we should have
private org.drools.modelcompiler.constraints.LambdaConstraint lambdaConstraint490; //
[AlphaNode(490) constraint=x == true" (index: null)]