Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following functions for UDR described here are:

Table of Contents
maxLevel1

udrAddError

Adds an error description message to the UDR, which will be visible from the Error Correction System Inspector window or the Data Veracity browser, Error Code column. A UDR can have several error descriptions.

...

Decodes a bytearray into a list of UDRs, and returns an error message if the operation fails. To route the UDRs to a subsequent agent, loop through the resulting list routing each element individually.

Note
titleNote!

Built-in CSV and JSON formats are not supported by udrDecode.


Code Block
string udrDecode
 ( string  decoderName , 
 list<drudr>  UDRlist , 
 bytearray  indata , 
 boolean  fullDecode  ) //Optional

...

Info
titleExample - Using udrDecode

A list must be created, not only declared, previously used by udrDecode:

Code Block
list<drudr> myList = listCreate(drudr);

if (udrDecode("myFolder.myFormat.myDecoder", 
 myList, input) == null) {
 // Do something
} else {
 // Error handling
}


udrEncode

Encodes a UDR.

Note
titleNote!

Built-in CSV and JSON formats are not supported by udrEncode.


Code Block
bytearray udrEncode
 ( string  encoderName ,
 drudr  myUDR  )

...