MapServiceInterface

This interface provides access to validation and transformation maps. There are four methods, as follows:

Method

getFromValidationMap

Method description

Retrieves the appropriate "From" validation map. The "From" validation map is the validation map associated with the connection's "From" document flow definition. Steps of the action can call this method to obtain the validation map associated with an incoming document. The "From" validation maps can be uploaded from the Community Console.

Syntax

public byte[] getFromValidationMap(Context context,
                           BusinessDocumentInterface document)

Parameters

context
The context associated with this flow
document
The business document

Method

getToValidationMap

Method description

Retrieves the appropriate "To" validation map. The "To" validation map is the validation map associated with the connection's "To" document flow definition. If the steps of the action are transforming an incoming business document into another business document, they can call this method to obtain the validation map associated with the transformed document. The "To" validation maps can be uploaded from the Community Console.

Syntax

public byte[] getToValidationMap(Context context,
                           BusinessDocumentInterface document)

Parameters

context
The context associated with this flow
document
The business document

Method

getTransformationMap

Method description

Retrieves the appropriate transformation map associated with the connection. When you create the participant connection in the Community Console, you can select the transformation map that you want to use for the connection.

Syntax

public byte[] getTransformationMap(Context context,
                           BusinessDocumentInterface document)

Parameters

context
The context associated with this flow
document
The business document

Method

getDTDOrXSD

Method description

Retrieves the appropriate XSD or DTD file. When you want to validate the document against more than one schema, the action steps can call this method to obtain the schemas one by one.

All the schemas for an XML document are loaded in WebSphere Partner Gateway. To validate a document using the parser, you need its schema. This first schema references additional schemas, which are also loaded in WebSphere Partner Gateway. To obtain these schemas, pass the schema name to getDTDOrXSD

Syntax

public byte[] getDTDOrXSD(string dtdOrXsdName)

Parameters

dtdOrXsdName
The name of the XSD or DTD file
document
The business document

Copyright IBM Corp. 2003, 2005