Splf extractor: How to use it in the workflow.

Splf extractor: How to use it in the workflow.

The spooled file extractor can be used for extracting XML data from an input spooled file, and one important part is of course to also use this transformation in the workflow of InterFormNG2.

 

For that you need to use the workflow component, Splf to XML. This workflow component accepts a spooled file (.splf) as input and outputs an XML with the extracted data.

 

After the Splf to XML component you can then e.g. merge the XML file into printPDF or email (with an attached PDF) or use any of the many advanced workflow components.

 

The input for the Splf to XML component must be a spooled file. The spooled file can however arrive in two ways:

 

1.As a 'real' spooled file on the AS400/iSeries/IBM i platform via a monitored output queue.

You can do that, if you setup a workflow to monitor an output queue like in this example:

 

NG2SplfExtractorOutq0001

 

The first component looks like this:

 

NG2SplfExtractorOutq0002

 

The input type must be SPLF. If you select something else then the Splf to XML component cannot be inserted.

 

 

 

2.An .splf file is processed e.g. via a monitored folder.

The workflow below monitors a folder:

 

NG2SplfExtractorFldr0001

 

(In this example the resulting XML is saved in a folder).

 

The important thing is to specify the right filter and file input type on the input component:

 

NG2SplfExtractorFldr0002

 

It is important, that the filter match the extension of the input file and you need to specify SPLF as the input type in order to be able to select the Splf to XML component inside the workflow.

    • Related Articles

    • Splf extractor: Conditioned mappings

      Both the line and block element can be conditioned in the spooled file extractor. To condition an element you should first select the area in the spooled file view and create a simple mapping. Now you need to enable triggers on the right in order to ...
    • Splf extractor: Simple mapping

      The spooled file extractor selects data from all the pages of the spooled file. The output XML file is a file with a node for each spooled file page, so it is very each to see from which spooled file page the XML data was extracted. First you need of ...
    • Splf extractor: Tokens

      In the spooled file extractor you can build conditions to conditionally select section of the spooled file. Whenever you add a condition you compare the selected text with a token. Predefined tokens InterFormNG2 is delivered with these predefined ...
    • Introduction to the Spooled file extractor

      IMPORTANT: The spooled file extractor is no longer supported. Any spooled file extractor definitions, that has previously been designed can still be used in the workflow, but they cannot be edited. The better alternative is to use the designer for ...
    • Use spooled file attributes in the designer

      You can use a lot of spooled file attributes, when you create a template in the designer. You can e.g. use spooled file attributes in the designer in multiple way: Inside conditions or e.g. simply include them in a text element. You can refer to ...