ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
38 stars 22 forks source link

M2DOC template with Sequence and other input parameters #493

Closed MarianKuban closed 1 year ago

MarianKuban commented 1 year ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/

Current behavior

m:template that have a multiple parameters with combination of Sequence/Set and other Literal parameters are not resolved properly. Any parameter that is following after Sequence/Set is omited form the service registration.

ex: m:template myTemplate(Sequence(Integer),Title:String) => is registered as myTemplate(java.util.List)! => NOK Expecting registration: myTemplate(java.util.List,,java.lang.String)

Expected behavior

All the parameters of the template shall be registered.

Minimal reproduction of the problem with instructions

See attached word template.

What is the motivation / use case for changing the behavior?

Usage of the templates on a sequence/set using query "->"

Environment


M2Doc version: 3.2.0
Eclipse version:0.7.1
Platform version:  Windows 10

Others:

m4doc.validation.docx m4doc.docx m4doc.generated.docx