-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant pass Void or similar as variable to M2DocUtils.generate #475
Comments
Did you try
|
Let me try ... |
@ylussaud if I do that it improves a bit, anyway, I still get warnings that there is actually no service on that Object type available, so it does not work as in OCL where I can just execute any Collection operation also on OclVoid, right? |
I think this issue might be fixed with AQL 8.x by doing something like:
Where There is an experimental build of M2Doc with AQL 8.x, the update site is here. Note that this update site should be used for testing only. Let me know if this helps with your issue. |
I'm submitting a...
Current behavior
I can pass a map of variable -> value to the generate method, all works nice, I can pass single EMF objects, plain text and EMF collections. However, I can't pass null to express "Void" or "unset" (see also See also https://forum.mbse-capella.org/t/m2doc-how-to-use-optional-template-variables/4555/6)
Expected behavior
I would like to pass OclVoid or Null or any other value so that any AQL expression is not broken but evaluates to nothing.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
We use the m2doc API programatically, so variable definition and value assignment is on our end. We cant distinguish between "not set" and "empty" at the moment.
Environment
The text was updated successfully, but these errors were encountered: