Legacy Product

Fusion 5.10
    Fusion 5.10

    Managed JavaScript Index Stage

    This stage runs a JavaScript transformation on documents using a script from the blob store. The script must have the blob type file:js-index.

    Uploading a JavaScript blob

    In Fusion 5.7, JavaScript blobs must be uploaded using the Blob Store API, like this:

    curl -u USERNAME:PASSWORD -X PUT -H 'Content-Type: text/javascript' --data-binary @index-pipeline-js-stage.js http://FUSION_HOST:FUSION_PORT/api/apps/APP_NAME/blobs/index-pipeline-js-stage.js?resourceType=file:js-index

    Open the blob manager to verify that the new blob is present:

    Uploaded JavaScript blob in the blob manager

    Referencing a JavaScript blob

    Use any of the following formats for the ref/Script Reference configuration field:

    index-pipeline-js-stage.js
    blob:index-pipeline-js-stage.js
    urn:x-fusion:blob:index-pipeline-js-stage.js
    The examples above use index-pipeline-js-stage.js as the blob ID.

    Edit JavaScript

    For Fusion 5.4.x and later, select Edit in the Script Reference field to edit JavaScript directly in the Fusion UI.

    Configuration

    When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.

    Run a JavaScript transformation on documents using a script from the Blob Service

    skip - boolean

    Set to true to skip this stage.

    Default: false

    label - string

    A unique label for this stage.

    <= 255 characters

    condition - string

    Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.

    ref - stringrequired

    Reference to a Javascript Blob with Blob type file:js-index.