TXDOC_STATUS

LANSA Composer

TXDOC_STATUS

This activity updates the status of a transaction document in the transaction document register and records its progress in the transaction document log.

INPUT Parameters:

DOCNUMBER : Required

This parameter must specify the transaction document envelope number for the transaction document whose status is being updated.  This number is normally assigned by the TXDOC_REGISTER activity.

DOCSTATUS : Required

Specifies the new transaction document status.  It can be specified either as one of a range of pre-defined values (listed below), OR as a user-specified status string value.

DOCFILE : Optional

This parameter may be used to specify a new path and name for the transaction document file.  This is typically used when the transaction document is moved and/or renamed in the course of processing.

DOCTYPE : Optional

This parameter may be used to specify a new document type for the transaction document.  This is typically used after "discovering" the document type during the course of processing.  The document type should be a document type identifier as defined in LANSA Composer's Document types definitions, for example 'EDI'.

DOCCONTENTTYPE : Optional

This parameter may be used to specify a new document content type for the transaction document.  This is typically used after "discovering" the document content type during the course of processing.  If specified, the content type can be any string that identifies the content type - for example, you might use the EDI transaction type (eg: '850') for an EDI document or the XML document root element name for an XML document.

OUTPUT Parameters:

There are no output parameters for this activity.

Pre-defined Transaction Document Status Values

The following is a list of pre-defined transaction document status code values that may be specified in the DOCSTATUS parameter of the TXDOC_STATUS activity:

Status code

Meaning

*REGISTERED

Registered transaction document

*DOCUMENTTYPEOK

Discovered document type

*DOCUMENTTYPEUNK

Unrecognised document type

*DOCSPLITOK

Document split successfully

*SPLITDOCSOK

Split dpocuments processed successfully

*CONTENTMATCHTPOK

Matched trading partner to document content

*CONTENTTYPEOK

Discovered content type

*CONTENTTYPEUNK

Unrecognised content type

*CONTENTVALID

Validated document content successfully

*CONTENTINVALID

Invalid document content

*TRANSFORMFOUNDOK

Found transformation map for document

*TRANSFORMNOTFOUND

No matching transformation map for document

*TRANSFORMEDOK

Transformation successful for document

*TRANSFORMFAILED

Transformation failed for document

*IMPORTEDOK

Imported transaction data successfully for transaction document

*IMPORTFAILED

Import failed for transaction document

*ACKNOWLEDGEDOK

Acknowledgement completed for transaction document

*ACKNOWLEDGEFAILED

Acknowledgement failed for transaction document

*READYTOSENDOK

Ready to send transaction document

*COMPLETEOK

Successfully completed processing transaction document

*COMPLETEERROR

Error(s) occurred while processing transaction document