Please enable JavaScript to view this site.

InterFormNG2 Manual

The job logs of InterFormNG2 includes all requests, but it can be a bit difficult to identify a specific document, so to make that possible you can assign a value to the Log info meta data key. This makes is much easier to search for a specific job log entry.

 

The value can be a fixed value, but normally customers are assigning the value via an XPath expression to set a dynamic value e.g. Invoice followed by the invoice number found in the input file.

 

The Log info key component can only be used once for an input file (if you use it multiple times, then only one of the entries is actually added). If you want to create multiple job log entries (e.g. one for each splitted sub file), then you should consider the New log line workflow component instead. You should insert this component as the first component directly after a split.

 

The component is described below.

 

The New log line workflow component has only a single parameter:

 

NG2NewLogLine0001

 

 

Log info key

Here you can either type a fixed value or click the T-icon on the left and setup an XPath expression to set a dynamic value based on the input file.

 

The value can be set via an Xpath expression e.g. be a combination of a fixed text and a document number. This expression:

concat('Invoice_',/Root/InvoiceNumber) could e.g. combine the fixed text 'Invoice_' with a dynamic value (the invoice number) found in the node /Root/InvoiceNumber in the input xml file to e.g. build up the value: Invoice_1234.

 

 

Example of use

 

You can insert the New log line immediately after a split to ensure one log entry for each of the splitted files like below:

NG2NewLogLine0002

 

On the Log entry line component you can setup InterFormNG2 to add a log entry for each of the splitted documents:

 

NG2NewLogLine0003

 

(In the example above the sample XML file contains multiple Document nodes and with [1] only the first one is selected). Remember to make sure, that the XPath function in the New log line match the new splitted documents.

 

The split setup above is covered in this section: Split and transform example.

 

With the setup above the job log will have these entries:

 

NG2NewLogLine0004