cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Applying filters when publishing web sites

hsoegaard
MEGA Partner
MEGA Partner

Is it possible to apply a filter on diagrams when publishing web sites? E.g. hiding Risks or just certain Risks on all diagrams before or during publishing.

4 Replies

script before running the website generation sounds like best option if it are only certain instances that are not allowed to be visible. you could manage/ tag the instances with a keyword in MEGA or put them in an (excel) file and hide them on the diagrams they appear on.

 

After website generation, run the reverse action. Can fully automate this in a script that you shedule to run on the server overnight.

 

Regards

 

stijn

Thanks. The objective is not to hide all instances of a certain metaclass (eg. Risk), but only some of the instances when showing models to external partners.

We do this :

 

Then you can consider to use diagram APIs to write code to hide objects within the diagram drawing, generate web site then and display objects again. This is an expert work.

 

works out fine for us.

jhorber
MEGA
MEGA

Hello Henrik

 

When generating a web site you can of course filter the objects (including diagram objects) to tune the scope of objects to be published. This is done

  • Either by modifying the queries defining th publishable objects
  • Or by modifying the queries associated to the formatters (HTML descriptors)

Filter elements within the diagram drawing is a different point

Example: if  a diagram contains 2 organizational processes and a risk, display the 2 organizational process but not the risk

Web site generation engine is not designed for this

A subsidiary question will be to understand if:

  • You do not want to display risks in general
  • You do not want to display risks but only in diagram drawings

 

To go further

You do not want to display risks in general

1) If there is a general option that hides the unexpected elements (ex: option 'Risk Modeling' in the group 'Business Process and Architecture Modeling'), you can check it before generation. Such options can not be customized but you can use metamodel filter management.

2) You can configure metamodel filter management to hide objets, then generate the web site, then restore initial configuration of metamodel filters 

More details about metamodel filter management

http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=50120000000mqbfAAA

3) You can also consider to implement the confidentiality mechanism (an option 'Confidential
objects display in diagrams'). See manual 'MEGA Administration - Supervisor EN', section 'Managing Data Confidentiality'. Managing confidentiality should be a more general need.

 

You do not want to display risks but only in diagram drawings

Then you can consider to use diagram APIs to write code to hide objects within the diagram drawing, generate web site then and display objects again. This is an expert work.

Jerome