Change attributes of spooled file

Change attributes of spooled file

As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to change one or more spooled file attributes of the input spooled file to let the end user know, that the specific spooled file has been successfully processed.

 

You can also change a spooled file attribute, that is used in a condition in the workflow to prevent the same spooled file to be processed again, if someone should hold and release the input spooled file.

 

A similar workflow component is the Post-process spooled file. If you want to set specific attributes of an merged/output spooled file, then you should check out the workflow component, AS400 Print Attribute Options.

 

The change attributes of spooled file workflow component is found under the advanced other workflow components.

 

The component has these parameters:

 

NG2ChangeAttrOfSplf0001

 

There are 3 sets of spooled file attributes, that can be set in a single component. If you want to change more, then you can insert multiple Change attributes of spooled file components.

 

Spooled file attribute

On the left you refer to one of the supported spooled file attributes. You can select between these attributes:

Form type

User specified data (user data)

User defined data field

Output queue

Starting page

Ending page

Total copies

Source drawer

 

Attribute value

Here you set the value to assign to the spooled file attribute. The value can be a constant like above, but it can also be an XPath expression (click the T-icon on the right) to define a dynamic expression, that calculates the value to be saved in the attribute on the right.

 

In the example above the form type is set to *STD, User data is set to 'Printed' and the copies attribute is set to a single copy.

    • Related Articles

    • Change spooled file attributes

      As a part of the processing of an input spooled file in the workflow, you might want to change one or more spooled file attributes e.g. to inform the end users, that the input spooled file has been processed successfully in InterFormNG2. To change ...
    • Change page breaks of a spooled file

      When you merge an input spooled file with a template in InterFormNG2 e.g. for PDF or print output, then you normally want the same page breaks in the output as in the original input spooled file. You are however not necessarily limited by that and ...
    • Change spooled file mappings

      After you have mapped spooled file contents in either the designer or the workflow, then you might later want to change the mapping and e.g. select some other positions in the spooled file. This section describes a tip of how you can see the ...
    • 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 ...
    • Condition workflow on spooled file attributes

      When you build a workflow tree structure to handle all the different types of spooled files, then you normally need to look at the spooled file attributes (e.g. spooled file name) apart from the spooled file contents to identify the spooled file type ...