Transactional snippets are built on several repository item descriptors:

Creating transactional snippets

Use the following steps to create a transactional snippet:

  1. Create a JSP file containing the JSP code you want to display in the transactional snippet. Store this file in the Web-app directory of the appropriate Service extensions directory. See Configuration File Locations for details about directory locations.

  2. In the ACC, create a global component of class atg.svc.fragment.
    TransactionalFragment
    in the ATG Registry under /atg/registry/
    TransactionalFragments
    . Edit its properties with appropriate information and save the component.

    See Properties of Transactional Snippets for details on available configuration properties.

  3. In the ACC, create an atg.svc.repository.beans.
    TransactionalFragmentParameter
    repository item in the ServiceRepository for each parameter you need to use in your transactional snippet (number, string, date, Boolean, or list; list parameters will appear as dropdowns in the user interface).

  4. For each parameter of type list, create an atg.svc.repository.beans.
    TransactionalFragmentParameterListValue
    repository item.

    See Properties of Transactional Snippets for information on parameter repository items.

  5. To use this snippet in Knowledge Manager and Self Service, go to Service Administration and create a new FieldDefinition of type TransactionalFragmentType, then add that FieldDefinition to a new or existing solution class.


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices