Documents

Nodes in a flow operate on a document, which can be displayed with the following command:

show document

This produces a large output if the document is large. The following command can be used to skip a prefix and only display a certain length.

show document -offset 10000 -maxlen 2000

If the payload is an XML document, it is preferable to evaluate an expression to extract the desired information as follows.

eval _XPATH(/INVOICE/INVOICE-NUMBER)

One method to change the payload of a document is to use the Save command to save it to a file, then edit the file and reload the payload before resuming operation, as shown below.

save document doc.xml
... edit doc.xml ...
set document -file doc.xml