Force content type

Force content type

The workflow editor in InterFormNG2 is helpful in the way that it keeps track of the file/data type, that is currently stored in the payload. In that way the editor warns you, if you are trying to execute a component, that is unable to handle the current payload and it also only allows you to insert new components, that can handle the current payload as input.

 

In some situations it can however be useful to overrule the file type, that the workflow has in the payload and in this way force the workflow to handle the payload as another file type, than it seems to be.

 

This is exactly what the advanced utilities workflow component, Force content type comes in. The component has one parameter:

 

NG2ForceContentType0001

 

Input type

Here you select the data type, that the payload really is. The file types are listed here.

 

 

Example

One example where this workflow component can be used is e.g. if you want to handle an input spooled file as an xml file. When InterFormNG2 loads a spooled file, then it is really stored as an XML file, so after running this component you can use all of the normal XML related workflow components to work on the spooled file - as an XML.

    • Related Articles

    • Set MIME type

      The advanced set meta data workflow component, Set MIME type, sets the print data stream used for the next merge to print, but it can also be used for setting the content type, that this is returned from a web service call to InterFormNG2 via REST ...
    • Set paper type

      The advanced set meta data workflow component, Set paper type, sets the paper type (for tray selection) for the next merge(s) to PCL output. This can also be set dynamically in the template with the design element, print settings. Alternatives are: ...
    • Mime type advanced settings

      Mime type advanced settings: This section covers mime type (printer language specific) specific settings in InterFormNG2. Depending on the type of mime type (the printer language, that is to be used for the specific printer), one of these options are ...
    • Set MIME type for printer selection

      The advanced set meta data workflow component, Set MIME type for printer selection, sets the MIME type for following merges in the current workflow to fit the printer name, that was previously selected. The mime type identifies the type of print data ...
    • Transform a spooled file into XML

      InterFormNG2 can help you to transform a spooled file into XML. In order to do that you first need to load the spooled file in the library in the version 2 format. Next you need to setup a transformation of the spooled file in the designer. This will ...