Log to XML

Log to XML

This advanced utilities workflow component retrieves a job log and copies it into the payload (and overwrites the previous contents) of the current workflow in XML format.

 

As default the component retrieves the job log of the current workflow. Alternatively you refer to a unique value of the Log info key meta data key to retrieve the log of another workflow.

 

The Log to XML workflow component has this single parameter:

 

NG2WorkflowLogToXML0001

 

Log-line name

If the log-line name is blank, then the XML payload file will be assigned to the log of the current workflow. If it is filled out, the a match is found where the value stated here is compared to the Log info key setup in other workflows.


The XML structure of the log looks like below:

 

NG2WorkflowLogToXML002

 

If you want to present the contents in a template, then you can consider a template similar to this:

 

 

NG2WorkflowLogToXML003

 

This creates an output similar to this:

 

NG2WorkflowLogToXML004

 

This reflects the elements of this workflow:

 

NG2WorkflowLogToXML005

 

The Error component triggers a call to an On Error workflow, which executes the Log To XML component and generates a PDF like above:

 

NG2WorkflowLogToXML007

 

Example of usage

The Log to XML component can e.g. be used together with the Debug headers component if you want to see information from the job log directly in the current workflow. This is done in this example.

 


    • Related Articles

    • Release log

      This is the list of the InterFormNG2 releases and the major new features in each release: Version 3.x.x Version 3.5.1 Version 3.5.0 Version 3.4.3 Version 3.4.2 Version 3.4.1 Version 3.4.0 Version 3.3.2 Version 3.3.1 Version 3.3.0 Version 3.2.0 ...
    • XML Node Selection & Referencing

      XPath provides multiple ways to reference and navigate through an XML structure. Learn how to select specific nodes using direct references, index numbers, conditions, and relationships with other nodes. Connecting preceding or following node sets to ...
    • Node Existence & Conditions

      XPath allows you to verify the existence of nodes, check if they contain data, count occurrences, and ignore namespaces. This section covers essential techniques for validating and filtering XML elements. Calculating the sum of nodes Counting ...
    • 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 it much easier to search for a specific job ...
    • Rule-based XML validation

      This advanced validation workflow component, Rule-based XML validation, can validate XML according to rules. The rules for rule-based validation can be used to validate documents in XML format. A suggestion for implementation can be found here. The ...