19-09-2012 08:37 AM
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.
Solved! Go to Solution.
19-09-2012 05:06 PM
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
19-09-2012 02:37 PM
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.
19-09-2012 11:17 AM
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.
19-09-2012 09:43 AM
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
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:
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.