M2DOC DRepresentation isVisibleInDoc - m2doc

I am using Capella 1.4.0 and I would like to put my diagrams in my wordx using M2DOC, only if the attribute "Visible in documention" of the sheet "Management" is set to true.
I don't see the method isVisibleInDoc of the DREpresentation object.
Someone can help me please ?

This is not supported yet, see https://github.com/ObeoNetwork/Capella-Extensions/issues/16

Related

Camunda custom candidate task property

I am new in Camunda.
Could you please tell me whether it is possible to add custom property 'camunda:candidateUsersReadOnly' something like:
<bpmn:userTask id="Task_1eqdx5t" name="task name" camunda:candidateUsers="IC754VBA08D5UC93XE,IC754VBA08D5UC93ZC" camunda:candidateUsersReadOnly="IC754VBA08D5UC93XE,IC754VBA08D5UC93ZC">
and then call getTaskService().getIdentityLinksForTask(taskId) to get ids defined in 'camunda:candidateUsersReadOnly' ?
Thanks!
Pretty sure you can't use a custom camunda: namespace attribute. But maybe you could achieve your goal by using extension elements.
You can add them on the "extension" tab of the properties panel in the modeler.
See Extension Elements for documentation and samples.

django-rest-swagger==2.1.1 query parameter

i have an api(web service) in django like this:
http://127.0.0.1:9000/api/back_office/appointments/days/?branch=1
that in swagger i want to input query parameter named branch but don't work this(all of my Apis have same problem!!).
before, i use older version of swagger and for enter query parameters use like --param_name syntax, but now in django-rest-swagger==2.1.1 don't work this syntax.
can anyone help me?
Perhaps i should use get_customizations in OpenAPIRenderer class?
Thanks in advance.
For adding query parameters to swagger please, go through this post

GATE - How to create a new annotation SET?

I am starting to learn GATE. I created an annotation with features but I would like to put it in a new annotation set.
Can someone please tell me how to do it with JAPE?
Thanks
I found the answer to my question in http://sourceforge.net/p/gate/mailman/message/5348688/ and http://osdir.com/ml/ai.gate.general/2005-04/msg00052.html.
They said that a JAPE rule can't refer to more than one annotation set. These annotation sets are defined in the PR runtime parameters (outputASName, inputASName).
--> So I guess that if I want my annotation to belong to a "Key" annotation set, I should put "Key" in outputASName of my Jape transducer.
Thanks for your help Ian =)

Retrieving an extended attribute that extends Site/Default

I have a small problem using the Extended Attributes feature in Mura CMS. I have added a global extended attribute to Site/Default, but I am clueless how to retrieve it in my application. For normal content you would do $.content().getValue('namespace') but how does this work for an extended attribute within the site settings? I tried $.getValue('namespace') and $.siteConfig('namespace') but none worked.
thanks in advance!
As a Site/Default extended attribute, you should be able to access $.siteConfig('attName') ... so I would double check that it's not actually working. Maybe you accidentally typed the attributeName incorrectly?
To access any attribute, including extended attributes, these should all work:
$.siteConfig().getValue('attName')
$.siteConfig().get('attName') // <- in the latest version
$.siteConfig('attName')
This syntax should work on pretty much any bean within Mura CMS.
Cheers,
Steve
Turns out you have to call getValue('namespace') on $.siteConfig(), so it would be
$.siteConfig().getValue('namespace')
Would be cool to have the getValue method for site settings available on the global Mura Scope, so you would have the mura scope as the site layer, and use $.content() as the content layer. As in - it would make sense.

apache solr auto suggestions

I use solr+django-haystack
I set settings.HAYSTACK_INCLUDE_SPELLING = True
and rebuild index
I'm trying to get any suggestion using:
SearchQuerySet().auto_query('tryng ani word
her').spelling_suggestion()
But I always get None
What should I do to get at least one working suggestion ? may be I
need add some configuration into solr config or have some specific
data indexed ?
Depending on what version of solr you're using you could use EdgeNGrams or the TermsComponent (if your using 1.4). Check out these links, they should get you started in the right direction. I haven't used haystack, so I don't know if there's an easy way to use leverage these solutions in that framework.
EdgeNGrams:
www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/
TermsComponent:
wiki.apache.org/solr/TermsComponent
www.lucidimagination.com/search/document/CDRG_ch07_7.13.3
you need to add spelling support to your default request handler in solr conf
see this please
http://wiki.apache.org/solr/SpellCheckComponent