Skip to main content
Previous sectionNext section

Additional Steps

This chapter discusses the additional steps needed to add ASTM routing interfaces to a production. It includes the following topics:

Be sure to perform these tasks in the same namespace that contains your production. When you create rule sets, transformations, and search tables, do not use reserved package names; see “Reserved Package Names” in Developing Ensemble Productions.

Loading ASTM Schemas into Ensemble

To load an ASTM schema into Ensemble, use the ASTM Schema Structures page, described in the chapter “Available Tools.”

For information on creating custom schema categories, see “Creating Custom Schema Categories” in Ensemble Virtual Documents.

Defining Routing Rule Sets for ASTM

Depending on the business process that you create, you may need to create a routing rule set.

For general information on defining business rules, see Developing Business Rules.

When you create a routing rule set for an ASTM routing interface:

Defining DTL Data Transformations for ASTM

Your routing rules might need one or more data transformations.

For general information on defining DTL data transformations, see Developing DTL Transformations.

When you create a DTL data transformation for ASTM documents:

  • On the Transform tab, Source Class and Target Class should both be EnsLib.EDI.ASTM.Document.

  • Source Doc Type should match the schema category name assigned by the business service.

  • Target Doc Type should be the name of the target schema category. This must match a schema category name that you have loaded into Ensemble.

Use the ASTM Document Viewer Page to test your transformations, as described in the chapter “Available Tools.”

To integrate the DTL data transformation in the production, enter its full package and class name in the Transform field of a routing rule set.

Defining ASTM Search Tables

The ASTM search table class, EnsLib.EDI.ASTM.SearchTable, automatically indexes the ASTM document ID, which it gives the name Identifier.

If you need more items to search, you can create a subclass. The subclass inherits the Identifier property, plus the infrastructure that makes search tables work. For details, see “Defining a Search Table Class” in Ensemble Virtual Documents.

For ASTM, Ensemble supports an additional value for PropType. You can use DateTime:HL7 in addition to the types listed in Ensemble Virtual Documents.