Scripting Agent Service (com.ibi.agents.XDScriptingAgent)

Syntax:

com.ibi.agents.XDScriptingAgent

iIT Service Object:

format: Scripting Agent

Description: Allows for the configuration and execution of scripts using the iSM Scripting Engine.

Parameters:

Parameter

Description

Schema File *

The absolute path of schema, for example, C:\schema\xyz.xsd.

Scripting Engine

Scripting engine to activate.

Location

Location of where the script can be found:

  • external - The script field contains the path to the script file located somewhere on the server file system.
  • dynamic - The script field will contains the actual script to be executed. An iSM iFL command (for example, _FILE, _XPATH) may be used to load the script to execute.
  • document - The script to execute is contained in the inbound document's element named script, SCRIPT, or Script.

Script

The path to the script file or script document.

Script Parameters

The script entry point and additional variables used to process the script. To specify a script entry point enter the value as '-entry functionName'. The entry point value is followed by any additional parameters that the script needs to execute. If no entry point is specifies the Scripting Engine starts execution with the first script statement not contained within a script function.

Output Document Type

Determines whether the output document emitted should be the original input document (input), the agent's results (result) or a status document (status).

Edges:

The following table lists the available Line Edges for the Scripting Agent Service (com.ibi.agents.XDScriptingAgent).

Line Edge

Description

OnError

An exception occurred during execution.

OnSuccess

The operation was successful.

OnFailure

A fail condition occurred during execution.

OnParseError

Could not parse a document.

OnFailedOperation

Could not perform the operation requested .

OnFailSecurity

Could not operate dues to a security violation..