tsd:trigger

Purpose This element contains the information for logical nodes in the schema that define action triggers for the Tamino Server Extensions. Only one trigger can be specified per type (tsd:onDelete, tsd:onInsert, tsd:onUpdate).
Parent element

tsd:logical

Child elements

tsd:onDelete, tsd:onInsert, tsd:onUpdate

Attributes

None

Example

This example illustrates the definition of triggers for Tamino Server Extensions:

<xs:element name="firstname" type="xs:string">
  <xs:annotation>
    <xs:appinfo>
      <tsd:elementInfo>
        <tsd:logical>
          <tsd:trigger>
            <tsd:onDelete type=action>x1</tsd:onDelete>
            <tsd:onUpdate type=action>x2</tsd:onUpdate>
            <tsd:onInsert type="action">
              myXtension.onInsert
              <tsd:parameters>
                <tsd:parameter name="param1" type="xs:string">
                  MyClassName
                </tsd:parameter> 
                <tsd:parameter name="param2" type="xs:int">
                  4711
                </tsd:parameter>
              </tsd:parameters>
            </tsd:onInsert>
          </tsd:trigger>
        </tsd:logical>
      </tsd:elementInfo
    </xs:appinfo>
  </xs:annotation>
</xs:element>