The following example adds new California customers to a mailing list using UDTs.
CREATE TRIGGER CA_Mailing_list AFTER INSERT ON customer REFERENCING NEW AS NewRow FOR EACH ROW WHEN (NewRow.address.state() = 'CA') INSERT INTO MailingAddresses VALUES (NewRow.Name.Last(), NewRow.Name.First(), NewRow.address);