Skip to main content

MGCEarmarkDimensionRuleEntity

The read/write entity over the financial dimension rule list, and the only writable entity in the accrual engine. Copy-config is what it is for: the dimension walk is the one thing an implementer builds by hand, and it is built once and moved into every other environment. Every write goes through the rule table's own validation rather than around it, so a load meets the same refusals a person would. Note that loading a rule at a position an existing walk already uses INSERTS it and pushes the rest down rather than replacing anything - clear the walk first if replacement is what is wanted.

  • Public collection name: MGCEarmarkDimensionRules
  • Primary key: MovementType, Sequence

Fields​

NameTypeMandatoryDescription
MovementTypeMGCEarmarkMovementTypeNoWhich kind of movement this rule applies to. It is the discriminator that lets one table hold what used to be five, and it is part of the rule's key: each movement type has its own independently numbered list. A rule cannot be moved from one movement type to another in place, because that would address a different list rather than edit this one - remove it and add it where it belongs.
SequenceMGCEarmarkPriorityNoWhere this rule sits in its movement type's walk. The walk runs from the lowest sequence upwards and the first rule that yields a value for a dimension wins. Sequences are contiguous and are maintained automatically: adding a rule at a position that is already taken pushes the rest down, and removing one closes the gap behind it. That is not cosmetic - a walk numbered 1, 2, 4 gives a reader no way to tell a deleted rule from one somebody meant to write and has not yet. A rule is re-ordered by removing it and adding it back at the position wanted.
SourceMGCEarmarkDimensionSourceNoWhere this step of the walk reads its dimension values from - the deal, the transaction line, the transaction header, the counterparty master record, the journal, the parent movement, or a fixed value stated on the rule itself. Fixed value is the only source that requires a dimension on the rule, and a dimension is refused on every other source.
SideMGCEarmarkDimensionSideNoWhich leg of the journal line pair this rule applies to - the account side, the offset side, or both. A rule that applies to one side leaves the other alone, so a walk can take the account dimensions from the deal and the offset dimensions from somewhere else without either rule interfering with the other.
FixedDimensionValueDimensionDisplayValueNoThe dimension values a Fixed value rule contributes, written as a self-describing list of the form BusinessUnit=001;Department=022. It is deliberately not a record identifier and not a plain display value. A record identifier is built per environment and means nothing outside the one it was built in, so exporting it would produce a file that imports silently and wrongly. A plain display value does not round-trip either, because it carries the values without saying which dimension each belongs to and their order comes from the target environment rather than from the file. Every segment is checked against this company's dimensions before anything is saved, and a segment naming a dimension or a value this company does not have is refused by name rather than resolved to nothing. Leave it empty on every rule whose source is not Fixed value.
ActiveNoYesIdNoWhether the resolver walks this rule. An inactive rule keeps its position in the sequence and is skipped, which is how a rule is taken out of the walk temporarily without renumbering everything after it. New rules are active, because an implementer who adds a rule to a walk means it to be walked.
EffectiveFromTransDateNoThe first date this rule is in force. Blank means there is no lower bound, so a rule with neither date is always in force. Use the dates where a dimension policy changes on a known date and the postings on either side of it must keep the dimensions they were posted with.
EffectiveToTransDateNoThe last date this rule is in force. Blank means there is no upper bound. It must not fall before the effective-from date.

Mappings​

Entity fieldData sourceField
MovementTypeMGCEarmarkDimensionRuleMovementType
SequenceMGCEarmarkDimensionRuleSequence
SourceMGCEarmarkDimensionRuleSource
SideMGCEarmarkDimensionRuleSide
ActiveMGCEarmarkDimensionRuleActive
EffectiveFromMGCEarmarkDimensionRuleEffectiveFrom
EffectiveToMGCEarmarkDimensionRuleEffectiveTo