Log info key component

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 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 contents of log info key is shown in the job log overview in the File name or key column:

 

NG2Joblog002

 

 

Additional log info keys

It is possible to add two additional keys which are not shown on the job log, but the contents of these are fully searchable. The additional keys are available as predefined variables in the workflow and are named: interform.log.info2 and interform.log.info3These keys can be also be set on the log info key component.


You can also use the workflow component, Set multiple workflow variables  to assign a value to either of them. The log info key is the same as the predefined variable, interform.log.info.

 

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 log entries (e.g. one for each splitted sub file), then you should consider the New log line workflow component instead.

 

The Log info key workflow component has these parameters:


 

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.


Log info key 2

This is similar to log info key - except that the value of log info key 2 is not shown in the job log list, but still the value set for this key is searchable.

 

 

Log info key 3

This is similar to log info key - except that the value of log info key 3 is not shown in the job log list, but still the value set for this key is searchable.



    • Related Articles

    • 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 ...
    • Delayed email cancel key

      The Delayed email cancel key component is used together with these workflow components: 1.Cancel delayed email. Use this component to cancel a delayed email. 2.PDF Delayed email. This defines a delayed email. 3.Send emails from delay queue. This ...
    • Split spool (dynamic key position)

      As the split spooled file (fixed key position) component above, this component can be used to split a spooled file based on a key value. However, in this case the key value can be in variable positions on the page. You just need to be able to find ...
    • Component element

      The component element is selected via this icon: Components can be used, if you want to reuse a collection of elements for multiple templates. This can e.g. be used, if you want to define a special header or footer, that should be common for many ...
    • 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 ...