Cut textual payload

Cut textual payload

In rare situations an input file might be invalid because of extra header data (prior to the actual payload) or extra invalid data at the end of the input file. This can prevent InterFormNG2 from processing e.g. an otherwise valid XML file.

 

So as an aid this advanced workflow, converter component (Cut textual payload) has been added in order to remove a leading or trailing sequence from the payload.: Cut texual payload. The component has these parameters:

 

NG2CutTextualPayload0001

 

 

Text at cutoff point

This is the text, that InterFormNG2 is to search for (in the encoding setup below).

 

Keep payload part

This parameter can be either After cutoff point or Before cutoff point. If the unwanted part is found in the start of the payload, then you should select 'After cutoff point' and if you want to remove an unwanted trailing part, then chosen value should be 'Before cutoff point'.

 

Include cutoff text in output

If activated the search text will also be included in the new payload, so this should be activated only, if the search text a part of the valid payload, that you want to keep.

 

Character encoding

This is the encoding, that is to be used for the comparison. This is optional and if not specified the encoding used will be UTF-8.

    • Related Articles

    • Payload to workflow variable

      The advanced, utilities workflow component, Payload to variable copies the current payload into a variable. This can e.g. be used, if you want to insert the payload into an output file via a variable in a transformation. The payload to workflow ...
    • Named property to payload

      This component can be used with the workflow component, Payload to named property. The named property to payload component retrieves a named property, that was previously saved with the Payload to property, into the payload. This can e.g. be used, if ...
    • Payload to attachment

      With the Payload to attachment component you can set the payload of the workflow to be the contents of the email attachment. The name of the attachment is set in the workflow component, Set attachment name, which you should insert first in the ...
    • From file to payload

      It is possible to load a file from the local file system into the payload of the workflow. This will overwrite the contents of the payload, so you might consider to save the payload e.g. into a property or an attachment before you run this advanced ...
    • From variable to payload

      With the advanced, utilities workflow component, From variable to payload you can overwrite the current payload of the workflow with the contents of a workflow variable. The parameters are: Variable name The name of the variable to copy the data ...