]
Matteo Mortari reassigned DROOLS-2192:
--------------------------------------
Assignee: Matteo Mortari (was: Edson Tirelli)
DMN QName regex problem and assimilated for function drools:kind
----------------------------------------------------------------
Key: DROOLS-2192
URL:
https://issues.jboss.org/browse/DROOLS-2192
Project: Drools
Issue Type: Bug
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Matteo Mortari
DMN QName regex does not match with serialization strategy.
A qname string serialization as
{code:java}
{http://namespace}localPart
{code}
would fail the regex of MarshallingUtils.
Additionally FunctionDefinition could now rely on the additionalAttributes generally
available at the level of DMNModelInstrumentedBase (which would also serialize any other
type of additional attributes, preserving from any original .dmn file).
Finally, it was noted calling getDecisionResultByName on DMNResultImpl by passing a wrong
name would have thrown the stacktrace for wrong use of Optional.get(), instead of
returning null as per getDecisionResultById() of the same class.