{"id":267,"date":"2019-11-01T13:59:47","date_gmt":"2019-11-01T13:59:47","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/architecture\/domain-encapsulation\/"},"modified":"2020-10-14T06:44:42","modified_gmt":"2020-10-14T06:44:42","slug":"dataencapsulation","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/architecture\/dataencapsulation","title":{"rendered":"Associations should only rarely be cross-module"},"content":{"rendered":"\n<table class=\"wp-block-table\"><tbody><tr><td>\n  This rule checks if the module domain is\n  encapsulated according to your standards.\n  <\/td><\/tr><tr><td>\n  If you have a low module encapsulation\n  percentage, it <em>can<\/em> mean that it\u2019s better to move entities from a\n  domain model or split up an entire module since they are used more often\n  elsewhere. Also it says something about your application as a whole.\n  This percentage is calculated as the\n  ratio between cross domain accociations to all associations.\n  <\/td><\/tr><tr><td>\n  Add a percentage of the minimum\n  encapsulation (cross-associations opposed to internal associations)\n  <\/td><\/tr><\/tbody><\/table>\n","protected":false},"featured_media":0,"parent":99,"menu_order":4,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-267","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/267"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267"}],"version-history":[{"count":2,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/267\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/267\/revisions\/861"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/99"}],"next":[{"title":"Entities should not be associated with a system enty","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/architecture\/systemassociation","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/273"}],"prev":[{"title":"App store widgets should use the latest version (preview)","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/architecture\/architectureappstorewidgetslatestversion","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1845"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}