New log line component

New log line component

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

    • Related Articles

    • Log info key component

      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 ...
    • Release log

      This is the list of the InterFormNG2 releases and the major new features in each release: Version 3.5.0 Important: InterFormNG2 now runs on Java 17. So you need to install Java 17 on Linux and the IBM i platform, if you want to InterFormNG2 on either ...
    • Line element

      If you want to insert a line in a template, then you need to click the line element icon: After you have clicked the line element, the pointer icon changes to a cross hair icon indicating, that InterFormNG2 now expects you to start and end position ...
    • PDF to splf component

      IMPORTANT!! DO NOT use this feature in the 1.9.0 version, as an important change was made in the next version, which changed the behavior of existing definitions. InterFormNG2 can extract text from a PDF file and put the extracted text into the ...
    • Line break element

      The line break element can only be inserted in a container (or page element), which has a horizontal flow direction (row). The line break element is found here in the list of elements in the designer: If you insert this then the following text is ...