Disable Specific Pipes - AIF - Technical Notes

Disable Filters and Pipes On-The-Fly

Product
AIF
AFS_Version
7.7
Category
Technical Notes
language
English
audience
public

It is possible to disable one or several specific Pipes. This feature is available from AIF v7.6.2.

To do this, it is possible to add to the desired pipes the disable attribute in the paf.xml configuration file.

Example, to disable this Spellcheck Pipe:

<afs:pipe name="Spellcheck pipe" disable="true">
<afs:filter uri="#sb" type="afs_spellcheck_build">
<afs:filter uri="#sb" type="afs_spellcheck_deploy">
</afs:pipe>


Note that the disable attribute is evaluated over environment variable. For example with this paf.xml configuration file:

<afs:pipe name="Spellcheck pipe" disable="$DONT_DO_SPELLCHECK">
<afs:filter uri="#sb" type="afs_spellcheck_build">
<afs:filter uri="#sb" type="afs_spellcheck_deploy">
</afs:pipe>

Using the following variable:

export DONT_DO_SPELLCHECK=true

Will result in disabling this pipe.


Note that it is also possible to disable a pipe using an environment variable on the Pipe URI. For example with this paf.xml configuration file:

<afs:pipe name="Spellcheck pipe" uri="sp_pipe">
<afs:filter uri="#sb" type="afs_spellcheck_build">
<afs:filter uri="#sb" type="afs_spellcheck_deploy">
</afs:pipe>

Using the following variable:

export AFS7_DISABLE_SP_PIPE=true

Will result in disabling this pipe.

In this case, Pipe URI must NOT contain special characters or spaces.