R30055 UserBusinessRuleEvent - Is Repository Aggregate Root
Code | R30055 |
Entity | Systems.Bpm.UserBusinessRules Entity |
Name | IsRepositoryAggregateRoot |
Attribute | EventType |
Layer | Back-End |
Events | Aggregate Changed / Commit |
Priority | Normal |
Modify | NO |
Applicable Legislations | ALL // no condition needed |
Action | If (EventType == AGGREGATECLIENTCOMMIT) §§ (RepositoryName != null)
, validate that GetAggregateRoot(UserBusinessRule.RepositoryName.Entity) = null |
Description | The Aggregate Client Commit is used for triggering User Business Rules for objects which are an aggregate root, not only when there is a change for the object itself, but also when is edited some of its referent object. For this reason such rule can only be specified for repositories which are aggregate roots. For more information about the Aggregate Client Commit event, see AGGREGATE CLIENT COMMIT. |
Message | The 'Event Type' field in the event of user business rule with code
'{UserBusinessRule.Code}' has an invalid value.
'Aggregate client commit' event type could be used only for repositories that are a root of the aggregate. The aggregate root of the currently specified repository is '{UserBusinessRule.RepositoryName.Entity.AggregateRoot.EntityName}'. |
Version | Introduced: in implementation
Updated: - |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.