Sean Sexton
2011-07-13 21:48:27 UTC
Hi. I'm trying to use Extended Model Definitions and Transformations
in the following way:
Using an Extended Model Definition in my LDM, I've defined a Boolean
Extended Attribute named "Audited". Additionally, I've created an
Extended Model Definition in my PDM with a transformation attached to
the Table metaclass. The Transformation adds the standard audit
columns and the standard audit trigger to a table whose Audited
attribute is set. I obtain the Domain for each column from the
collection obj.Model.Domains. That part of the Transformation works
fine.
I'm having trouble, though, obtaining the TriggerTemplate for the
standard audit trigger I've previously defined in my PDM. Inspecting
the property obj.Model.TriggerTemplates.Count returns a value of 0,
even though I clearly have a TriggerTemplate defined.
Can anyone tell me where I've gone astray?
Sean
in the following way:
Using an Extended Model Definition in my LDM, I've defined a Boolean
Extended Attribute named "Audited". Additionally, I've created an
Extended Model Definition in my PDM with a transformation attached to
the Table metaclass. The Transformation adds the standard audit
columns and the standard audit trigger to a table whose Audited
attribute is set. I obtain the Domain for each column from the
collection obj.Model.Domains. That part of the Transformation works
fine.
I'm having trouble, though, obtaining the TriggerTemplate for the
standard audit trigger I've previously defined in my PDM. Inspecting
the property obj.Model.TriggerTemplates.Count returns a value of 0,
even though I clearly have a TriggerTemplate defined.
Can anyone tell me where I've gone astray?
Sean