Model Transformation Maps for Transaction Document Processing
The pre-built processing sequences that are central to the transaction document processing framework assume a particular pattern for the transformation maps that it invokes and LANSA Composer supplies the following "model" transformation maps that match this pattern:
- TXDOC_MODEL_IN (Transaction document inbound model map)
- TXDOC_MODEL_OUT (Transaction document outbound model map)
These maps cannot be used directly but are supplied to serve as a model from which you can create your own maps that reference the database and the transaction document types involved in your organisation's transaction document processing.
The key thing about these maps is that they define the number, order and meaning of the parameters that your maps will be assumed to receive when invoked by the transaction document processing framework, as supplied. Any maps you create will need to accept the same parameters in order to be compatible with the supplied transaction document processing sequences.
For inbound maps, the expected parameters are:
Name (*) |
Description |
TXDOC_MODEL_IN_1(TextfileSourceFilename) |
Specifies the path to the inbound transaction document file. |
TXDOC_MODEL_IN_2 |
Specifies the transaction document envelope number that identifies the transaction document in the transaction document register. This value is returned by the TXDOC_REGISTER activity. |
TXDOC_MODEL_IN_3 |
Specifies a LANSA Composer database configuration name that identifies the database configuration used to connect to the target database for the map. |
(*) Note that your map does not have to (and will not) use the same parameter names as shown - it is the number, order and meaning of the transformation map parameters that is important for this purpose.
For outbound maps, the expected parameters are:
Name (*) |
Description |
TXDOC_MODEL_OUT_1 |
Specifies a LANSA Composer database configuration name that identifies the database configuration used to connect to the source database for the map. |
TXDOC_MODEL_OUT_2 |
Specifies the transaction document envelope number that identifies the transaction document in the transaction document register. This value is returned by the TXDOC_REGOUTBND or TXDOC_REGOUTX12 activities or equivalent APIs and by the FOR_EACH_TXDOCO iterator activity. |
TXDOC_MODEL_OUT_3 |
Specifies the path to the outbound transaction document file to be created. |
(*) Note that your map does not have to (and will not) use the same parameter names as shown - it is the number, order and meaning of the transformation map parameters that is important for this purpose.