Quantcast
Channel: SQL Server Master Data Services forum
Viewing all articles
Browse latest Browse all 1311

MDS - Cascading Business Rule on constrained attributes

$
0
0

 Hi,

I am hoping that someone can shed some light on an issue I am having with Business Rules

I have 2 entities "entity1" and "entity2", an attribute in entity2 is constrained by entity1. Both these entities have an archive flag (numeric).

There is a business rule set on entity2, which checks the archive flag on entity1 and assigns the same value to the archive flag on entity2 (1 or 0).

After following this post Cascading Business Rules (Friday, November 12, 2010 11:44 AM), I have set up change tracking on entity1.

My rule reads as follows:

If (entity1.archive has changed in group 1 and entity1.archive = 1) then archive = 1

I have also tried this without the has changed condition (there is a second rule that reactivates where archive = 0).

When the rules are published, they run successfully first time. But when I change archive on entity1, and apply the business rules to entity2, they do not seem to identity that entity1 has been archived and entity2 is not updated with the relevant value.

Do I have to set the validation status manually? Or should this automatically pick up when the rules are applied or the version is validated?

If you require any additional information, please let me know.

Thanks

David


Viewing all articles
Browse latest Browse all 1311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>