The Standards Processing Engine (SPE) adapter supports data harness functions that operate on SPE correlations, process data, code lists, delimiters, and the transaction register. You can use data harness functions only in WebSphere Transformation Extender maps that run under SPE.
PUT("SPE", "-t+ -c setTransactionRegister -k 1", "Reg 1")
GET("SPE", "-t+ -c getTransactionRegister")
GET("SPE", "-t+ -c getTransactionRegister")
PUT("SPE", "-t+ -c setTransactionRegister -k 3",PONumber Field:In1)
After you run the setTransactionRegister command, you can run the getTransactionRegister command to check for duplicate input data.
=PUT("SPE", "-t+ -c setProcessData -k getmap -now", "data")
=GET rule " + VALID( GET("SPE", "-t+ -c getProcessData -k getmap")
-c setCorrelation -k adapter -t+
Command Long Form | Command Short Form | Description |
---|---|---|
-COMMAND | -C | Command |
-KEY | -K | Key |
-CODE | -D | Sender/Receiver code |
-TABLE | -B | Code table name |
-NOW | -N | Executes the harness function as soon as the PUT rule is processed, even if the map fails |
-T | -T | Adapter trace (overwrite) |
-T+ | -T+ | Adapter trace (append) |
-TE | -TE | Adapter trace error (overwrite) |
-TE+ | -TE+ | Adapter trace error (append) |
-TV | -TV | Adapter trace verbatim (overwrite) |
-TV+ | -TV+ | Adapter trace verbatim (append) |
Command | Key |
---|---|
getBinaryDocument | The name of the document to retrieve. |
setCorrelation | The name of the correlation to update. |
getProcessData | The XPATH to select. |
setProcessData | The XPATH to update. |
getCodeListItemBySenderCode | The sender value for the code-list entry to retrieve. The command requires a sender code, code list table name, and column. |
getCodeListItemByReceiverCode | The receiver value for the code-list entry to retrieve. The command requires a receiver code, code list table name, and column. |
getEnvelope | The envelope field name. |
getTransactionRegister | There are no keys for this command. |
setTransactionRegister | Each entry is a number between 1 and 6 that indicates the field to update. |
getDelimiter | An array of numbers that indicates the fields to select. The list is defined in Table 4. |
validateCodeWords | This command takes the code words to validate from the data_from_map option instead of from the -KEY argument. |
Key | Value |
---|---|
COL_SENDER | 0 |
COL_RECEIVER | 1 |
COL_DESC | 2 |
First_text_column | 4 |
Second_text_column | 5 |
Third_text_column | 6 |
Fourth_text_column | 7 |
Fifth_text_column | 8 |
Sixth_text_column | 9 |
Seventh_text_column | 10 |
Eighth_text_column | 11 |
Ninth_text_column | 12 |
Key | Value |
---|---|
SEGMENT_TERMINATOR | 0 |
TAG_DELIMITER | 1 |
ELEMENT_DELIMITER | 2 |
SUB_ELEMENT_DELIMITER | 3 |
REPEATING_ELEMENT_DELIMITER | 4 |
RELEASE_CHAR | 5 |
DECIMAL_SEPARATOR | 6 |
Key | Value |
---|---|
COL_TEXT1 | 0 |
COL_TEXT2 | 1 |
COL_TEXT3 | 2 |
COL_TEXT4 | 3 |
COL_TEXT5 | 4 |
COL_TEXT6 | 5 |